OSDN Git Service

contrib:
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn cxx_compat_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always  enable -Werror despite compiler version
866   --enable-checking=LIST
867                           enable expensive run-time checks.  With LIST,
868                           enable only specific categories of checks.
869                           Categories are: yes,no,all,none,release.
870                           Flags are: assert,df,fold,gc,gcac,misc,
871                           rtlflag,rtl,runtime,tree,valgrind,types.
872   --enable-coverage=LEVEL
873                           enable compiler's code coverage collection.
874                           Use to measure compiler performance and locate
875                           unused parts of the compiler. With LEVEL, specify
876                           optimization. Values are opt, noopt,
877                           default is noopt
878   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
879   --enable-multilib       enable library support for multiple ABIs
880   --enable-__cxa_atexit   enable __cxa_atexit for C++
881   --enable-decimal-float={no,yes,bid,dpd}
882                         enable decimal float extension to C.  Selecting 'bid'
883                         or 'dpd' choses which decimal floating point format
884                         to use
885   --enable-fixed-point    enable fixed-point arithmetic extension to C
886   --enable-threads        enable thread usage for target GCC
887   --enable-threads=LIB    use LIB thread package for target GCC
888   --enable-tls            enable or disable generation of tls code
889                           overriding the assembler check for tls support
890   --enable-objc-gc        enable the use of Boehm's garbage collector with
891                           the GNU Objective-C runtime
892   --disable-shared        don't provide a shared libgcc
893   --enable-intermodule    build the compiler in one step
894   --enable-languages=LIST specify which front-ends to build
895   --disable-rpath         do not hardcode runtime library paths
896   --enable-initfini-array       use .init_array/.fini_array sections
897   --enable-sjlj-exceptions
898                           arrange to use setjmp/longjmp exception handling
899   --enable-secureplt      enable -msecure-plt by default for PowerPC
900   --disable-win32-registry
901                           disable lookup of installation paths in the
902                           Registry on Windows hosts
903   --enable-win32-registry enable registry lookup (default)
904   --enable-win32-registry=KEY
905                           use KEY instead of GCC version as the last portion
906                           of the registry key
907   --enable-maintainer-mode
908                           enable make rules and dependencies not useful
909                           (and sometimes confusing) to the casual installer
910   --enable-version-specific-runtime-libs
911                           specify that runtime libraries should be
912                           installed in a compiler-specific directory
913
914 Optional Packages:
915   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
916   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
917   --with-build-libsubdir=DIR  Directory where to find libraries for build system
918   --with-local-prefix=DIR specifies directory to put local include
919   --with-gxx-include-dir=DIR
920                           specifies directory to put g++ header files
921   --with-cpp-install-dir=DIR
922                           install the user visible C preprocessor in DIR
923                           (relative to PREFIX) as well as PREFIX/bin
924   --with-gnu-ld           arrange to work with GNU ld.
925   --with-ld               arrange to use the specified ld (full pathname)
926   --with-demangler-in-ld  try to use demangler in GNU ld.
927   --with-gnu-as           arrange to work with GNU as
928   --with-as               arrange to use the specified as (full pathname)
929   --with-stabs            arrange to use stabs instead of host debug format
930   --with-dwarf2           force the default debug format to be DWARF 2
931   --with-build-sysroot=sysroot
932                           use sysroot as the system root during the build
933   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
934   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
935   --with-bugurl=URL       Direct users to URL to report a bug
936   --with-gnu-ld           assume the C compiler uses GNU ld default=no
937   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
938   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
939   --with-system-libunwind use installed libunwind
940   --with-long-double-128  Use 128-bit long double by default.
941   --with-gc={page,zone}   choose the garbage collection mechanism to use
942                           with the compiler
943   --with-system-zlib      use installed libz
944   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
945   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
946   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
947   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
948
949 Some influential environment variables:
950   CC          C compiler command
951   CFLAGS      C compiler flags
952   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
953               nonstandard directory <lib dir>
954   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
955               headers in a nonstandard directory <include dir>
956   CPP         C preprocessor
957   GMPLIBS     How to link GMP
958   GMPINC      How to find GMP include files
959
960 Use these variables to override the choices made by `configure' or to help
961 it to find libraries and programs with nonstandard names/locations.
962
963 _ACEOF
964 fi
965
966 if test "$ac_init_help" = "recursive"; then
967   # If there are subdirs, report their specific --help.
968   ac_popdir=`pwd`
969   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
970     test -d $ac_dir || continue
971     ac_builddir=.
972
973 if test "$ac_dir" != .; then
974   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
975   # A "../" for each directory in $ac_dir_suffix.
976   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
977 else
978   ac_dir_suffix= ac_top_builddir=
979 fi
980
981 case $srcdir in
982   .)  # No --srcdir option.  We are building in place.
983     ac_srcdir=.
984     if test -z "$ac_top_builddir"; then
985        ac_top_srcdir=.
986     else
987        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
988     fi ;;
989   [\\/]* | ?:[\\/]* )  # Absolute path.
990     ac_srcdir=$srcdir$ac_dir_suffix;
991     ac_top_srcdir=$srcdir ;;
992   *) # Relative path.
993     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
994     ac_top_srcdir=$ac_top_builddir$srcdir ;;
995 esac
996
997 # Do not use `cd foo && pwd` to compute absolute paths, because
998 # the directories may not exist.
999 case `pwd` in
1000 .) ac_abs_builddir="$ac_dir";;
1001 *)
1002   case "$ac_dir" in
1003   .) ac_abs_builddir=`pwd`;;
1004   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1005   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1006   esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1010 *)
1011   case ${ac_top_builddir}. in
1012   .) ac_abs_top_builddir=$ac_abs_builddir;;
1013   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1014   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1015   esac;;
1016 esac
1017 case $ac_abs_builddir in
1018 .) ac_abs_srcdir=$ac_srcdir;;
1019 *)
1020   case $ac_srcdir in
1021   .) ac_abs_srcdir=$ac_abs_builddir;;
1022   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1023   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1024   esac;;
1025 esac
1026 case $ac_abs_builddir in
1027 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1028 *)
1029   case $ac_top_srcdir in
1030   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1031   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1032   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1033   esac;;
1034 esac
1035
1036     cd $ac_dir
1037     # Check for guested configure; otherwise get Cygnus style configure.
1038     if test -f $ac_srcdir/configure.gnu; then
1039       echo
1040       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1041     elif test -f $ac_srcdir/configure; then
1042       echo
1043       $SHELL $ac_srcdir/configure  --help=recursive
1044     elif test -f $ac_srcdir/configure.ac ||
1045            test -f $ac_srcdir/configure.in; then
1046       echo
1047       $ac_configure --help
1048     else
1049       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1050     fi
1051     cd $ac_popdir
1052   done
1053 fi
1054
1055 test -n "$ac_init_help" && exit 0
1056 if $ac_init_version; then
1057   cat <<\_ACEOF
1058
1059 Copyright (C) 2003 Free Software Foundation, Inc.
1060 This configure script is free software; the Free Software Foundation
1061 gives unlimited permission to copy, distribute and modify it.
1062 _ACEOF
1063   exit 0
1064 fi
1065 exec 5>config.log
1066 cat >&5 <<_ACEOF
1067 This file contains any messages produced by compilers while
1068 running configure, to aid debugging if configure makes a mistake.
1069
1070 It was created by $as_me, which was
1071 generated by GNU Autoconf 2.59.  Invocation command line was
1072
1073   $ $0 $@
1074
1075 _ACEOF
1076 {
1077 cat <<_ASUNAME
1078 ## --------- ##
1079 ## Platform. ##
1080 ## --------- ##
1081
1082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1087
1088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1089 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1090
1091 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1092 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1094 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1095 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1096 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1097 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1098
1099 _ASUNAME
1100
1101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1102 for as_dir in $PATH
1103 do
1104   IFS=$as_save_IFS
1105   test -z "$as_dir" && as_dir=.
1106   echo "PATH: $as_dir"
1107 done
1108
1109 } >&5
1110
1111 cat >&5 <<_ACEOF
1112
1113
1114 ## ----------- ##
1115 ## Core tests. ##
1116 ## ----------- ##
1117
1118 _ACEOF
1119
1120
1121 # Keep a trace of the command line.
1122 # Strip out --no-create and --no-recursion so they do not pile up.
1123 # Strip out --silent because we don't want to record it for future runs.
1124 # Also quote any args containing shell meta-characters.
1125 # Make two passes to allow for proper duplicate-argument suppression.
1126 ac_configure_args=
1127 ac_configure_args0=
1128 ac_configure_args1=
1129 ac_sep=
1130 ac_must_keep_next=false
1131 for ac_pass in 1 2
1132 do
1133   for ac_arg
1134   do
1135     case $ac_arg in
1136     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1137     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138     | -silent | --silent | --silen | --sile | --sil)
1139       continue ;;
1140     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1141       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1142     esac
1143     case $ac_pass in
1144     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1145     2)
1146       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1147       if test $ac_must_keep_next = true; then
1148         ac_must_keep_next=false # Got value, back to normal.
1149       else
1150         case $ac_arg in
1151           *=* | --config-cache | -C | -disable-* | --disable-* \
1152           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1153           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1154           | -with-* | --with-* | -without-* | --without-* | --x)
1155             case "$ac_configure_args0 " in
1156               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1157             esac
1158             ;;
1159           -* ) ac_must_keep_next=true ;;
1160         esac
1161       fi
1162       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1163       # Get rid of the leading space.
1164       ac_sep=" "
1165       ;;
1166     esac
1167   done
1168 done
1169 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1170 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1171
1172 # When interrupted or exit'd, cleanup temporary files, and complete
1173 # config.log.  We remove comments because anyway the quotes in there
1174 # would cause problems or look ugly.
1175 # WARNING: Be sure not to use single quotes in there, as some shells,
1176 # such as our DU 5.0 friend, will then `close' the trap.
1177 trap 'exit_status=$?
1178   # Save into config.log some information that might help in debugging.
1179   {
1180     echo
1181
1182     cat <<\_ASBOX
1183 ## ---------------- ##
1184 ## Cache variables. ##
1185 ## ---------------- ##
1186 _ASBOX
1187     echo
1188     # The following way of writing the cache mishandles newlines in values,
1189 {
1190   (set) 2>&1 |
1191     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192     *ac_space=\ *)
1193       sed -n \
1194         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1195           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1196       ;;
1197     *)
1198       sed -n \
1199         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1200       ;;
1201     esac;
1202 }
1203     echo
1204
1205     cat <<\_ASBOX
1206 ## ----------------- ##
1207 ## Output variables. ##
1208 ## ----------------- ##
1209 _ASBOX
1210     echo
1211     for ac_var in $ac_subst_vars
1212     do
1213       eval ac_val=$`echo $ac_var`
1214       echo "$ac_var='"'"'$ac_val'"'"'"
1215     done | sort
1216     echo
1217
1218     if test -n "$ac_subst_files"; then
1219       cat <<\_ASBOX
1220 ## ------------- ##
1221 ## Output files. ##
1222 ## ------------- ##
1223 _ASBOX
1224       echo
1225       for ac_var in $ac_subst_files
1226       do
1227         eval ac_val=$`echo $ac_var`
1228         echo "$ac_var='"'"'$ac_val'"'"'"
1229       done | sort
1230       echo
1231     fi
1232
1233     if test -s confdefs.h; then
1234       cat <<\_ASBOX
1235 ## ----------- ##
1236 ## confdefs.h. ##
1237 ## ----------- ##
1238 _ASBOX
1239       echo
1240       sed "/^$/d" confdefs.h | sort
1241       echo
1242     fi
1243     test "$ac_signal" != 0 &&
1244       echo "$as_me: caught signal $ac_signal"
1245     echo "$as_me: exit $exit_status"
1246   } >&5
1247   rm -f core *.core &&
1248   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1249     exit $exit_status
1250      ' 0
1251 for ac_signal in 1 2 13 15; do
1252   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1253 done
1254 ac_signal=0
1255
1256 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1257 rm -rf conftest* confdefs.h
1258 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1259 echo >confdefs.h
1260
1261 # Predefined preprocessor variables.
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_NAME "$PACKAGE_NAME"
1265 _ACEOF
1266
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1270 _ACEOF
1271
1272
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1275 _ACEOF
1276
1277
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_STRING "$PACKAGE_STRING"
1280 _ACEOF
1281
1282
1283 cat >>confdefs.h <<_ACEOF
1284 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1285 _ACEOF
1286
1287
1288 # Let the site file select an alternate cache file if it wants to.
1289 # Prefer explicitly selected file to automatically selected ones.
1290 if test -z "$CONFIG_SITE"; then
1291   if test "x$prefix" != xNONE; then
1292     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1293   else
1294     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295   fi
1296 fi
1297 for ac_site_file in $CONFIG_SITE; do
1298   if test -r "$ac_site_file"; then
1299     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1300 echo "$as_me: loading site script $ac_site_file" >&6;}
1301     sed 's/^/| /' "$ac_site_file" >&5
1302     . "$ac_site_file"
1303   fi
1304 done
1305
1306 if test -r "$cache_file"; then
1307   # Some versions of bash will fail to source /dev/null (special
1308   # files actually), so we avoid doing that.
1309   if test -f "$cache_file"; then
1310     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1311 echo "$as_me: loading cache $cache_file" >&6;}
1312     case $cache_file in
1313       [\\/]* | ?:[\\/]* ) . $cache_file;;
1314       *)                      . ./$cache_file;;
1315     esac
1316   fi
1317 else
1318   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1319 echo "$as_me: creating cache $cache_file" >&6;}
1320   >$cache_file
1321 fi
1322
1323 # Check that the precious variables saved in the cache have kept the same
1324 # value.
1325 ac_cache_corrupted=false
1326 for ac_var in `(set) 2>&1 |
1327                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1328   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1329   eval ac_new_set=\$ac_env_${ac_var}_set
1330   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1331   eval ac_new_val="\$ac_env_${ac_var}_value"
1332   case $ac_old_set,$ac_new_set in
1333     set,)
1334       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1336       ac_cache_corrupted=: ;;
1337     ,set)
1338       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1339 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1340       ac_cache_corrupted=: ;;
1341     ,);;
1342     *)
1343       if test "x$ac_old_val" != "x$ac_new_val"; then
1344         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1345 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1346         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1347 echo "$as_me:   former value:  $ac_old_val" >&2;}
1348         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1349 echo "$as_me:   current value: $ac_new_val" >&2;}
1350         ac_cache_corrupted=:
1351       fi;;
1352   esac
1353   # Pass precious variables to config.status.
1354   if test "$ac_new_set" = set; then
1355     case $ac_new_val in
1356     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1357       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1358     *) ac_arg=$ac_var=$ac_new_val ;;
1359     esac
1360     case " $ac_configure_args " in
1361       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1362       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1363     esac
1364   fi
1365 done
1366 if $ac_cache_corrupted; then
1367   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1368 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1369   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1370 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1371    { (exit 1); exit 1; }; }
1372 fi
1373
1374 ac_ext=c
1375 ac_cpp='$CPP $CPPFLAGS'
1376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1400
1401
1402 gcc_version=`cat $srcdir/BASE-VER`
1403
1404 # Determine the host, build, and target systems
1405 ac_aux_dir=
1406 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1407   if test -f $ac_dir/install-sh; then
1408     ac_aux_dir=$ac_dir
1409     ac_install_sh="$ac_aux_dir/install-sh -c"
1410     break
1411   elif test -f $ac_dir/install.sh; then
1412     ac_aux_dir=$ac_dir
1413     ac_install_sh="$ac_aux_dir/install.sh -c"
1414     break
1415   elif test -f $ac_dir/shtool; then
1416     ac_aux_dir=$ac_dir
1417     ac_install_sh="$ac_aux_dir/shtool install -c"
1418     break
1419   fi
1420 done
1421 if test -z "$ac_aux_dir"; then
1422   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1423 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1424    { (exit 1); exit 1; }; }
1425 fi
1426 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1427 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1428 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1429
1430 # Make sure we can run config.sub.
1431 $ac_config_sub sun4 >/dev/null 2>&1 ||
1432   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1433 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1434    { (exit 1); exit 1; }; }
1435
1436 echo "$as_me:$LINENO: checking build system type" >&5
1437 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1438 if test "${ac_cv_build+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   ac_cv_build_alias=$build_alias
1442 test -z "$ac_cv_build_alias" &&
1443   ac_cv_build_alias=`$ac_config_guess`
1444 test -z "$ac_cv_build_alias" &&
1445   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1447    { (exit 1); exit 1; }; }
1448 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1449   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1451    { (exit 1); exit 1; }; }
1452
1453 fi
1454 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1455 echo "${ECHO_T}$ac_cv_build" >&6
1456 build=$ac_cv_build
1457 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460
1461
1462 echo "$as_me:$LINENO: checking host system type" >&5
1463 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1464 if test "${ac_cv_host+set}" = set; then
1465   echo $ECHO_N "(cached) $ECHO_C" >&6
1466 else
1467   ac_cv_host_alias=$host_alias
1468 test -z "$ac_cv_host_alias" &&
1469   ac_cv_host_alias=$ac_cv_build_alias
1470 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1471   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1472 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1473    { (exit 1); exit 1; }; }
1474
1475 fi
1476 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1477 echo "${ECHO_T}$ac_cv_host" >&6
1478 host=$ac_cv_host
1479 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482
1483
1484 echo "$as_me:$LINENO: checking target system type" >&5
1485 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1486 if test "${ac_cv_target+set}" = set; then
1487   echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489   ac_cv_target_alias=$target_alias
1490 test "x$ac_cv_target_alias" = "x" &&
1491   ac_cv_target_alias=$ac_cv_host_alias
1492 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1493   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1495    { (exit 1); exit 1; }; }
1496
1497 fi
1498 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1499 echo "${ECHO_T}$ac_cv_target" >&6
1500 target=$ac_cv_target
1501 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504
1505
1506 # The aliases save the names the user supplied, while $host etc.
1507 # will get canonicalized.
1508 test -n "$target_alias" &&
1509   test "$program_prefix$program_suffix$program_transform_name" = \
1510     NONENONEs,x,x, &&
1511   program_prefix=${target_alias}-
1512
1513 # Determine the noncanonical target name, for directory use.
1514  case ${build_alias} in
1515   "") build_noncanonical=${build} ;;
1516   *) build_noncanonical=${build_alias} ;;
1517 esac
1518
1519  case ${host_alias} in
1520   "") host_noncanonical=${build_noncanonical} ;;
1521   *) host_noncanonical=${host_alias} ;;
1522 esac
1523
1524  case ${target_alias} in
1525   "") target_noncanonical=${host_noncanonical} ;;
1526   *) target_noncanonical=${target_alias} ;;
1527 esac
1528
1529
1530
1531
1532 # Determine the target- and build-specific subdirectories
1533
1534 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1535 # have matching libraries, they should use host libraries: Makefile.tpl
1536 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1537 # However, they still use the build modules, because the corresponding
1538 # host modules (e.g. bison) are only built for the host when bootstrap
1539 # finishes. So:
1540 # - build_subdir is where we find build modules, and never changes.
1541 # - build_libsubdir is where we find build libraries, and can be overridden.
1542
1543 # Prefix 'build-' so this never conflicts with target_subdir.
1544 build_subdir="build-${build_noncanonical}"
1545
1546 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1547 if test "${with_build_libsubdir+set}" = set; then
1548   withval="$with_build_libsubdir"
1549   build_libsubdir="$withval"
1550 else
1551   build_libsubdir="$build_subdir"
1552 fi;
1553 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1554 if ( test $srcdir = . && test -d gcc ) \
1555    || test -d $srcdir/../host-${host_noncanonical}; then
1556   host_subdir="host-${host_noncanonical}"
1557 else
1558   host_subdir=.
1559 fi
1560 # No prefix.
1561 target_subdir=${target_noncanonical}
1562
1563
1564 # Set program_transform_name
1565 test "$program_prefix" != NONE &&
1566   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1567 # Use a double $ so make ignores it.
1568 test "$program_suffix" != NONE &&
1569   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1570 # Double any \ or $.  echo might interpret backslashes.
1571 # By default was `s,x,x', remove it if useless.
1572 cat <<\_ACEOF >conftest.sed
1573 s/[\\$]/&&/g;s/;s,x,x,$//
1574 _ACEOF
1575 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1576 rm conftest.sed
1577
1578
1579 # Check for bogus environment variables.
1580 # Test if LIBRARY_PATH contains the notation for the current directory
1581 # since this would lead to problems installing/building glibc.
1582 # LIBRARY_PATH contains the current directory if one of the following
1583 # is true:
1584 # - one of the terminals (":" and ";") is the first or last sign
1585 # - two terminals occur directly after each other
1586 # - the path contains an element with a dot in it
1587 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1588 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1589 case ${LIBRARY_PATH} in
1590   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1591     library_path_setting="contains current directory"
1592     ;;
1593   *)
1594     library_path_setting="ok"
1595     ;;
1596 esac
1597 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1598 echo "${ECHO_T}$library_path_setting" >&6
1599 if test "$library_path_setting" != "ok"; then
1600 { { echo "$as_me:$LINENO: error:
1601 *** LIBRARY_PATH shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&5
1604 echo "$as_me: error:
1605 *** LIBRARY_PATH shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&2;}
1608    { (exit 1); exit 1; }; }
1609 fi
1610
1611 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1612 # since this would lead to problems installing/building glibc.
1613 # GCC_EXEC_PREFIX contains the current directory if one of the following
1614 # is true:
1615 # - one of the terminals (":" and ";") is the first or last sign
1616 # - two terminals occur directly after each other
1617 # - the path contains an element with a dot in it
1618 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1619 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1620 case ${GCC_EXEC_PREFIX} in
1621   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1622     gcc_exec_prefix_setting="contains current directory"
1623     ;;
1624   *)
1625     gcc_exec_prefix_setting="ok"
1626     ;;
1627 esac
1628 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1629 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1630 if test "$gcc_exec_prefix_setting" != "ok"; then
1631 { { echo "$as_me:$LINENO: error:
1632 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1633 *** building gcc. Please change the environment variable
1634 *** and run configure again." >&5
1635 echo "$as_me: error:
1636 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1637 *** building gcc. Please change the environment variable
1638 *** and run configure again." >&2;}
1639    { (exit 1); exit 1; }; }
1640 fi
1641
1642 # -----------
1643 # Directories
1644 # -----------
1645
1646 # Specify the local prefix
1647 local_prefix=
1648
1649 # Check whether --with-local-prefix or --without-local-prefix was given.
1650 if test "${with_local_prefix+set}" = set; then
1651   withval="$with_local_prefix"
1652   case "${withval}" in
1653 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1654 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1655    { (exit 1); exit 1; }; } ;;
1656 no)     ;;
1657 *)      local_prefix=$with_local_prefix ;;
1658 esac
1659 fi;
1660
1661 # Default local prefix if it is empty
1662 if test x$local_prefix = x; then
1663         local_prefix=/usr/local
1664 fi
1665
1666 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1667 # passed in by the toplevel make and thus we'd get different behavior
1668 # depending on where we built the sources.
1669 gcc_gxx_include_dir=
1670 # Specify the g++ header file directory
1671
1672 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1673 if test "${with_gxx_include_dir+set}" = set; then
1674   withval="$with_gxx_include_dir"
1675   case "${withval}" in
1676 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1677 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1678    { (exit 1); exit 1; }; } ;;
1679 no)     ;;
1680 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1681 esac
1682 fi;
1683
1684 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1685 if test x${gcc_gxx_include_dir} = x; then
1686   if test x${enable_version_specific_runtime_libs} = xyes; then
1687     gcc_gxx_include_dir='${libsubdir}/include/c++'
1688   else
1689     libstdcxx_incdir='include/c++/$(version)'
1690     if test x$host != x$target; then
1691        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1692     fi
1693     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1694   fi
1695 fi
1696
1697
1698 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1699 if test "${with_cpp_install_dir+set}" = set; then
1700   withval="$with_cpp_install_dir"
1701   if test x$withval = xyes; then
1702   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1703 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1704    { (exit 1); exit 1; }; }
1705 elif test x$withval != xno; then
1706   cpp_install_dir=$withval
1707 fi
1708 fi;
1709
1710 # We would like to our source tree to be readonly.  However when releases or
1711 # pre-releases are generated, the flex/bison generated files as well as the
1712 # various formats of manuals need to be included along with the rest of the
1713 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1714 # just that.
1715
1716 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1717 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1718     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1719 if test "${enable_generated_files_in_srcdir+set}" = set; then
1720   enableval="$enable_generated_files_in_srcdir"
1721   generated_files_in_srcdir=$enableval
1722 else
1723   generated_files_in_srcdir=no
1724 fi;
1725
1726 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1727 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1728
1729 if test "$generated_files_in_srcdir" = "yes"; then
1730   GENINSRC=''
1731 else
1732   GENINSRC='#'
1733 fi
1734
1735
1736 # -------------------
1737 # Find default linker
1738 # -------------------
1739
1740 # With GNU ld
1741
1742 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1743 if test "${with_gnu_ld+set}" = set; then
1744   withval="$with_gnu_ld"
1745   gnu_ld_flag="$with_gnu_ld"
1746 else
1747   gnu_ld_flag=no
1748 fi;
1749
1750 # With pre-defined ld
1751
1752 # Check whether --with-ld or --without-ld was given.
1753 if test "${with_ld+set}" = set; then
1754   withval="$with_ld"
1755   DEFAULT_LINKER="$with_ld"
1756 fi;
1757 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1758   if test ! -x "$DEFAULT_LINKER"; then
1759     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1760 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1761    { (exit 1); exit 1; }; }
1762   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1763     gnu_ld_flag=yes
1764   fi
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1768 _ACEOF
1769
1770 fi
1771
1772 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define HAVE_GNU_LD $gnu_ld
1776 _ACEOF
1777
1778
1779 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1780 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1781 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1782   if test x"$gnu_ld_flag" = x"no"; then
1783     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1784 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1785   else
1786     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1787 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1788   fi
1789 else
1790   echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1792 fi
1793
1794 # With demangler in GNU ld
1795
1796 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1797 if test "${with_demangler_in_ld+set}" = set; then
1798   withval="$with_demangler_in_ld"
1799   demangler_in_ld="$with_demangler_in_ld"
1800 else
1801   demangler_in_ld=no
1802 fi;
1803
1804 # ----------------------
1805 # Find default assembler
1806 # ----------------------
1807
1808 # With GNU as
1809
1810 # Check whether --with-gnu-as or --without-gnu-as was given.
1811 if test "${with_gnu_as+set}" = set; then
1812   withval="$with_gnu_as"
1813   gas_flag="$with_gnu_as"
1814 else
1815   gas_flag=no
1816 fi;
1817
1818
1819 # Check whether --with-as or --without-as was given.
1820 if test "${with_as+set}" = set; then
1821   withval="$with_as"
1822   DEFAULT_ASSEMBLER="$with_as"
1823 fi;
1824 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1825   if test ! -x "$DEFAULT_ASSEMBLER"; then
1826     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1827 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1828    { (exit 1); exit 1; }; }
1829   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1830     gas_flag=yes
1831   fi
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1835 _ACEOF
1836
1837 fi
1838
1839 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define HAVE_GNU_AS $gnu_as
1843 _ACEOF
1844
1845
1846 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1847 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1848 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1849   if test x"$gas_flag" = x"no"; then
1850     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1851 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1852   else
1853     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1854 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1855   fi
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861 # ---------------
1862 # Find C compiler
1863 # ---------------
1864
1865 # If a non-executable a.out is present (e.g. created by GNU as above even if
1866 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1867 # file, even when creating an executable, so an execution test fails.
1868 # Remove possible default executable files to avoid this.
1869 #
1870 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1871 # Autoconf includes it.
1872 rm -f a.out a.exe b.out
1873
1874 # Find the native compiler
1875 ac_ext=c
1876 ac_cpp='$CPP $CPPFLAGS'
1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880 if test -n "$ac_tool_prefix"; then
1881   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$CC"; then
1889   ac_cv_prog_CC="$CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 CC=$ac_cv_prog_CC
1908 if test -n "$CC"; then
1909   echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916 fi
1917 if test -z "$ac_cv_prog_CC"; then
1918   ac_ct_CC=$CC
1919   # Extract the first word of "gcc", so it can be a program name with args.
1920 set dummy gcc; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   if test -n "$ac_ct_CC"; then
1927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932   IFS=$as_save_IFS
1933   test -z "$as_dir" && as_dir=.
1934   for ac_exec_ext in '' $ac_executable_extensions; do
1935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936     ac_cv_prog_ac_ct_CC="gcc"
1937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938     break 2
1939   fi
1940 done
1941 done
1942
1943 fi
1944 fi
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1949 else
1950   echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952 fi
1953
1954   CC=$ac_ct_CC
1955 else
1956   CC="$ac_cv_prog_CC"
1957 fi
1958
1959 if test -z "$CC"; then
1960   if test -n "$ac_tool_prefix"; then
1961   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}cc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$CC"; then
1969   ac_cv_prog_CC="$CC" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976   for ac_exec_ext in '' $ac_executable_extensions; do
1977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978     ac_cv_prog_CC="${ac_tool_prefix}cc"
1979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984
1985 fi
1986 fi
1987 CC=$ac_cv_prog_CC
1988 if test -n "$CC"; then
1989   echo "$as_me:$LINENO: result: $CC" >&5
1990 echo "${ECHO_T}$CC" >&6
1991 else
1992   echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1994 fi
1995
1996 fi
1997 if test -z "$ac_cv_prog_CC"; then
1998   ac_ct_CC=$CC
1999   # Extract the first word of "cc", so it can be a program name with args.
2000 set dummy cc; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$ac_ct_CC"; then
2007   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_ac_ct_CC="cc"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023 fi
2024 fi
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034   CC=$ac_ct_CC
2035 else
2036   CC="$ac_cv_prog_CC"
2037 fi
2038
2039 fi
2040 if test -z "$CC"; then
2041   # Extract the first word of "cc", so it can be a program name with args.
2042 set dummy cc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$CC"; then
2049   ac_cv_prog_CC="$CC" # Let the user override the test.
2050 else
2051   ac_prog_rejected=no
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2060        ac_prog_rejected=yes
2061        continue
2062      fi
2063     ac_cv_prog_CC="cc"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070 if test $ac_prog_rejected = yes; then
2071   # We found a bogon in the path, so make sure we never use it.
2072   set dummy $ac_cv_prog_CC
2073   shift
2074   if test $# != 0; then
2075     # We chose a different compiler from the bogus one.
2076     # However, it has the same basename, so the bogon will be chosen
2077     # first if we set CC to just the basename; use the full file name.
2078     shift
2079     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2080   fi
2081 fi
2082 fi
2083 fi
2084 CC=$ac_cv_prog_CC
2085 if test -n "$CC"; then
2086   echo "$as_me:$LINENO: result: $CC" >&5
2087 echo "${ECHO_T}$CC" >&6
2088 else
2089   echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2091 fi
2092
2093 fi
2094 if test -z "$CC"; then
2095   if test -n "$ac_tool_prefix"; then
2096   for ac_prog in cl
2097   do
2098     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_CC+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   if test -n "$CC"; then
2106   ac_cv_prog_CC="$CC" # Let the user override the test.
2107 else
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 for as_dir in $PATH
2110 do
2111   IFS=$as_save_IFS
2112   test -z "$as_dir" && as_dir=.
2113   for ac_exec_ext in '' $ac_executable_extensions; do
2114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117     break 2
2118   fi
2119 done
2120 done
2121
2122 fi
2123 fi
2124 CC=$ac_cv_prog_CC
2125 if test -n "$CC"; then
2126   echo "$as_me:$LINENO: result: $CC" >&5
2127 echo "${ECHO_T}$CC" >&6
2128 else
2129   echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6
2131 fi
2132
2133     test -n "$CC" && break
2134   done
2135 fi
2136 if test -z "$CC"; then
2137   ac_ct_CC=$CC
2138   for ac_prog in cl
2139 do
2140   # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy $ac_prog; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test -n "$ac_ct_CC"; then
2148   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   for ac_exec_ext in '' $ac_executable_extensions; do
2156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157     ac_cv_prog_ac_ct_CC="$ac_prog"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163
2164 fi
2165 fi
2166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167 if test -n "$ac_ct_CC"; then
2168   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6
2170 else
2171   echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2173 fi
2174
2175   test -n "$ac_ct_CC" && break
2176 done
2177
2178   CC=$ac_ct_CC
2179 fi
2180
2181 fi
2182
2183
2184 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: no acceptable C compiler found in \$PATH
2187 See \`config.log' for more details." >&2;}
2188    { (exit 1); exit 1; }; }
2189
2190 # Provide some information about the compiler.
2191 echo "$as_me:$LINENO:" \
2192      "checking for C compiler version" >&5
2193 ac_compiler=`set X $ac_compile; echo $2`
2194 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2195   (eval $ac_compiler --version </dev/null >&5) 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); }
2199 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2200   (eval $ac_compiler -v </dev/null >&5) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }
2204 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2205   (eval $ac_compiler -V </dev/null >&5) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }
2209
2210 cat >conftest.$ac_ext <<_ACEOF
2211 /* confdefs.h.  */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h.  */
2216
2217 int
2218 main ()
2219 {
2220
2221   ;
2222   return 0;
2223 }
2224 _ACEOF
2225 ac_clean_files_save=$ac_clean_files
2226 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2227 # Try to create an executable without -o first, disregard a.out.
2228 # It will help us diagnose broken compilers, and finding out an intuition
2229 # of exeext.
2230 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2231 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2232 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2234   (eval $ac_link_default) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); }; then
2238   # Find the output, starting from the most likely.  This scheme is
2239 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2240 # resort.
2241
2242 # Be careful to initialize this variable, since it used to be cached.
2243 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2244 ac_cv_exeext=
2245 # b.out is created by i960 compilers.
2246 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2247 do
2248   test -f "$ac_file" || continue
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2251         ;;
2252     conftest.$ac_ext )
2253         # This is the source file.
2254         ;;
2255     [ab].out )
2256         # We found the default executable, but exeext='' is most
2257         # certainly right.
2258         break;;
2259     *.* )
2260         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2261         # FIXME: I believe we export ac_cv_exeext for Libtool,
2262         # but it would be cool to find out if it's true.  Does anybody
2263         # maintain Libtool? --akim.
2264         export ac_cv_exeext
2265         break;;
2266     * )
2267         break;;
2268   esac
2269 done
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: C compiler cannot create executables
2277 See \`config.log' for more details." >&2;}
2278    { (exit 77); exit 77; }; }
2279 fi
2280
2281 ac_exeext=$ac_cv_exeext
2282 echo "$as_me:$LINENO: result: $ac_file" >&5
2283 echo "${ECHO_T}$ac_file" >&6
2284
2285 # Check the compiler produces executables we can run.  If not, either
2286 # the compiler is broken, or we cross compile.
2287 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2288 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2289 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2290 # If not cross compiling, check that we can run a simple program.
2291 if test "$cross_compiling" != yes; then
2292   if { ac_try='./$ac_file'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; }; then
2298     cross_compiling=no
2299   else
2300     if test "$cross_compiling" = maybe; then
2301         cross_compiling=yes
2302     else
2303         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&2;}
2309    { (exit 1); exit 1; }; }
2310     fi
2311   fi
2312 fi
2313 echo "$as_me:$LINENO: result: yes" >&5
2314 echo "${ECHO_T}yes" >&6
2315
2316 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2317 ac_clean_files=$ac_clean_files_save
2318 # Check the compiler produces executables we can run.  If not, either
2319 # the compiler is broken, or we cross compile.
2320 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2322 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2323 echo "${ECHO_T}$cross_compiling" >&6
2324
2325 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2328   (eval $ac_link) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; then
2332   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2333 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2334 # work properly (i.e., refer to `conftest.exe'), while it won't with
2335 # `rm'.
2336 for ac_file in conftest.exe conftest conftest.*; do
2337   test -f "$ac_file" || continue
2338   case $ac_file in
2339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2340     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2341           export ac_cv_exeext
2342           break;;
2343     * ) break;;
2344   esac
2345 done
2346 else
2347   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2350 See \`config.log' for more details." >&2;}
2351    { (exit 1); exit 1; }; }
2352 fi
2353
2354 rm -f conftest$ac_cv_exeext
2355 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2356 echo "${ECHO_T}$ac_cv_exeext" >&6
2357
2358 rm -f conftest.$ac_ext
2359 EXEEXT=$ac_cv_exeext
2360 ac_exeext=$EXEEXT
2361 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2362 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2363 if test "${ac_cv_objext+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372
2373 int
2374 main ()
2375 {
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.o conftest.obj
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383   (eval $ac_compile) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; then
2387   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2388   case $ac_file in
2389     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2390     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2391        break;;
2392   esac
2393 done
2394 else
2395   echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2401 See \`config.log' for more details." >&2;}
2402    { (exit 1); exit 1; }; }
2403 fi
2404
2405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2406 fi
2407 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2408 echo "${ECHO_T}$ac_cv_objext" >&6
2409 OBJEXT=$ac_cv_objext
2410 ac_objext=$OBJEXT
2411 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2412 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2413 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   cat >conftest.$ac_ext <<_ACEOF
2417 /* confdefs.h.  */
2418 _ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h.  */
2422
2423 int
2424 main ()
2425 {
2426 #ifndef __GNUC__
2427        choke me
2428 #endif
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436   (eval $ac_compile) 2>conftest.er1
2437   ac_status=$?
2438   grep -v '^ *+' conftest.er1 >conftest.err
2439   rm -f conftest.er1
2440   cat conftest.err >&5
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); } &&
2443          { ac_try='test -z "$ac_c_werror_flag"
2444                          || test ! -s conftest.err'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; } &&
2450          { ac_try='test -s conftest.$ac_objext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   ac_compiler_gnu=yes
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 ac_compiler_gnu=no
2462 fi
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2465
2466 fi
2467 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2469 GCC=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS=${CFLAGS+set}
2471 ac_save_CFLAGS=$CFLAGS
2472 CFLAGS="-g"
2473 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484
2485 int
2486 main ()
2487 {
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495   (eval $ac_compile) 2>conftest.er1
2496   ac_status=$?
2497   grep -v '^ *+' conftest.er1 >conftest.err
2498   rm -f conftest.er1
2499   cat conftest.err >&5
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); } &&
2502          { ac_try='test -z "$ac_c_werror_flag"
2503                          || test ! -s conftest.err'
2504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505   (eval $ac_try) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; } &&
2509          { ac_try='test -s conftest.$ac_objext'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; }; then
2515   ac_cv_prog_cc_g=yes
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 ac_cv_prog_cc_g=no
2521 fi
2522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523 fi
2524 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2525 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2526 if test "$ac_test_CFLAGS" = set; then
2527   CFLAGS=$ac_save_CFLAGS
2528 elif test $ac_cv_prog_cc_g = yes; then
2529   if test "$GCC" = yes; then
2530     CFLAGS="-g -O2"
2531   else
2532     CFLAGS="-g"
2533   fi
2534 else
2535   if test "$GCC" = yes; then
2536     CFLAGS="-O2"
2537   else
2538     CFLAGS=
2539   fi
2540 fi
2541 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2542 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   ac_cv_prog_cc_stdc=no
2547 ac_save_CC=$CC
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h.  */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h.  */
2554 #include <stdarg.h>
2555 #include <stdio.h>
2556 #include <sys/types.h>
2557 #include <sys/stat.h>
2558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2559 struct buf { int x; };
2560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2561 static char *e (p, i)
2562      char **p;
2563      int i;
2564 {
2565   return p[i];
2566 }
2567 static char *f (char * (*g) (char **, int), char **p, ...)
2568 {
2569   char *s;
2570   va_list v;
2571   va_start (v,p);
2572   s = g (p, va_arg (v,int));
2573   va_end (v);
2574   return s;
2575 }
2576
2577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2578    function prototypes and stuff, but not '\xHH' hex character constants.
2579    These don't provoke an error unfortunately, instead are silently treated
2580    as 'x'.  The following induces an error, until -std1 is added to get
2581    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2582    array size at least.  It's necessary to write '\x00'==0 to get something
2583    that's true only with -std1.  */
2584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2585
2586 int test (int i, double x);
2587 struct s1 {int (*f) (int a);};
2588 struct s2 {int (*f) (double a);};
2589 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2590 int argc;
2591 char **argv;
2592 int
2593 main ()
2594 {
2595 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 # Don't try gcc -ansi; that turns off useful extensions and
2601 # breaks some systems' header files.
2602 # AIX                   -qlanglvl=ansi
2603 # Ultrix and OSF/1      -std1
2604 # HP-UX 10.20 and later -Ae
2605 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2606 # SVR4                  -Xc -D__EXTENSIONS__
2607 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2608 do
2609   CC="$ac_save_CC $ac_arg"
2610   rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   (eval $ac_compile) 2>conftest.er1
2613   ac_status=$?
2614   grep -v '^ *+' conftest.er1 >conftest.err
2615   rm -f conftest.er1
2616   cat conftest.err >&5
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -z "$ac_c_werror_flag"
2620                          || test ! -s conftest.err'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   ac_cv_prog_cc_stdc=$ac_arg
2633 break
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 fi
2639 rm -f conftest.err conftest.$ac_objext
2640 done
2641 rm -f conftest.$ac_ext conftest.$ac_objext
2642 CC=$ac_save_CC
2643
2644 fi
2645
2646 case "x$ac_cv_prog_cc_stdc" in
2647   x|xno)
2648     echo "$as_me:$LINENO: result: none needed" >&5
2649 echo "${ECHO_T}none needed" >&6 ;;
2650   *)
2651     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2653     CC="$CC $ac_cv_prog_cc_stdc" ;;
2654 esac
2655
2656 # Some people use a C++ compiler to compile C.  Since we use `exit',
2657 # in C++ we need to declare it.  In case someone uses the same compiler
2658 # for both compiling C and C++ we need to have the C++ compiler decide
2659 # the declaration of exit, since it's the most demanding environment.
2660 cat >conftest.$ac_ext <<_ACEOF
2661 #ifndef __cplusplus
2662   choke me
2663 #endif
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } &&
2674          { ac_try='test -z "$ac_c_werror_flag"
2675                          || test ! -s conftest.err'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   for ac_declaration in \
2688    '' \
2689    'extern "C" void std::exit (int) throw (); using std::exit;' \
2690    'extern "C" void std::exit (int); using std::exit;' \
2691    'extern "C" void exit (int) throw ();' \
2692    'extern "C" void exit (int);' \
2693    'void exit (int);'
2694 do
2695   cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701 $ac_declaration
2702 #include <stdlib.h>
2703 int
2704 main ()
2705 {
2706 exit (42);
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713   (eval $ac_compile) 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -z "$ac_c_werror_flag"
2721                          || test ! -s conftest.err'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   :
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 continue
2739 fi
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741   cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h.  */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h.  */
2747 $ac_declaration
2748 int
2749 main ()
2750 {
2751 exit (42);
2752   ;
2753   return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758   (eval $ac_compile) 2>conftest.er1
2759   ac_status=$?
2760   grep -v '^ *+' conftest.er1 >conftest.err
2761   rm -f conftest.er1
2762   cat conftest.err >&5
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          { ac_try='test -z "$ac_c_werror_flag"
2766                          || test ! -s conftest.err'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; } &&
2772          { ac_try='test -s conftest.$ac_objext'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; }; then
2778   break
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 fi
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 done
2786 rm -f conftest*
2787 if test -n "$ac_declaration"; then
2788   echo '#ifdef __cplusplus' >>confdefs.h
2789   echo $ac_declaration      >>confdefs.h
2790   echo '#endif'             >>confdefs.h
2791 fi
2792
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 fi
2798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 ac_ext=c
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804
2805 if test "x$CC" != xcc; then
2806   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2807 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2808 else
2809   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2810 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2811 fi
2812 set dummy $CC; ac_cc=`echo $2 |
2813                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2814 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h.  */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h.  */
2823
2824 int
2825 main ()
2826 {
2827
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 # Make sure it works both with $CC and with simple cc.
2833 # We do the test twice because some compilers refuse to overwrite an
2834 # existing .o file with -o, though they will create one.
2835 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2836 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); } &&
2841    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842   (eval $ac_try) 2>&5
2843   ac_status=$?
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); };
2846 then
2847   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2848   if test "x$CC" != xcc; then
2849     # Test first that cc exists at all.
2850     if { ac_try='cc -c conftest.$ac_ext >&5'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; }; then
2856       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } &&
2862          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863   (eval $ac_try) 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); };
2867       then
2868         # cc works too.
2869         :
2870       else
2871         # cc exists but doesn't like -o.
2872         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2873       fi
2874     fi
2875   fi
2876 else
2877   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2878 fi
2879 rm -f conftest*
2880
2881 fi
2882 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2883   echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6
2885 else
2886   echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2888
2889 cat >>confdefs.h <<\_ACEOF
2890 #define NO_MINUS_C_MINUS_O 1
2891 _ACEOF
2892
2893 fi
2894
2895 # expand $ac_aux_dir to an absolute path
2896 am_aux_dir=`cd $ac_aux_dir && pwd`
2897
2898 # FIXME: we rely on the cache variable name because
2899 # there is no other way.
2900 set dummy $CC
2901 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2902 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2903    # Losing compiler, so override with the script.
2904    # FIXME: It is wrong to rewrite CC.
2905    # But if we don't then we get into trouble of one sort or another.
2906    # A longer-term fix would be to have automake use am__CC in this case,
2907    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2908    CC="$am_aux_dir/compile $CC"
2909 fi
2910
2911 # autoconf is lame and doesn't give us any substitution variable for this.
2912 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2913   NO_MINUS_C_MINUS_O=yes
2914 else
2915   OUTPUT_OPTION='-o $@'
2916 fi
2917
2918
2919
2920 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2921 # optimizations to be activated explicitly by the toplevel.
2922 case "$CC" in
2923   */prev-gcc/xgcc*) ;;
2924   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2925 esac
2926
2927
2928 # -------------------------
2929 # Check C compiler features
2930 # -------------------------
2931
2932
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2942   CPP=
2943 fi
2944 if test -z "$CPP"; then
2945   if test "${ac_cv_prog_CPP+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948       # Double quotes because CPP needs to be expanded
2949     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2950     do
2951       ac_preproc_ok=false
2952 for ac_c_preproc_warn_flag in '' yes
2953 do
2954   # Use a header file that comes with gcc, so configuring glibc
2955   # with a fresh cross-compiler works.
2956   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957   # <limits.h> exists even on freestanding compilers.
2958   # On the NeXT, cc -E runs the code through the compiler's parser,
2959   # not just through cpp. "Syntax error" is here to catch this case.
2960   cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966 #ifdef __STDC__
2967 # include <limits.h>
2968 #else
2969 # include <assert.h>
2970 #endif
2971                      Syntax error
2972 _ACEOF
2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975   ac_status=$?
2976   grep -v '^ *+' conftest.er1 >conftest.err
2977   rm -f conftest.er1
2978   cat conftest.err >&5
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } >/dev/null; then
2981   if test -s conftest.err; then
2982     ac_cpp_err=$ac_c_preproc_warn_flag
2983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2984   else
2985     ac_cpp_err=
2986   fi
2987 else
2988   ac_cpp_err=yes
2989 fi
2990 if test -z "$ac_cpp_err"; then
2991   :
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996   # Broken: fails on valid input.
2997 continue
2998 fi
2999 rm -f conftest.err conftest.$ac_ext
3000
3001   # OK, works on sane cases.  Now check whether non-existent headers
3002   # can be detected and how.
3003   cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009 #include <ac_nonexistent.h>
3010 _ACEOF
3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } >/dev/null; then
3019   if test -s conftest.err; then
3020     ac_cpp_err=$ac_c_preproc_warn_flag
3021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3022   else
3023     ac_cpp_err=
3024   fi
3025 else
3026   ac_cpp_err=yes
3027 fi
3028 if test -z "$ac_cpp_err"; then
3029   # Broken: success on invalid input.
3030 continue
3031 else
3032   echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035   # Passes both tests.
3036 ac_preproc_ok=:
3037 break
3038 fi
3039 rm -f conftest.err conftest.$ac_ext
3040
3041 done
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err conftest.$ac_ext
3044 if $ac_preproc_ok; then
3045   break
3046 fi
3047
3048     done
3049     ac_cv_prog_CPP=$CPP
3050
3051 fi
3052   CPP=$ac_cv_prog_CPP
3053 else
3054   ac_cv_prog_CPP=$CPP
3055 fi
3056 echo "$as_me:$LINENO: result: $CPP" >&5
3057 echo "${ECHO_T}$CPP" >&6
3058 ac_preproc_ok=false
3059 for ac_c_preproc_warn_flag in '' yes
3060 do
3061   # Use a header file that comes with gcc, so configuring glibc
3062   # with a fresh cross-compiler works.
3063   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064   # <limits.h> exists even on freestanding compilers.
3065   # On the NeXT, cc -E runs the code through the compiler's parser,
3066   # not just through cpp. "Syntax error" is here to catch this case.
3067   cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073 #ifdef __STDC__
3074 # include <limits.h>
3075 #else
3076 # include <assert.h>
3077 #endif
3078                      Syntax error
3079 _ACEOF
3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } >/dev/null; then
3088   if test -s conftest.err; then
3089     ac_cpp_err=$ac_c_preproc_warn_flag
3090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3091   else
3092     ac_cpp_err=
3093   fi
3094 else
3095   ac_cpp_err=yes
3096 fi
3097 if test -z "$ac_cpp_err"; then
3098   :
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103   # Broken: fails on valid input.
3104 continue
3105 fi
3106 rm -f conftest.err conftest.$ac_ext
3107
3108   # OK, works on sane cases.  Now check whether non-existent headers
3109   # can be detected and how.
3110   cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116 #include <ac_nonexistent.h>
3117 _ACEOF
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120   ac_status=$?
3121   grep -v '^ *+' conftest.er1 >conftest.err
3122   rm -f conftest.er1
3123   cat conftest.err >&5
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } >/dev/null; then
3126   if test -s conftest.err; then
3127     ac_cpp_err=$ac_c_preproc_warn_flag
3128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3129   else
3130     ac_cpp_err=
3131   fi
3132 else
3133   ac_cpp_err=yes
3134 fi
3135 if test -z "$ac_cpp_err"; then
3136   # Broken: success on invalid input.
3137 continue
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142   # Passes both tests.
3143 ac_preproc_ok=:
3144 break
3145 fi
3146 rm -f conftest.err conftest.$ac_ext
3147
3148 done
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3152   :
3153 else
3154   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&2;}
3158    { (exit 1); exit 1; }; }
3159 fi
3160
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166
3167
3168 echo "$as_me:$LINENO: checking for egrep" >&5
3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3170 if test "${ac_cv_prog_egrep+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3174     then ac_cv_prog_egrep='grep -E'
3175     else ac_cv_prog_egrep='egrep'
3176     fi
3177 fi
3178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3180  EGREP=$ac_cv_prog_egrep
3181
3182
3183 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3185 if test "${ac_cv_header_stdc+set}" = set; then
3186   echo $ECHO_N "(cached) $ECHO_C" >&6
3187 else
3188   cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194 #include <stdlib.h>
3195 #include <stdarg.h>
3196 #include <string.h>
3197 #include <float.h>
3198
3199 int
3200 main ()
3201 {
3202
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209   (eval $ac_compile) 2>conftest.er1
3210   ac_status=$?
3211   grep -v '^ *+' conftest.er1 >conftest.err
3212   rm -f conftest.er1
3213   cat conftest.err >&5
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); } &&
3216          { ac_try='test -z "$ac_c_werror_flag"
3217                          || test ! -s conftest.err'
3218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219   (eval $ac_try) 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); }; } &&
3223          { ac_try='test -s conftest.$ac_objext'
3224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225   (eval $ac_try) 2>&5
3226   ac_status=$?
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }; }; then
3229   ac_cv_header_stdc=yes
3230 else
3231   echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 ac_cv_header_stdc=no
3235 fi
3236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3237
3238 if test $ac_cv_header_stdc = yes; then
3239   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3240   cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h.  */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h.  */
3246 #include <string.h>
3247
3248 _ACEOF
3249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3250   $EGREP "memchr" >/dev/null 2>&1; then
3251   :
3252 else
3253   ac_cv_header_stdc=no
3254 fi
3255 rm -f conftest*
3256
3257 fi
3258
3259 if test $ac_cv_header_stdc = yes; then
3260   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #include <stdlib.h>
3268
3269 _ACEOF
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271   $EGREP "free" >/dev/null 2>&1; then
3272   :
3273 else
3274   ac_cv_header_stdc=no
3275 fi
3276 rm -f conftest*
3277
3278 fi
3279
3280 if test $ac_cv_header_stdc = yes; then
3281   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3282   if test "$cross_compiling" = yes; then
3283   :
3284 else
3285   cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h.  */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h.  */
3291 #include <ctype.h>
3292 #if ((' ' & 0x0FF) == 0x020)
3293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3295 #else
3296 # define ISLOWER(c) \
3297                    (('a' <= (c) && (c) <= 'i') \
3298                      || ('j' <= (c) && (c) <= 'r') \
3299                      || ('s' <= (c) && (c) <= 'z'))
3300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3301 #endif
3302
3303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3304 int
3305 main ()
3306 {
3307   int i;
3308   for (i = 0; i < 256; i++)
3309     if (XOR (islower (i), ISLOWER (i))
3310         || toupper (i) != TOUPPER (i))
3311       exit(2);
3312   exit (0);
3313 }
3314 _ACEOF
3315 rm -f conftest$ac_exeext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3317   (eval $ac_link) 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322   (eval $ac_try) 2>&5
3323   ac_status=$?
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); }; }; then
3326   :
3327 else
3328   echo "$as_me: program exited with status $ac_status" >&5
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 ( exit $ac_status )
3333 ac_cv_header_stdc=no
3334 fi
3335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3336 fi
3337 fi
3338 fi
3339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3340 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3341 if test $ac_cv_header_stdc = yes; then
3342
3343 cat >>confdefs.h <<\_ACEOF
3344 #define STDC_HEADERS 1
3345 _ACEOF
3346
3347 fi
3348
3349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3360                   inttypes.h stdint.h unistd.h
3361 do
3362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3363 echo "$as_me:$LINENO: checking for $ac_header" >&5
3364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h.  */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h.  */
3374 $ac_includes_default
3375
3376 #include <$ac_header>
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380   (eval $ac_compile) 2>conftest.er1
3381   ac_status=$?
3382   grep -v '^ *+' conftest.er1 >conftest.err
3383   rm -f conftest.er1
3384   cat conftest.err >&5
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } &&
3387          { ac_try='test -z "$ac_c_werror_flag"
3388                          || test ! -s conftest.err'
3389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390   (eval $ac_try) 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }; } &&
3394          { ac_try='test -s conftest.$ac_objext'
3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396   (eval $ac_try) 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; }; then
3400   eval "$as_ac_Header=yes"
3401 else
3402   echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 eval "$as_ac_Header=no"
3406 fi
3407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3408 fi
3409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3412   cat >>confdefs.h <<_ACEOF
3413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3414 _ACEOF
3415
3416 fi
3417
3418 done
3419
3420
3421
3422   if test "${ac_cv_header_minix_config_h+set}" = set; then
3423   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3424 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3425 if test "${ac_cv_header_minix_config_h+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 fi
3428 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3429 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3430 else
3431   # Is the header compilable?
3432 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3433 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3434 cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 $ac_includes_default
3441 #include <minix/config.h>
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445   (eval $ac_compile) 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } &&
3452          { ac_try='test -z "$ac_c_werror_flag"
3453                          || test ! -s conftest.err'
3454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455   (eval $ac_try) 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); }; } &&
3459          { ac_try='test -s conftest.$ac_objext'
3460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461   (eval $ac_try) 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }; }; then
3465   ac_header_compiler=yes
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 ac_header_compiler=no
3471 fi
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3474 echo "${ECHO_T}$ac_header_compiler" >&6
3475
3476 # Is the header present?
3477 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3478 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485 #include <minix/config.h>
3486 _ACEOF
3487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } >/dev/null; then
3495   if test -s conftest.err; then
3496     ac_cpp_err=$ac_c_preproc_warn_flag
3497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3498   else
3499     ac_cpp_err=
3500   fi
3501 else
3502   ac_cpp_err=yes
3503 fi
3504 if test -z "$ac_cpp_err"; then
3505   ac_header_preproc=yes
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510   ac_header_preproc=no
3511 fi
3512 rm -f conftest.err conftest.$ac_ext
3513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3514 echo "${ECHO_T}$ac_header_preproc" >&6
3515
3516 # So?  What about this header?
3517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3518   yes:no: )
3519     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3520 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3521     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3522 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3523     ac_header_preproc=yes
3524     ;;
3525   no:yes:* )
3526     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3527 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3528     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3529 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3530     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3531 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3532     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3533 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3534     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3535 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3536     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3537 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3538     (
3539       cat <<\_ASBOX
3540 ## ------------------------------------------ ##
3541 ## Report this to the AC_PACKAGE_NAME lists.  ##
3542 ## ------------------------------------------ ##
3543 _ASBOX
3544     ) |
3545       sed "s/^/$as_me: WARNING:     /" >&2
3546     ;;
3547 esac
3548 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3549 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3550 if test "${ac_cv_header_minix_config_h+set}" = set; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   ac_cv_header_minix_config_h=$ac_header_preproc
3554 fi
3555 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3556 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3557
3558 fi
3559 if test $ac_cv_header_minix_config_h = yes; then
3560   MINIX=yes
3561 else
3562   MINIX=
3563 fi
3564
3565
3566   if test "$MINIX" = yes; then
3567
3568 cat >>confdefs.h <<\_ACEOF
3569 #define _POSIX_SOURCE 1
3570 _ACEOF
3571
3572
3573 cat >>confdefs.h <<\_ACEOF
3574 #define _POSIX_1_SOURCE 2
3575 _ACEOF
3576
3577
3578 cat >>confdefs.h <<\_ACEOF
3579 #define _MINIX 1
3580 _ACEOF
3581
3582   fi
3583
3584
3585
3586   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3587 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3588 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h.  */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h.  */
3597
3598 #         define __EXTENSIONS__ 1
3599           $ac_includes_default
3600 int
3601 main ()
3602 {
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610   (eval $ac_compile) 2>conftest.er1
3611   ac_status=$?
3612   grep -v '^ *+' conftest.er1 >conftest.err
3613   rm -f conftest.er1
3614   cat conftest.err >&5
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); } &&
3617          { ac_try='test -z "$ac_c_werror_flag"
3618                          || test ! -s conftest.err'
3619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620   (eval $ac_try) 2>&5
3621   ac_status=$?
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); }; } &&
3624          { ac_try='test -s conftest.$ac_objext'
3625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626   (eval $ac_try) 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; }; then
3630   ac_cv_safe_to_define___extensions__=yes
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 ac_cv_safe_to_define___extensions__=no
3636 fi
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 fi
3639 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3640 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3641   test $ac_cv_safe_to_define___extensions__ = yes &&
3642     cat >>confdefs.h <<\_ACEOF
3643 #define __EXTENSIONS__ 1
3644 _ACEOF
3645
3646   cat >>confdefs.h <<\_ACEOF
3647 #define _ALL_SOURCE 1
3648 _ACEOF
3649
3650   cat >>confdefs.h <<\_ACEOF
3651 #define _GNU_SOURCE 1
3652 _ACEOF
3653
3654   cat >>confdefs.h <<\_ACEOF
3655 #define _POSIX_PTHREAD_SEMANTICS 1
3656 _ACEOF
3657
3658   cat >>confdefs.h <<\_ACEOF
3659 #define _TANDEM_SOURCE 1
3660 _ACEOF
3661
3662
3663 ac_ext=c
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3669 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3670 # On Suns, sometimes $CPP names a directory.
3671 if test -n "$CPP" && test -d "$CPP"; then
3672   CPP=
3673 fi
3674 if test -z "$CPP"; then
3675   if test "${ac_cv_prog_CPP+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678       # Double quotes because CPP needs to be expanded
3679     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3680     do
3681       ac_preproc_ok=false
3682 for ac_c_preproc_warn_flag in '' yes
3683 do
3684   # Use a header file that comes with gcc, so configuring glibc
3685   # with a fresh cross-compiler works.
3686   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3687   # <limits.h> exists even on freestanding compilers.
3688   # On the NeXT, cc -E runs the code through the compiler's parser,
3689   # not just through cpp. "Syntax error" is here to catch this case.
3690   cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 #ifdef __STDC__
3697 # include <limits.h>
3698 #else
3699 # include <assert.h>
3700 #endif
3701                      Syntax error
3702 _ACEOF
3703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } >/dev/null; then
3711   if test -s conftest.err; then
3712     ac_cpp_err=$ac_c_preproc_warn_flag
3713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3714   else
3715     ac_cpp_err=
3716   fi
3717 else
3718   ac_cpp_err=yes
3719 fi
3720 if test -z "$ac_cpp_err"; then
3721   :
3722 else
3723   echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3725
3726   # Broken: fails on valid input.
3727 continue
3728 fi
3729 rm -f conftest.err conftest.$ac_ext
3730
3731   # OK, works on sane cases.  Now check whether non-existent headers
3732   # can be detected and how.
3733   cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h.  */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h.  */
3739 #include <ac_nonexistent.h>
3740 _ACEOF
3741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3743   ac_status=$?
3744   grep -v '^ *+' conftest.er1 >conftest.err
3745   rm -f conftest.er1
3746   cat conftest.err >&5
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); } >/dev/null; then
3749   if test -s conftest.err; then
3750     ac_cpp_err=$ac_c_preproc_warn_flag
3751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3752   else
3753     ac_cpp_err=
3754   fi
3755 else
3756   ac_cpp_err=yes
3757 fi
3758 if test -z "$ac_cpp_err"; then
3759   # Broken: success on invalid input.
3760 continue
3761 else
3762   echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3764
3765   # Passes both tests.
3766 ac_preproc_ok=:
3767 break
3768 fi
3769 rm -f conftest.err conftest.$ac_ext
3770
3771 done
3772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3773 rm -f conftest.err conftest.$ac_ext
3774 if $ac_preproc_ok; then
3775   break
3776 fi
3777
3778     done
3779     ac_cv_prog_CPP=$CPP
3780
3781 fi
3782   CPP=$ac_cv_prog_CPP
3783 else
3784   ac_cv_prog_CPP=$CPP
3785 fi
3786 echo "$as_me:$LINENO: result: $CPP" >&5
3787 echo "${ECHO_T}$CPP" >&6
3788 ac_preproc_ok=false
3789 for ac_c_preproc_warn_flag in '' yes
3790 do
3791   # Use a header file that comes with gcc, so configuring glibc
3792   # with a fresh cross-compiler works.
3793   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3794   # <limits.h> exists even on freestanding compilers.
3795   # On the NeXT, cc -E runs the code through the compiler's parser,
3796   # not just through cpp. "Syntax error" is here to catch this case.
3797   cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803 #ifdef __STDC__
3804 # include <limits.h>
3805 #else
3806 # include <assert.h>
3807 #endif
3808                      Syntax error
3809 _ACEOF
3810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3812   ac_status=$?
3813   grep -v '^ *+' conftest.er1 >conftest.err
3814   rm -f conftest.er1
3815   cat conftest.err >&5
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); } >/dev/null; then
3818   if test -s conftest.err; then
3819     ac_cpp_err=$ac_c_preproc_warn_flag
3820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3821   else
3822     ac_cpp_err=
3823   fi
3824 else
3825   ac_cpp_err=yes
3826 fi
3827 if test -z "$ac_cpp_err"; then
3828   :
3829 else
3830   echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833   # Broken: fails on valid input.
3834 continue
3835 fi
3836 rm -f conftest.err conftest.$ac_ext
3837
3838   # OK, works on sane cases.  Now check whether non-existent headers
3839   # can be detected and how.
3840   cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h.  */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h.  */
3846 #include <ac_nonexistent.h>
3847 _ACEOF
3848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } >/dev/null; then
3856   if test -s conftest.err; then
3857     ac_cpp_err=$ac_c_preproc_warn_flag
3858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3859   else
3860     ac_cpp_err=
3861   fi
3862 else
3863   ac_cpp_err=yes
3864 fi
3865 if test -z "$ac_cpp_err"; then
3866   # Broken: success on invalid input.
3867 continue
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872   # Passes both tests.
3873 ac_preproc_ok=:
3874 break
3875 fi
3876 rm -f conftest.err conftest.$ac_ext
3877
3878 done
3879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3880 rm -f conftest.err conftest.$ac_ext
3881 if $ac_preproc_ok; then
3882   :
3883 else
3884   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&5
3886 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3887 See \`config.log' for more details." >&2;}
3888    { (exit 1); exit 1; }; }
3889 fi
3890
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896
3897 echo "$as_me:$LINENO: checking for inline" >&5
3898 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3899 if test "${ac_cv_c_inline+set}" = set; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902   ac_cv_c_inline=no
3903 for ac_kw in inline __inline__ __inline; do
3904   cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 #ifndef __cplusplus
3911 typedef int foo_t;
3912 static $ac_kw foo_t static_foo () {return 0; }
3913 $ac_kw foo_t foo () {return 0; }
3914 #endif
3915
3916 _ACEOF
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919   (eval $ac_compile) 2>conftest.er1
3920   ac_status=$?
3921   grep -v '^ *+' conftest.er1 >conftest.err
3922   rm -f conftest.er1
3923   cat conftest.err >&5
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } &&
3926          { ac_try='test -z "$ac_c_werror_flag"
3927                          || test ! -s conftest.err'
3928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929   (eval $ac_try) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }; } &&
3933          { ac_try='test -s conftest.$ac_objext'
3934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935   (eval $ac_try) 2>&5
3936   ac_status=$?
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); }; }; then
3939   ac_cv_c_inline=$ac_kw; break
3940 else
3941   echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 fi
3945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3946 done
3947
3948 fi
3949 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3950 echo "${ECHO_T}$ac_cv_c_inline" >&6
3951
3952
3953 case $ac_cv_c_inline in
3954   inline | yes) ;;
3955   *)
3956     case $ac_cv_c_inline in
3957       no) ac_val=;;
3958       *) ac_val=$ac_cv_c_inline;;
3959     esac
3960     cat >>confdefs.h <<_ACEOF
3961 #ifndef __cplusplus
3962 #define inline $ac_val
3963 #endif
3964 _ACEOF
3965     ;;
3966 esac
3967
3968
3969 # sizeof(char) is 1 by definition.
3970 echo "$as_me:$LINENO: checking for void *" >&5
3971 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3972 if test "${ac_cv_type_void_p+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h.  */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h.  */
3981 $ac_includes_default
3982 int
3983 main ()
3984 {
3985 if ((void * *) 0)
3986   return 0;
3987 if (sizeof (void *))
3988   return 0;
3989   ;
3990   return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest.$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995   (eval $ac_compile) 2>conftest.er1
3996   ac_status=$?
3997   grep -v '^ *+' conftest.er1 >conftest.err
3998   rm -f conftest.er1
3999   cat conftest.err >&5
4000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001   (exit $ac_status); } &&
4002          { ac_try='test -z "$ac_c_werror_flag"
4003                          || test ! -s conftest.err'
4004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005   (eval $ac_try) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }; } &&
4009          { ac_try='test -s conftest.$ac_objext'
4010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011   (eval $ac_try) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); }; }; then
4015   ac_cv_type_void_p=yes
4016 else
4017   echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4019
4020 ac_cv_type_void_p=no
4021 fi
4022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4023 fi
4024 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4025 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4026
4027 echo "$as_me:$LINENO: checking size of void *" >&5
4028 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4029 if test "${ac_cv_sizeof_void_p+set}" = set; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   if test "$ac_cv_type_void_p" = yes; then
4033   # The cast to unsigned long works around a bug in the HP C Compiler
4034   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4035   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4036   # This bug is HP SR number 8606223364.
4037   if test "$cross_compiling" = yes; then
4038   # Depending upon the size, compute the lo and hi bounds.
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045 $ac_includes_default
4046 int
4047 main ()
4048 {
4049 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4050 test_array [0] = 0
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058   (eval $ac_compile) 2>conftest.er1
4059   ac_status=$?
4060   grep -v '^ *+' conftest.er1 >conftest.err
4061   rm -f conftest.er1
4062   cat conftest.err >&5
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); } &&
4065          { ac_try='test -z "$ac_c_werror_flag"
4066                          || test ! -s conftest.err'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; } &&
4072          { ac_try='test -s conftest.$ac_objext'
4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074   (eval $ac_try) 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; }; then
4078   ac_lo=0 ac_mid=0
4079   while :; do
4080     cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h.  */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h.  */
4086 $ac_includes_default
4087 int
4088 main ()
4089 {
4090 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4091 test_array [0] = 0
4092
4093   ;
4094   return 0;
4095 }
4096 _ACEOF
4097 rm -f conftest.$ac_objext
4098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4099   (eval $ac_compile) 2>conftest.er1
4100   ac_status=$?
4101   grep -v '^ *+' conftest.er1 >conftest.err
4102   rm -f conftest.er1
4103   cat conftest.err >&5
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); } &&
4106          { ac_try='test -z "$ac_c_werror_flag"
4107                          || test ! -s conftest.err'
4108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109   (eval $ac_try) 2>&5
4110   ac_status=$?
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); }; } &&
4113          { ac_try='test -s conftest.$ac_objext'
4114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115   (eval $ac_try) 2>&5
4116   ac_status=$?
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); }; }; then
4119   ac_hi=$ac_mid; break
4120 else
4121   echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124 ac_lo=`expr $ac_mid + 1`
4125                     if test $ac_lo -le $ac_mid; then
4126                       ac_lo= ac_hi=
4127                       break
4128                     fi
4129                     ac_mid=`expr 2 '*' $ac_mid + 1`
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132   done
4133 else
4134   echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 $ac_includes_default
4144 int
4145 main ()
4146 {
4147 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4148 test_array [0] = 0
4149
4150   ;
4151   return 0;
4152 }
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156   (eval $ac_compile) 2>conftest.er1
4157   ac_status=$?
4158   grep -v '^ *+' conftest.er1 >conftest.err
4159   rm -f conftest.er1
4160   cat conftest.err >&5
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); } &&
4163          { ac_try='test -z "$ac_c_werror_flag"
4164                          || test ! -s conftest.err'
4165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166   (eval $ac_try) 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; } &&
4170          { ac_try='test -s conftest.$ac_objext'
4171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; }; then
4176   ac_hi=-1 ac_mid=-1
4177   while :; do
4178     cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h.  */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h.  */
4184 $ac_includes_default
4185 int
4186 main ()
4187 {
4188 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4189 test_array [0] = 0
4190
4191   ;
4192   return 0;
4193 }
4194 _ACEOF
4195 rm -f conftest.$ac_objext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197   (eval $ac_compile) 2>conftest.er1
4198   ac_status=$?
4199   grep -v '^ *+' conftest.er1 >conftest.err
4200   rm -f conftest.er1
4201   cat conftest.err >&5
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); } &&
4204          { ac_try='test -z "$ac_c_werror_flag"
4205                          || test ! -s conftest.err'
4206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207   (eval $ac_try) 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); }; } &&
4211          { ac_try='test -s conftest.$ac_objext'
4212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213   (eval $ac_try) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; }; then
4217   ac_lo=$ac_mid; break
4218 else
4219   echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 ac_hi=`expr '(' $ac_mid ')' - 1`
4223                        if test $ac_mid -le $ac_hi; then
4224                          ac_lo= ac_hi=
4225                          break
4226                        fi
4227                        ac_mid=`expr 2 '*' $ac_mid`
4228 fi
4229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4230   done
4231 else
4232   echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4234
4235 ac_lo= ac_hi=
4236 fi
4237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238 fi
4239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4240 # Binary search between lo and hi bounds.
4241 while test "x$ac_lo" != "x$ac_hi"; do
4242   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4243   cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h.  */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h.  */
4249 $ac_includes_default
4250 int
4251 main ()
4252 {
4253 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4254 test_array [0] = 0
4255
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262   (eval $ac_compile) 2>conftest.er1
4263   ac_status=$?
4264   grep -v '^ *+' conftest.er1 >conftest.err
4265   rm -f conftest.er1
4266   cat conftest.err >&5
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } &&
4269          { ac_try='test -z "$ac_c_werror_flag"
4270                          || test ! -s conftest.err'
4271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272   (eval $ac_try) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; } &&
4276          { ac_try='test -s conftest.$ac_objext'
4277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278   (eval $ac_try) 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; }; then
4282   ac_hi=$ac_mid
4283 else
4284   echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 ac_lo=`expr '(' $ac_mid ')' + 1`
4288 fi
4289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4290 done
4291 case $ac_lo in
4292 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4293 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4294 See \`config.log' for more details." >&5
4295 echo "$as_me: error: cannot compute sizeof (void *), 77
4296 See \`config.log' for more details." >&2;}
4297    { (exit 1); exit 1; }; } ;;
4298 esac
4299 else
4300   if test "$cross_compiling" = yes; then
4301   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4302 See \`config.log' for more details." >&5
4303 echo "$as_me: error: cannot run test program while cross compiling
4304 See \`config.log' for more details." >&2;}
4305    { (exit 1); exit 1; }; }
4306 else
4307   cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h.  */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h.  */
4313 $ac_includes_default
4314 long longval () { return (long) (sizeof (void *)); }
4315 unsigned long ulongval () { return (long) (sizeof (void *)); }
4316 #include <stdio.h>
4317 #include <stdlib.h>
4318 int
4319 main ()
4320 {
4321
4322   FILE *f = fopen ("conftest.val", "w");
4323   if (! f)
4324     exit (1);
4325   if (((long) (sizeof (void *))) < 0)
4326     {
4327       long i = longval ();
4328       if (i != ((long) (sizeof (void *))))
4329         exit (1);
4330       fprintf (f, "%ld\n", i);
4331     }
4332   else
4333     {
4334       unsigned long i = ulongval ();
4335       if (i != ((long) (sizeof (void *))))
4336         exit (1);
4337       fprintf (f, "%lu\n", i);
4338     }
4339   exit (ferror (f) || fclose (f) != 0);
4340
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 rm -f conftest$ac_exeext
4346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4347   (eval $ac_link) 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352   (eval $ac_try) 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; }; then
4356   ac_cv_sizeof_void_p=`cat conftest.val`
4357 else
4358   echo "$as_me: program exited with status $ac_status" >&5
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 ( exit $ac_status )
4363 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4364 See \`config.log' for more details." >&5
4365 echo "$as_me: error: cannot compute sizeof (void *), 77
4366 See \`config.log' for more details." >&2;}
4367    { (exit 1); exit 1; }; }
4368 fi
4369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4370 fi
4371 fi
4372 rm -f conftest.val
4373 else
4374   ac_cv_sizeof_void_p=0
4375 fi
4376 fi
4377 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4378 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4379 cat >>confdefs.h <<_ACEOF
4380 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4381 _ACEOF
4382
4383
4384 echo "$as_me:$LINENO: checking for short" >&5
4385 echo $ECHO_N "checking for short... $ECHO_C" >&6
4386 if test "${ac_cv_type_short+set}" = set; then
4387   echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389   cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h.  */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h.  */
4395 $ac_includes_default
4396 int
4397 main ()
4398 {
4399 if ((short *) 0)
4400   return 0;
4401 if (sizeof (short))
4402   return 0;
4403   ;
4404   return 0;
4405 }
4406 _ACEOF
4407 rm -f conftest.$ac_objext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409   (eval $ac_compile) 2>conftest.er1
4410   ac_status=$?
4411   grep -v '^ *+' conftest.er1 >conftest.err
4412   rm -f conftest.er1
4413   cat conftest.err >&5
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); } &&
4416          { ac_try='test -z "$ac_c_werror_flag"
4417                          || test ! -s conftest.err'
4418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419   (eval $ac_try) 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; } &&
4423          { ac_try='test -s conftest.$ac_objext'
4424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425   (eval $ac_try) 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); }; }; then
4429   ac_cv_type_short=yes
4430 else
4431   echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434 ac_cv_type_short=no
4435 fi
4436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4437 fi
4438 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4439 echo "${ECHO_T}$ac_cv_type_short" >&6
4440
4441 echo "$as_me:$LINENO: checking size of short" >&5
4442 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4443 if test "${ac_cv_sizeof_short+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   if test "$ac_cv_type_short" = yes; then
4447   # The cast to unsigned long works around a bug in the HP C Compiler
4448   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4449   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4450   # This bug is HP SR number 8606223364.
4451   if test "$cross_compiling" = yes; then
4452   # Depending upon the size, compute the lo and hi bounds.
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h.  */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h.  */
4459 $ac_includes_default
4460 int
4461 main ()
4462 {
4463 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4464 test_array [0] = 0
4465
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472   (eval $ac_compile) 2>conftest.er1
4473   ac_status=$?
4474   grep -v '^ *+' conftest.er1 >conftest.err
4475   rm -f conftest.er1
4476   cat conftest.err >&5
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); } &&
4479          { ac_try='test -z "$ac_c_werror_flag"
4480                          || test ! -s conftest.err'
4481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482   (eval $ac_try) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); }; } &&
4486          { ac_try='test -s conftest.$ac_objext'
4487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488   (eval $ac_try) 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; }; then
4492   ac_lo=0 ac_mid=0
4493   while :; do
4494     cat >conftest.$ac_ext <<_ACEOF
4495 /* confdefs.h.  */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h.  */
4500 $ac_includes_default
4501 int
4502 main ()
4503 {
4504 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4505 test_array [0] = 0
4506
4507   ;
4508   return 0;
4509 }
4510 _ACEOF
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513   (eval $ac_compile) 2>conftest.er1
4514   ac_status=$?
4515   grep -v '^ *+' conftest.er1 >conftest.err
4516   rm -f conftest.er1
4517   cat conftest.err >&5
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); } &&
4520          { ac_try='test -z "$ac_c_werror_flag"
4521                          || test ! -s conftest.err'
4522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523   (eval $ac_try) 2>&5
4524   ac_status=$?
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); }; } &&
4527          { ac_try='test -s conftest.$ac_objext'
4528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529   (eval $ac_try) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; }; then
4533   ac_hi=$ac_mid; break
4534 else
4535   echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538 ac_lo=`expr $ac_mid + 1`
4539                     if test $ac_lo -le $ac_mid; then
4540                       ac_lo= ac_hi=
4541                       break
4542                     fi
4543                     ac_mid=`expr 2 '*' $ac_mid + 1`
4544 fi
4545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4546   done
4547 else
4548   echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h.  */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h.  */
4557 $ac_includes_default
4558 int
4559 main ()
4560 {
4561 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4562 test_array [0] = 0
4563
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570   (eval $ac_compile) 2>conftest.er1
4571   ac_status=$?
4572   grep -v '^ *+' conftest.er1 >conftest.err
4573   rm -f conftest.er1
4574   cat conftest.err >&5
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); } &&
4577          { ac_try='test -z "$ac_c_werror_flag"
4578                          || test ! -s conftest.err'
4579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580   (eval $ac_try) 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }; } &&
4584          { ac_try='test -s conftest.$ac_objext'
4585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586   (eval $ac_try) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; }; then
4590   ac_hi=-1 ac_mid=-1
4591   while :; do
4592     cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598 $ac_includes_default
4599 int
4600 main ()
4601 {
4602 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4603 test_array [0] = 0
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611   (eval $ac_compile) 2>conftest.er1
4612   ac_status=$?
4613   grep -v '^ *+' conftest.er1 >conftest.err
4614   rm -f conftest.er1
4615   cat conftest.err >&5
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); } &&
4618          { ac_try='test -z "$ac_c_werror_flag"
4619                          || test ! -s conftest.err'
4620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621   (eval $ac_try) 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); }; } &&
4625          { ac_try='test -s conftest.$ac_objext'
4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627   (eval $ac_try) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; }; then
4631   ac_lo=$ac_mid; break
4632 else
4633   echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 ac_hi=`expr '(' $ac_mid ')' - 1`
4637                        if test $ac_mid -le $ac_hi; then
4638                          ac_lo= ac_hi=
4639                          break
4640                        fi
4641                        ac_mid=`expr 2 '*' $ac_mid`
4642 fi
4643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4644   done
4645 else
4646   echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 ac_lo= ac_hi=
4650 fi
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 fi
4653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654 # Binary search between lo and hi bounds.
4655 while test "x$ac_lo" != "x$ac_hi"; do
4656   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4657   cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 $ac_includes_default
4664 int
4665 main ()
4666 {
4667 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4668 test_array [0] = 0
4669
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676   (eval $ac_compile) 2>conftest.er1
4677   ac_status=$?
4678   grep -v '^ *+' conftest.er1 >conftest.err
4679   rm -f conftest.er1
4680   cat conftest.err >&5
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); } &&
4683          { ac_try='test -z "$ac_c_werror_flag"
4684                          || test ! -s conftest.err'
4685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686   (eval $ac_try) 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); }; } &&
4690          { ac_try='test -s conftest.$ac_objext'
4691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692   (eval $ac_try) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; }; then
4696   ac_hi=$ac_mid
4697 else
4698   echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 ac_lo=`expr '(' $ac_mid ')' + 1`
4702 fi
4703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4704 done
4705 case $ac_lo in
4706 ?*) ac_cv_sizeof_short=$ac_lo;;
4707 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4708 See \`config.log' for more details." >&5
4709 echo "$as_me: error: cannot compute sizeof (short), 77
4710 See \`config.log' for more details." >&2;}
4711    { (exit 1); exit 1; }; } ;;
4712 esac
4713 else
4714   if test "$cross_compiling" = yes; then
4715   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4716 See \`config.log' for more details." >&5
4717 echo "$as_me: error: cannot run test program while cross compiling
4718 See \`config.log' for more details." >&2;}
4719    { (exit 1); exit 1; }; }
4720 else
4721   cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h.  */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h.  */
4727 $ac_includes_default
4728 long longval () { return (long) (sizeof (short)); }
4729 unsigned long ulongval () { return (long) (sizeof (short)); }
4730 #include <stdio.h>
4731 #include <stdlib.h>
4732 int
4733 main ()
4734 {
4735
4736   FILE *f = fopen ("conftest.val", "w");
4737   if (! f)
4738     exit (1);
4739   if (((long) (sizeof (short))) < 0)
4740     {
4741       long i = longval ();
4742       if (i != ((long) (sizeof (short))))
4743         exit (1);
4744       fprintf (f, "%ld\n", i);
4745     }
4746   else
4747     {
4748       unsigned long i = ulongval ();
4749       if (i != ((long) (sizeof (short))))
4750         exit (1);
4751       fprintf (f, "%lu\n", i);
4752     }
4753   exit (ferror (f) || fclose (f) != 0);
4754
4755   ;
4756   return 0;
4757 }
4758 _ACEOF
4759 rm -f conftest$ac_exeext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4761   (eval $ac_link) 2>&5
4762   ac_status=$?
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766   (eval $ac_try) 2>&5
4767   ac_status=$?
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); }; }; then
4770   ac_cv_sizeof_short=`cat conftest.val`
4771 else
4772   echo "$as_me: program exited with status $ac_status" >&5
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4775
4776 ( exit $ac_status )
4777 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4778 See \`config.log' for more details." >&5
4779 echo "$as_me: error: cannot compute sizeof (short), 77
4780 See \`config.log' for more details." >&2;}
4781    { (exit 1); exit 1; }; }
4782 fi
4783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4784 fi
4785 fi
4786 rm -f conftest.val
4787 else
4788   ac_cv_sizeof_short=0
4789 fi
4790 fi
4791 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4792 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4793 cat >>confdefs.h <<_ACEOF
4794 #define SIZEOF_SHORT $ac_cv_sizeof_short
4795 _ACEOF
4796
4797
4798 echo "$as_me:$LINENO: checking for int" >&5
4799 echo $ECHO_N "checking for int... $ECHO_C" >&6
4800 if test "${ac_cv_type_int+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 $ac_includes_default
4810 int
4811 main ()
4812 {
4813 if ((int *) 0)
4814   return 0;
4815 if (sizeof (int))
4816   return 0;
4817   ;
4818   return 0;
4819 }
4820 _ACEOF
4821 rm -f conftest.$ac_objext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823   (eval $ac_compile) 2>conftest.er1
4824   ac_status=$?
4825   grep -v '^ *+' conftest.er1 >conftest.err
4826   rm -f conftest.er1
4827   cat conftest.err >&5
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); } &&
4830          { ac_try='test -z "$ac_c_werror_flag"
4831                          || test ! -s conftest.err'
4832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833   (eval $ac_try) 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); }; } &&
4837          { ac_try='test -s conftest.$ac_objext'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; }; then
4843   ac_cv_type_int=yes
4844 else
4845   echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848 ac_cv_type_int=no
4849 fi
4850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4853 echo "${ECHO_T}$ac_cv_type_int" >&6
4854
4855 echo "$as_me:$LINENO: checking size of int" >&5
4856 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4857 if test "${ac_cv_sizeof_int+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test "$ac_cv_type_int" = yes; then
4861   # The cast to unsigned long works around a bug in the HP C Compiler
4862   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4863   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4864   # This bug is HP SR number 8606223364.
4865   if test "$cross_compiling" = yes; then
4866   # Depending upon the size, compute the lo and hi bounds.
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h.  */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h.  */
4873 $ac_includes_default
4874 int
4875 main ()
4876 {
4877 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4878 test_array [0] = 0
4879
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886   (eval $ac_compile) 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } &&
4893          { ac_try='test -z "$ac_c_werror_flag"
4894                          || test ! -s conftest.err'
4895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896   (eval $ac_try) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); }; } &&
4900          { ac_try='test -s conftest.$ac_objext'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; }; then
4906   ac_lo=0 ac_mid=0
4907   while :; do
4908     cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h.  */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h.  */
4914 $ac_includes_default
4915 int
4916 main ()
4917 {
4918 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4919 test_array [0] = 0
4920
4921   ;
4922   return 0;
4923 }
4924 _ACEOF
4925 rm -f conftest.$ac_objext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927   (eval $ac_compile) 2>conftest.er1
4928   ac_status=$?
4929   grep -v '^ *+' conftest.er1 >conftest.err
4930   rm -f conftest.er1
4931   cat conftest.err >&5
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } &&
4934          { ac_try='test -z "$ac_c_werror_flag"
4935                          || test ! -s conftest.err'
4936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937   (eval $ac_try) 2>&5
4938   ac_status=$?
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); }; } &&
4941          { ac_try='test -s conftest.$ac_objext'
4942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943   (eval $ac_try) 2>&5
4944   ac_status=$?
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); }; }; then
4947   ac_hi=$ac_mid; break
4948 else
4949   echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 ac_lo=`expr $ac_mid + 1`
4953                     if test $ac_lo -le $ac_mid; then
4954                       ac_lo= ac_hi=
4955                       break
4956                     fi
4957                     ac_mid=`expr 2 '*' $ac_mid + 1`
4958 fi
4959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960   done
4961 else
4962   echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4964
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h.  */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h.  */
4971 $ac_includes_default
4972 int
4973 main ()
4974 {
4975 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4976 test_array [0] = 0
4977
4978   ;
4979   return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984   (eval $ac_compile) 2>conftest.er1
4985   ac_status=$?
4986   grep -v '^ *+' conftest.er1 >conftest.err
4987   rm -f conftest.er1
4988   cat conftest.err >&5
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } &&
4991          { ac_try='test -z "$ac_c_werror_flag"
4992                          || test ! -s conftest.err'
4993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994   (eval $ac_try) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; } &&
4998          { ac_try='test -s conftest.$ac_objext'
4999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000   (eval $ac_try) 2>&5
5001   ac_status=$?
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); }; }; then
5004   ac_hi=-1 ac_mid=-1
5005   while :; do
5006     cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h.  */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h.  */
5012 $ac_includes_default
5013 int
5014 main ()
5015 {
5016 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5017 test_array [0] = 0
5018
5019   ;
5020   return 0;
5021 }
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025   (eval $ac_compile) 2>conftest.er1
5026   ac_status=$?
5027   grep -v '^ *+' conftest.er1 >conftest.err
5028   rm -f conftest.er1
5029   cat conftest.err >&5
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); } &&
5032          { ac_try='test -z "$ac_c_werror_flag"
5033                          || test ! -s conftest.err'
5034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035   (eval $ac_try) 2>&5
5036   ac_status=$?
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); }; } &&
5039          { ac_try='test -s conftest.$ac_objext'
5040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041   (eval $ac_try) 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; }; then
5045   ac_lo=$ac_mid; break
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 ac_hi=`expr '(' $ac_mid ')' - 1`
5051                        if test $ac_mid -le $ac_hi; then
5052                          ac_lo= ac_hi=
5053                          break
5054                        fi
5055                        ac_mid=`expr 2 '*' $ac_mid`
5056 fi
5057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5058   done
5059 else
5060   echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 ac_lo= ac_hi=
5064 fi
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066 fi
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068 # Binary search between lo and hi bounds.
5069 while test "x$ac_lo" != "x$ac_hi"; do
5070   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5071   cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h.  */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h.  */
5077 $ac_includes_default
5078 int
5079 main ()
5080 {
5081 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5082 test_array [0] = 0
5083
5084   ;
5085   return 0;
5086 }
5087 _ACEOF
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090   (eval $ac_compile) 2>conftest.er1
5091   ac_status=$?
5092   grep -v '^ *+' conftest.er1 >conftest.err
5093   rm -f conftest.er1
5094   cat conftest.err >&5
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); } &&
5097          { ac_try='test -z "$ac_c_werror_flag"
5098                          || test ! -s conftest.err'
5099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100   (eval $ac_try) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }; } &&
5104          { ac_try='test -s conftest.$ac_objext'
5105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106   (eval $ac_try) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; }; then
5110   ac_hi=$ac_mid
5111 else
5112   echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115 ac_lo=`expr '(' $ac_mid ')' + 1`
5116 fi
5117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5118 done
5119 case $ac_lo in
5120 ?*) ac_cv_sizeof_int=$ac_lo;;
5121 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: cannot compute sizeof (int), 77
5124 See \`config.log' for more details." >&2;}
5125    { (exit 1); exit 1; }; } ;;
5126 esac
5127 else
5128   if test "$cross_compiling" = yes; then
5129   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: cannot run test program while cross compiling
5132 See \`config.log' for more details." >&2;}
5133    { (exit 1); exit 1; }; }
5134 else
5135   cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141 $ac_includes_default
5142 long longval () { return (long) (sizeof (int)); }
5143 unsigned long ulongval () { return (long) (sizeof (int)); }
5144 #include <stdio.h>
5145 #include <stdlib.h>
5146 int
5147 main ()
5148 {
5149
5150   FILE *f = fopen ("conftest.val", "w");
5151   if (! f)
5152     exit (1);
5153   if (((long) (sizeof (int))) < 0)
5154     {
5155       long i = longval ();
5156       if (i != ((long) (sizeof (int))))
5157         exit (1);
5158       fprintf (f, "%ld\n", i);
5159     }
5160   else
5161     {
5162       unsigned long i = ulongval ();
5163       if (i != ((long) (sizeof (int))))
5164         exit (1);
5165       fprintf (f, "%lu\n", i);
5166     }
5167   exit (ferror (f) || fclose (f) != 0);
5168
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175   (eval $ac_link) 2>&5
5176   ac_status=$?
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180   (eval $ac_try) 2>&5
5181   ac_status=$?
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); }; }; then
5184   ac_cv_sizeof_int=`cat conftest.val`
5185 else
5186   echo "$as_me: program exited with status $ac_status" >&5
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5189
5190 ( exit $ac_status )
5191 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5192 See \`config.log' for more details." >&5
5193 echo "$as_me: error: cannot compute sizeof (int), 77
5194 See \`config.log' for more details." >&2;}
5195    { (exit 1); exit 1; }; }
5196 fi
5197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5198 fi
5199 fi
5200 rm -f conftest.val
5201 else
5202   ac_cv_sizeof_int=0
5203 fi
5204 fi
5205 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5206 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5207 cat >>confdefs.h <<_ACEOF
5208 #define SIZEOF_INT $ac_cv_sizeof_int
5209 _ACEOF
5210
5211
5212 echo "$as_me:$LINENO: checking for long" >&5
5213 echo $ECHO_N "checking for long... $ECHO_C" >&6
5214 if test "${ac_cv_type_long+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h.  */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h.  */
5223 $ac_includes_default
5224 int
5225 main ()
5226 {
5227 if ((long *) 0)
5228   return 0;
5229 if (sizeof (long))
5230   return 0;
5231   ;
5232   return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237   (eval $ac_compile) 2>conftest.er1
5238   ac_status=$?
5239   grep -v '^ *+' conftest.er1 >conftest.err
5240   rm -f conftest.er1
5241   cat conftest.err >&5
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); } &&
5244          { ac_try='test -z "$ac_c_werror_flag"
5245                          || test ! -s conftest.err'
5246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247   (eval $ac_try) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }; } &&
5251          { ac_try='test -s conftest.$ac_objext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_cv_type_long=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_cv_type_long=no
5263 fi
5264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5265 fi
5266 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5267 echo "${ECHO_T}$ac_cv_type_long" >&6
5268
5269 echo "$as_me:$LINENO: checking size of long" >&5
5270 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5271 if test "${ac_cv_sizeof_long+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   if test "$ac_cv_type_long" = yes; then
5275   # The cast to unsigned long works around a bug in the HP C Compiler
5276   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278   # This bug is HP SR number 8606223364.
5279   if test "$cross_compiling" = yes; then
5280   # Depending upon the size, compute the lo and hi bounds.
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h.  */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h.  */
5287 $ac_includes_default
5288 int
5289 main ()
5290 {
5291 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5292 test_array [0] = 0
5293
5294   ;
5295   return 0;
5296 }
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300   (eval $ac_compile) 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } &&
5307          { ac_try='test -z "$ac_c_werror_flag"
5308                          || test ! -s conftest.err'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; } &&
5314          { ac_try='test -s conftest.$ac_objext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_lo=0 ac_mid=0
5321   while :; do
5322     cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328 $ac_includes_default
5329 int
5330 main ()
5331 {
5332 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5333 test_array [0] = 0
5334
5335   ;
5336   return 0;
5337 }
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341   (eval $ac_compile) 2>conftest.er1
5342   ac_status=$?
5343   grep -v '^ *+' conftest.er1 >conftest.err
5344   rm -f conftest.er1
5345   cat conftest.err >&5
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } &&
5348          { ac_try='test -z "$ac_c_werror_flag"
5349                          || test ! -s conftest.err'
5350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351   (eval $ac_try) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); }; } &&
5355          { ac_try='test -s conftest.$ac_objext'
5356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357   (eval $ac_try) 2>&5
5358   ac_status=$?
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); }; }; then
5361   ac_hi=$ac_mid; break
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 ac_lo=`expr $ac_mid + 1`
5367                     if test $ac_lo -le $ac_mid; then
5368                       ac_lo= ac_hi=
5369                       break
5370                     fi
5371                     ac_mid=`expr 2 '*' $ac_mid + 1`
5372 fi
5373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5374   done
5375 else
5376   echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5378
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 $ac_includes_default
5386 int
5387 main ()
5388 {
5389 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5390 test_array [0] = 0
5391
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398   (eval $ac_compile) 2>conftest.er1
5399   ac_status=$?
5400   grep -v '^ *+' conftest.er1 >conftest.err
5401   rm -f conftest.er1
5402   cat conftest.err >&5
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); } &&
5405          { ac_try='test -z "$ac_c_werror_flag"
5406                          || test ! -s conftest.err'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; } &&
5412          { ac_try='test -s conftest.$ac_objext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_hi=-1 ac_mid=-1
5419   while :; do
5420     cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h.  */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h.  */
5426 $ac_includes_default
5427 int
5428 main ()
5429 {
5430 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5431 test_array [0] = 0
5432
5433   ;
5434   return 0;
5435 }
5436 _ACEOF
5437 rm -f conftest.$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439   (eval $ac_compile) 2>conftest.er1
5440   ac_status=$?
5441   grep -v '^ *+' conftest.er1 >conftest.err
5442   rm -f conftest.er1
5443   cat conftest.err >&5
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } &&
5446          { ac_try='test -z "$ac_c_werror_flag"
5447                          || test ! -s conftest.err'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; } &&
5453          { ac_try='test -s conftest.$ac_objext'
5454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455   (eval $ac_try) 2>&5
5456   ac_status=$?
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); }; }; then
5459   ac_lo=$ac_mid; break
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 ac_hi=`expr '(' $ac_mid ')' - 1`
5465                        if test $ac_mid -le $ac_hi; then
5466                          ac_lo= ac_hi=
5467                          break
5468                        fi
5469                        ac_mid=`expr 2 '*' $ac_mid`
5470 fi
5471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5472   done
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 ac_lo= ac_hi=
5478 fi
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5480 fi
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 # Binary search between lo and hi bounds.
5483 while test "x$ac_lo" != "x$ac_hi"; do
5484   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5485   cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h.  */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h.  */
5491 $ac_includes_default
5492 int
5493 main ()
5494 {
5495 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5496 test_array [0] = 0
5497
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504   (eval $ac_compile) 2>conftest.er1
5505   ac_status=$?
5506   grep -v '^ *+' conftest.er1 >conftest.err
5507   rm -f conftest.er1
5508   cat conftest.err >&5
5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); } &&
5511          { ac_try='test -z "$ac_c_werror_flag"
5512                          || test ! -s conftest.err'
5513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514   (eval $ac_try) 2>&5
5515   ac_status=$?
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); }; } &&
5518          { ac_try='test -s conftest.$ac_objext'
5519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520   (eval $ac_try) 2>&5
5521   ac_status=$?
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); }; }; then
5524   ac_hi=$ac_mid
5525 else
5526   echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 ac_lo=`expr '(' $ac_mid ')' + 1`
5530 fi
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532 done
5533 case $ac_lo in
5534 ?*) ac_cv_sizeof_long=$ac_lo;;
5535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5536 See \`config.log' for more details." >&5
5537 echo "$as_me: error: cannot compute sizeof (long), 77
5538 See \`config.log' for more details." >&2;}
5539    { (exit 1); exit 1; }; } ;;
5540 esac
5541 else
5542   if test "$cross_compiling" = yes; then
5543   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5544 See \`config.log' for more details." >&5
5545 echo "$as_me: error: cannot run test program while cross compiling
5546 See \`config.log' for more details." >&2;}
5547    { (exit 1); exit 1; }; }
5548 else
5549   cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 $ac_includes_default
5556 long longval () { return (long) (sizeof (long)); }
5557 unsigned long ulongval () { return (long) (sizeof (long)); }
5558 #include <stdio.h>
5559 #include <stdlib.h>
5560 int
5561 main ()
5562 {
5563
5564   FILE *f = fopen ("conftest.val", "w");
5565   if (! f)
5566     exit (1);
5567   if (((long) (sizeof (long))) < 0)
5568     {
5569       long i = longval ();
5570       if (i != ((long) (sizeof (long))))
5571         exit (1);
5572       fprintf (f, "%ld\n", i);
5573     }
5574   else
5575     {
5576       unsigned long i = ulongval ();
5577       if (i != ((long) (sizeof (long))))
5578         exit (1);
5579       fprintf (f, "%lu\n", i);
5580     }
5581   exit (ferror (f) || fclose (f) != 0);
5582
5583   ;
5584   return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589   (eval $ac_link) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594   (eval $ac_try) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; }; then
5598   ac_cv_sizeof_long=`cat conftest.val`
5599 else
5600   echo "$as_me: program exited with status $ac_status" >&5
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5603
5604 ( exit $ac_status )
5605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot compute sizeof (long), 77
5608 See \`config.log' for more details." >&2;}
5609    { (exit 1); exit 1; }; }
5610 fi
5611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5612 fi
5613 fi
5614 rm -f conftest.val
5615 else
5616   ac_cv_sizeof_long=0
5617 fi
5618 fi
5619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5620 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5621 cat >>confdefs.h <<_ACEOF
5622 #define SIZEOF_LONG $ac_cv_sizeof_long
5623 _ACEOF
5624
5625
5626 echo "$as_me:$LINENO: checking for long long" >&5
5627 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5628 if test "${ac_cv_type_long_long+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h.  */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h.  */
5637 $ac_includes_default
5638 int
5639 main ()
5640 {
5641 if ((long long *) 0)
5642   return 0;
5643 if (sizeof (long long))
5644   return 0;
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651   (eval $ac_compile) 2>conftest.er1
5652   ac_status=$?
5653   grep -v '^ *+' conftest.er1 >conftest.err
5654   rm -f conftest.er1
5655   cat conftest.err >&5
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } &&
5658          { ac_try='test -z "$ac_c_werror_flag"
5659                          || test ! -s conftest.err'
5660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661   (eval $ac_try) 2>&5
5662   ac_status=$?
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); }; } &&
5665          { ac_try='test -s conftest.$ac_objext'
5666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667   (eval $ac_try) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; }; then
5671   ac_cv_type_long_long=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_type_long_long=no
5677 fi
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5679 fi
5680 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5681 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5682 if test $ac_cv_type_long_long = yes; then
5683
5684 cat >>confdefs.h <<_ACEOF
5685 #define HAVE_LONG_LONG 1
5686 _ACEOF
5687
5688 echo "$as_me:$LINENO: checking for long long" >&5
5689 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5690 if test "${ac_cv_type_long_long+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h.  */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h.  */
5699 $ac_includes_default
5700 int
5701 main ()
5702 {
5703 if ((long long *) 0)
5704   return 0;
5705 if (sizeof (long long))
5706   return 0;
5707   ;
5708   return 0;
5709 }
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713   (eval $ac_compile) 2>conftest.er1
5714   ac_status=$?
5715   grep -v '^ *+' conftest.er1 >conftest.err
5716   rm -f conftest.er1
5717   cat conftest.err >&5
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); } &&
5720          { ac_try='test -z "$ac_c_werror_flag"
5721                          || test ! -s conftest.err'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; } &&
5727          { ac_try='test -s conftest.$ac_objext'
5728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729   (eval $ac_try) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; }; then
5733   ac_cv_type_long_long=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 ac_cv_type_long_long=no
5739 fi
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 fi
5742 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5743 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5744
5745 echo "$as_me:$LINENO: checking size of long long" >&5
5746 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5747 if test "${ac_cv_sizeof_long_long+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   if test "$ac_cv_type_long_long" = yes; then
5751   # The cast to unsigned long works around a bug in the HP C Compiler
5752   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754   # This bug is HP SR number 8606223364.
5755   if test "$cross_compiling" = yes; then
5756   # Depending upon the size, compute the lo and hi bounds.
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763 $ac_includes_default
5764 int
5765 main ()
5766 {
5767 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5768 test_array [0] = 0
5769
5770   ;
5771   return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776   (eval $ac_compile) 2>conftest.er1
5777   ac_status=$?
5778   grep -v '^ *+' conftest.er1 >conftest.err
5779   rm -f conftest.er1
5780   cat conftest.err >&5
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); } &&
5783          { ac_try='test -z "$ac_c_werror_flag"
5784                          || test ! -s conftest.err'
5785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786   (eval $ac_try) 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); }; } &&
5790          { ac_try='test -s conftest.$ac_objext'
5791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792   (eval $ac_try) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; }; then
5796   ac_lo=0 ac_mid=0
5797   while :; do
5798     cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804 $ac_includes_default
5805 int
5806 main ()
5807 {
5808 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5809 test_array [0] = 0
5810
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817   (eval $ac_compile) 2>conftest.er1
5818   ac_status=$?
5819   grep -v '^ *+' conftest.er1 >conftest.err
5820   rm -f conftest.er1
5821   cat conftest.err >&5
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } &&
5824          { ac_try='test -z "$ac_c_werror_flag"
5825                          || test ! -s conftest.err'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; } &&
5831          { ac_try='test -s conftest.$ac_objext'
5832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833   (eval $ac_try) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; }; then
5837   ac_hi=$ac_mid; break
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_lo=`expr $ac_mid + 1`
5843                     if test $ac_lo -le $ac_mid; then
5844                       ac_lo= ac_hi=
5845                       break
5846                     fi
5847                     ac_mid=`expr 2 '*' $ac_mid + 1`
5848 fi
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850   done
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h.  */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h.  */
5861 $ac_includes_default
5862 int
5863 main ()
5864 {
5865 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5866 test_array [0] = 0
5867
5868   ;
5869   return 0;
5870 }
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874   (eval $ac_compile) 2>conftest.er1
5875   ac_status=$?
5876   grep -v '^ *+' conftest.er1 >conftest.err
5877   rm -f conftest.er1
5878   cat conftest.err >&5
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); } &&
5881          { ac_try='test -z "$ac_c_werror_flag"
5882                          || test ! -s conftest.err'
5883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884   (eval $ac_try) 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }; } &&
5888          { ac_try='test -s conftest.$ac_objext'
5889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890   (eval $ac_try) 2>&5
5891   ac_status=$?
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); }; }; then
5894   ac_hi=-1 ac_mid=-1
5895   while :; do
5896     cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h.  */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h.  */
5902 $ac_includes_default
5903 int
5904 main ()
5905 {
5906 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5907 test_array [0] = 0
5908
5909   ;
5910   return 0;
5911 }
5912 _ACEOF
5913 rm -f conftest.$ac_objext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915   (eval $ac_compile) 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } &&
5922          { ac_try='test -z "$ac_c_werror_flag"
5923                          || test ! -s conftest.err'
5924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925   (eval $ac_try) 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; } &&
5929          { ac_try='test -s conftest.$ac_objext'
5930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931   (eval $ac_try) 2>&5
5932   ac_status=$?
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); }; }; then
5935   ac_lo=$ac_mid; break
5936 else
5937   echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 ac_hi=`expr '(' $ac_mid ')' - 1`
5941                        if test $ac_mid -le $ac_hi; then
5942                          ac_lo= ac_hi=
5943                          break
5944                        fi
5945                        ac_mid=`expr 2 '*' $ac_mid`
5946 fi
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5948   done
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_lo= ac_hi=
5954 fi
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 fi
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 # Binary search between lo and hi bounds.
5959 while test "x$ac_lo" != "x$ac_hi"; do
5960   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5961   cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h.  */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h.  */
5967 $ac_includes_default
5968 int
5969 main ()
5970 {
5971 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5972 test_array [0] = 0
5973
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980   (eval $ac_compile) 2>conftest.er1
5981   ac_status=$?
5982   grep -v '^ *+' conftest.er1 >conftest.err
5983   rm -f conftest.er1
5984   cat conftest.err >&5
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } &&
5987          { ac_try='test -z "$ac_c_werror_flag"
5988                          || test ! -s conftest.err'
5989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990   (eval $ac_try) 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; } &&
5994          { ac_try='test -s conftest.$ac_objext'
5995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996   (eval $ac_try) 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); }; }; then
6000   ac_hi=$ac_mid
6001 else
6002   echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 ac_lo=`expr '(' $ac_mid ')' + 1`
6006 fi
6007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6008 done
6009 case $ac_lo in
6010 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6011 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6012 See \`config.log' for more details." >&5
6013 echo "$as_me: error: cannot compute sizeof (long long), 77
6014 See \`config.log' for more details." >&2;}
6015    { (exit 1); exit 1; }; } ;;
6016 esac
6017 else
6018   if test "$cross_compiling" = yes; then
6019   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6020 See \`config.log' for more details." >&5
6021 echo "$as_me: error: cannot run test program while cross compiling
6022 See \`config.log' for more details." >&2;}
6023    { (exit 1); exit 1; }; }
6024 else
6025   cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h.  */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h.  */
6031 $ac_includes_default
6032 long longval () { return (long) (sizeof (long long)); }
6033 unsigned long ulongval () { return (long) (sizeof (long long)); }
6034 #include <stdio.h>
6035 #include <stdlib.h>
6036 int
6037 main ()
6038 {
6039
6040   FILE *f = fopen ("conftest.val", "w");
6041   if (! f)
6042     exit (1);
6043   if (((long) (sizeof (long long))) < 0)
6044     {
6045       long i = longval ();
6046       if (i != ((long) (sizeof (long long))))
6047         exit (1);
6048       fprintf (f, "%ld\n", i);
6049     }
6050   else
6051     {
6052       unsigned long i = ulongval ();
6053       if (i != ((long) (sizeof (long long))))
6054         exit (1);
6055       fprintf (f, "%lu\n", i);
6056     }
6057   exit (ferror (f) || fclose (f) != 0);
6058
6059   ;
6060   return 0;
6061 }
6062 _ACEOF
6063 rm -f conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065   (eval $ac_link) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070   (eval $ac_try) 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }; }; then
6074   ac_cv_sizeof_long_long=`cat conftest.val`
6075 else
6076   echo "$as_me: program exited with status $ac_status" >&5
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080 ( exit $ac_status )
6081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6082 See \`config.log' for more details." >&5
6083 echo "$as_me: error: cannot compute sizeof (long long), 77
6084 See \`config.log' for more details." >&2;}
6085    { (exit 1); exit 1; }; }
6086 fi
6087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6088 fi
6089 fi
6090 rm -f conftest.val
6091 else
6092   ac_cv_sizeof_long_long=0
6093 fi
6094 fi
6095 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6096 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6099 _ACEOF
6100
6101
6102 fi
6103
6104 echo "$as_me:$LINENO: checking for __int64" >&5
6105 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6106 if test "${ac_cv_type___int64+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h.  */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h.  */
6115 $ac_includes_default
6116 int
6117 main ()
6118 {
6119 if ((__int64 *) 0)
6120   return 0;
6121 if (sizeof (__int64))
6122   return 0;
6123   ;
6124   return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129   (eval $ac_compile) 2>conftest.er1
6130   ac_status=$?
6131   grep -v '^ *+' conftest.er1 >conftest.err
6132   rm -f conftest.er1
6133   cat conftest.err >&5
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); } &&
6136          { ac_try='test -z "$ac_c_werror_flag"
6137                          || test ! -s conftest.err'
6138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139   (eval $ac_try) 2>&5
6140   ac_status=$?
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); }; } &&
6143          { ac_try='test -s conftest.$ac_objext'
6144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145   (eval $ac_try) 2>&5
6146   ac_status=$?
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); }; }; then
6149   ac_cv_type___int64=yes
6150 else
6151   echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_cv_type___int64=no
6155 fi
6156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6157 fi
6158 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6159 echo "${ECHO_T}$ac_cv_type___int64" >&6
6160 if test $ac_cv_type___int64 = yes; then
6161
6162 cat >>confdefs.h <<_ACEOF
6163 #define HAVE___INT64 1
6164 _ACEOF
6165
6166 echo "$as_me:$LINENO: checking for __int64" >&5
6167 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6168 if test "${ac_cv_type___int64+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h.  */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h.  */
6177 $ac_includes_default
6178 int
6179 main ()
6180 {
6181 if ((__int64 *) 0)
6182   return 0;
6183 if (sizeof (__int64))
6184   return 0;
6185   ;
6186   return 0;
6187 }
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191   (eval $ac_compile) 2>conftest.er1
6192   ac_status=$?
6193   grep -v '^ *+' conftest.er1 >conftest.err
6194   rm -f conftest.er1
6195   cat conftest.err >&5
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); } &&
6198          { ac_try='test -z "$ac_c_werror_flag"
6199                          || test ! -s conftest.err'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; } &&
6205          { ac_try='test -s conftest.$ac_objext'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; }; then
6211   ac_cv_type___int64=yes
6212 else
6213   echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216 ac_cv_type___int64=no
6217 fi
6218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6219 fi
6220 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6221 echo "${ECHO_T}$ac_cv_type___int64" >&6
6222
6223 echo "$as_me:$LINENO: checking size of __int64" >&5
6224 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6225 if test "${ac_cv_sizeof___int64+set}" = set; then
6226   echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228   if test "$ac_cv_type___int64" = yes; then
6229   # The cast to unsigned long works around a bug in the HP C Compiler
6230   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6231   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6232   # This bug is HP SR number 8606223364.
6233   if test "$cross_compiling" = yes; then
6234   # Depending upon the size, compute the lo and hi bounds.
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h.  */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h.  */
6241 $ac_includes_default
6242 int
6243 main ()
6244 {
6245 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6246 test_array [0] = 0
6247
6248   ;
6249   return 0;
6250 }
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254   (eval $ac_compile) 2>conftest.er1
6255   ac_status=$?
6256   grep -v '^ *+' conftest.er1 >conftest.err
6257   rm -f conftest.er1
6258   cat conftest.err >&5
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); } &&
6261          { ac_try='test -z "$ac_c_werror_flag"
6262                          || test ! -s conftest.err'
6263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264   (eval $ac_try) 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; } &&
6268          { ac_try='test -s conftest.$ac_objext'
6269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270   (eval $ac_try) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; }; then
6274   ac_lo=0 ac_mid=0
6275   while :; do
6276     cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h.  */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h.  */
6282 $ac_includes_default
6283 int
6284 main ()
6285 {
6286 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6287 test_array [0] = 0
6288
6289   ;
6290   return 0;
6291 }
6292 _ACEOF
6293 rm -f conftest.$ac_objext
6294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6295   (eval $ac_compile) 2>conftest.er1
6296   ac_status=$?
6297   grep -v '^ *+' conftest.er1 >conftest.err
6298   rm -f conftest.er1
6299   cat conftest.err >&5
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); } &&
6302          { ac_try='test -z "$ac_c_werror_flag"
6303                          || test ! -s conftest.err'
6304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305   (eval $ac_try) 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; } &&
6309          { ac_try='test -s conftest.$ac_objext'
6310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311   (eval $ac_try) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); }; }; then
6315   ac_hi=$ac_mid; break
6316 else
6317   echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ac_lo=`expr $ac_mid + 1`
6321                     if test $ac_lo -le $ac_mid; then
6322                       ac_lo= ac_hi=
6323                       break
6324                     fi
6325                     ac_mid=`expr 2 '*' $ac_mid + 1`
6326 fi
6327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6328   done
6329 else
6330   echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339 $ac_includes_default
6340 int
6341 main ()
6342 {
6343 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6344 test_array [0] = 0
6345
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352   (eval $ac_compile) 2>conftest.er1
6353   ac_status=$?
6354   grep -v '^ *+' conftest.er1 >conftest.err
6355   rm -f conftest.er1
6356   cat conftest.err >&5
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); } &&
6359          { ac_try='test -z "$ac_c_werror_flag"
6360                          || test ! -s conftest.err'
6361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362   (eval $ac_try) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; } &&
6366          { ac_try='test -s conftest.$ac_objext'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; }; then
6372   ac_hi=-1 ac_mid=-1
6373   while :; do
6374     cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380 $ac_includes_default
6381 int
6382 main ()
6383 {
6384 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6385 test_array [0] = 0
6386
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393   (eval $ac_compile) 2>conftest.er1
6394   ac_status=$?
6395   grep -v '^ *+' conftest.er1 >conftest.err
6396   rm -f conftest.er1
6397   cat conftest.err >&5
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); } &&
6400          { ac_try='test -z "$ac_c_werror_flag"
6401                          || test ! -s conftest.err'
6402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403   (eval $ac_try) 2>&5
6404   ac_status=$?
6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406   (exit $ac_status); }; } &&
6407          { ac_try='test -s conftest.$ac_objext'
6408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409   (eval $ac_try) 2>&5
6410   ac_status=$?
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); }; }; then
6413   ac_lo=$ac_mid; break
6414 else
6415   echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6417
6418 ac_hi=`expr '(' $ac_mid ')' - 1`
6419                        if test $ac_mid -le $ac_hi; then
6420                          ac_lo= ac_hi=
6421                          break
6422                        fi
6423                        ac_mid=`expr 2 '*' $ac_mid`
6424 fi
6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426   done
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 ac_lo= ac_hi=
6432 fi
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436 # Binary search between lo and hi bounds.
6437 while test "x$ac_lo" != "x$ac_hi"; do
6438   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6439   cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h.  */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h.  */
6445 $ac_includes_default
6446 int
6447 main ()
6448 {
6449 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6450 test_array [0] = 0
6451
6452   ;
6453   return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458   (eval $ac_compile) 2>conftest.er1
6459   ac_status=$?
6460   grep -v '^ *+' conftest.er1 >conftest.err
6461   rm -f conftest.er1
6462   cat conftest.err >&5
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); } &&
6465          { ac_try='test -z "$ac_c_werror_flag"
6466                          || test ! -s conftest.err'
6467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468   (eval $ac_try) 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; } &&
6472          { ac_try='test -s conftest.$ac_objext'
6473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474   (eval $ac_try) 2>&5
6475   ac_status=$?
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); }; }; then
6478   ac_hi=$ac_mid
6479 else
6480   echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 ac_lo=`expr '(' $ac_mid ')' + 1`
6484 fi
6485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 done
6487 case $ac_lo in
6488 ?*) ac_cv_sizeof___int64=$ac_lo;;
6489 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6490 See \`config.log' for more details." >&5
6491 echo "$as_me: error: cannot compute sizeof (__int64), 77
6492 See \`config.log' for more details." >&2;}
6493    { (exit 1); exit 1; }; } ;;
6494 esac
6495 else
6496   if test "$cross_compiling" = yes; then
6497   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6498 See \`config.log' for more details." >&5
6499 echo "$as_me: error: cannot run test program while cross compiling
6500 See \`config.log' for more details." >&2;}
6501    { (exit 1); exit 1; }; }
6502 else
6503   cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h.  */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h.  */
6509 $ac_includes_default
6510 long longval () { return (long) (sizeof (__int64)); }
6511 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6512 #include <stdio.h>
6513 #include <stdlib.h>
6514 int
6515 main ()
6516 {
6517
6518   FILE *f = fopen ("conftest.val", "w");
6519   if (! f)
6520     exit (1);
6521   if (((long) (sizeof (__int64))) < 0)
6522     {
6523       long i = longval ();
6524       if (i != ((long) (sizeof (__int64))))
6525         exit (1);
6526       fprintf (f, "%ld\n", i);
6527     }
6528   else
6529     {
6530       unsigned long i = ulongval ();
6531       if (i != ((long) (sizeof (__int64))))
6532         exit (1);
6533       fprintf (f, "%lu\n", i);
6534     }
6535   exit (ferror (f) || fclose (f) != 0);
6536
6537   ;
6538   return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest$ac_exeext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543   (eval $ac_link) 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548   (eval $ac_try) 2>&5
6549   ac_status=$?
6550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); }; }; then
6552   ac_cv_sizeof___int64=`cat conftest.val`
6553 else
6554   echo "$as_me: program exited with status $ac_status" >&5
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558 ( exit $ac_status )
6559 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6560 See \`config.log' for more details." >&5
6561 echo "$as_me: error: cannot compute sizeof (__int64), 77
6562 See \`config.log' for more details." >&2;}
6563    { (exit 1); exit 1; }; }
6564 fi
6565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6566 fi
6567 fi
6568 rm -f conftest.val
6569 else
6570   ac_cv_sizeof___int64=0
6571 fi
6572 fi
6573 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6574 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6575 cat >>confdefs.h <<_ACEOF
6576 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6577 _ACEOF
6578
6579
6580 fi
6581
6582
6583 # ---------------------
6584 # Warnings and checking
6585 # ---------------------
6586
6587 # Check $CC warning features (if it's GCC).
6588 # We want to use -pedantic, but we don't want warnings about
6589 # * 'long long'
6590 # * variadic macros
6591 # * overlong strings
6592 # So, we only use -pedantic if we can disable those warnings.
6593
6594 loose_warn=
6595 save_CFLAGS="$CFLAGS"
6596 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6597                           -Wmissing-prototypes; do
6598   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6599
6600   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6601 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6602 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   CFLAGS="$option"
6606     cat >conftest.$ac_ext <<_ACEOF
6607 /* confdefs.h.  */
6608 _ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h.  */
6612
6613 int
6614 main ()
6615 {
6616
6617   ;
6618   return 0;
6619 }
6620 _ACEOF
6621 rm -f conftest.$ac_objext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6623   (eval $ac_compile) 2>conftest.er1
6624   ac_status=$?
6625   grep -v '^ *+' conftest.er1 >conftest.err
6626   rm -f conftest.er1
6627   cat conftest.err >&5
6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629   (exit $ac_status); } &&
6630          { ac_try='test -z "$ac_c_werror_flag"
6631                          || test ! -s conftest.err'
6632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633   (eval $ac_try) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); }; } &&
6637          { ac_try='test -s conftest.$ac_objext'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; }; then
6643   eval "$as_acx_Woption=yes"
6644 else
6645   echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6647
6648 eval "$as_acx_Woption=no"
6649 fi
6650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6651
6652 fi
6653 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6654 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6655   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6656   loose_warn="$loose_warn${loose_warn:+ }$option"
6657 fi
6658
6659   done
6660 CFLAGS="$save_CFLAGS"
6661
6662 cxx_compat_warn=
6663 save_CFLAGS="$CFLAGS"
6664 for option in -Wc++-compat; do
6665   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6666
6667   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6668 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6669 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   CFLAGS="$option"
6673     cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h.  */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h.  */
6679
6680 int
6681 main ()
6682 {
6683
6684   ;
6685   return 0;
6686 }
6687 _ACEOF
6688 rm -f conftest.$ac_objext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690   (eval $ac_compile) 2>conftest.er1
6691   ac_status=$?
6692   grep -v '^ *+' conftest.er1 >conftest.err
6693   rm -f conftest.er1
6694   cat conftest.err >&5
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } &&
6697          { ac_try='test -z "$ac_c_werror_flag"
6698                          || test ! -s conftest.err'
6699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700   (eval $ac_try) 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); }; } &&
6704          { ac_try='test -s conftest.$ac_objext'
6705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706   (eval $ac_try) 2>&5
6707   ac_status=$?
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); }; }; then
6710   eval "$as_acx_Woption=yes"
6711 else
6712   echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 eval "$as_acx_Woption=no"
6716 fi
6717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6718
6719 fi
6720 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6721 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6722   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6723   cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6724 fi
6725
6726   done
6727 CFLAGS="$save_CFLAGS"
6728
6729 strict_warn=
6730 save_CFLAGS="$CFLAGS"
6731 for option in -Wold-style-definition \
6732                           -Wmissing-format-attribute; do
6733   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6734
6735   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6736 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6737 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   CFLAGS="$option"
6741     cat >conftest.$ac_ext <<_ACEOF
6742 /* confdefs.h.  */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h.  */
6747
6748 int
6749 main ()
6750 {
6751
6752   ;
6753   return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758   (eval $ac_compile) 2>conftest.er1
6759   ac_status=$?
6760   grep -v '^ *+' conftest.er1 >conftest.err
6761   rm -f conftest.er1
6762   cat conftest.err >&5
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); } &&
6765          { ac_try='test -z "$ac_c_werror_flag"
6766                          || test ! -s conftest.err'
6767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768   (eval $ac_try) 2>&5
6769   ac_status=$?
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); }; } &&
6772          { ac_try='test -s conftest.$ac_objext'
6773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774   (eval $ac_try) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); }; }; then
6778   eval "$as_acx_Woption=yes"
6779 else
6780   echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 eval "$as_acx_Woption=no"
6784 fi
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786
6787 fi
6788 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6789 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6790   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6791   strict_warn="$strict_warn${strict_warn:+ }$option"
6792 fi
6793
6794   done
6795 CFLAGS="$save_CFLAGS"
6796
6797 if test "$GCC" = yes; then
6798   echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6799                                      -Wno-overlength-strings" >&5
6800 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6801                                      -Wno-overlength-strings... $ECHO_C" >&6
6802 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   save_CFLAGS="$CFLAGS"
6806 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6807                                      -Wno-overlength-strings"
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h.  */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h.  */
6814
6815 int
6816 main ()
6817 {
6818
6819   ;
6820   return 0;
6821 }
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6825   (eval $ac_compile) 2>conftest.er1
6826   ac_status=$?
6827   grep -v '^ *+' conftest.er1 >conftest.err
6828   rm -f conftest.er1
6829   cat conftest.err >&5
6830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); } &&
6832          { ac_try='test -z "$ac_c_werror_flag"
6833                          || test ! -s conftest.err'
6834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835   (eval $ac_try) 2>&5
6836   ac_status=$?
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); }; } &&
6839          { ac_try='test -s conftest.$ac_objext'
6840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841   (eval $ac_try) 2>&5
6842   ac_status=$?
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); }; }; then
6845   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
6846 else
6847   echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6849
6850 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
6851 fi
6852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6853 CFLAGS="$save_CFLAGS"
6854 fi
6855 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6856 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6857 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6858   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6859                                      -Wno-overlength-strings"
6860 fi
6861
6862
6863 fi
6864
6865
6866 # Check whether --enable-werror-always or --disable-werror-always was given.
6867 if test "${enable_werror_always+set}" = set; then
6868   enableval="$enable_werror_always"
6869
6870 else
6871   enable_werror_always=no
6872 fi;
6873 if test $enable_werror_always = yes; then
6874   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6875 fi
6876
6877
6878
6879
6880 # The above macros do nothing if the compiler is not GCC.  However, the
6881 # Makefile has more goo to add other flags, so this variabl is used to
6882 # enables warnings only for GCC.
6883 warn_cflags=
6884 if test "x$GCC" = "xyes"; then
6885   warn_cflags='$(GCC_WARN_CFLAGS)'
6886 fi
6887
6888
6889 # Enable expensive internal checks
6890 is_release=
6891 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6892   is_release=yes
6893 fi
6894
6895 # Check whether --enable-checking or --disable-checking was given.
6896 if test "${enable_checking+set}" = set; then
6897   enableval="$enable_checking"
6898   ac_checking_flags="${enableval}"
6899 else
6900
6901 # Determine the default checks.
6902 if test x$is_release = x ; then
6903   ac_checking_flags=yes
6904 else
6905   ac_checking_flags=release
6906 fi
6907 fi;
6908 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6909 for check in release $ac_checking_flags
6910 do
6911         case $check in
6912         # these set all the flags to specific states
6913         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6914                         ac_fold_checking= ; ac_gc_checking=1 ;
6915                         ac_gc_always_collect= ; ac_rtl_checking= ;
6916                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6917                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6918                         ac_types_checking=1 ;;
6919         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6920                         ac_fold_checking= ; ac_gc_checking= ;
6921                         ac_gc_always_collect= ; ac_rtl_checking= ;
6922                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6923                         ac_tree_checking= ; ac_valgrind_checking= ;
6924                         ac_types_checking= ;;
6925         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6926                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6927                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6928                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6929                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6930                         ac_types_checking=1 ;;
6931         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6932                         ac_fold_checking= ; ac_gc_checking= ;
6933                         ac_gc_always_collect= ; ac_rtl_checking= ;
6934                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6935                         ac_tree_checking= ; ac_valgrind_checking= ;
6936                         ac_types_checking= ;;
6937         # these enable particular checks
6938         assert)         ac_assert_checking=1 ;;
6939         df)             ac_df_checking=1 ;;
6940         fold)           ac_fold_checking=1 ;;
6941         gc)             ac_gc_checking=1 ;;
6942         gcac)           ac_gc_always_collect=1 ;;
6943         misc)           ac_checking=1 ;;
6944         rtl)            ac_rtl_checking=1 ;;
6945         rtlflag)        ac_rtlflag_checking=1 ;;
6946         runtime)        ac_runtime_checking=1 ;;
6947         tree)           ac_tree_checking=1 ;;
6948         types)          ac_types_checking=1 ;;
6949         valgrind)       ac_valgrind_checking=1 ;;
6950         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6951 echo "$as_me: error: unknown check category $check" >&2;}
6952    { (exit 1); exit 1; }; } ;;
6953         esac
6954 done
6955 IFS="$ac_save_IFS"
6956
6957 nocommon_flag=""
6958 if test x$ac_checking != x ; then
6959
6960 cat >>confdefs.h <<\_ACEOF
6961 #define ENABLE_CHECKING 1
6962 _ACEOF
6963
6964   nocommon_flag=-fno-common
6965 fi
6966
6967 if test x$ac_df_checking != x ; then
6968
6969 cat >>confdefs.h <<\_ACEOF
6970 #define ENABLE_DF_CHECKING 1
6971 _ACEOF
6972
6973 fi
6974 if test x$ac_assert_checking != x ; then
6975
6976 cat >>confdefs.h <<\_ACEOF
6977 #define ENABLE_ASSERT_CHECKING 1
6978 _ACEOF
6979
6980 fi
6981
6982 if test x$ac_runtime_checking != x ; then
6983
6984 cat >>confdefs.h <<\_ACEOF
6985 #define ENABLE_RUNTIME_CHECKING 1
6986 _ACEOF
6987
6988 fi
6989 if test x$ac_tree_checking != x ; then
6990
6991 cat >>confdefs.h <<\_ACEOF
6992 #define ENABLE_TREE_CHECKING 1
6993 _ACEOF
6994
6995   TREEBROWSER=tree-browser.o
6996 fi
6997 if test x$ac_types_checking != x ; then
6998
6999 cat >>confdefs.h <<\_ACEOF
7000 #define ENABLE_TYPES_CHECKING 1
7001 _ACEOF
7002
7003 fi
7004
7005 if test x$ac_rtl_checking != x ; then
7006
7007 cat >>confdefs.h <<\_ACEOF
7008 #define ENABLE_RTL_CHECKING 1
7009 _ACEOF
7010
7011 fi
7012 if test x$ac_rtlflag_checking != x ; then
7013
7014 cat >>confdefs.h <<\_ACEOF
7015 #define ENABLE_RTL_FLAG_CHECKING 1
7016 _ACEOF
7017
7018 fi
7019 if test x$ac_gc_checking != x ; then
7020
7021 cat >>confdefs.h <<\_ACEOF
7022 #define ENABLE_GC_CHECKING 1
7023 _ACEOF
7024
7025 fi
7026 if test x$ac_gc_always_collect != x ; then
7027
7028 cat >>confdefs.h <<\_ACEOF
7029 #define ENABLE_GC_ALWAYS_COLLECT 1
7030 _ACEOF
7031
7032 fi
7033 if test x$ac_fold_checking != x ; then
7034
7035 cat >>confdefs.h <<\_ACEOF
7036 #define ENABLE_FOLD_CHECKING 1
7037 _ACEOF
7038
7039 fi
7040 valgrind_path_defines=
7041 valgrind_command=
7042
7043 if test "${ac_cv_header_valgrind_h+set}" = set; then
7044   echo "$as_me:$LINENO: checking for valgrind.h" >&5
7045 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7046 if test "${ac_cv_header_valgrind_h+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 fi
7049 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7050 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7051 else
7052   # Is the header compilable?
7053 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7054 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h.  */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h.  */
7061 $ac_includes_default
7062 #include <valgrind.h>
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066   (eval $ac_compile) 2>conftest.er1
7067   ac_status=$?
7068   grep -v '^ *+' conftest.er1 >conftest.err
7069   rm -f conftest.er1
7070   cat conftest.err >&5
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } &&
7073          { ac_try='test -z "$ac_c_werror_flag"
7074                          || test ! -s conftest.err'
7075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076   (eval $ac_try) 2>&5
7077   ac_status=$?
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); }; } &&
7080          { ac_try='test -s conftest.$ac_objext'
7081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082   (eval $ac_try) 2>&5
7083   ac_status=$?
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); }; }; then
7086   ac_header_compiler=yes
7087 else
7088   echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7090
7091 ac_header_compiler=no
7092 fi
7093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095 echo "${ECHO_T}$ac_header_compiler" >&6
7096
7097 # Is the header present?
7098 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7099 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h.  */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h.  */
7106 #include <valgrind.h>
7107 _ACEOF
7108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7110   ac_status=$?
7111   grep -v '^ *+' conftest.er1 >conftest.err
7112   rm -f conftest.er1
7113   cat conftest.err >&5
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } >/dev/null; then
7116   if test -s conftest.err; then
7117     ac_cpp_err=$ac_c_preproc_warn_flag
7118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7119   else
7120     ac_cpp_err=
7121   fi
7122 else
7123   ac_cpp_err=yes
7124 fi
7125 if test -z "$ac_cpp_err"; then
7126   ac_header_preproc=yes
7127 else
7128   echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7130
7131   ac_header_preproc=no
7132 fi
7133 rm -f conftest.err conftest.$ac_ext
7134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7135 echo "${ECHO_T}$ac_header_preproc" >&6
7136
7137 # So?  What about this header?
7138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7139   yes:no: )
7140     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7141 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7142     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7143 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7144     ac_header_preproc=yes
7145     ;;
7146   no:yes:* )
7147     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7148 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7149     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
7150 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
7151     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7152 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7153     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
7154 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7155     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7156 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7157     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7158 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7159     (
7160       cat <<\_ASBOX
7161 ## ------------------------------------------ ##
7162 ## Report this to the AC_PACKAGE_NAME lists.  ##
7163 ## ------------------------------------------ ##
7164 _ASBOX
7165     ) |
7166       sed "s/^/$as_me: WARNING:     /" >&2
7167     ;;
7168 esac
7169 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7170 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7171 if test "${ac_cv_header_valgrind_h+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   ac_cv_header_valgrind_h=$ac_header_preproc
7175 fi
7176 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7177 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7178
7179 fi
7180 if test $ac_cv_header_valgrind_h = yes; then
7181   have_valgrind_h=yes
7182 else
7183   have_valgrind_h=no
7184 fi
7185
7186
7187
7188 if test x$ac_valgrind_checking != x ; then
7189   # It is certainly possible that there's valgrind but no valgrind.h.
7190   # GCC relies on making annotations so we must have both.
7191   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7192 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7193   cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h.  */
7199 #include <valgrind/memcheck.h>
7200 #ifndef VALGRIND_DISCARD
7201 #error VALGRIND_DISCARD not defined
7202 #endif
7203 _ACEOF
7204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7206   ac_status=$?
7207   grep -v '^ *+' conftest.er1 >conftest.err
7208   rm -f conftest.er1
7209   cat conftest.err >&5
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); } >/dev/null; then
7212   if test -s conftest.err; then
7213     ac_cpp_err=$ac_c_preproc_warn_flag
7214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7215   else
7216     ac_cpp_err=
7217   fi
7218 else
7219   ac_cpp_err=yes
7220 fi
7221 if test -z "$ac_cpp_err"; then
7222   gcc_cv_header_valgrind_memcheck_h=yes
7223 else
7224   echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7226
7227   gcc_cv_header_valgrind_memcheck_h=no
7228 fi
7229 rm -f conftest.err conftest.$ac_ext
7230   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7231 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7232   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7233 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7234   cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h.  */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h.  */
7240 #include <memcheck.h>
7241 #ifndef VALGRIND_DISCARD
7242 #error VALGRIND_DISCARD not defined
7243 #endif
7244 _ACEOF
7245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7247   ac_status=$?
7248   grep -v '^ *+' conftest.er1 >conftest.err
7249   rm -f conftest.er1
7250   cat conftest.err >&5
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); } >/dev/null; then
7253   if test -s conftest.err; then
7254     ac_cpp_err=$ac_c_preproc_warn_flag
7255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7256   else
7257     ac_cpp_err=
7258   fi
7259 else
7260   ac_cpp_err=yes
7261 fi
7262 if test -z "$ac_cpp_err"; then
7263   gcc_cv_header_memcheck_h=yes
7264 else
7265   echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7267
7268   gcc_cv_header_memcheck_h=no
7269 fi
7270 rm -f conftest.err conftest.$ac_ext
7271   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7272 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7273
7274 # Prepare PATH_SEPARATOR.
7275 # The user is always right.
7276 if test "${PATH_SEPARATOR+set}" != set; then
7277   echo "#! /bin/sh" >conf$$.sh
7278   echo  "exit 0"   >>conf$$.sh
7279   chmod +x conf$$.sh
7280   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7281     PATH_SEPARATOR=';'
7282   else
7283     PATH_SEPARATOR=:
7284   fi
7285   rm -f conf$$.sh
7286 fi
7287
7288 # Find out how to test for executable files. Don't use a zero-byte file,
7289 # as systems may use methods other than mode bits to determine executability.
7290 cat >conf$$.file <<_ASEOF
7291 #! /bin/sh
7292 exit 0
7293 _ASEOF
7294 chmod +x conf$$.file
7295 if test -x conf$$.file >/dev/null 2>&1; then
7296   ac_executable_p="test -x"
7297 else
7298   ac_executable_p="test -f"
7299 fi
7300 rm -f conf$$.file
7301
7302 # Extract the first word of "valgrind", so it can be a program name with args.
7303 set dummy valgrind; ac_word=$2
7304 echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7306 if test "${ac_cv_path_valgrind_path+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   case "$valgrind_path" in
7310   [\\/]* | ?:[\\/]*)
7311     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7312     ;;
7313   *)
7314     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7315     for ac_dir in $PATH; do
7316       IFS="$ac_save_IFS"
7317       test -z "$ac_dir" && ac_dir=.
7318       for ac_exec_ext in '' $ac_executable_extensions; do
7319         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7320           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7321             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7322             break 2
7323           fi
7324         fi
7325       done
7326     done
7327     IFS="$ac_save_IFS"
7328     ;;
7329 esac
7330 fi
7331 valgrind_path="$ac_cv_path_valgrind_path"
7332 if test -n "$valgrind_path"; then
7333   echo "$as_me:$LINENO: result: $valgrind_path" >&5
7334 echo "${ECHO_T}$valgrind_path" >&6
7335 else
7336   echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6
7338 fi
7339
7340   if test "x$valgrind_path" = "x" \
7341     || (test $have_valgrind_h = no \
7342         && test $gcc_cv_header_memcheck_h = no \
7343         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7344         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7345 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7346    { (exit 1); exit 1; }; }
7347   fi
7348   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7349   valgrind_command="$valgrind_path -q"
7350
7351 cat >>confdefs.h <<\_ACEOF
7352 #define ENABLE_VALGRIND_CHECKING 1
7353 _ACEOF
7354
7355   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7356
7357 cat >>confdefs.h <<\_ACEOF
7358 #define HAVE_VALGRIND_MEMCHECK_H 1
7359 _ACEOF
7360
7361   fi
7362   if test $gcc_cv_header_memcheck_h = yes; then
7363
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_MEMCHECK_H 1
7366 _ACEOF
7367
7368   fi
7369 fi
7370
7371
7372
7373 # Enable code coverage collection
7374 # Check whether --enable-coverage or --disable-coverage was given.
7375 if test "${enable_coverage+set}" = set; then
7376   enableval="$enable_coverage"
7377   case "${enableval}" in
7378   yes|noopt)
7379     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7380     ;;
7381   opt)
7382     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7383     ;;
7384   no)
7385     # a.k.a. --disable-coverage
7386     coverage_flags=""
7387     ;;
7388   *)
7389     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7390 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7391    { (exit 1); exit 1; }; }
7392     ;;
7393 esac
7394 else
7395   coverage_flags=""
7396 fi;
7397
7398
7399 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7400 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7401   enableval="$enable_gather_detailed_mem_stats"
7402
7403 else
7404   enable_gather_detailed_mem_stats=no
7405 fi;
7406 if test x$enable_gather_detailed_mem_stats = xyes ; then
7407
7408 cat >>confdefs.h <<\_ACEOF
7409 #define GATHER_STATISTICS 1
7410 _ACEOF
7411
7412 fi
7413
7414 # -------------------------------
7415 # Miscenalleous configure options
7416 # -------------------------------
7417
7418 # With stabs
7419
7420 # Check whether --with-stabs or --without-stabs was given.
7421 if test "${with_stabs+set}" = set; then
7422   withval="$with_stabs"
7423   stabs="$with_stabs"
7424 else
7425   stabs=no
7426 fi;
7427
7428 # Determine whether or not multilibs are enabled.
7429 # Check whether --enable-multilib or --disable-multilib was given.
7430 if test "${enable_multilib+set}" = set; then
7431   enableval="$enable_multilib"
7432
7433 else
7434   enable_multilib=yes
7435 fi;
7436
7437
7438 # Enable __cxa_atexit for C++.
7439 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7440 if test "${enable___cxa_atexit+set}" = set; then
7441   enableval="$enable___cxa_atexit"
7442
7443 fi;
7444
7445 # Enable C extension for decimal float if target supports it.
7446 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7447 if test "${enable_decimal_float+set}" = set; then
7448   enableval="$enable_decimal_float"
7449
7450   case $enable_decimal_float in
7451     yes | no | bid | dpd) ;;
7452     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7453 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7454 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7455 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7456    { (exit 1); exit 1; }; } ;;
7457   esac
7458
7459 else
7460
7461   case $target in
7462     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7463       enable_decimal_float=yes
7464       ;;
7465     *)
7466       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7467 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7468       enable_decimal_float=no
7469       ;;
7470   esac
7471
7472 fi;
7473
7474 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7475
7476 cat >>confdefs.h <<_ACEOF
7477 #define ENABLE_DECIMAL_FLOAT $dfp
7478 _ACEOF
7479
7480
7481 # x86's use BID format instead of DPD
7482 case x$enable_decimal_float in
7483   xyes)
7484     case $target in
7485       i?86*-*-linux* | x86_64*-*-linux*)
7486         enable_decimal_float=bid
7487         ;;
7488       *)
7489         enable_decimal_float=dpd
7490         ;;
7491     esac
7492     ;;
7493   xno)
7494     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7495     # dependency on libdecnumber.
7496     enable_decimal_float=dpd
7497     ;;
7498 esac
7499
7500
7501 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7502
7503 cat >>confdefs.h <<_ACEOF
7504 #define ENABLE_DECIMAL_BID_FORMAT $bid
7505 _ACEOF
7506
7507
7508 # Enable C extension for fixed-point arithmetic.
7509 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7510 if test "${enable_fixed_point+set}" = set; then
7511   enableval="$enable_fixed_point"
7512
7513
7514 else
7515
7516   case $target in
7517     mips*-*-*)
7518       case $host in
7519         mips*-sgi-irix*)
7520           { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7521 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7522           enable_fixed_point=no
7523           ;;
7524         *)
7525           enable_fixed_point=yes
7526           ;;
7527       esac
7528       ;;
7529     *)
7530       { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7531 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7532       enable_fixed_point=no
7533       ;;
7534   esac
7535
7536 fi;
7537
7538
7539 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7540
7541 cat >>confdefs.h <<_ACEOF
7542 #define ENABLE_FIXED_POINT $fixedpoint
7543 _ACEOF
7544
7545
7546 # Enable threads
7547 # Pass with no value to take the default
7548 # Pass with a value to specify a thread package
7549 # Check whether --enable-threads or --disable-threads was given.
7550 if test "${enable_threads+set}" = set; then
7551   enableval="$enable_threads"
7552
7553 else
7554   enable_threads=''
7555 fi;
7556
7557 # Check whether --enable-tls or --disable-tls was given.
7558 if test "${enable_tls+set}" = set; then
7559   enableval="$enable_tls"
7560
7561   case $enable_tls in
7562     yes | no) ;;
7563     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7564 Valid choices are 'yes' and 'no'." >&5
7565 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7566 Valid choices are 'yes' and 'no'." >&2;}
7567    { (exit 1); exit 1; }; } ;;
7568   esac
7569
7570 else
7571   enable_tls=''
7572 fi;
7573
7574 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7575 if test "${enable_objc_gc+set}" = set; then
7576   enableval="$enable_objc_gc"
7577   if test x$enable_objc_gc = xno; then
7578         objc_boehm_gc=''
7579 else
7580         objc_boehm_gc=1
7581 fi
7582 else
7583   objc_boehm_gc=''
7584 fi;
7585
7586
7587 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7588 if test "${with_dwarf2+set}" = set; then
7589   withval="$with_dwarf2"
7590   dwarf2="$with_dwarf2"
7591 else
7592   dwarf2=no
7593 fi;
7594
7595 # Check whether --enable-shared or --disable-shared was given.
7596 if test "${enable_shared+set}" = set; then
7597   enableval="$enable_shared"
7598
7599   case $enable_shared in
7600   yes | no) ;;
7601   *)
7602     enable_shared=no
7603     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7604     for pkg in $enableval; do
7605       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7606         enable_shared=yes
7607       fi
7608     done
7609     IFS="$ac_save_ifs"
7610     ;;
7611   esac
7612
7613 else
7614   enable_shared=yes
7615 fi;
7616
7617
7618
7619 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7620 if test "${with_build_sysroot+set}" = set; then
7621   withval="$with_build_sysroot"
7622
7623 fi;
7624
7625
7626 # Check whether --with-sysroot or --without-sysroot was given.
7627 if test "${with_sysroot+set}" = set; then
7628   withval="$with_sysroot"
7629
7630  case ${with_sysroot} in
7631  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7632  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7633  esac
7634
7635  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7636  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7637
7638  if test "x$prefix" = xNONE; then
7639   test_prefix=/usr/local
7640  else
7641   test_prefix=$prefix
7642  fi
7643  if test "x$exec_prefix" = xNONE; then
7644   test_exec_prefix=$test_prefix
7645  else
7646   test_exec_prefix=$exec_prefix
7647  fi
7648  case ${TARGET_SYSTEM_ROOT} in
7649  "${test_prefix}"|"${test_prefix}/"*|\
7650  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7651  '${prefix}'|'${prefix}/'*|\
7652  '${exec_prefix}'|'${exec_prefix}/'*)
7653    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7654    TARGET_SYSTEM_ROOT_DEFINE="$t"
7655    ;;
7656  esac
7657
7658 else
7659
7660  TARGET_SYSTEM_ROOT=
7661  TARGET_SYSTEM_ROOT_DEFINE=
7662  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7663
7664 fi;
7665
7666
7667
7668
7669 # Build with intermodule optimisations
7670 # Check whether --enable-intermodule or --disable-intermodule was given.
7671 if test "${enable_intermodule+set}" = set; then
7672   enableval="$enable_intermodule"
7673   case ${enable_intermodule} in
7674   yes) onestep="-onestep";;
7675   *) onestep="";;
7676 esac
7677 else
7678   onestep=""
7679 fi;
7680
7681
7682
7683
7684 # Check whether --with-pkgversion or --without-pkgversion was given.
7685 if test "${with_pkgversion+set}" = set; then
7686   withval="$with_pkgversion"
7687   case "$withval" in
7688       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7689 echo "$as_me: error: package version not specified" >&2;}
7690    { (exit 1); exit 1; }; } ;;
7691       no)  PKGVERSION= ;;
7692       *)   PKGVERSION="($withval) " ;;
7693      esac
7694 else
7695   PKGVERSION="(GCC) "
7696
7697 fi;
7698
7699
7700
7701
7702 # Check whether --with-bugurl or --without-bugurl was given.
7703 if test "${with_bugurl+set}" = set; then
7704   withval="$with_bugurl"
7705   case "$withval" in
7706       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7707 echo "$as_me: error: bug URL not specified" >&2;}
7708    { (exit 1); exit 1; }; } ;;
7709       no)  BUGURL=
7710            ;;
7711       *)   BUGURL="$withval"
7712            ;;
7713      esac
7714 else
7715   BUGURL="http://gcc.gnu.org/bugs.html"
7716
7717 fi;
7718   case ${BUGURL} in
7719   "")
7720     REPORT_BUGS_TO=
7721     REPORT_BUGS_TEXI=
7722     ;;
7723   *)
7724     REPORT_BUGS_TO="<$BUGURL>"
7725     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7726     ;;
7727   esac;
7728
7729
7730
7731
7732 # Sanity check enable_languages in case someone does not run the toplevel
7733 # configure # script.
7734 # Check whether --enable-languages or --disable-languages was given.
7735 if test "${enable_languages+set}" = set; then
7736   enableval="$enable_languages"
7737   case ,${enable_languages}, in
7738        ,,|,yes,)
7739                 # go safe -- we cannot be much sure without the toplevel
7740                 # configure's
7741                 # analysis of which target libs are present and usable
7742                 enable_languages=c
7743                 ;;
7744          *,all,*)
7745                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7746 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7747    { (exit 1); exit 1; }; }
7748                 ;;
7749         *,c,*)
7750                 ;;
7751         *)
7752                 enable_languages=c,${enable_languages}
7753                 ;;
7754 esac
7755 else
7756   enable_languages=c
7757 fi;
7758
7759 # Used by documentation targets
7760
7761
7762
7763
7764 # -------------------------
7765 # Checks for other programs
7766 # -------------------------
7767
7768 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7769 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7770 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7771 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   cat >conftest.make <<\_ACEOF
7775 all:
7776         @echo 'ac_maketemp="$(MAKE)"'
7777 _ACEOF
7778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7779 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7780 if test -n "$ac_maketemp"; then
7781   eval ac_cv_prog_make_${ac_make}_set=yes
7782 else
7783   eval ac_cv_prog_make_${ac_make}_set=no
7784 fi
7785 rm -f conftest.make
7786 fi
7787 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7788   echo "$as_me:$LINENO: result: yes" >&5
7789 echo "${ECHO_T}yes" >&6
7790   SET_MAKE=
7791 else
7792   echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6
7794   SET_MAKE="MAKE=${MAKE-make}"
7795 fi
7796
7797
7798 # Find some useful tools
7799 for ac_prog in gawk mawk nawk awk
7800 do
7801   # Extract the first word of "$ac_prog", so it can be a program name with args.
7802 set dummy $ac_prog; ac_word=$2
7803 echo "$as_me:$LINENO: checking for $ac_word" >&5
7804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7805 if test "${ac_cv_prog_AWK+set}" = set; then
7806   echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808   if test -n "$AWK"; then
7809   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814   IFS=$as_save_IFS
7815   test -z "$as_dir" && as_dir=.
7816   for ac_exec_ext in '' $ac_executable_extensions; do
7817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818     ac_cv_prog_AWK="$ac_prog"
7819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820     break 2
7821   fi
7822 done
7823 done
7824
7825 fi
7826 fi
7827 AWK=$ac_cv_prog_AWK
7828 if test -n "$AWK"; then
7829   echo "$as_me:$LINENO: result: $AWK" >&5
7830 echo "${ECHO_T}$AWK" >&6
7831 else
7832   echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6
7834 fi
7835
7836   test -n "$AWK" && break
7837 done
7838
7839 # We need awk to create options.c and options.h.
7840 # Bail out if it's missing.
7841 case ${AWK} in
7842   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7843 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7844    { (exit 1); exit 1; }; } ;;
7845 esac
7846
7847 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7848 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7849 if test "${gcc_cv_prog_LN_S+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   rm -f conftestdata_t
7853 echo >conftestdata_f
7854 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7855 then
7856   gcc_cv_prog_LN_S="ln -s"
7857 else
7858   if ln conftestdata_f conftestdata_t 2>/dev/null
7859   then
7860     gcc_cv_prog_LN_S=ln
7861   else
7862     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7863     then
7864       gcc_cv_prog_LN_S="cp -p"
7865     else
7866       gcc_cv_prog_LN_S=cp
7867     fi
7868   fi
7869 fi
7870 rm -f conftestdata_f conftestdata_t
7871
7872 fi
7873 LN_S="$gcc_cv_prog_LN_S"
7874 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7875   echo "$as_me:$LINENO: result: yes" >&5
7876 echo "${ECHO_T}yes" >&6
7877 else
7878   if test "$gcc_cv_prog_LN_S" = "ln"; then
7879     echo "$as_me:$LINENO: result: no, using ln" >&5
7880 echo "${ECHO_T}no, using ln" >&6
7881   else
7882     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7883 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7884   fi
7885 fi
7886
7887 echo "$as_me:$LINENO: checking whether ln works" >&5
7888 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7889 if test "${acx_cv_prog_LN+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   rm -f conftestdata_t
7893 echo >conftestdata_f
7894 if ln conftestdata_f conftestdata_t 2>/dev/null
7895 then
7896   acx_cv_prog_LN=ln
7897 else
7898   acx_cv_prog_LN=no
7899 fi
7900 rm -f conftestdata_f conftestdata_t
7901
7902 fi
7903 if test $acx_cv_prog_LN = no; then
7904   LN="$LN_S"
7905   echo "$as_me:$LINENO: result: no, using $LN" >&5
7906 echo "${ECHO_T}no, using $LN" >&6
7907 else
7908   LN="$acx_cv_prog_LN"
7909   echo "$as_me:$LINENO: result: yes" >&5
7910 echo "${ECHO_T}yes" >&6
7911 fi
7912
7913 if test -n "$ac_tool_prefix"; then
7914   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7916 echo "$as_me:$LINENO: checking for $ac_word" >&5
7917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7918 if test "${ac_cv_prog_RANLIB+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921   if test -n "$RANLIB"; then
7922   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927   IFS=$as_save_IFS
7928   test -z "$as_dir" && as_dir=.
7929   for ac_exec_ext in '' $ac_executable_extensions; do
7930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933     break 2
7934   fi
7935 done
7936 done
7937
7938 fi
7939 fi
7940 RANLIB=$ac_cv_prog_RANLIB
7941 if test -n "$RANLIB"; then
7942   echo "$as_me:$LINENO: result: $RANLIB" >&5
7943 echo "${ECHO_T}$RANLIB" >&6
7944 else
7945   echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6
7947 fi
7948
7949 fi
7950 if test -z "$ac_cv_prog_RANLIB"; then
7951   ac_ct_RANLIB=$RANLIB
7952   # Extract the first word of "ranlib", so it can be a program name with args.
7953 set dummy ranlib; ac_word=$2
7954 echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7956 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7957   echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959   if test -n "$ac_ct_RANLIB"; then
7960   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965   IFS=$as_save_IFS
7966   test -z "$as_dir" && as_dir=.
7967   for ac_exec_ext in '' $ac_executable_extensions; do
7968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969     ac_cv_prog_ac_ct_RANLIB="ranlib"
7970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971     break 2
7972   fi
7973 done
7974 done
7975
7976   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7977 fi
7978 fi
7979 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7980 if test -n "$ac_ct_RANLIB"; then
7981   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7982 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7983 else
7984   echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6
7986 fi
7987
7988   RANLIB=$ac_ct_RANLIB
7989 else
7990   RANLIB="$ac_cv_prog_RANLIB"
7991 fi
7992
7993 case "${host}" in
7994 *-*-darwin*)
7995   # By default, the Darwin ranlib will not treat common symbols as
7996   # definitions when  building the archive table of contents.  Other
7997   # ranlibs do that; pass an option to the Darwin ranlib that makes
7998   # it behave similarly.
7999   ranlib_flags="-c"
8000   ;;
8001 *)
8002   ranlib_flags=""
8003 esac
8004
8005
8006 # Find a good install program.  We prefer a C program (faster),
8007 # so one script is as good as another.  But avoid the broken or
8008 # incompatible versions:
8009 # SysV /etc/install, /usr/sbin/install
8010 # SunOS /usr/etc/install
8011 # IRIX /sbin/install
8012 # AIX /bin/install
8013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8015 # ./install, which can be erroneously created by make from ./install.sh.
8016 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8017 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8018 if test -z "$INSTALL"; then
8019 if test "${ac_cv_path_install+set}" = set; then
8020   echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8023   for ac_dir in $PATH; do
8024     # Account for people who put trailing slashes in PATH elements.
8025     case "$ac_dir/" in
8026     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8027     *)
8028       # OSF1 and SCO ODT 3.0 have their own names for install.
8029       for ac_prog in ginstall scoinst install; do
8030         if test -f $ac_dir/$ac_prog; then
8031           if test $ac_prog = install &&
8032             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8033             # AIX install.  It has an incompatible calling convention.
8034             # OSF/1 installbsd also uses dspmsg, but is usable.
8035             :
8036           else
8037             ac_cv_path_install="$ac_dir/$ac_prog -c"
8038             break 2
8039           fi
8040         fi
8041       done
8042       ;;
8043     esac
8044   done
8045   IFS="$ac_save_IFS"
8046
8047 fi
8048   if test "${ac_cv_path_install+set}" = set; then
8049     INSTALL="$ac_cv_path_install"
8050   else
8051     # As a last resort, use the slow shell script.  We don't cache a
8052     # path for INSTALL within a source directory, because that will
8053     # break other packages using the cache if that directory is
8054     # removed, or if the path is relative.
8055     INSTALL="$ac_install_sh"
8056   fi
8057 fi
8058 echo "$as_me:$LINENO: result: $INSTALL" >&5
8059 echo "${ECHO_T}$INSTALL" >&6
8060
8061 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8062 # It thinks the first close brace ends the variable substitution.
8063 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8064
8065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8066
8067
8068 # See if cmp has --ignore-initial.
8069 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8070 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8071 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8072   echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074    echo abfoo >t1
8075   echo cdfoo >t2
8076   gcc_cv_prog_cmp_skip=slowcompare
8077   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8078     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8079       :
8080     else
8081       gcc_cv_prog_cmp_skip=gnucompare
8082     fi
8083   fi
8084   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8085     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8086       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8087         :
8088       else
8089         gcc_cv_prog_cmp_skip=fastcompare
8090       fi
8091     fi
8092   fi
8093   rm t1 t2
8094
8095 fi
8096 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8097 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8098 make_compare_target=$gcc_cv_prog_cmp_skip
8099
8100
8101
8102 # See if we have the mktemp command.
8103 # Extract the first word of "mktemp", so it can be a program name with args.
8104 set dummy mktemp; ac_word=$2
8105 echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8107 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8108   echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110   if test -n "$have_mktemp_command"; then
8111   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8115 do
8116   IFS=$as_save_IFS
8117   test -z "$as_dir" && as_dir=.
8118   for ac_exec_ext in '' $ac_executable_extensions; do
8119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120     ac_cv_prog_have_mktemp_command="yes"
8121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122     break 2
8123   fi
8124 done
8125 done
8126
8127   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8128 fi
8129 fi
8130 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8131 if test -n "$have_mktemp_command"; then
8132   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8133 echo "${ECHO_T}$have_mktemp_command" >&6
8134 else
8135   echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8137 fi
8138
8139
8140 # See if makeinfo has been installed and is modern enough
8141 # that we can use it.
8142
8143   # Extract the first word of "makeinfo", so it can be a program name with args.
8144 set dummy makeinfo; ac_word=$2
8145 echo "$as_me:$LINENO: checking for $ac_word" >&5
8146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8147 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8148   echo $ECHO_N "(cached) $ECHO_C" >&6
8149 else
8150   if test -n "$MAKEINFO"; then
8151   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8152 else
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8155 do
8156   IFS=$as_save_IFS
8157   test -z "$as_dir" && as_dir=.
8158   for ac_exec_ext in '' $ac_executable_extensions; do
8159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160     ac_cv_prog_MAKEINFO="makeinfo"
8161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8162     break 2
8163   fi
8164 done
8165 done
8166
8167 fi
8168 fi
8169 MAKEINFO=$ac_cv_prog_MAKEINFO
8170 if test -n "$MAKEINFO"; then
8171   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8172 echo "${ECHO_T}$MAKEINFO" >&6
8173 else
8174   echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6
8176 fi
8177
8178   if test -n "$MAKEINFO"; then
8179     # Found it, now check the version.
8180     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8181 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8182 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8183   echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8186                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8187
8188                     case $ac_prog_version in
8189                       '')  gcc_cv_prog_makeinfo_modern=no;;
8190                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8191                       *)   gcc_cv_prog_makeinfo_modern=no;;
8192                     esac
8193
8194 fi
8195 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8196 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8197   else
8198     gcc_cv_prog_makeinfo_modern=no
8199   fi
8200   if test $gcc_cv_prog_makeinfo_modern = no; then
8201     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8202   fi
8203
8204 if test $gcc_cv_prog_makeinfo_modern = no; then
8205   { echo "$as_me:$LINENO: WARNING:
8206 *** Makeinfo is missing or too old.
8207 *** Info documentation will not be built." >&5
8208 echo "$as_me: WARNING:
8209 *** Makeinfo is missing or too old.
8210 *** Info documentation will not be built." >&2;}
8211   BUILD_INFO=
8212 else
8213   BUILD_INFO=info
8214 fi
8215
8216
8217 # Is pod2man recent enough to regenerate manpages?
8218 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8219 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8220 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8221   echo "$as_me:$LINENO: result: yes" >&5
8222 echo "${ECHO_T}yes" >&6
8223   GENERATED_MANPAGES=generated-manpages
8224 else
8225   echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8227   GENERATED_MANPAGES=
8228 fi
8229
8230
8231 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8232
8233 # How about lex?
8234 for ac_prog in flex
8235 do
8236   # Extract the first word of "$ac_prog", so it can be a program name with args.
8237 set dummy $ac_prog; ac_word=$2
8238 echo "$as_me:$LINENO: checking for $ac_word" >&5
8239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8240 if test "${ac_cv_prog_FLEX+set}" = set; then
8241   echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243   if test -n "$FLEX"; then
8244   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8248 do
8249   IFS=$as_save_IFS
8250   test -z "$as_dir" && as_dir=.
8251   for ac_exec_ext in '' $ac_executable_extensions; do
8252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253     ac_cv_prog_FLEX="$ac_prog"
8254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255     break 2
8256   fi
8257 done
8258 done
8259
8260 fi
8261 fi
8262 FLEX=$ac_cv_prog_FLEX
8263 if test -n "$FLEX"; then
8264   echo "$as_me:$LINENO: result: $FLEX" >&5
8265 echo "${ECHO_T}$FLEX" >&6
8266 else
8267   echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6
8269 fi
8270
8271   test -n "$FLEX" && break
8272 done
8273 test -n "$FLEX" || FLEX="$MISSING flex"
8274
8275
8276 # Bison?
8277 for ac_prog in bison
8278 do
8279   # Extract the first word of "$ac_prog", so it can be a program name with args.
8280 set dummy $ac_prog; ac_word=$2
8281 echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283 if test "${ac_cv_prog_BISON+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   if test -n "$BISON"; then
8287   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8288 else
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8291 do
8292   IFS=$as_save_IFS
8293   test -z "$as_dir" && as_dir=.
8294   for ac_exec_ext in '' $ac_executable_extensions; do
8295   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296     ac_cv_prog_BISON="$ac_prog"
8297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298     break 2
8299   fi
8300 done
8301 done
8302
8303 fi
8304 fi
8305 BISON=$ac_cv_prog_BISON
8306 if test -n "$BISON"; then
8307   echo "$as_me:$LINENO: result: $BISON" >&5
8308 echo "${ECHO_T}$BISON" >&6
8309 else
8310   echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8312 fi
8313
8314   test -n "$BISON" && break
8315 done
8316 test -n "$BISON" || BISON="$MISSING bison"
8317
8318
8319 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8320 # check for build == host before using them.
8321
8322 # NM
8323 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8324   && test -d ../binutils ; then
8325   NM='$(objdir)/../binutils/nm-new'
8326 else
8327   # Extract the first word of "nm", so it can be a program name with args.
8328 set dummy nm; ac_word=$2
8329 echo "$as_me:$LINENO: checking for $ac_word" >&5
8330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8331 if test "${ac_cv_prog_NM+set}" = set; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334   if test -n "$NM"; then
8335   ac_cv_prog_NM="$NM" # Let the user override the test.
8336 else
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8339 do
8340   IFS=$as_save_IFS
8341   test -z "$as_dir" && as_dir=.
8342   for ac_exec_ext in '' $ac_executable_extensions; do
8343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8344     ac_cv_prog_NM="nm"
8345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8346     break 2
8347   fi
8348 done
8349 done
8350
8351   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8352 fi
8353 fi
8354 NM=$ac_cv_prog_NM
8355 if test -n "$NM"; then
8356   echo "$as_me:$LINENO: result: $NM" >&5
8357 echo "${ECHO_T}$NM" >&6
8358 else
8359   echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6
8361 fi
8362
8363 fi
8364
8365 # AR
8366 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8367   && test -d ../binutils ; then
8368   AR='$(objdir)/../binutils/ar'
8369 else
8370   # Extract the first word of "ar", so it can be a program name with args.
8371 set dummy ar; ac_word=$2
8372 echo "$as_me:$LINENO: checking for $ac_word" >&5
8373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8374 if test "${ac_cv_prog_AR+set}" = set; then
8375   echo $ECHO_N "(cached) $ECHO_C" >&6
8376 else
8377   if test -n "$AR"; then
8378   ac_cv_prog_AR="$AR" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8382 do
8383   IFS=$as_save_IFS
8384   test -z "$as_dir" && as_dir=.
8385   for ac_exec_ext in '' $ac_executable_extensions; do
8386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8387     ac_cv_prog_AR="ar"
8388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8389     break 2
8390   fi
8391 done
8392 done
8393
8394   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8395 fi
8396 fi
8397 AR=$ac_cv_prog_AR
8398 if test -n "$AR"; then
8399   echo "$as_me:$LINENO: result: $AR" >&5
8400 echo "${ECHO_T}$AR" >&6
8401 else
8402   echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6
8404 fi
8405
8406 fi
8407
8408
8409 # --------------------
8410 # Checks for C headers
8411 # --------------------
8412
8413 # Need to reject headers which give warnings, so that the -Werror bootstrap
8414 # works later. *sigh*  This needs to come before all header checks.
8415
8416 ac_c_preproc_warn_flag=yes
8417
8418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8420 if test "${ac_cv_header_stdc+set}" = set; then
8421   echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423   cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429 #include <stdlib.h>
8430 #include <stdarg.h>
8431 #include <string.h>
8432 #include <float.h>
8433
8434 int
8435 main ()
8436 {
8437
8438   ;
8439   return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444   (eval $ac_compile) 2>conftest.er1
8445   ac_status=$?
8446   grep -v '^ *+' conftest.er1 >conftest.err
8447   rm -f conftest.er1
8448   cat conftest.err >&5
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } &&
8451          { ac_try='test -z "$ac_c_werror_flag"
8452                          || test ! -s conftest.err'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; } &&
8458          { ac_try='test -s conftest.$ac_objext'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; }; then
8464   ac_cv_header_stdc=yes
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_cv_header_stdc=no
8470 fi
8471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8472
8473 if test $ac_cv_header_stdc = yes; then
8474   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8475   cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481 #include <string.h>
8482
8483 _ACEOF
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485   $EGREP "memchr" >/dev/null 2>&1; then
8486   :
8487 else
8488   ac_cv_header_stdc=no
8489 fi
8490 rm -f conftest*
8491
8492 fi
8493
8494 if test $ac_cv_header_stdc = yes; then
8495   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8496   cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502 #include <stdlib.h>
8503
8504 _ACEOF
8505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8506   $EGREP "free" >/dev/null 2>&1; then
8507   :
8508 else
8509   ac_cv_header_stdc=no
8510 fi
8511 rm -f conftest*
8512
8513 fi
8514
8515 if test $ac_cv_header_stdc = yes; then
8516   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8517   if test "$cross_compiling" = yes; then
8518   :
8519 else
8520   cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h.  */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h.  */
8526 #include <ctype.h>
8527 #if ((' ' & 0x0FF) == 0x020)
8528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8530 #else
8531 # define ISLOWER(c) \
8532                    (('a' <= (c) && (c) <= 'i') \
8533                      || ('j' <= (c) && (c) <= 'r') \
8534                      || ('s' <= (c) && (c) <= 'z'))
8535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8536 #endif
8537
8538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8539 int
8540 main ()
8541 {
8542   int i;
8543   for (i = 0; i < 256; i++)
8544     if (XOR (islower (i), ISLOWER (i))
8545         || toupper (i) != TOUPPER (i))
8546       exit(2);
8547   exit (0);
8548 }
8549 _ACEOF
8550 rm -f conftest$ac_exeext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552   (eval $ac_link) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   :
8562 else
8563   echo "$as_me: program exited with status $ac_status" >&5
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 ( exit $ac_status )
8568 ac_cv_header_stdc=no
8569 fi
8570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8571 fi
8572 fi
8573 fi
8574 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8575 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8576 if test $ac_cv_header_stdc = yes; then
8577
8578 cat >>confdefs.h <<\_ACEOF
8579 #define STDC_HEADERS 1
8580 _ACEOF
8581
8582 fi
8583
8584 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8585 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8586 if test "${ac_cv_header_time+set}" = set; then
8587   echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589   cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h.  */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h.  */
8595 #include <sys/types.h>
8596 #include <sys/time.h>
8597 #include <time.h>
8598
8599 int
8600 main ()
8601 {
8602 if ((struct tm *) 0)
8603 return 0;
8604   ;
8605   return 0;
8606 }
8607 _ACEOF
8608 rm -f conftest.$ac_objext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610   (eval $ac_compile) 2>conftest.er1
8611   ac_status=$?
8612   grep -v '^ *+' conftest.er1 >conftest.err
8613   rm -f conftest.er1
8614   cat conftest.err >&5
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); } &&
8617          { ac_try='test -z "$ac_c_werror_flag"
8618                          || test ! -s conftest.err'
8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620   (eval $ac_try) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; } &&
8624          { ac_try='test -s conftest.$ac_objext'
8625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626   (eval $ac_try) 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; }; then
8630   ac_cv_header_time=yes
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635 ac_cv_header_time=no
8636 fi
8637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8638 fi
8639 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8640 echo "${ECHO_T}$ac_cv_header_time" >&6
8641 if test $ac_cv_header_time = yes; then
8642
8643 cat >>confdefs.h <<\_ACEOF
8644 #define TIME_WITH_SYS_TIME 1
8645 _ACEOF
8646
8647 fi
8648
8649 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8650 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8651 if test "${gcc_cv_header_string+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h.  */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h.  */
8660 #include <string.h>
8661 #include <strings.h>
8662 int
8663 main ()
8664 {
8665
8666   ;
8667   return 0;
8668 }
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8672   (eval $ac_compile) 2>conftest.er1
8673   ac_status=$?
8674   grep -v '^ *+' conftest.er1 >conftest.err
8675   rm -f conftest.er1
8676   cat conftest.err >&5
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); } &&
8679          { ac_try='test -z "$ac_c_werror_flag"
8680                          || test ! -s conftest.err'
8681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682   (eval $ac_try) 2>&5
8683   ac_status=$?
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); }; } &&
8686          { ac_try='test -s conftest.$ac_objext'
8687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688   (eval $ac_try) 2>&5
8689   ac_status=$?
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); }; }; then
8692   gcc_cv_header_string=yes
8693 else
8694   echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8696
8697 gcc_cv_header_string=no
8698 fi
8699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8700 fi
8701 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8702 echo "${ECHO_T}$gcc_cv_header_string" >&6
8703 if test $gcc_cv_header_string = yes; then
8704
8705 cat >>confdefs.h <<\_ACEOF
8706 #define STRING_WITH_STRINGS 1
8707 _ACEOF
8708
8709 fi
8710
8711 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8712 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8713 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716   cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h.  */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h.  */
8722 #include <sys/types.h>
8723 #include <sys/wait.h>
8724 #ifndef WEXITSTATUS
8725 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8726 #endif
8727 #ifndef WIFEXITED
8728 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8729 #endif
8730
8731 int
8732 main ()
8733 {
8734   int s;
8735   wait (&s);
8736   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8737   ;
8738   return 0;
8739 }
8740 _ACEOF
8741 rm -f conftest.$ac_objext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743   (eval $ac_compile) 2>conftest.er1
8744   ac_status=$?
8745   grep -v '^ *+' conftest.er1 >conftest.err
8746   rm -f conftest.er1
8747   cat conftest.err >&5
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); } &&
8750          { ac_try='test -z "$ac_c_werror_flag"
8751                          || test ! -s conftest.err'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; } &&
8757          { ac_try='test -s conftest.$ac_objext'
8758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759   (eval $ac_try) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; }; then
8763   ac_cv_header_sys_wait_h=yes
8764 else
8765   echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 ac_cv_header_sys_wait_h=no
8769 fi
8770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8773 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8774 if test $ac_cv_header_sys_wait_h = yes; then
8775
8776 cat >>confdefs.h <<\_ACEOF
8777 #define HAVE_SYS_WAIT_H 1
8778 _ACEOF
8779
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8805                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8806                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8807                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8808 do
8809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8810 echo "$as_me:$LINENO: checking for $ac_header" >&5
8811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8813   echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815   cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h.  */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h.  */
8821 #include <$ac_header>
8822 _ACEOF
8823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8825   ac_status=$?
8826   grep -v '^ *+' conftest.er1 >conftest.err
8827   rm -f conftest.er1
8828   cat conftest.err >&5
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } >/dev/null; then
8831   if test -s conftest.err; then
8832     ac_cpp_err=$ac_c_preproc_warn_flag
8833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8834   else
8835     ac_cpp_err=
8836   fi
8837 else
8838   ac_cpp_err=yes
8839 fi
8840 if test -z "$ac_cpp_err"; then
8841   eval "$as_ac_Header=yes"
8842 else
8843   echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846   eval "$as_ac_Header=no"
8847 fi
8848 rm -f conftest.err conftest.$ac_ext
8849 fi
8850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8853   cat >>confdefs.h <<_ACEOF
8854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8855 _ACEOF
8856
8857 fi
8858 done
8859
8860
8861 # Check for thread headers.
8862 echo "$as_me:$LINENO: checking for thread.h" >&5
8863 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8864 if test "${ac_cv_header_thread_h+set}" = set; then
8865   echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867   cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873 #include <thread.h>
8874 _ACEOF
8875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8877   ac_status=$?
8878   grep -v '^ *+' conftest.er1 >conftest.err
8879   rm -f conftest.er1
8880   cat conftest.err >&5
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); } >/dev/null; then
8883   if test -s conftest.err; then
8884     ac_cpp_err=$ac_c_preproc_warn_flag
8885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8886   else
8887     ac_cpp_err=
8888   fi
8889 else
8890   ac_cpp_err=yes
8891 fi
8892 if test -z "$ac_cpp_err"; then
8893   ac_cv_header_thread_h=yes
8894 else
8895   echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898   ac_cv_header_thread_h=no
8899 fi
8900 rm -f conftest.err conftest.$ac_ext
8901 fi
8902 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8903 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8904 if test $ac_cv_header_thread_h = yes; then
8905   have_thread_h=yes
8906 else
8907   have_thread_h=
8908 fi
8909
8910 echo "$as_me:$LINENO: checking for pthread.h" >&5
8911 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8912 if test "${ac_cv_header_pthread_h+set}" = set; then
8913   echo $ECHO_N "(cached) $ECHO_C" >&6
8914 else
8915   cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h.  */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h.  */
8921 #include <pthread.h>
8922 _ACEOF
8923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8925   ac_status=$?
8926   grep -v '^ *+' conftest.er1 >conftest.err
8927   rm -f conftest.er1
8928   cat conftest.err >&5
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } >/dev/null; then
8931   if test -s conftest.err; then
8932     ac_cpp_err=$ac_c_preproc_warn_flag
8933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8934   else
8935     ac_cpp_err=
8936   fi
8937 else
8938   ac_cpp_err=yes
8939 fi
8940 if test -z "$ac_cpp_err"; then
8941   ac_cv_header_pthread_h=yes
8942 else
8943   echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946   ac_cv_header_pthread_h=no
8947 fi
8948 rm -f conftest.err conftest.$ac_ext
8949 fi
8950 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8951 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8952 if test $ac_cv_header_pthread_h = yes; then
8953   have_pthread_h=yes
8954 else
8955   have_pthread_h=
8956 fi
8957
8958
8959 # These tests can't be done till we know if we have limits.h.
8960 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8961 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8962 if test "${gcc_cv_decl_char_bit+set}" = set; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965   cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h.  */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h.  */
8971 #ifdef HAVE_LIMITS_H
8972 #include <limits.h>
8973 #endif
8974 #ifdef CHAR_BIT
8975 found
8976 #endif
8977 _ACEOF
8978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8979   $EGREP "found" >/dev/null 2>&1; then
8980   gcc_cv_decl_char_bit=yes
8981 else
8982   gcc_cv_decl_char_bit=no
8983 fi
8984 rm -f conftest*
8985
8986
8987 fi
8988 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8989 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8990 if test $gcc_cv_decl_char_bit = no; then
8991   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8992 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8993 if test "${gcc_cv_c_nbby+set}" = set; then
8994   echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996   i=8
8997  gcc_cv_c_nbby=
8998  while test $i -lt 65; do
8999    cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h.  */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h.  */
9005
9006 int
9007 main ()
9008 {
9009 switch(0) {
9010   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9011   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9012   ; }
9013   ;
9014   return 0;
9015 }
9016 _ACEOF
9017 rm -f conftest.$ac_objext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019   (eval $ac_compile) 2>conftest.er1
9020   ac_status=$?
9021   grep -v '^ *+' conftest.er1 >conftest.err
9022   rm -f conftest.er1
9023   cat conftest.err >&5
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); } &&
9026          { ac_try='test -z "$ac_c_werror_flag"
9027                          || test ! -s conftest.err'
9028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029   (eval $ac_try) 2>&5
9030   ac_status=$?
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); }; } &&
9033          { ac_try='test -s conftest.$ac_objext'
9034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035   (eval $ac_try) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; }; then
9039   gcc_cv_c_nbby=$i; break
9040 else
9041   echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044 fi
9045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9046    i=`expr $i + 1`
9047  done
9048  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9049
9050 fi
9051 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9052 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9053 if test $gcc_cv_c_nbby = failed; then
9054   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9055 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9056    { (exit 1); exit 1; }; }
9057 else
9058
9059 cat >>confdefs.h <<_ACEOF
9060 #define CHAR_BIT $gcc_cv_c_nbby
9061 _ACEOF
9062
9063 fi
9064 fi
9065 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9066 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9067 if test "${ac_cv_c_bigendian+set}" = set; then
9068   echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070   # See if sys/param.h defines the BYTE_ORDER macro.
9071 cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h.  */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h.  */
9077 #include <sys/types.h>
9078 #include <sys/param.h>
9079
9080 int
9081 main ()
9082 {
9083 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9084  bogus endian macros
9085 #endif
9086
9087   ;
9088   return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093   (eval $ac_compile) 2>conftest.er1
9094   ac_status=$?
9095   grep -v '^ *+' conftest.er1 >conftest.err
9096   rm -f conftest.er1
9097   cat conftest.err >&5
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); } &&
9100          { ac_try='test -z "$ac_c_werror_flag"
9101                          || test ! -s conftest.err'
9102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103   (eval $ac_try) 2>&5
9104   ac_status=$?
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); }; } &&
9107          { ac_try='test -s conftest.$ac_objext'
9108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109   (eval $ac_try) 2>&5
9110   ac_status=$?
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); }; }; then
9113   # It does; now see whether it defined to BIG_ENDIAN or not.
9114 cat >conftest.$ac_ext <<_ACEOF
9115 /* confdefs.h.  */
9116 _ACEOF
9117 cat confdefs.h >>conftest.$ac_ext
9118 cat >>conftest.$ac_ext <<_ACEOF
9119 /* end confdefs.h.  */
9120 #include <sys/types.h>
9121 #include <sys/param.h>
9122
9123 int
9124 main ()
9125 {
9126 #if BYTE_ORDER != BIG_ENDIAN
9127  not big endian
9128 #endif
9129
9130   ;
9131   return 0;
9132 }
9133 _ACEOF
9134 rm -f conftest.$ac_objext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136   (eval $ac_compile) 2>conftest.er1
9137   ac_status=$?
9138   grep -v '^ *+' conftest.er1 >conftest.err
9139   rm -f conftest.er1
9140   cat conftest.err >&5
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } &&
9143          { ac_try='test -z "$ac_c_werror_flag"
9144                          || test ! -s conftest.err'
9145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146   (eval $ac_try) 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); }; } &&
9150          { ac_try='test -s conftest.$ac_objext'
9151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152   (eval $ac_try) 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; }; then
9156   ac_cv_c_bigendian=yes
9157 else
9158   echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9160
9161 ac_cv_c_bigendian=no
9162 fi
9163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9164 else
9165   echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9167
9168 # It does not; compile a test program.
9169 if test "$cross_compiling" = yes; then
9170   # try to guess the endianness by grepping values into an object file
9171   ac_cv_c_bigendian=unknown
9172   cat >conftest.$ac_ext <<_ACEOF
9173 /* confdefs.h.  */
9174 _ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h.  */
9178 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9179 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9180 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9181 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9182 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9183 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9184 int
9185 main ()
9186 {
9187  _ascii (); _ebcdic ();
9188   ;
9189   return 0;
9190 }
9191 _ACEOF
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194   (eval $ac_compile) 2>conftest.er1
9195   ac_status=$?
9196   grep -v '^ *+' conftest.er1 >conftest.err
9197   rm -f conftest.er1
9198   cat conftest.err >&5
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); } &&
9201          { ac_try='test -z "$ac_c_werror_flag"
9202                          || test ! -s conftest.err'
9203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204   (eval $ac_try) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); }; } &&
9208          { ac_try='test -s conftest.$ac_objext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9215   ac_cv_c_bigendian=yes
9216 fi
9217 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9218   if test "$ac_cv_c_bigendian" = unknown; then
9219     ac_cv_c_bigendian=no
9220   else
9221     # finding both strings is unlikely to happen, but who knows?
9222     ac_cv_c_bigendian=unknown
9223   fi
9224 fi
9225 else
9226   echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9228
9229 fi
9230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231 else
9232   cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h.  */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h.  */
9238 int
9239 main ()
9240 {
9241   /* Are we little or big endian?  From Harbison&Steele.  */
9242   union
9243   {
9244     long l;
9245     char c[sizeof (long)];
9246   } u;
9247   u.l = 1;
9248   exit (u.c[sizeof (long) - 1] == 1);
9249 }
9250 _ACEOF
9251 rm -f conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253   (eval $ac_link) 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258   (eval $ac_try) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; }; then
9262   ac_cv_c_bigendian=no
9263 else
9264   echo "$as_me: program exited with status $ac_status" >&5
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9267
9268 ( exit $ac_status )
9269 ac_cv_c_bigendian=yes
9270 fi
9271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9272 fi
9273 fi
9274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9275 fi
9276 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9277 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9278 case $ac_cv_c_bigendian in
9279   yes)
9280
9281 cat >>confdefs.h <<\_ACEOF
9282 #define WORDS_BIGENDIAN 1
9283 _ACEOF
9284  ;;
9285   no)
9286      ;;
9287   *)
9288     { { echo "$as_me:$LINENO: error: unknown endianness
9289 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9290 echo "$as_me: error: unknown endianness
9291 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9292    { (exit 1); exit 1; }; } ;;
9293 esac
9294
9295
9296 # --------
9297 # UNSORTED
9298 # --------
9299
9300
9301 # These libraries may be used by collect2.
9302 # We may need a special search path to get them linked.
9303 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9304 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9305 if test "${gcc_cv_collect2_libs+set}" = set; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308   save_LIBS="$LIBS"
9309 for libs in '' -lld -lmld \
9310                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9311                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9312 do
9313         LIBS="$libs"
9314         cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h.  */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h.  */
9320
9321 /* Override any gcc2 internal prototype to avoid an error.  */
9322 #ifdef __cplusplus
9323 extern "C"
9324 #endif
9325 /* We use char because int might match the return type of a gcc2
9326    builtin and then its argument prototype would still apply.  */
9327 char ldopen ();
9328 int
9329 main ()
9330 {
9331 ldopen ();
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338   (eval $ac_link) 2>conftest.er1
9339   ac_status=$?
9340   grep -v '^ *+' conftest.er1 >conftest.err
9341   rm -f conftest.er1
9342   cat conftest.err >&5
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } &&
9345          { ac_try='test -z "$ac_c_werror_flag"
9346                          || test ! -s conftest.err'
9347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348   (eval $ac_try) 2>&5
9349   ac_status=$?
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); }; } &&
9352          { ac_try='test -s conftest$ac_exeext'
9353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354   (eval $ac_try) 2>&5
9355   ac_status=$?
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); }; }; then
9358   gcc_cv_collect2_libs="$libs"; break
9359 else
9360   echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362
9363 fi
9364 rm -f conftest.err conftest.$ac_objext \
9365       conftest$ac_exeext conftest.$ac_ext
9366 done
9367 LIBS="$save_LIBS"
9368 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9369 fi
9370 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9371 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9372 case $gcc_cv_collect2_libs in
9373         "none required")        ;;
9374         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9375 esac
9376
9377
9378 # When building Ada code on Alpha, we need exc_resume which is usually in
9379 # -lexc.  So test for it.
9380 save_LIBS="$LIBS"
9381 LIBS=
9382 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9383 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9384 if test "${ac_cv_search_exc_resume+set}" = set; then
9385   echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387   ac_func_search_save_LIBS=$LIBS
9388 ac_cv_search_exc_resume=no
9389 cat >conftest.$ac_ext <<_ACEOF
9390 /* confdefs.h.  */
9391 _ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h.  */
9395
9396 /* Override any gcc2 internal prototype to avoid an error.  */
9397 #ifdef __cplusplus
9398 extern "C"
9399 #endif
9400 /* We use char because int might match the return type of a gcc2
9401    builtin and then its argument prototype would still apply.  */
9402 char exc_resume ();
9403 int
9404 main ()
9405 {
9406 exc_resume ();
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413   (eval $ac_link) 2>conftest.er1
9414   ac_status=$?
9415   grep -v '^ *+' conftest.er1 >conftest.err
9416   rm -f conftest.er1
9417   cat conftest.err >&5
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } &&
9420          { ac_try='test -z "$ac_c_werror_flag"
9421                          || test ! -s conftest.err'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; } &&
9427          { ac_try='test -s conftest$ac_exeext'
9428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429   (eval $ac_try) 2>&5
9430   ac_status=$?
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); }; }; then
9433   ac_cv_search_exc_resume="none required"
9434 else
9435   echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9437
9438 fi
9439 rm -f conftest.err conftest.$ac_objext \
9440       conftest$ac_exeext conftest.$ac_ext
9441 if test "$ac_cv_search_exc_resume" = no; then
9442   for ac_lib in exc; do
9443     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9444     cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450
9451 /* Override any gcc2 internal prototype to avoid an error.  */
9452 #ifdef __cplusplus
9453 extern "C"
9454 #endif
9455 /* We use char because int might match the return type of a gcc2
9456    builtin and then its argument prototype would still apply.  */
9457 char exc_resume ();
9458 int
9459 main ()
9460 {
9461 exc_resume ();
9462   ;
9463   return 0;
9464 }
9465 _ACEOF
9466 rm -f conftest.$ac_objext conftest$ac_exeext
9467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9468   (eval $ac_link) 2>conftest.er1
9469   ac_status=$?
9470   grep -v '^ *+' conftest.er1 >conftest.err
9471   rm -f conftest.er1
9472   cat conftest.err >&5
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); } &&
9475          { ac_try='test -z "$ac_c_werror_flag"
9476                          || test ! -s conftest.err'
9477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478   (eval $ac_try) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; } &&
9482          { ac_try='test -s conftest$ac_exeext'
9483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484   (eval $ac_try) 2>&5
9485   ac_status=$?
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); }; }; then
9488   ac_cv_search_exc_resume="-l$ac_lib"
9489 break
9490 else
9491   echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494 fi
9495 rm -f conftest.err conftest.$ac_objext \
9496       conftest$ac_exeext conftest.$ac_ext
9497   done
9498 fi
9499 LIBS=$ac_func_search_save_LIBS
9500 fi
9501 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9502 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9503 if test "$ac_cv_search_exc_resume" != no; then
9504   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9505
9506 fi
9507
9508 GNAT_LIBEXC="$LIBS"
9509 LIBS="$save_LIBS"
9510
9511
9512 # Some systems put ldexp and frexp in libm instead of libc; assume
9513 # they're both in the same place.  jcf-dump needs them.
9514 save_LIBS="$LIBS"
9515 LIBS=
9516 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9517 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9518 if test "${ac_cv_search_ldexp+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   ac_func_search_save_LIBS=$LIBS
9522 ac_cv_search_ldexp=no
9523 cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h.  */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h.  */
9529
9530 /* Override any gcc2 internal prototype to avoid an error.  */
9531 #ifdef __cplusplus
9532 extern "C"
9533 #endif
9534 /* We use char because int might match the return type of a gcc2
9535    builtin and then its argument prototype would still apply.  */
9536 char ldexp ();
9537 int
9538 main ()
9539 {
9540 ldexp ();
9541   ;
9542   return 0;
9543 }
9544 _ACEOF
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547   (eval $ac_link) 2>conftest.er1
9548   ac_status=$?
9549   grep -v '^ *+' conftest.er1 >conftest.err
9550   rm -f conftest.er1
9551   cat conftest.err >&5
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); } &&
9554          { ac_try='test -z "$ac_c_werror_flag"
9555                          || test ! -s conftest.err'
9556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557   (eval $ac_try) 2>&5
9558   ac_status=$?
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); }; } &&
9561          { ac_try='test -s conftest$ac_exeext'
9562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563   (eval $ac_try) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); }; }; then
9567   ac_cv_search_ldexp="none required"
9568 else
9569   echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572 fi
9573 rm -f conftest.err conftest.$ac_objext \
9574       conftest$ac_exeext conftest.$ac_ext
9575 if test "$ac_cv_search_ldexp" = no; then
9576   for ac_lib in m; do
9577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9578     cat >conftest.$ac_ext <<_ACEOF
9579 /* confdefs.h.  */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h.  */
9584
9585 /* Override any gcc2 internal prototype to avoid an error.  */
9586 #ifdef __cplusplus
9587 extern "C"
9588 #endif
9589 /* We use char because int might match the return type of a gcc2
9590    builtin and then its argument prototype would still apply.  */
9591 char ldexp ();
9592 int
9593 main ()
9594 {
9595 ldexp ();
9596   ;
9597   return 0;
9598 }
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602   (eval $ac_link) 2>conftest.er1
9603   ac_status=$?
9604   grep -v '^ *+' conftest.er1 >conftest.err
9605   rm -f conftest.er1
9606   cat conftest.err >&5
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); } &&
9609          { ac_try='test -z "$ac_c_werror_flag"
9610                          || test ! -s conftest.err'
9611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612   (eval $ac_try) 2>&5
9613   ac_status=$?
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); }; } &&
9616          { ac_try='test -s conftest$ac_exeext'
9617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618   (eval $ac_try) 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }; }; then
9622   ac_cv_search_ldexp="-l$ac_lib"
9623 break
9624 else
9625   echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9627
9628 fi
9629 rm -f conftest.err conftest.$ac_objext \
9630       conftest$ac_exeext conftest.$ac_ext
9631   done
9632 fi
9633 LIBS=$ac_func_search_save_LIBS
9634 fi
9635 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9636 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9637 if test "$ac_cv_search_ldexp" != no; then
9638   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9639
9640 fi
9641
9642 LDEXP_LIB="$LIBS"
9643 LIBS="$save_LIBS"
9644
9645
9646 # Use <inttypes.h> only if it exists,
9647 # doesn't clash with <sys/types.h>, and declares intmax_t.
9648 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9649 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9650 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h.  */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h.  */
9659 #include <sys/types.h>
9660 #include <inttypes.h>
9661 int
9662 main ()
9663 {
9664 intmax_t i = -1;
9665   ;
9666   return 0;
9667 }
9668 _ACEOF
9669 rm -f conftest.$ac_objext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671   (eval $ac_compile) 2>conftest.er1
9672   ac_status=$?
9673   grep -v '^ *+' conftest.er1 >conftest.err
9674   rm -f conftest.er1
9675   cat conftest.err >&5
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); } &&
9678          { ac_try='test -z "$ac_c_werror_flag"
9679                          || test ! -s conftest.err'
9680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681   (eval $ac_try) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); }; } &&
9685          { ac_try='test -s conftest.$ac_objext'
9686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687   (eval $ac_try) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; }; then
9691   gcc_cv_header_inttypes_h=yes
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 gcc_cv_header_inttypes_h=no
9697 fi
9698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9699 fi
9700
9701 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9702 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9703 if test $gcc_cv_header_inttypes_h = yes; then
9704
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_INTTYPES_H 1
9707 _ACEOF
9708
9709 fi
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9749         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9750         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9751         clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
9752 do
9753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9754 echo "$as_me:$LINENO: checking for $ac_func" >&5
9755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9756 if eval "test \"\${$as_ac_var+set}\" = set"; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h.  */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h.  */
9765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9767 #define $ac_func innocuous_$ac_func
9768
9769 /* System header to define __stub macros and hopefully few prototypes,
9770     which can conflict with char $ac_func (); below.
9771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9772     <limits.h> exists even on freestanding compilers.  */
9773
9774 #ifdef __STDC__
9775 # include <limits.h>
9776 #else
9777 # include <assert.h>
9778 #endif
9779
9780 #undef $ac_func
9781
9782 /* Override any gcc2 internal prototype to avoid an error.  */
9783 #ifdef __cplusplus
9784 extern "C"
9785 {
9786 #endif
9787 /* We use char because int might match the return type of a gcc2
9788    builtin and then its argument prototype would still apply.  */
9789 char $ac_func ();
9790 /* The GNU C library defines this for functions which it implements
9791     to always fail with ENOSYS.  Some functions are actually named
9792     something starting with __ and the normal name is an alias.  */
9793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9794 choke me
9795 #else
9796 char (*f) () = $ac_func;
9797 #endif
9798 #ifdef __cplusplus
9799 }
9800 #endif
9801
9802 int
9803 main ()
9804 {
9805 return f != $ac_func;
9806   ;
9807   return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812   (eval $ac_link) 2>conftest.er1
9813   ac_status=$?
9814   grep -v '^ *+' conftest.er1 >conftest.err
9815   rm -f conftest.er1
9816   cat conftest.err >&5
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); } &&
9819          { ac_try='test -z "$ac_c_werror_flag"
9820                          || test ! -s conftest.err'
9821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822   (eval $ac_try) 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; } &&
9826          { ac_try='test -s conftest$ac_exeext'
9827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828   (eval $ac_try) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; }; then
9832   eval "$as_ac_var=yes"
9833 else
9834   echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837 eval "$as_ac_var=no"
9838 fi
9839 rm -f conftest.err conftest.$ac_objext \
9840       conftest$ac_exeext conftest.$ac_ext
9841 fi
9842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9844 if test `eval echo '${'$as_ac_var'}'` = yes; then
9845   cat >>confdefs.h <<_ACEOF
9846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9847 _ACEOF
9848
9849 fi
9850 done
9851
9852
9853 if test x$ac_cv_func_mbstowcs = xyes; then
9854   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9855 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9856 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9857   echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859       if test "$cross_compiling" = yes; then
9860   gcc_cv_func_mbstowcs_works=yes
9861 else
9862   cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h.  */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h.  */
9868 #include <stdlib.h>
9869 int main()
9870 {
9871   mbstowcs(0, "", 0);
9872   return 0;
9873 }
9874 _ACEOF
9875 rm -f conftest$ac_exeext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9877   (eval $ac_link) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; }; then
9886   gcc_cv_func_mbstowcs_works=yes
9887 else
9888   echo "$as_me: program exited with status $ac_status" >&5
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9891
9892 ( exit $ac_status )
9893 gcc_cv_func_mbstowcs_works=no
9894 fi
9895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9896 fi
9897 fi
9898 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9899 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9900   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9901
9902 cat >>confdefs.h <<\_ACEOF
9903 #define HAVE_WORKING_MBSTOWCS 1
9904 _ACEOF
9905
9906   fi
9907 fi
9908
9909 echo "$as_me:$LINENO: checking for ssize_t" >&5
9910 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9911 if test "${ac_cv_type_ssize_t+set}" = set; then
9912   echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914   cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h.  */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h.  */
9920 $ac_includes_default
9921 int
9922 main ()
9923 {
9924 if ((ssize_t *) 0)
9925   return 0;
9926 if (sizeof (ssize_t))
9927   return 0;
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934   (eval $ac_compile) 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -z "$ac_c_werror_flag"
9942                          || test ! -s conftest.err'
9943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944   (eval $ac_try) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; } &&
9948          { ac_try='test -s conftest.$ac_objext'
9949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950   (eval $ac_try) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; }; then
9954   ac_cv_type_ssize_t=yes
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959 ac_cv_type_ssize_t=no
9960 fi
9961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9962 fi
9963 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9964 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9965 if test $ac_cv_type_ssize_t = yes; then
9966   :
9967 else
9968
9969 cat >>confdefs.h <<_ACEOF
9970 #define ssize_t int
9971 _ACEOF
9972
9973 fi
9974
9975
9976 # Try to determine the array type of the second argument of getgroups
9977 # for the target system (int or gid_t).
9978 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9979 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9980 if test "${ac_cv_type_uid_t+set}" = set; then
9981   echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983   cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h.  */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h.  */
9989 #include <sys/types.h>
9990
9991 _ACEOF
9992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9993   $EGREP "uid_t" >/dev/null 2>&1; then
9994   ac_cv_type_uid_t=yes
9995 else
9996   ac_cv_type_uid_t=no
9997 fi
9998 rm -f conftest*
9999
10000 fi
10001 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10002 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10003 if test $ac_cv_type_uid_t = no; then
10004
10005 cat >>confdefs.h <<\_ACEOF
10006 #define uid_t int
10007 _ACEOF
10008
10009
10010 cat >>confdefs.h <<\_ACEOF
10011 #define gid_t int
10012 _ACEOF
10013
10014 fi
10015
10016 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10017 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10018 if test "${ac_cv_type_getgroups+set}" = set; then
10019   echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021   if test "$cross_compiling" = yes; then
10022   ac_cv_type_getgroups=cross
10023 else
10024   cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h.  */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h.  */
10030 /* Thanks to Mike Rendell for this test.  */
10031 #include <sys/types.h>
10032 #define NGID 256
10033 #undef MAX
10034 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10035
10036 int
10037 main ()
10038 {
10039   gid_t gidset[NGID];
10040   int i, n;
10041   union { gid_t gval; long lval; }  val;
10042
10043   val.lval = -1;
10044   for (i = 0; i < NGID; i++)
10045     gidset[i] = val.gval;
10046   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10047                  gidset);
10048   /* Exit non-zero if getgroups seems to require an array of ints.  This
10049      happens when gid_t is short but getgroups modifies an array of ints.  */
10050   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10051 }
10052 _ACEOF
10053 rm -f conftest$ac_exeext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055   (eval $ac_link) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_type_getgroups=gid_t
10065 else
10066   echo "$as_me: program exited with status $ac_status" >&5
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070 ( exit $ac_status )
10071 ac_cv_type_getgroups=int
10072 fi
10073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10074 fi
10075 if test $ac_cv_type_getgroups = cross; then
10076         cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h.  */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h.  */
10082 #include <unistd.h>
10083
10084 _ACEOF
10085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10086   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10087   ac_cv_type_getgroups=gid_t
10088 else
10089   ac_cv_type_getgroups=int
10090 fi
10091 rm -f conftest*
10092
10093 fi
10094 fi
10095 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10096 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10097
10098 cat >>confdefs.h <<_ACEOF
10099 #define GETGROUPS_T $ac_cv_type_getgroups
10100 _ACEOF
10101
10102
10103 if test "${target}" = "${build}"; then
10104   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10105 else
10106   case "${target}" in
10107         # This condition may need some tweaking.  It should include all
10108         # targets where the array type of the second argument of getgroups
10109         # is int and the type of gid_t is not equivalent to int.
10110         *-*-sunos* | *-*-ultrix*)
10111                 TARGET_GETGROUPS_T=int
10112                 ;;
10113         *)
10114                 TARGET_GETGROUPS_T=gid_t
10115                 ;;
10116   esac
10117 fi
10118
10119
10120
10121 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10122 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10123 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10124   echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126   cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132 #include <sys/mman.h>
10133 _ACEOF
10134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10136   ac_status=$?
10137   grep -v '^ *+' conftest.er1 >conftest.err
10138   rm -f conftest.er1
10139   cat conftest.err >&5
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); } >/dev/null; then
10142   if test -s conftest.err; then
10143     ac_cpp_err=$ac_c_preproc_warn_flag
10144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10145   else
10146     ac_cpp_err=
10147   fi
10148 else
10149   ac_cpp_err=yes
10150 fi
10151 if test -z "$ac_cpp_err"; then
10152   ac_cv_header_sys_mman_h=yes
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157   ac_cv_header_sys_mman_h=no
10158 fi
10159 rm -f conftest.err conftest.$ac_ext
10160 fi
10161 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10162 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10163 if test $ac_cv_header_sys_mman_h = yes; then
10164   gcc_header_sys_mman_h=yes
10165 else
10166   gcc_header_sys_mman_h=no
10167 fi
10168
10169 echo "$as_me:$LINENO: checking for mmap" >&5
10170 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10171 if test "${ac_cv_func_mmap+set}" = set; then
10172   echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174   cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h.  */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h.  */
10180 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10182 #define mmap innocuous_mmap
10183
10184 /* System header to define __stub macros and hopefully few prototypes,
10185     which can conflict with char mmap (); below.
10186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10187     <limits.h> exists even on freestanding compilers.  */
10188
10189 #ifdef __STDC__
10190 # include <limits.h>
10191 #else
10192 # include <assert.h>
10193 #endif
10194
10195 #undef mmap
10196
10197 /* Override any gcc2 internal prototype to avoid an error.  */
10198 #ifdef __cplusplus
10199 extern "C"
10200 {
10201 #endif
10202 /* We use char because int might match the return type of a gcc2
10203    builtin and then its argument prototype would still apply.  */
10204 char mmap ();
10205 /* The GNU C library defines this for functions which it implements
10206     to always fail with ENOSYS.  Some functions are actually named
10207     something starting with __ and the normal name is an alias.  */
10208 #if defined (__stub_mmap) || defined (__stub___mmap)
10209 choke me
10210 #else
10211 char (*f) () = mmap;
10212 #endif
10213 #ifdef __cplusplus
10214 }
10215 #endif
10216
10217 int
10218 main ()
10219 {
10220 return f != mmap;
10221   ;
10222   return 0;
10223 }
10224 _ACEOF
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10227   (eval $ac_link) 2>conftest.er1
10228   ac_status=$?
10229   grep -v '^ *+' conftest.er1 >conftest.err
10230   rm -f conftest.er1
10231   cat conftest.err >&5
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } &&
10234          { ac_try='test -z "$ac_c_werror_flag"
10235                          || test ! -s conftest.err'
10236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237   (eval $ac_try) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; } &&
10241          { ac_try='test -s conftest$ac_exeext'
10242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243   (eval $ac_try) 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; }; then
10247   ac_cv_func_mmap=yes
10248 else
10249   echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10251
10252 ac_cv_func_mmap=no
10253 fi
10254 rm -f conftest.err conftest.$ac_objext \
10255       conftest$ac_exeext conftest.$ac_ext
10256 fi
10257 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10258 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10259 if test $ac_cv_func_mmap = yes; then
10260   gcc_func_mmap=yes
10261 else
10262   gcc_func_mmap=no
10263 fi
10264
10265 if test "$gcc_header_sys_mman_h" != yes \
10266  || test "$gcc_func_mmap" != yes; then
10267    gcc_cv_func_mmap_file=no
10268    gcc_cv_func_mmap_dev_zero=no
10269    gcc_cv_func_mmap_anon=no
10270 else
10271    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10272 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10273 if test "${gcc_cv_func_mmap_file+set}" = set; then
10274   echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276   # Add a system to this blacklist if
10277    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10278    # memory area containing the same data that you'd get if you applied
10279    # read() to the same fd.  The only system known to have a problem here
10280    # is VMS, where text files have record structure.
10281    case "$host_os" in
10282      vms* | ultrix*)
10283         gcc_cv_func_mmap_file=no ;;
10284      *)
10285         gcc_cv_func_mmap_file=yes;;
10286    esac
10287 fi
10288 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10289 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10290    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10291 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10292 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10293   echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295   # Add a system to this blacklist if it has mmap() but /dev/zero
10296    # does not exist, or if mmapping /dev/zero does not give anonymous
10297    # zeroed pages with both the following properties:
10298    # 1. If you map N consecutive pages in with one call, and then
10299    #    unmap any subset of those pages, the pages that were not
10300    #    explicitly unmapped remain accessible.
10301    # 2. If you map two adjacent blocks of memory and then unmap them
10302    #    both at once, they must both go away.
10303    # Systems known to be in this category are Windows (all variants),
10304    # VMS, and Darwin.
10305    case "$host_os" in
10306      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10307         gcc_cv_func_mmap_dev_zero=no ;;
10308      *)
10309         gcc_cv_func_mmap_dev_zero=yes;;
10310    esac
10311 fi
10312 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10313 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10314
10315    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10316    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10317 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10318 if test "${gcc_cv_decl_map_anon+set}" = set; then
10319   echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321   cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327 #include <sys/types.h>
10328 #include <sys/mman.h>
10329 #include <unistd.h>
10330
10331 #ifndef MAP_ANONYMOUS
10332 #define MAP_ANONYMOUS MAP_ANON
10333 #endif
10334
10335 int
10336 main ()
10337 {
10338 int n = MAP_ANONYMOUS;
10339   ;
10340   return 0;
10341 }
10342 _ACEOF
10343 rm -f conftest.$ac_objext
10344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10345   (eval $ac_compile) 2>conftest.er1
10346   ac_status=$?
10347   grep -v '^ *+' conftest.er1 >conftest.err
10348   rm -f conftest.er1
10349   cat conftest.err >&5
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } &&
10352          { ac_try='test -z "$ac_c_werror_flag"
10353                          || test ! -s conftest.err'
10354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355   (eval $ac_try) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; } &&
10359          { ac_try='test -s conftest.$ac_objext'
10360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361   (eval $ac_try) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; }; then
10365   gcc_cv_decl_map_anon=yes
10366 else
10367   echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10369
10370 gcc_cv_decl_map_anon=no
10371 fi
10372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10373 fi
10374 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10375 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10376
10377    if test $gcc_cv_decl_map_anon = no; then
10378      gcc_cv_func_mmap_anon=no
10379    else
10380      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10381 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10382 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10383   echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10386    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10387    # doesn't give anonymous zeroed pages with the same properties listed
10388    # above for use of /dev/zero.
10389    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10390    case "$host_os" in
10391      vms* | cygwin* | pe | mingw* | sco* | udk* )
10392         gcc_cv_func_mmap_anon=no ;;
10393      *)
10394         gcc_cv_func_mmap_anon=yes;;
10395    esac
10396 fi
10397 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10398 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10399    fi
10400 fi
10401
10402 if test $gcc_cv_func_mmap_file = yes; then
10403
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_MMAP_FILE 1
10406 _ACEOF
10407
10408 fi
10409 if test $gcc_cv_func_mmap_dev_zero = yes; then
10410
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_MMAP_DEV_ZERO 1
10413 _ACEOF
10414
10415 fi
10416 if test $gcc_cv_func_mmap_anon = yes; then
10417
10418 cat >>confdefs.h <<\_ACEOF
10419 #define HAVE_MMAP_ANON 1
10420 _ACEOF
10421
10422 fi
10423
10424
10425 case "${host}" in
10426 *-*-*vms*)
10427   # Under VMS, vfork works very differently than on Unix. The standard test
10428   # won't work, and it isn't easily adaptable. It makes more sense to
10429   # just force it.
10430   ac_cv_func_vfork_works=yes
10431   ;;
10432 esac
10433 echo "$as_me:$LINENO: checking for pid_t" >&5
10434 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10435 if test "${ac_cv_type_pid_t+set}" = set; then
10436   echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438   cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h.  */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h.  */
10444 $ac_includes_default
10445 int
10446 main ()
10447 {
10448 if ((pid_t *) 0)
10449   return 0;
10450 if (sizeof (pid_t))
10451   return 0;
10452   ;
10453   return 0;
10454 }
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458   (eval $ac_compile) 2>conftest.er1
10459   ac_status=$?
10460   grep -v '^ *+' conftest.er1 >conftest.err
10461   rm -f conftest.er1
10462   cat conftest.err >&5
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); } &&
10465          { ac_try='test -z "$ac_c_werror_flag"
10466                          || test ! -s conftest.err'
10467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468   (eval $ac_try) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; } &&
10472          { ac_try='test -s conftest.$ac_objext'
10473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474   (eval $ac_try) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; }; then
10478   ac_cv_type_pid_t=yes
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483 ac_cv_type_pid_t=no
10484 fi
10485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10486 fi
10487 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10488 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10489 if test $ac_cv_type_pid_t = yes; then
10490   :
10491 else
10492
10493 cat >>confdefs.h <<_ACEOF
10494 #define pid_t int
10495 _ACEOF
10496
10497 fi
10498
10499
10500
10501 for ac_header in unistd.h vfork.h
10502 do
10503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10504 echo "$as_me:$LINENO: checking for $ac_header" >&5
10505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10507   echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509   cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515 #include <$ac_header>
10516 _ACEOF
10517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
10522   cat conftest.err >&5
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } >/dev/null; then
10525   if test -s conftest.err; then
10526     ac_cpp_err=$ac_c_preproc_warn_flag
10527     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10528   else
10529     ac_cpp_err=
10530   fi
10531 else
10532   ac_cpp_err=yes
10533 fi
10534 if test -z "$ac_cpp_err"; then
10535   eval "$as_ac_Header=yes"
10536 else
10537   echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540   eval "$as_ac_Header=no"
10541 fi
10542 rm -f conftest.err conftest.$ac_ext
10543 fi
10544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10547   cat >>confdefs.h <<_ACEOF
10548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10549 _ACEOF
10550
10551 fi
10552 done
10553
10554
10555
10556 for ac_func in fork vfork
10557 do
10558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10559 echo "$as_me:$LINENO: checking for $ac_func" >&5
10560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10561 if eval "test \"\${$as_ac_var+set}\" = set"; then
10562   echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564   cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h.  */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h.  */
10570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10572 #define $ac_func innocuous_$ac_func
10573
10574 /* System header to define __stub macros and hopefully few prototypes,
10575     which can conflict with char $ac_func (); below.
10576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10577     <limits.h> exists even on freestanding compilers.  */
10578
10579 #ifdef __STDC__
10580 # include <limits.h>
10581 #else
10582 # include <assert.h>
10583 #endif
10584
10585 #undef $ac_func
10586
10587 /* Override any gcc2 internal prototype to avoid an error.  */
10588 #ifdef __cplusplus
10589 extern "C"
10590 {
10591 #endif
10592 /* We use char because int might match the return type of a gcc2
10593    builtin and then its argument prototype would still apply.  */
10594 char $ac_func ();
10595 /* The GNU C library defines this for functions which it implements
10596     to always fail with ENOSYS.  Some functions are actually named
10597     something starting with __ and the normal name is an alias.  */
10598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10599 choke me
10600 #else
10601 char (*f) () = $ac_func;
10602 #endif
10603 #ifdef __cplusplus
10604 }
10605 #endif
10606
10607 int
10608 main ()
10609 {
10610 return f != $ac_func;
10611   ;
10612   return 0;
10613 }
10614 _ACEOF
10615 rm -f conftest.$ac_objext conftest$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617   (eval $ac_link) 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } &&
10624          { ac_try='test -z "$ac_c_werror_flag"
10625                          || test ! -s conftest.err'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; } &&
10631          { ac_try='test -s conftest$ac_exeext'
10632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633   (eval $ac_try) 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; }; then
10637   eval "$as_ac_var=yes"
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 eval "$as_ac_var=no"
10643 fi
10644 rm -f conftest.err conftest.$ac_objext \
10645       conftest$ac_exeext conftest.$ac_ext
10646 fi
10647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10649 if test `eval echo '${'$as_ac_var'}'` = yes; then
10650   cat >>confdefs.h <<_ACEOF
10651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10652 _ACEOF
10653
10654 fi
10655 done
10656
10657 if test "x$ac_cv_func_fork" = xyes; then
10658   echo "$as_me:$LINENO: checking for working fork" >&5
10659 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10660 if test "${ac_cv_func_fork_works+set}" = set; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663   if test "$cross_compiling" = yes; then
10664   ac_cv_func_fork_works=cross
10665 else
10666   cat >conftest.$ac_ext <<_ACEOF
10667 /* By Ruediger Kuhlmann. */
10668       #include <sys/types.h>
10669       #if HAVE_UNISTD_H
10670       # include <unistd.h>
10671       #endif
10672       /* Some systems only have a dummy stub for fork() */
10673       int main ()
10674       {
10675         if (fork() < 0)
10676           exit (1);
10677         exit (0);
10678       }
10679 _ACEOF
10680 rm -f conftest$ac_exeext
10681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10682   (eval $ac_link) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687   (eval $ac_try) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; }; then
10691   ac_cv_func_fork_works=yes
10692 else
10693   echo "$as_me: program exited with status $ac_status" >&5
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 ( exit $ac_status )
10698 ac_cv_func_fork_works=no
10699 fi
10700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10701 fi
10702 fi
10703 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10704 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10705
10706 else
10707   ac_cv_func_fork_works=$ac_cv_func_fork
10708 fi
10709 if test "x$ac_cv_func_fork_works" = xcross; then
10710   case $host in
10711     *-*-amigaos* | *-*-msdosdjgpp*)
10712       # Override, as these systems have only a dummy fork() stub
10713       ac_cv_func_fork_works=no
10714       ;;
10715     *)
10716       ac_cv_func_fork_works=yes
10717       ;;
10718   esac
10719   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10720 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10721 fi
10722 ac_cv_func_vfork_works=$ac_cv_func_vfork
10723 if test "x$ac_cv_func_vfork" = xyes; then
10724   echo "$as_me:$LINENO: checking for working vfork" >&5
10725 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10726 if test "${ac_cv_func_vfork_works+set}" = set; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   if test "$cross_compiling" = yes; then
10730   ac_cv_func_vfork_works=cross
10731 else
10732   cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h.  */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h.  */
10738 /* Thanks to Paul Eggert for this test.  */
10739 #include <stdio.h>
10740 #include <stdlib.h>
10741 #include <sys/types.h>
10742 #include <sys/stat.h>
10743 #include <sys/wait.h>
10744 #if HAVE_UNISTD_H
10745 # include <unistd.h>
10746 #endif
10747 #if HAVE_VFORK_H
10748 # include <vfork.h>
10749 #endif
10750 /* On some sparc systems, changes by the child to local and incoming
10751    argument registers are propagated back to the parent.  The compiler
10752    is told about this with #include <vfork.h>, but some compilers
10753    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10754    static variable whose address is put into a register that is
10755    clobbered by the vfork.  */
10756 static void
10757 #ifdef __cplusplus
10758 sparc_address_test (int arg)
10759 # else
10760 sparc_address_test (arg) int arg;
10761 #endif
10762 {
10763   static pid_t child;
10764   if (!child) {
10765     child = vfork ();
10766     if (child < 0) {
10767       perror ("vfork");
10768       _exit(2);
10769     }
10770     if (!child) {
10771       arg = getpid();
10772       write(-1, "", 0);
10773       _exit (arg);
10774     }
10775   }
10776 }
10777
10778 int
10779 main ()
10780 {
10781   pid_t parent = getpid ();
10782   pid_t child;
10783
10784   sparc_address_test (0);
10785
10786   child = vfork ();
10787
10788   if (child == 0) {
10789     /* Here is another test for sparc vfork register problems.  This
10790        test uses lots of local variables, at least as many local
10791        variables as main has allocated so far including compiler
10792        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10793        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10794        reuse the register of parent for one of the local variables,
10795        since it will think that parent can't possibly be used any more
10796        in this routine.  Assigning to the local variable will thus
10797        munge parent in the parent process.  */
10798     pid_t
10799       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10800       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10801     /* Convince the compiler that p..p7 are live; otherwise, it might
10802        use the same hardware register for all 8 local variables.  */
10803     if (p != p1 || p != p2 || p != p3 || p != p4
10804         || p != p5 || p != p6 || p != p7)
10805       _exit(1);
10806
10807     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10808        from child file descriptors.  If the child closes a descriptor
10809        before it execs or exits, this munges the parent's descriptor
10810        as well.  Test for this by closing stdout in the child.  */
10811     _exit(close(fileno(stdout)) != 0);
10812   } else {
10813     int status;
10814     struct stat st;
10815
10816     while (wait(&status) != child)
10817       ;
10818     exit(
10819          /* Was there some problem with vforking?  */
10820          child < 0
10821
10822          /* Did the child fail?  (This shouldn't happen.)  */
10823          || status
10824
10825          /* Did the vfork/compiler bug occur?  */
10826          || parent != getpid()
10827
10828          /* Did the file descriptor bug occur?  */
10829          || fstat(fileno(stdout), &st) != 0
10830          );
10831   }
10832 }
10833 _ACEOF
10834 rm -f conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836   (eval $ac_link) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841   (eval $ac_try) 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); }; }; then
10845   ac_cv_func_vfork_works=yes
10846 else
10847   echo "$as_me: program exited with status $ac_status" >&5
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 ( exit $ac_status )
10852 ac_cv_func_vfork_works=no
10853 fi
10854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10855 fi
10856 fi
10857 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10858 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10859
10860 fi;
10861 if test "x$ac_cv_func_fork_works" = xcross; then
10862   ac_cv_func_vfork_works=$ac_cv_func_vfork
10863   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10864 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10865 fi
10866
10867 if test "x$ac_cv_func_vfork_works" = xyes; then
10868
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_WORKING_VFORK 1
10871 _ACEOF
10872
10873 else
10874
10875 cat >>confdefs.h <<\_ACEOF
10876 #define vfork fork
10877 _ACEOF
10878
10879 fi
10880 if test "x$ac_cv_func_fork_works" = xyes; then
10881
10882 cat >>confdefs.h <<\_ACEOF
10883 #define HAVE_WORKING_FORK 1
10884 _ACEOF
10885
10886 fi
10887
10888
10889
10890       if test "X$prefix" = "XNONE"; then
10891     acl_final_prefix="$ac_default_prefix"
10892   else
10893     acl_final_prefix="$prefix"
10894   fi
10895   if test "X$exec_prefix" = "XNONE"; then
10896     acl_final_exec_prefix='${prefix}'
10897   else
10898     acl_final_exec_prefix="$exec_prefix"
10899   fi
10900   acl_save_prefix="$prefix"
10901   prefix="$acl_final_prefix"
10902   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10903   prefix="$acl_save_prefix"
10904
10905
10906 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10907 if test "${with_gnu_ld+set}" = set; then
10908   withval="$with_gnu_ld"
10909   test "$withval" = no || with_gnu_ld=yes
10910 else
10911   with_gnu_ld=no
10912 fi;
10913 # Prepare PATH_SEPARATOR.
10914 # The user is always right.
10915 if test "${PATH_SEPARATOR+set}" != set; then
10916   echo "#! /bin/sh" >conf$$.sh
10917   echo  "exit 0"   >>conf$$.sh
10918   chmod +x conf$$.sh
10919   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10920     PATH_SEPARATOR=';'
10921   else
10922     PATH_SEPARATOR=:
10923   fi
10924   rm -f conf$$.sh
10925 fi
10926 ac_prog=ld
10927 if test "$GCC" = yes; then
10928   # Check if gcc -print-prog-name=ld gives a path.
10929   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10930 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10931   case $host in
10932   *-*-mingw*)
10933     # gcc leaves a trailing carriage return which upsets mingw
10934     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10935   *)
10936     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10937   esac
10938   case $ac_prog in
10939     # Accept absolute paths.
10940     [\\/]* | [A-Za-z]:[\\/]*)
10941       re_direlt='/[^/][^/]*/\.\./'
10942       # Canonicalize the path of ld
10943       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10944       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10945         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10946       done
10947       test -z "$LD" && LD="$ac_prog"
10948       ;;
10949   "")
10950     # If it fails, then pretend we aren't using GCC.
10951     ac_prog=ld
10952     ;;
10953   *)
10954     # If it is relative, then search for the first ld in PATH.
10955     with_gnu_ld=unknown
10956     ;;
10957   esac
10958 elif test "$with_gnu_ld" = yes; then
10959   echo "$as_me:$LINENO: checking for GNU ld" >&5
10960 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10961 else
10962   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10963 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10964 fi
10965 if test "${acl_cv_path_LD+set}" = set; then
10966   echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968   if test -z "$LD"; then
10969   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10970   for ac_dir in $PATH; do
10971     test -z "$ac_dir" && ac_dir=.
10972     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10973       acl_cv_path_LD="$ac_dir/$ac_prog"
10974       # Check to see if the program is GNU ld.  I'd rather use --version,
10975       # but apparently some GNU ld's only accept -v.
10976       # Break only if it was the GNU/non-GNU ld that we prefer.
10977       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10978         test "$with_gnu_ld" != no && break
10979       else
10980         test "$with_gnu_ld" != yes && break
10981       fi
10982     fi
10983   done
10984   IFS="$ac_save_ifs"
10985 else
10986   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10987 fi
10988 fi
10989
10990 LD="$acl_cv_path_LD"
10991 if test -n "$LD"; then
10992   echo "$as_me:$LINENO: result: $LD" >&5
10993 echo "${ECHO_T}$LD" >&6
10994 else
10995   echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6
10997 fi
10998 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10999 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11000    { (exit 1); exit 1; }; }
11001 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11002 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11003 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11007 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11008   acl_cv_prog_gnu_ld=yes
11009 else
11010   acl_cv_prog_gnu_ld=no
11011 fi
11012 fi
11013 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11014 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11015 with_gnu_ld=$acl_cv_prog_gnu_ld
11016
11017
11018
11019                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11020 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11021 if test "${acl_cv_rpath+set}" = set; then
11022   echo $ECHO_N "(cached) $ECHO_C" >&6
11023 else
11024
11025     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11026     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11027     . ./conftest.sh
11028     rm -f ./conftest.sh
11029     acl_cv_rpath=done
11030
11031 fi
11032 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11033 echo "${ECHO_T}$acl_cv_rpath" >&6
11034   wl="$acl_cv_wl"
11035   libext="$acl_cv_libext"
11036   shlibext="$acl_cv_shlibext"
11037   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11038   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11039   hardcode_direct="$acl_cv_hardcode_direct"
11040   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11041     # Check whether --enable-rpath or --disable-rpath was given.
11042 if test "${enable_rpath+set}" = set; then
11043   enableval="$enable_rpath"
11044   :
11045 else
11046   enable_rpath=yes
11047 fi;
11048
11049
11050
11051
11052
11053
11054
11055     use_additional=yes
11056
11057   acl_save_prefix="$prefix"
11058   prefix="$acl_final_prefix"
11059   acl_save_exec_prefix="$exec_prefix"
11060   exec_prefix="$acl_final_exec_prefix"
11061
11062     eval additional_includedir=\"$includedir\"
11063     eval additional_libdir=\"$libdir\"
11064
11065   exec_prefix="$acl_save_exec_prefix"
11066   prefix="$acl_save_prefix"
11067
11068
11069 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11070 if test "${with_libiconv_prefix+set}" = set; then
11071   withval="$with_libiconv_prefix"
11072
11073     if test "X$withval" = "Xno"; then
11074       use_additional=no
11075     else
11076       if test "X$withval" = "X"; then
11077
11078   acl_save_prefix="$prefix"
11079   prefix="$acl_final_prefix"
11080   acl_save_exec_prefix="$exec_prefix"
11081   exec_prefix="$acl_final_exec_prefix"
11082
11083           eval additional_includedir=\"$includedir\"
11084           eval additional_libdir=\"$libdir\"
11085
11086   exec_prefix="$acl_save_exec_prefix"
11087   prefix="$acl_save_prefix"
11088
11089       else
11090         additional_includedir="$withval/include"
11091         additional_libdir="$withval/lib"
11092       fi
11093     fi
11094
11095 fi;
11096       LIBICONV=
11097   LTLIBICONV=
11098   INCICONV=
11099   rpathdirs=
11100   ltrpathdirs=
11101   names_already_handled=
11102   names_next_round='iconv '
11103   while test -n "$names_next_round"; do
11104     names_this_round="$names_next_round"
11105     names_next_round=
11106     for name in $names_this_round; do
11107       already_handled=
11108       for n in $names_already_handled; do
11109         if test "$n" = "$name"; then
11110           already_handled=yes
11111           break
11112         fi
11113       done
11114       if test -z "$already_handled"; then
11115         names_already_handled="$names_already_handled $name"
11116                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11117         eval value=\"\$HAVE_LIB$uppername\"
11118         if test -n "$value"; then
11119           if test "$value" = yes; then
11120             eval value=\"\$LIB$uppername\"
11121             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11122             eval value=\"\$LTLIB$uppername\"
11123             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11124           else
11125                                     :
11126           fi
11127         else
11128                               found_dir=
11129           found_la=
11130           found_so=
11131           found_a=
11132           if test $use_additional = yes; then
11133             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11134               found_dir="$additional_libdir"
11135               found_so="$additional_libdir/lib$name.$shlibext"
11136               if test -f "$additional_libdir/lib$name.la"; then
11137                 found_la="$additional_libdir/lib$name.la"
11138               fi
11139             else
11140               if test -f "$additional_libdir/lib$name.$libext"; then
11141                 found_dir="$additional_libdir"
11142                 found_a="$additional_libdir/lib$name.$libext"
11143                 if test -f "$additional_libdir/lib$name.la"; then
11144                   found_la="$additional_libdir/lib$name.la"
11145                 fi
11146               fi
11147             fi
11148           fi
11149           if test "X$found_dir" = "X"; then
11150             for x in $LDFLAGS $LTLIBICONV; do
11151
11152   acl_save_prefix="$prefix"
11153   prefix="$acl_final_prefix"
11154   acl_save_exec_prefix="$exec_prefix"
11155   exec_prefix="$acl_final_exec_prefix"
11156   eval x=\"$x\"
11157   exec_prefix="$acl_save_exec_prefix"
11158   prefix="$acl_save_prefix"
11159
11160               case "$x" in
11161                 -L*)
11162                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11163                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11164                     found_dir="$dir"
11165                     found_so="$dir/lib$name.$shlibext"
11166                     if test -f "$dir/lib$name.la"; then
11167                       found_la="$dir/lib$name.la"
11168                     fi
11169                   else
11170                     if test -f "$dir/lib$name.$libext"; then
11171                       found_dir="$dir"
11172                       found_a="$dir/lib$name.$libext"
11173                       if test -f "$dir/lib$name.la"; then
11174                         found_la="$dir/lib$name.la"
11175                       fi
11176                     fi
11177                   fi
11178                   ;;
11179               esac
11180               if test "X$found_dir" != "X"; then
11181                 break
11182               fi
11183             done
11184           fi
11185           if test "X$found_dir" != "X"; then
11186                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11187             if test "X$found_so" != "X"; then
11188                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11189                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11190               else
11191                                                                                 haveit=
11192                 for x in $ltrpathdirs; do
11193                   if test "X$x" = "X$found_dir"; then
11194                     haveit=yes
11195                     break
11196                   fi
11197                 done
11198                 if test -z "$haveit"; then
11199                   ltrpathdirs="$ltrpathdirs $found_dir"
11200                 fi
11201                                 if test "$hardcode_direct" = yes; then
11202                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11203                 else
11204                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11205                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11206                                                             haveit=
11207                     for x in $rpathdirs; do
11208                       if test "X$x" = "X$found_dir"; then
11209                         haveit=yes
11210                         break
11211                       fi
11212                     done
11213                     if test -z "$haveit"; then
11214                       rpathdirs="$rpathdirs $found_dir"
11215                     fi
11216                   else
11217                                                                                 haveit=
11218                     for x in $LDFLAGS $LIBICONV; do
11219
11220   acl_save_prefix="$prefix"
11221   prefix="$acl_final_prefix"
11222   acl_save_exec_prefix="$exec_prefix"
11223   exec_prefix="$acl_final_exec_prefix"
11224   eval x=\"$x\"
11225   exec_prefix="$acl_save_exec_prefix"
11226   prefix="$acl_save_prefix"
11227
11228                       if test "X$x" = "X-L$found_dir"; then
11229                         haveit=yes
11230                         break
11231                       fi
11232                     done
11233                     if test -z "$haveit"; then
11234                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11235                     fi
11236                     if test "$hardcode_minus_L" != no; then
11237                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11238                     else
11239                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11240                     fi
11241                   fi
11242                 fi
11243               fi
11244             else
11245               if test "X$found_a" != "X"; then
11246                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11247               else
11248                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11249               fi
11250             fi
11251                         additional_includedir=
11252             case "$found_dir" in
11253               */lib | */lib/)
11254                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11255                 additional_includedir="$basedir/include"
11256                 ;;
11257             esac
11258             if test "X$additional_includedir" != "X"; then
11259                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11260                 haveit=
11261                 if test "X$additional_includedir" = "X/usr/local/include"; then
11262                   if test -n "$GCC"; then
11263                     case $host_os in
11264                       linux*) haveit=yes;;
11265                     esac
11266                   fi
11267                 fi
11268                 if test -z "$haveit"; then
11269                   for x in $CPPFLAGS $INCICONV; do
11270
11271   acl_save_prefix="$prefix"
11272   prefix="$acl_final_prefix"
11273   acl_save_exec_prefix="$exec_prefix"
11274   exec_prefix="$acl_final_exec_prefix"
11275   eval x=\"$x\"
11276   exec_prefix="$acl_save_exec_prefix"
11277   prefix="$acl_save_prefix"
11278
11279                     if test "X$x" = "X-I$additional_includedir"; then
11280                       haveit=yes
11281                       break
11282                     fi
11283                   done
11284                   if test -z "$haveit"; then
11285                     if test -d "$additional_includedir"; then
11286                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11287                     fi
11288                   fi
11289                 fi
11290               fi
11291             fi
11292                         if test -n "$found_la"; then
11293                                                         save_libdir="$libdir"
11294               case "$found_la" in
11295                 */* | *\\*) . "$found_la" ;;
11296                 *) . "./$found_la" ;;
11297               esac
11298               libdir="$save_libdir"
11299                             for dep in $dependency_libs; do
11300                 case "$dep" in
11301                   -L*)
11302                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11303                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11304                       haveit=
11305                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11306                         if test -n "$GCC"; then
11307                           case $host_os in
11308                             linux*) haveit=yes;;
11309                           esac
11310                         fi
11311                       fi
11312                       if test -z "$haveit"; then
11313                         haveit=
11314                         for x in $LDFLAGS $LIBICONV; do
11315
11316   acl_save_prefix="$prefix"
11317   prefix="$acl_final_prefix"
11318   acl_save_exec_prefix="$exec_prefix"
11319   exec_prefix="$acl_final_exec_prefix"
11320   eval x=\"$x\"
11321   exec_prefix="$acl_save_exec_prefix"
11322   prefix="$acl_save_prefix"
11323
11324                           if test "X$x" = "X-L$additional_libdir"; then
11325                             haveit=yes
11326                             break
11327                           fi
11328                         done
11329                         if test -z "$haveit"; then
11330                           if test -d "$additional_libdir"; then
11331                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11332                           fi
11333                         fi
11334                         haveit=
11335                         for x in $LDFLAGS $LTLIBICONV; do
11336
11337   acl_save_prefix="$prefix"
11338   prefix="$acl_final_prefix"
11339   acl_save_exec_prefix="$exec_prefix"
11340   exec_prefix="$acl_final_exec_prefix"
11341   eval x=\"$x\"
11342   exec_prefix="$acl_save_exec_prefix"
11343   prefix="$acl_save_prefix"
11344
11345                           if test "X$x" = "X-L$additional_libdir"; then
11346                             haveit=yes
11347                             break
11348                           fi
11349                         done
11350                         if test -z "$haveit"; then
11351                           if test -d "$additional_libdir"; then
11352                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11353                           fi
11354                         fi
11355                       fi
11356                     fi
11357                     ;;
11358                   -R*)
11359                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11360                     if test "$enable_rpath" != no; then
11361                                                                   haveit=
11362                       for x in $rpathdirs; do
11363                         if test "X$x" = "X$dir"; then
11364                           haveit=yes
11365                           break
11366                         fi
11367                       done
11368                       if test -z "$haveit"; then
11369                         rpathdirs="$rpathdirs $dir"
11370                       fi
11371                                                                   haveit=
11372                       for x in $ltrpathdirs; do
11373                         if test "X$x" = "X$dir"; then
11374                           haveit=yes
11375                           break
11376                         fi
11377                       done
11378                       if test -z "$haveit"; then
11379                         ltrpathdirs="$ltrpathdirs $dir"
11380                       fi
11381                     fi
11382                     ;;
11383                   -l*)
11384                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11385                     ;;
11386                   *.la)
11387                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11388                     ;;
11389                   *)
11390                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11391                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11392                     ;;
11393                 esac
11394               done
11395             fi
11396           else
11397                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11398             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11399           fi
11400         fi
11401       fi
11402     done
11403   done
11404   if test "X$rpathdirs" != "X"; then
11405     if test -n "$hardcode_libdir_separator"; then
11406                         alldirs=
11407       for found_dir in $rpathdirs; do
11408         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11409       done
11410             acl_save_libdir="$libdir"
11411       libdir="$alldirs"
11412       eval flag=\"$hardcode_libdir_flag_spec\"
11413       libdir="$acl_save_libdir"
11414       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11415     else
11416             for found_dir in $rpathdirs; do
11417         acl_save_libdir="$libdir"
11418         libdir="$found_dir"
11419         eval flag=\"$hardcode_libdir_flag_spec\"
11420         libdir="$acl_save_libdir"
11421         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11422       done
11423     fi
11424   fi
11425   if test "X$ltrpathdirs" != "X"; then
11426             for found_dir in $ltrpathdirs; do
11427       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11428     done
11429   fi
11430
11431
11432
11433
11434
11435
11436
11437           am_save_CPPFLAGS="$CPPFLAGS"
11438
11439   for element in $INCICONV; do
11440     haveit=
11441     for x in $CPPFLAGS; do
11442
11443   acl_save_prefix="$prefix"
11444   prefix="$acl_final_prefix"
11445   acl_save_exec_prefix="$exec_prefix"
11446   exec_prefix="$acl_final_exec_prefix"
11447   eval x=\"$x\"
11448   exec_prefix="$acl_save_exec_prefix"
11449   prefix="$acl_save_prefix"
11450
11451       if test "X$x" = "X$element"; then
11452         haveit=yes
11453         break
11454       fi
11455     done
11456     if test -z "$haveit"; then
11457       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11458     fi
11459   done
11460
11461
11462   echo "$as_me:$LINENO: checking for iconv" >&5
11463 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11464 if test "${am_cv_func_iconv+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467
11468     am_cv_func_iconv="no, consider installing GNU libiconv"
11469     am_cv_lib_iconv=no
11470     cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h.  */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h.  */
11476 #include <stdlib.h>
11477 #include <iconv.h>
11478 int
11479 main ()
11480 {
11481 iconv_t cd = iconv_open("","");
11482        iconv(cd,NULL,NULL,NULL,NULL);
11483        iconv_close(cd);
11484   ;
11485   return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490   (eval $ac_link) 2>conftest.er1
11491   ac_status=$?
11492   grep -v '^ *+' conftest.er1 >conftest.err
11493   rm -f conftest.er1
11494   cat conftest.err >&5
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); } &&
11497          { ac_try='test -z "$ac_c_werror_flag"
11498                          || test ! -s conftest.err'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; } &&
11504          { ac_try='test -s conftest$ac_exeext'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   am_cv_func_iconv=yes
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 fi
11516 rm -f conftest.err conftest.$ac_objext \
11517       conftest$ac_exeext conftest.$ac_ext
11518     if test "$am_cv_func_iconv" != yes; then
11519       am_save_LIBS="$LIBS"
11520       LIBS="$LIBS $LIBICONV"
11521       cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h.  */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h.  */
11527 #include <stdlib.h>
11528 #include <iconv.h>
11529 int
11530 main ()
11531 {
11532 iconv_t cd = iconv_open("","");
11533          iconv(cd,NULL,NULL,NULL,NULL);
11534          iconv_close(cd);
11535   ;
11536   return 0;
11537 }
11538 _ACEOF
11539 rm -f conftest.$ac_objext conftest$ac_exeext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11541   (eval $ac_link) 2>conftest.er1
11542   ac_status=$?
11543   grep -v '^ *+' conftest.er1 >conftest.err
11544   rm -f conftest.er1
11545   cat conftest.err >&5
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } &&
11548          { ac_try='test -z "$ac_c_werror_flag"
11549                          || test ! -s conftest.err'
11550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551   (eval $ac_try) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; } &&
11555          { ac_try='test -s conftest$ac_exeext'
11556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557   (eval $ac_try) 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); }; }; then
11561   am_cv_lib_iconv=yes
11562         am_cv_func_iconv=yes
11563 else
11564   echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11566
11567 fi
11568 rm -f conftest.err conftest.$ac_objext \
11569       conftest$ac_exeext conftest.$ac_ext
11570       LIBS="$am_save_LIBS"
11571     fi
11572
11573 fi
11574 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11575 echo "${ECHO_T}$am_cv_func_iconv" >&6
11576   if test "$am_cv_func_iconv" = yes; then
11577
11578 cat >>confdefs.h <<\_ACEOF
11579 #define HAVE_ICONV 1
11580 _ACEOF
11581
11582   fi
11583   if test "$am_cv_lib_iconv" = yes; then
11584     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11585 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11586     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11587 echo "${ECHO_T}$LIBICONV" >&6
11588   else
11589             CPPFLAGS="$am_save_CPPFLAGS"
11590     LIBICONV=
11591     LTLIBICONV=
11592   fi
11593
11594
11595
11596   if test "$am_cv_func_iconv" = yes; then
11597     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11598 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11599     if test "${am_cv_proto_iconv+set}" = set; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602
11603       cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h.  */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h.  */
11609
11610 #include <stdlib.h>
11611 #include <iconv.h>
11612 extern
11613 #ifdef __cplusplus
11614 "C"
11615 #endif
11616 #if defined(__STDC__) || defined(__cplusplus)
11617 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11618 #else
11619 size_t iconv();
11620 #endif
11621
11622 int
11623 main ()
11624 {
11625
11626   ;
11627   return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632   (eval $ac_compile) 2>conftest.er1
11633   ac_status=$?
11634   grep -v '^ *+' conftest.er1 >conftest.err
11635   rm -f conftest.er1
11636   cat conftest.err >&5
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } &&
11639          { ac_try='test -z "$ac_c_werror_flag"
11640                          || test ! -s conftest.err'
11641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642   (eval $ac_try) 2>&5
11643   ac_status=$?
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); }; } &&
11646          { ac_try='test -s conftest.$ac_objext'
11647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648   (eval $ac_try) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; }; then
11652   am_cv_proto_iconv_arg1=""
11653 else
11654   echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 am_cv_proto_iconv_arg1="const"
11658 fi
11659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11660       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11661 fi
11662
11663     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11664     echo "$as_me:$LINENO: result: ${ac_t:-
11665          }$am_cv_proto_iconv" >&5
11666 echo "${ECHO_T}${ac_t:-
11667          }$am_cv_proto_iconv" >&6
11668
11669 cat >>confdefs.h <<_ACEOF
11670 #define ICONV_CONST $am_cv_proto_iconv_arg1
11671 _ACEOF
11672
11673   fi
11674
11675 # Until we have in-tree GNU iconv:
11676 LIBICONV_DEP=
11677
11678
11679
11680   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11681 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11682 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11683   echo $ECHO_N "(cached) $ECHO_C" >&6
11684 else
11685   cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691 #include <locale.h>
11692 int
11693 main ()
11694 {
11695 return LC_MESSAGES
11696   ;
11697   return 0;
11698 }
11699 _ACEOF
11700 rm -f conftest.$ac_objext conftest$ac_exeext
11701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11702   (eval $ac_link) 2>conftest.er1
11703   ac_status=$?
11704   grep -v '^ *+' conftest.er1 >conftest.err
11705   rm -f conftest.er1
11706   cat conftest.err >&5
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } &&
11709          { ac_try='test -z "$ac_c_werror_flag"
11710                          || test ! -s conftest.err'
11711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712   (eval $ac_try) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); }; } &&
11716          { ac_try='test -s conftest$ac_exeext'
11717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718   (eval $ac_try) 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; }; then
11722   am_cv_val_LC_MESSAGES=yes
11723 else
11724   echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727 am_cv_val_LC_MESSAGES=no
11728 fi
11729 rm -f conftest.err conftest.$ac_objext \
11730       conftest$ac_exeext conftest.$ac_ext
11731 fi
11732 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11733 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11734   if test $am_cv_val_LC_MESSAGES = yes; then
11735
11736 cat >>confdefs.h <<\_ACEOF
11737 #define HAVE_LC_MESSAGES 1
11738 _ACEOF
11739
11740   fi
11741
11742
11743
11744   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11745 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11746 if test "${am_cv_langinfo_codeset+set}" = set; then
11747   echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749   cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755 #include <langinfo.h>
11756 int
11757 main ()
11758 {
11759 char* cs = nl_langinfo(CODESET);
11760   ;
11761   return 0;
11762 }
11763 _ACEOF
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11766   (eval $ac_link) 2>conftest.er1
11767   ac_status=$?
11768   grep -v '^ *+' conftest.er1 >conftest.err
11769   rm -f conftest.er1
11770   cat conftest.err >&5
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } &&
11773          { ac_try='test -z "$ac_c_werror_flag"
11774                          || test ! -s conftest.err'
11775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776   (eval $ac_try) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; } &&
11780          { ac_try='test -s conftest$ac_exeext'
11781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782   (eval $ac_try) 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; }; then
11786   am_cv_langinfo_codeset=yes
11787 else
11788   echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791 am_cv_langinfo_codeset=no
11792 fi
11793 rm -f conftest.err conftest.$ac_objext \
11794       conftest$ac_exeext conftest.$ac_ext
11795
11796 fi
11797 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11798 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11799   if test $am_cv_langinfo_codeset = yes; then
11800
11801 cat >>confdefs.h <<\_ACEOF
11802 #define HAVE_LANGINFO_CODESET 1
11803 _ACEOF
11804
11805   fi
11806
11807
11808 # We will need to find libiberty.h and ansidecl.h
11809 saved_CFLAGS="$CFLAGS"
11810 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11851         strsignal strstr strverscmp \
11852         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11853         free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
11854 do
11855   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11856 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11857 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11858 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11859   echo $ECHO_N "(cached) $ECHO_C" >&6
11860 else
11861   cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867 #undef $ac_tr_decl
11868 #define $ac_tr_decl 1
11869
11870 #include "ansidecl.h"
11871 #include "system.h"
11872
11873 int
11874 main ()
11875 {
11876 #ifndef $ac_func
11877 char *(*pfn) = (char *(*)) $ac_func ;
11878 #endif
11879   ;
11880   return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885   (eval $ac_compile) 2>conftest.er1
11886   ac_status=$?
11887   grep -v '^ *+' conftest.er1 >conftest.err
11888   rm -f conftest.er1
11889   cat conftest.err >&5
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); } &&
11892          { ac_try='test -z "$ac_c_werror_flag"
11893                          || test ! -s conftest.err'
11894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895   (eval $ac_try) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; } &&
11899          { ac_try='test -s conftest.$ac_objext'
11900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; }; then
11905   eval "gcc_cv_have_decl_$ac_func=yes"
11906 else
11907   echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 eval "gcc_cv_have_decl_$ac_func=no"
11911 fi
11912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11913 fi
11914
11915 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11916   echo "$as_me:$LINENO: result: yes" >&5
11917 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11918 #define $ac_tr_decl 1
11919 _ACEOF
11920
11921 else
11922   echo "$as_me:$LINENO: result: no" >&5
11923 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11924 #define $ac_tr_decl 0
11925 _ACEOF
11926
11927 fi
11928
11929 done
11930
11931
11932
11933
11934
11935 for ac_func in getrlimit setrlimit getrusage
11936 do
11937   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11938 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11939 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11940 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11941   echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
11943   cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949 #undef $ac_tr_decl
11950 #define $ac_tr_decl 1
11951
11952 #include "ansidecl.h"
11953 #include "system.h"
11954 #ifdef HAVE_SYS_RESOURCE_H
11955 #include <sys/resource.h>
11956 #endif
11957
11958
11959 int
11960 main ()
11961 {
11962 #ifndef $ac_func
11963 char *(*pfn) = (char *(*)) $ac_func ;
11964 #endif
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971   (eval $ac_compile) 2>conftest.er1
11972   ac_status=$?
11973   grep -v '^ *+' conftest.er1 >conftest.err
11974   rm -f conftest.er1
11975   cat conftest.err >&5
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } &&
11978          { ac_try='test -z "$ac_c_werror_flag"
11979                          || test ! -s conftest.err'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest.$ac_objext'
11986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987   (eval $ac_try) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   eval "gcc_cv_have_decl_$ac_func=yes"
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 eval "gcc_cv_have_decl_$ac_func=no"
11997 fi
11998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11999 fi
12000
12001 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12002   echo "$as_me:$LINENO: result: yes" >&5
12003 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12004 #define $ac_tr_decl 1
12005 _ACEOF
12006
12007 else
12008   echo "$as_me:$LINENO: result: no" >&5
12009 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12010 #define $ac_tr_decl 0
12011 _ACEOF
12012
12013 fi
12014
12015 done
12016
12017
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h.  */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h.  */
12024
12025 #include "ansidecl.h"
12026 #include "system.h"
12027 #ifdef HAVE_SYS_RESOURCE_H
12028 #include <sys/resource.h>
12029 #endif
12030
12031 int
12032 main ()
12033 {
12034 rlim_t l = 0;
12035   ;
12036   return 0;
12037 }
12038 _ACEOF
12039 rm -f conftest.$ac_objext
12040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12041   (eval $ac_compile) 2>conftest.er1
12042   ac_status=$?
12043   grep -v '^ *+' conftest.er1 >conftest.err
12044   rm -f conftest.er1
12045   cat conftest.err >&5
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); } &&
12048          { ac_try='test -z "$ac_c_werror_flag"
12049                          || test ! -s conftest.err'
12050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051   (eval $ac_try) 2>&5
12052   ac_status=$?
12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054   (exit $ac_status); }; } &&
12055          { ac_try='test -s conftest.$ac_objext'
12056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057   (eval $ac_try) 2>&5
12058   ac_status=$?
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); }; }; then
12061   :
12062 else
12063   echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12065
12066
12067 cat >>confdefs.h <<\_ACEOF
12068 #define rlim_t long
12069 _ACEOF
12070
12071 fi
12072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12073
12074 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12075 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12076 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12077 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12078
12079 for ac_func in ldgetname
12080 do
12081   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12082 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12083 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12084 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087   cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h.  */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h.  */
12093 #undef $ac_tr_decl
12094 #define $ac_tr_decl 1
12095
12096 #include "ansidecl.h"
12097 #include "system.h"
12098 #ifdef HAVE_LDFCN_H
12099 #undef FREAD
12100 #undef FWRITE
12101 #include <ldfcn.h>
12102 #endif
12103
12104
12105 int
12106 main ()
12107 {
12108 #ifndef $ac_func
12109 char *(*pfn) = (char *(*)) $ac_func ;
12110 #endif
12111   ;
12112   return 0;
12113 }
12114 _ACEOF
12115 rm -f conftest.$ac_objext
12116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117   (eval $ac_compile) 2>conftest.er1
12118   ac_status=$?
12119   grep -v '^ *+' conftest.er1 >conftest.err
12120   rm -f conftest.er1
12121   cat conftest.err >&5
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); } &&
12124          { ac_try='test -z "$ac_c_werror_flag"
12125                          || test ! -s conftest.err'
12126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127   (eval $ac_try) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; } &&
12131          { ac_try='test -s conftest.$ac_objext'
12132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133   (eval $ac_try) 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); }; }; then
12137   eval "gcc_cv_have_decl_$ac_func=yes"
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142 eval "gcc_cv_have_decl_$ac_func=no"
12143 fi
12144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145 fi
12146
12147 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12148   echo "$as_me:$LINENO: result: yes" >&5
12149 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12150 #define $ac_tr_decl 1
12151 _ACEOF
12152
12153 else
12154   echo "$as_me:$LINENO: result: no" >&5
12155 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12156 #define $ac_tr_decl 0
12157 _ACEOF
12158
12159 fi
12160
12161 done
12162
12163
12164
12165 for ac_func in times
12166 do
12167   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12168 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12169 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12170 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12171   echo $ECHO_N "(cached) $ECHO_C" >&6
12172 else
12173   cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h.  */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h.  */
12179 #undef $ac_tr_decl
12180 #define $ac_tr_decl 1
12181
12182 #include "ansidecl.h"
12183 #include "system.h"
12184 #ifdef HAVE_SYS_TIMES_H
12185 #include <sys/times.h>
12186 #endif
12187
12188
12189 int
12190 main ()
12191 {
12192 #ifndef $ac_func
12193 char *(*pfn) = (char *(*)) $ac_func ;
12194 #endif
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 rm -f conftest.$ac_objext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201   (eval $ac_compile) 2>conftest.er1
12202   ac_status=$?
12203   grep -v '^ *+' conftest.er1 >conftest.err
12204   rm -f conftest.er1
12205   cat conftest.err >&5
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } &&
12208          { ac_try='test -z "$ac_c_werror_flag"
12209                          || test ! -s conftest.err'
12210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211   (eval $ac_try) 2>&5
12212   ac_status=$?
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); }; } &&
12215          { ac_try='test -s conftest.$ac_objext'
12216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217   (eval $ac_try) 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }; }; then
12221   eval "gcc_cv_have_decl_$ac_func=yes"
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 eval "gcc_cv_have_decl_$ac_func=no"
12227 fi
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 fi
12230
12231 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12232   echo "$as_me:$LINENO: result: yes" >&5
12233 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12234 #define $ac_tr_decl 1
12235 _ACEOF
12236
12237 else
12238   echo "$as_me:$LINENO: result: no" >&5
12239 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12240 #define $ac_tr_decl 0
12241 _ACEOF
12242
12243 fi
12244
12245 done
12246
12247
12248
12249 for ac_func in sigaltstack
12250 do
12251   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12252 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12253 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12254 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12255   echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257   cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h.  */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h.  */
12263 #undef $ac_tr_decl
12264 #define $ac_tr_decl 1
12265
12266 #include "ansidecl.h"
12267 #include "system.h"
12268 #include <signal.h>
12269
12270
12271 int
12272 main ()
12273 {
12274 #ifndef $ac_func
12275 char *(*pfn) = (char *(*)) $ac_func ;
12276 #endif
12277   ;
12278   return 0;
12279 }
12280 _ACEOF
12281 rm -f conftest.$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283   (eval $ac_compile) 2>conftest.er1
12284   ac_status=$?
12285   grep -v '^ *+' conftest.er1 >conftest.err
12286   rm -f conftest.er1
12287   cat conftest.err >&5
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); } &&
12290          { ac_try='test -z "$ac_c_werror_flag"
12291                          || test ! -s conftest.err'
12292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293   (eval $ac_try) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; } &&
12297          { ac_try='test -s conftest.$ac_objext'
12298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299   (eval $ac_try) 2>&5
12300   ac_status=$?
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); }; }; then
12303   eval "gcc_cv_have_decl_$ac_func=yes"
12304 else
12305   echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12307
12308 eval "gcc_cv_have_decl_$ac_func=no"
12309 fi
12310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12311 fi
12312
12313 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12314   echo "$as_me:$LINENO: result: yes" >&5
12315 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12316 #define $ac_tr_decl 1
12317 _ACEOF
12318
12319 else
12320   echo "$as_me:$LINENO: result: no" >&5
12321 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12322 #define $ac_tr_decl 0
12323 _ACEOF
12324
12325 fi
12326
12327 done
12328
12329
12330 # More time-related stuff.
12331 echo "$as_me:$LINENO: checking for struct tms" >&5
12332 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12333 if test "${ac_cv_struct_tms+set}" = set; then
12334   echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h.  */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h.  */
12343
12344 #include "ansidecl.h"
12345 #include "system.h"
12346 #ifdef HAVE_SYS_TIMES_H
12347 #include <sys/times.h>
12348 #endif
12349
12350 int
12351 main ()
12352 {
12353 struct tms tms;
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360   (eval $ac_compile) 2>conftest.er1
12361   ac_status=$?
12362   grep -v '^ *+' conftest.er1 >conftest.err
12363   rm -f conftest.er1
12364   cat conftest.err >&5
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } &&
12367          { ac_try='test -z "$ac_c_werror_flag"
12368                          || test ! -s conftest.err'
12369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370   (eval $ac_try) 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); }; } &&
12374          { ac_try='test -s conftest.$ac_objext'
12375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376   (eval $ac_try) 2>&5
12377   ac_status=$?
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); }; }; then
12380   ac_cv_struct_tms=yes
12381 else
12382   echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385 ac_cv_struct_tms=no
12386 fi
12387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12388 fi
12389 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12390 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12391 if test $ac_cv_struct_tms = yes; then
12392
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_STRUCT_TMS 1
12395 _ACEOF
12396
12397 fi
12398
12399 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12400 # revisit after autoconf 2.50.
12401 echo "$as_me:$LINENO: checking for clock_t" >&5
12402 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12403 if test "${gcc_cv_type_clock_t+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h.  */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h.  */
12413
12414 #include "ansidecl.h"
12415 #include "system.h"
12416
12417 int
12418 main ()
12419 {
12420 clock_t x;
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427   (eval $ac_compile) 2>conftest.er1
12428   ac_status=$?
12429   grep -v '^ *+' conftest.er1 >conftest.err
12430   rm -f conftest.er1
12431   cat conftest.err >&5
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); } &&
12434          { ac_try='test -z "$ac_c_werror_flag"
12435                          || test ! -s conftest.err'
12436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437   (eval $ac_try) 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; } &&
12441          { ac_try='test -s conftest.$ac_objext'
12442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443   (eval $ac_try) 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); }; }; then
12447   gcc_cv_type_clock_t=yes
12448 else
12449   echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452 gcc_cv_type_clock_t=no
12453 fi
12454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12455 fi
12456 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12457 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12458 if test $gcc_cv_type_clock_t = yes; then
12459
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_CLOCK_T 1
12462 _ACEOF
12463
12464 fi
12465
12466 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12467 CFLAGS="$saved_CFLAGS"
12468
12469 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12470 if test "${enable_initfini_array+set}" = set; then
12471   enableval="$enable_initfini_array"
12472
12473 else
12474
12475 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12476 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12477 if test "${gcc_cv_initfini_array+set}" = set; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480     if test "$cross_compiling" = yes; then
12481   gcc_cv_initfini_array=no
12482 else
12483   cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h.  */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h.  */
12489
12490 static int x = -1;
12491 int main (void) { return x; }
12492 int foo (void) { x = 0; }
12493 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12494 _ACEOF
12495 rm -f conftest$ac_exeext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497   (eval $ac_link) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502   (eval $ac_try) 2>&5
12503   ac_status=$?
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); }; }; then
12506   gcc_cv_initfini_array=yes
12507 else
12508   echo "$as_me: program exited with status $ac_status" >&5
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512 ( exit $ac_status )
12513 gcc_cv_initfini_array=no
12514 fi
12515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12516 fi
12517 fi
12518 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12519 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12520   enable_initfini_array=$gcc_cv_initfini_array
12521
12522 fi;
12523 if test $enable_initfini_array = yes; then
12524
12525 cat >>confdefs.h <<\_ACEOF
12526 #define HAVE_INITFINI_ARRAY 1
12527 _ACEOF
12528
12529 fi
12530
12531 # mkdir takes a single argument on some systems.
12532 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12533 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12534 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12535   echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537   cat >conftest.$ac_ext <<_ACEOF
12538 /* confdefs.h.  */
12539 _ACEOF
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h.  */
12543
12544 #include <sys/types.h>
12545 #ifdef HAVE_SYS_STAT_H
12546 # include <sys/stat.h>
12547 #endif
12548 #ifdef HAVE_UNISTD_H
12549 # include <unistd.h>
12550 #endif
12551 #ifdef HAVE_DIRECT_H
12552 # include <direct.h>
12553 #endif
12554 int
12555 main ()
12556 {
12557 mkdir ("foo", 0);
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564   (eval $ac_compile) 2>conftest.er1
12565   ac_status=$?
12566   grep -v '^ *+' conftest.er1 >conftest.err
12567   rm -f conftest.er1
12568   cat conftest.err >&5
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); } &&
12571          { ac_try='test -z "$ac_c_werror_flag"
12572                          || test ! -s conftest.err'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; } &&
12578          { ac_try='test -s conftest.$ac_objext'
12579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580   (eval $ac_try) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; }; then
12584   gcc_cv_mkdir_takes_one_arg=no
12585 else
12586   echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589 gcc_cv_mkdir_takes_one_arg=yes
12590 fi
12591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12592 fi
12593 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12594 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12595 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12596
12597 cat >>confdefs.h <<\_ACEOF
12598 #define MKDIR_TAKES_ONE_ARG 1
12599 _ACEOF
12600
12601 fi
12602
12603
12604 # File extensions
12605 manext='.1'
12606 objext='.o'
12607
12608
12609
12610 # With Setjmp/Longjmp based exception handling.
12611 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12612 if test "${enable_sjlj_exceptions+set}" = set; then
12613   enableval="$enable_sjlj_exceptions"
12614   case $target in
12615   *-*-hpux10*)
12616     if test $enableval != yes; then
12617       { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12618 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12619       enableval=yes
12620     fi
12621     ;;
12622 esac
12623 force_sjlj_exceptions=yes
12624 else
12625   case $target in
12626   *-*-hpux10*)
12627     force_sjlj_exceptions=yes
12628     enableval=yes
12629     ;;
12630   *)
12631     force_sjlj_exceptions=no
12632     ;;
12633 esac
12634 fi;
12635 if test $force_sjlj_exceptions = yes; then
12636   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12637
12638 cat >>confdefs.h <<_ACEOF
12639 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12640 _ACEOF
12641
12642 fi
12643
12644 # For platforms with the unwind ABI which includes an unwind library,
12645 # libunwind, we can choose to use the system libunwind.
12646
12647 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12648 if test "${with_system_libunwind+set}" = set; then
12649   withval="$with_system_libunwind"
12650
12651 fi;
12652
12653 # config.gcc also contains tests of with_system_libunwind.
12654 if test x$with_system_libunwind = xyes; then
12655
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_GETIPINFO 1
12658 _ACEOF
12659
12660 fi
12661
12662 # --------------------------------------------------------
12663 # Build, host, and target specific configuration fragments
12664 # --------------------------------------------------------
12665
12666 # Collect build-machine-specific information.
12667 . ${srcdir}/config.build
12668
12669 # Collect host-machine-specific information.
12670 . ${srcdir}/config.host
12671
12672 target_gtfiles=
12673
12674 # Collect target-machine-specific information.
12675 . ${srcdir}/config.gcc
12676
12677 extra_objs="${host_extra_objs} ${extra_objs}"
12678 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12679
12680 # Default the target-machine variables that were not explicitly set.
12681 if test x"$tm_file" = x
12682 then tm_file=$cpu_type/$cpu_type.h; fi
12683
12684 if test x"$extra_headers" = x
12685 then extra_headers=; fi
12686
12687 if test x$md_file = x
12688 then md_file=$cpu_type/$cpu_type.md; fi
12689
12690 if test x$out_file = x
12691 then out_file=$cpu_type/$cpu_type.c; fi
12692
12693 if test x"$tmake_file" = x
12694 then tmake_file=$cpu_type/t-$cpu_type
12695 fi
12696
12697 if test x"$dwarf2" = xyes
12698 then tm_file="$tm_file tm-dwarf2.h"
12699 fi
12700
12701 # Say what files are being used for the output code and MD file.
12702 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12703 echo "Using \`$srcdir/config/$md_file' as machine description file."
12704
12705 # If any of the xm_file variables contain nonexistent files, warn
12706 # about them and drop them.
12707
12708 bx=
12709 for x in $build_xm_file; do
12710   if    test -f $srcdir/config/$x
12711   then      bx="$bx $x"
12712   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12713 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12714   fi
12715 done
12716 build_xm_file="$bx"
12717
12718 hx=
12719 for x in $host_xm_file; do
12720   if    test -f $srcdir/config/$x
12721   then      hx="$hx $x"
12722   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12723 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12724   fi
12725 done
12726 host_xm_file="$hx"
12727
12728 tx=
12729 for x in $xm_file; do
12730   if    test -f $srcdir/config/$x
12731   then      tx="$tx $x"
12732   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12733 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12734   fi
12735 done
12736 xm_file="$tx"
12737
12738 count=a
12739 for f in $tm_file; do
12740         count=${count}x
12741 done
12742 if test $count = ax; then
12743         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12744 else
12745         echo "Using the following target machine macro files:"
12746         for f in $tm_file; do
12747                 echo "  $srcdir/config/$f"
12748         done
12749 fi
12750
12751 if test x$need_64bit_hwint = xyes; then
12752
12753 cat >>confdefs.h <<\_ACEOF
12754 #define NEED_64BIT_HOST_WIDE_INT 1
12755 _ACEOF
12756
12757 fi
12758
12759 if test x$use_long_long_for_widest_fast_int = xyes; then
12760
12761 cat >>confdefs.h <<\_ACEOF
12762 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12763 _ACEOF
12764
12765 fi
12766
12767 count=a
12768 for f in $host_xm_file; do
12769         count=${count}x
12770 done
12771 if test $count = a; then
12772         :
12773 elif test $count = ax; then
12774         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12775 else
12776         echo "Using the following host machine macro files:"
12777         for f in $host_xm_file; do
12778                 echo "  $srcdir/config/$f"
12779         done
12780 fi
12781 echo "Using ${out_host_hook_obj} for host machine hooks."
12782
12783 if test "$host_xm_file" != "$build_xm_file"; then
12784         count=a
12785         for f in $build_xm_file; do
12786                 count=${count}x
12787         done
12788         if test $count = a; then
12789                 :
12790         elif test $count = ax; then
12791                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12792         else
12793                 echo "Using the following build machine macro files:"
12794                 for f in $build_xm_file; do
12795                         echo "  $srcdir/config/$f"
12796                 done
12797         fi
12798 fi
12799
12800 case ${host} in
12801   powerpc*-*-darwin*)
12802     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12803 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12804 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807   cat >conftest.$ac_ext <<_ACEOF
12808
12809 #include <sys/cdefs.h>
12810 #include <sys/signal.h>
12811 #include <ucontext.h>
12812 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12813
12814 _ACEOF
12815 rm -f conftest.$ac_objext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817   (eval $ac_compile) 2>conftest.er1
12818   ac_status=$?
12819   grep -v '^ *+' conftest.er1 >conftest.err
12820   rm -f conftest.er1
12821   cat conftest.err >&5
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); } &&
12824          { ac_try='test -z "$ac_c_werror_flag"
12825                          || test ! -s conftest.err'
12826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827   (eval $ac_try) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; } &&
12831          { ac_try='test -s conftest.$ac_objext'
12832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833   (eval $ac_try) 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; }; then
12837   gcc_cv_mcontext_underscores=no
12838 else
12839   echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12841
12842 gcc_cv_mcontext_underscores=yes
12843 fi
12844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12845 fi
12846 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12847 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12848       if test $gcc_cv_mcontext_underscores = yes; then
12849
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAS_MCONTEXT_T_UNDERSCORES
12852 _ACEOF
12853
12854       fi
12855     ;;
12856 esac
12857
12858 # ---------
12859 # Threading
12860 # ---------
12861
12862 # Check if a valid thread package
12863 case ${enable_threads} in
12864   "" | no)
12865     # No threads
12866     target_thread_file='single'
12867     ;;
12868   yes)
12869     # default
12870     target_thread_file='single'
12871     ;;
12872   aix | dce | gnat | irix | posix | posix95 | rtems | \
12873   single | solaris | vxworks | win32 | mipssde)
12874     target_thread_file=${enable_threads}
12875     ;;
12876   *)
12877     echo "${enable_threads} is an unknown thread package" 1>&2
12878     exit 1
12879     ;;
12880 esac
12881
12882 if test x${thread_file} = x; then
12883   # No thread file set by target-specific clauses in config.gcc,
12884   # so use file chosen by default logic above
12885   thread_file=${target_thread_file}
12886 fi
12887
12888 # Make gthr-default.h if we have a thread file.
12889 gthread_flags=
12890 if test $thread_file != single; then
12891   rm -f gthr-default.h
12892   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12893   gthread_flags=-DHAVE_GTHR_DEFAULT
12894 fi
12895
12896
12897 # --------
12898 # UNSORTED
12899 # --------
12900
12901 use_cxa_atexit=no
12902 if test x$enable___cxa_atexit = xyes || \
12903    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12904   if test x$host = x$target; then
12905     case $host in
12906       # mingw32 doesn't have __cxa_atexit but uses atexit registration
12907       # keyed to flag_use_cxa_atexit
12908       *-*-mingw32*)
12909         use_cxa_atexit=yes
12910         ;;
12911       *)
12912         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12913 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12914 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12915   echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917   cat >conftest.$ac_ext <<_ACEOF
12918 /* confdefs.h.  */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h.  */
12923 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12925 #define __cxa_atexit innocuous___cxa_atexit
12926
12927 /* System header to define __stub macros and hopefully few prototypes,
12928     which can conflict with char __cxa_atexit (); below.
12929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12930     <limits.h> exists even on freestanding compilers.  */
12931
12932 #ifdef __STDC__
12933 # include <limits.h>
12934 #else
12935 # include <assert.h>
12936 #endif
12937
12938 #undef __cxa_atexit
12939
12940 /* Override any gcc2 internal prototype to avoid an error.  */
12941 #ifdef __cplusplus
12942 extern "C"
12943 {
12944 #endif
12945 /* We use char because int might match the return type of a gcc2
12946    builtin and then its argument prototype would still apply.  */
12947 char __cxa_atexit ();
12948 /* The GNU C library defines this for functions which it implements
12949     to always fail with ENOSYS.  Some functions are actually named
12950     something starting with __ and the normal name is an alias.  */
12951 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12952 choke me
12953 #else
12954 char (*f) () = __cxa_atexit;
12955 #endif
12956 #ifdef __cplusplus
12957 }
12958 #endif
12959
12960 int
12961 main ()
12962 {
12963 return f != __cxa_atexit;
12964   ;
12965   return 0;
12966 }
12967 _ACEOF
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12970   (eval $ac_link) 2>conftest.er1
12971   ac_status=$?
12972   grep -v '^ *+' conftest.er1 >conftest.err
12973   rm -f conftest.er1
12974   cat conftest.err >&5
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); } &&
12977          { ac_try='test -z "$ac_c_werror_flag"
12978                          || test ! -s conftest.err'
12979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980   (eval $ac_try) 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; } &&
12984          { ac_try='test -s conftest$ac_exeext'
12985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986   (eval $ac_try) 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); }; }; then
12990   ac_cv_func___cxa_atexit=yes
12991 else
12992   echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12994
12995 ac_cv_func___cxa_atexit=no
12996 fi
12997 rm -f conftest.err conftest.$ac_objext \
12998       conftest$ac_exeext conftest.$ac_ext
12999 fi
13000 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13001 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13002 if test $ac_cv_func___cxa_atexit = yes; then
13003   use_cxa_atexit=yes
13004 else
13005   echo "__cxa_atexit can't be enabled on this target"
13006 fi
13007
13008         ;;
13009     esac
13010   else
13011     # We can't check for __cxa_atexit when building a cross, so assume
13012     # it is available
13013     use_cxa_atexit=yes
13014   fi
13015   if test x$use_cxa_atexit = xyes; then
13016
13017 cat >>confdefs.h <<\_ACEOF
13018 #define DEFAULT_USE_CXA_ATEXIT 2
13019 _ACEOF
13020
13021   fi
13022 fi
13023
13024 use_getipinfo=yes
13025 if test x$with_system_libunwind = xyes; then
13026    if test x$host = x$target; then
13027      echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13028 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13029 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13030   echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032   ac_func_search_save_LIBS=$LIBS
13033 ac_cv_search__Unwind_GetIPInfo=no
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h.  */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h.  */
13040
13041 /* Override any gcc2 internal prototype to avoid an error.  */
13042 #ifdef __cplusplus
13043 extern "C"
13044 #endif
13045 /* We use char because int might match the return type of a gcc2
13046    builtin and then its argument prototype would still apply.  */
13047 char _Unwind_GetIPInfo ();
13048 int
13049 main ()
13050 {
13051 _Unwind_GetIPInfo ();
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058   (eval $ac_link) 2>conftest.er1
13059   ac_status=$?
13060   grep -v '^ *+' conftest.er1 >conftest.err
13061   rm -f conftest.er1
13062   cat conftest.err >&5
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); } &&
13065          { ac_try='test -z "$ac_c_werror_flag"
13066                          || test ! -s conftest.err'
13067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068   (eval $ac_try) 2>&5
13069   ac_status=$?
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); }; } &&
13072          { ac_try='test -s conftest$ac_exeext'
13073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074   (eval $ac_try) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); }; }; then
13078   ac_cv_search__Unwind_GetIPInfo="none required"
13079 else
13080   echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13082
13083 fi
13084 rm -f conftest.err conftest.$ac_objext \
13085       conftest$ac_exeext conftest.$ac_ext
13086 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13087   for ac_lib in unwind; do
13088     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13089     cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095
13096 /* Override any gcc2 internal prototype to avoid an error.  */
13097 #ifdef __cplusplus
13098 extern "C"
13099 #endif
13100 /* We use char because int might match the return type of a gcc2
13101    builtin and then its argument prototype would still apply.  */
13102 char _Unwind_GetIPInfo ();
13103 int
13104 main ()
13105 {
13106 _Unwind_GetIPInfo ();
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113   (eval $ac_link) 2>conftest.er1
13114   ac_status=$?
13115   grep -v '^ *+' conftest.er1 >conftest.err
13116   rm -f conftest.er1
13117   cat conftest.err >&5
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); } &&
13120          { ac_try='test -z "$ac_c_werror_flag"
13121                          || test ! -s conftest.err'
13122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123   (eval $ac_try) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; } &&
13127          { ac_try='test -s conftest$ac_exeext'
13128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129   (eval $ac_try) 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); }; }; then
13133   ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13134 break
13135 else
13136   echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13138
13139 fi
13140 rm -f conftest.err conftest.$ac_objext \
13141       conftest$ac_exeext conftest.$ac_ext
13142   done
13143 fi
13144 LIBS=$ac_func_search_save_LIBS
13145 fi
13146 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13147 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13148 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13149   test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13150
13151 else
13152   use_getipinfo=no
13153 fi
13154
13155    fi
13156 fi
13157
13158 if test x$use_getipinfo = xyes; then
13159
13160 cat >>confdefs.h <<\_ACEOF
13161 #define HAVE_GETIPINFO 1
13162 _ACEOF
13163
13164 else
13165    echo "The system unwind library does not support _Unwind_GetIPInfo."
13166 fi
13167
13168 # Look for a file containing extra machine modes.
13169 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13170   extra_modes_file='$(srcdir)'/config/${extra_modes}
13171
13172
13173 cat >>confdefs.h <<_ACEOF
13174 #define EXTRA_MODES_FILE "config/$extra_modes"
13175 _ACEOF
13176
13177 fi
13178
13179 # Convert extra_options into a form suitable for Makefile use.
13180 extra_opt_files=
13181 for f in $extra_options; do
13182   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13183 done
13184
13185
13186 # auto-host.h is the file containing items generated by autoconf and is
13187 # the first file included by config.h.
13188 # If host=build, it is correct to have bconfig include auto-host.h
13189 # as well.  If host!=build, we are in error and need to do more
13190 # work to find out the build config parameters.
13191 if test x$host = x$build
13192 then
13193         build_auto=auto-host.h
13194 else
13195         # We create a subdir, then run autoconf in the subdir.
13196         # To prevent recursion we set host and build for the new
13197         # invocation of configure to the build for this invocation
13198         # of configure.
13199         tempdir=build.$$
13200         rm -rf $tempdir
13201         mkdir $tempdir
13202         cd $tempdir
13203         case ${srcdir} in
13204         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13205         *) realsrcdir=../${srcdir};;
13206         esac
13207         saved_CFLAGS="${CFLAGS}"
13208         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13209         ${realsrcdir}/configure \
13210                 --enable-languages=${enable_languages-all} \
13211                 --target=$target_alias --host=$build_alias --build=$build_alias
13212         CFLAGS="${saved_CFLAGS}"
13213
13214         # We just finished tests for the build machine, so rename
13215         # the file auto-build.h in the gcc directory.
13216         mv auto-host.h ../auto-build.h
13217         cd ..
13218         rm -rf $tempdir
13219         build_auto=auto-build.h
13220 fi
13221
13222
13223 tm_file="${tm_file} defaults.h"
13224 tm_p_file="${tm_p_file} tm-preds.h"
13225 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13226 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13227 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13228 # put this back in temporarily.
13229 xm_file="auto-host.h ansidecl.h ${xm_file}"
13230
13231 # --------
13232 # UNSORTED
13233 # --------
13234
13235 # Compile in configure arguments.
13236 if test -f configargs.h ; then
13237         # Being re-configured.
13238         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13239         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13240 else
13241         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13242 fi
13243
13244 # Double all backslashes and backslash all quotes to turn
13245 # gcc_config_arguments into a C string.
13246 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13247 $gcc_config_arguments
13248 EOF
13249 gcc_config_arguments_str=`cat conftest.out`
13250 rm -f conftest.out
13251
13252 cat > configargs.h <<EOF
13253 /* Generated automatically. */
13254 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13255 static const char thread_model[] = "$thread_file";
13256
13257 static const struct {
13258   const char *name, *value;
13259 } configure_default_options[] = $configure_default_options;
13260 EOF
13261
13262 # Internationalization
13263 # If we haven't got the data from the intl directory,
13264 # assume NLS is disabled.
13265 USE_NLS=no
13266 LIBINTL=
13267 LIBINTL_DEP=
13268 INCINTL=
13269 XGETTEXT=
13270 GMSGFMT=
13271 POSUB=
13272
13273 if test -f  ../intl/config.intl; then
13274   .  ../intl/config.intl
13275 fi
13276 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13277 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13278 if test x"$USE_NLS" != xyes; then
13279   echo "$as_me:$LINENO: result: no" >&5
13280 echo "${ECHO_T}no" >&6
13281 else
13282   echo "$as_me:$LINENO: result: yes" >&5
13283 echo "${ECHO_T}yes" >&6
13284
13285 cat >>confdefs.h <<\_ACEOF
13286 #define ENABLE_NLS 1
13287 _ACEOF
13288
13289
13290   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13291 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13292   # Look for .po and .gmo files in the source directory.
13293   CATALOGS=
13294   XLINGUAS=
13295   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13296     # If there aren't any .gmo files the shell will give us the
13297     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13298     # weeded out.
13299     case "$cat" in *\**)
13300       continue;;
13301     esac
13302     # The quadruple backslash is collapsed to a double backslash
13303     # by the backticks, then collapsed again by the double quotes,
13304     # leaving us with one backslash in the sed expression (right
13305     # before the dot that mustn't act as a wildcard).
13306     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13307     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13308     # The user is allowed to set LINGUAS to a list of languages to
13309     # install catalogs for.  If it's empty that means "all of them."
13310     if test "x$LINGUAS" = x; then
13311       CATALOGS="$CATALOGS $cat"
13312       XLINGUAS="$XLINGUAS $lang"
13313     else
13314       case "$LINGUAS" in *$lang*)
13315         CATALOGS="$CATALOGS $cat"
13316         XLINGUAS="$XLINGUAS $lang"
13317         ;;
13318       esac
13319     fi
13320   done
13321   LINGUAS="$XLINGUAS"
13322   echo "$as_me:$LINENO: result: $LINGUAS" >&5
13323 echo "${ECHO_T}$LINGUAS" >&6
13324
13325
13326     DATADIRNAME=share
13327
13328   INSTOBJEXT=.mo
13329
13330   GENCAT=gencat
13331
13332   CATOBJEXT=.gmo
13333
13334 fi
13335
13336 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13337 # -liconv on the link line twice.
13338 case "$LIBINTL" in *$LIBICONV*)
13339         LIBICONV= ;;
13340 esac
13341
13342 # Check whether --enable-secureplt or --disable-secureplt was given.
13343 if test "${enable_secureplt+set}" = set; then
13344   enableval="$enable_secureplt"
13345
13346 fi;
13347
13348 # Windows32 Registry support for specifying GCC installation paths.
13349 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13350 if test "${enable_win32_registry+set}" = set; then
13351   enableval="$enable_win32_registry"
13352
13353 fi;
13354
13355 case $host_os in
13356   win32 | pe | cygwin* | mingw32* | uwin*)
13357     if test "x$enable_win32_registry" != xno; then
13358       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13359 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13360 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   ac_func_search_save_LIBS=$LIBS
13364 ac_cv_search_RegOpenKeyExA=no
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h.  */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h.  */
13371
13372 /* Override any gcc2 internal prototype to avoid an error.  */
13373 #ifdef __cplusplus
13374 extern "C"
13375 #endif
13376 /* We use char because int might match the return type of a gcc2
13377    builtin and then its argument prototype would still apply.  */
13378 char RegOpenKeyExA ();
13379 int
13380 main ()
13381 {
13382 RegOpenKeyExA ();
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389   (eval $ac_link) 2>conftest.er1
13390   ac_status=$?
13391   grep -v '^ *+' conftest.er1 >conftest.err
13392   rm -f conftest.er1
13393   cat conftest.err >&5
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); } &&
13396          { ac_try='test -z "$ac_c_werror_flag"
13397                          || test ! -s conftest.err'
13398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399   (eval $ac_try) 2>&5
13400   ac_status=$?
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); }; } &&
13403          { ac_try='test -s conftest$ac_exeext'
13404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405   (eval $ac_try) 2>&5
13406   ac_status=$?
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); }; }; then
13409   ac_cv_search_RegOpenKeyExA="none required"
13410 else
13411   echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13413
13414 fi
13415 rm -f conftest.err conftest.$ac_objext \
13416       conftest$ac_exeext conftest.$ac_ext
13417 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13418   for ac_lib in advapi32; do
13419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13420     cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h.  */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h.  */
13426
13427 /* Override any gcc2 internal prototype to avoid an error.  */
13428 #ifdef __cplusplus
13429 extern "C"
13430 #endif
13431 /* We use char because int might match the return type of a gcc2
13432    builtin and then its argument prototype would still apply.  */
13433 char RegOpenKeyExA ();
13434 int
13435 main ()
13436 {
13437 RegOpenKeyExA ();
13438   ;
13439   return 0;
13440 }
13441 _ACEOF
13442 rm -f conftest.$ac_objext conftest$ac_exeext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13444   (eval $ac_link) 2>conftest.er1
13445   ac_status=$?
13446   grep -v '^ *+' conftest.er1 >conftest.err
13447   rm -f conftest.er1
13448   cat conftest.err >&5
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -z "$ac_c_werror_flag"
13452                          || test ! -s conftest.err'
13453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454   (eval $ac_try) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; } &&
13458          { ac_try='test -s conftest$ac_exeext'
13459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460   (eval $ac_try) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; }; then
13464   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13465 break
13466 else
13467   echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 fi
13471 rm -f conftest.err conftest.$ac_objext \
13472       conftest$ac_exeext conftest.$ac_ext
13473   done
13474 fi
13475 LIBS=$ac_func_search_save_LIBS
13476 fi
13477 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13478 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13479 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13480   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13481
13482 else
13483   enable_win32_registry=no
13484 fi
13485
13486     fi
13487
13488     if test "x$enable_win32_registry" != xno; then
13489
13490 cat >>confdefs.h <<\_ACEOF
13491 #define ENABLE_WIN32_REGISTRY 1
13492 _ACEOF
13493
13494
13495       if test "x$enable_win32_registry" != xyes \
13496          && test "x$enable_win32_registry" != x; then
13497
13498 cat >>confdefs.h <<_ACEOF
13499 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13500 _ACEOF
13501
13502       fi
13503     fi
13504   ;;
13505 esac
13506
13507 # Get an absolute path to the GCC top-level source directory
13508 holddir=`${PWDCMD-pwd}`
13509 cd $srcdir
13510 topdir=`${PWDCMD-pwd}`
13511 cd $holddir
13512
13513 # Conditionalize the makefile for this host machine.
13514 xmake_file=
13515 for f in ${host_xmake_file}
13516 do
13517         if test -f ${srcdir}/config/$f
13518         then
13519                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13520         fi
13521 done
13522
13523 # Conditionalize the makefile for this target machine.
13524 tmake_file_=
13525 for f in ${tmake_file}
13526 do
13527         if test -f ${srcdir}/config/$f
13528         then
13529                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13530         fi
13531 done
13532 tmake_file="${tmake_file_}"
13533
13534 # This is a terrible hack which will go away some day.
13535 host_cc_for_libada=${CC}
13536
13537
13538 out_object_file=`basename $out_file .c`.o
13539
13540 tm_file_list="options.h"
13541 tm_include_list="options.h"
13542 for f in $tm_file; do
13543   case $f in
13544     ./* )
13545        f=`echo $f | sed 's/^..//'`
13546        tm_file_list="${tm_file_list} $f"
13547        tm_include_list="${tm_include_list} $f"
13548        ;;
13549     defaults.h )
13550        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13551        tm_include_list="${tm_include_list} $f"
13552        ;;
13553     * )
13554        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13555        tm_include_list="${tm_include_list} config/$f"
13556        ;;
13557   esac
13558 done
13559
13560 tm_p_file_list=
13561 tm_p_include_list=
13562 for f in $tm_p_file; do
13563   case $f in
13564     tm-preds.h )
13565        tm_p_file_list="${tm_p_file_list} $f"
13566        tm_p_include_list="${tm_p_include_list} $f"
13567        ;;
13568     * )
13569        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13570        tm_p_include_list="${tm_p_include_list} config/$f"
13571   esac
13572 done
13573
13574 xm_file_list=
13575 xm_include_list=
13576 for f in $xm_file; do
13577   case $f in
13578     ansidecl.h )
13579        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13580        xm_include_list="${xm_include_list} $f"
13581        ;;
13582     auto-host.h )
13583        xm_file_list="${xm_file_list} $f"
13584        xm_include_list="${xm_include_list} $f"
13585        ;;
13586     * )
13587        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13588        xm_include_list="${xm_include_list} config/$f"
13589        ;;
13590   esac
13591 done
13592
13593 host_xm_file_list=
13594 host_xm_include_list=
13595 for f in $host_xm_file; do
13596   case $f in
13597     ansidecl.h )
13598        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13599        host_xm_include_list="${host_xm_include_list} $f"
13600        ;;
13601     auto-host.h )
13602        host_xm_file_list="${host_xm_file_list} $f"
13603        host_xm_include_list="${host_xm_include_list} $f"
13604        ;;
13605     * )
13606        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13607        host_xm_include_list="${host_xm_include_list} config/$f"
13608        ;;
13609   esac
13610 done
13611
13612 build_xm_file_list=
13613 for f in $build_xm_file; do
13614   case $f in
13615     ansidecl.h )
13616        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13617        build_xm_include_list="${build_xm_include_list} $f"
13618        ;;
13619     auto-build.h | auto-host.h )
13620        build_xm_file_list="${build_xm_file_list} $f"
13621        build_xm_include_list="${build_xm_include_list} $f"
13622        ;;
13623     * )
13624        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13625        build_xm_include_list="${build_xm_include_list} config/$f"
13626        ;;
13627   esac
13628 done
13629
13630 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13631 # cross-compiler which does not use the native headers and libraries.
13632 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13633 CROSS=
13634 ALL=all.internal
13635 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13636
13637 if test "x$with_build_sysroot" != x; then
13638   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13639 else
13640   # This value is used, even on a native system, because
13641   # CROSS_SYSTEM_HEADER_DIR is just
13642   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13643   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13644 fi
13645
13646 if test x$host != x$target
13647 then
13648         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13649         ALL=all.cross
13650         SYSTEM_HEADER_DIR=$build_system_header_dir
13651         case "$host","$target" in
13652         # Darwin crosses can use the host system's libraries and headers,
13653         # because of the fat library support.  Of course, it must be the
13654         # same version of Darwin on both sides.  Allow the user to
13655         # just say --target=foo-darwin without a version number to mean
13656         # "the version on this system".
13657             *-*-darwin*,*-*-darwin*)
13658                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13659                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13660                 if test $hostos = $targetos -o $targetos = darwin ; then
13661                     CROSS=
13662                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13663                     with_headers=yes
13664                 fi
13665                 ;;
13666
13667             i?86-*-*,x86_64-*-* \
13668             | powerpc*-*-*,powerpc64*-*-*)
13669                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13670         esac
13671 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13672         SYSTEM_HEADER_DIR=$build_system_header_dir
13673 fi
13674
13675 # If this is a cross-compiler that does not
13676 # have its own set of headers then define
13677 # inhibit_libc
13678
13679 # If this is using newlib, without having the headers available now,
13680 # then define inhibit_libc in LIBGCC2_CFLAGS.
13681 # This prevents libgcc2 from containing any code which requires libc
13682 # support.
13683 : ${inhibit_libc=false}
13684 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13685        test x$with_newlib = xyes ; } &&
13686      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13687        inhibit_libc=true
13688 fi
13689
13690
13691 # When building gcc with a cross-compiler, we need to adjust things so
13692 # that the generator programs are still built with the native compiler.
13693 # Also, we cannot run fixincludes or fix-header.
13694
13695 # These are the normal (build=host) settings:
13696 CC_FOR_BUILD='$(CC)'
13697 BUILD_CFLAGS='$(ALL_CFLAGS)'
13698 STMP_FIXINC=stmp-fixinc
13699
13700 # Possibly disable fixproto, on a per-target basis.
13701 case ${use_fixproto} in
13702   no)
13703     STMP_FIXPROTO=
13704     ;;
13705   yes)
13706     STMP_FIXPROTO=stmp-fixproto
13707     ;;
13708 esac
13709
13710
13711 # And these apply if build != host, or we are generating coverage data
13712 if test x$build != x$host || test "x$coverage_flags" != x
13713 then
13714     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13715
13716     if test "x$TARGET_SYSTEM_ROOT" = x; then
13717         if test "x$STMP_FIXPROTO" != x; then
13718           STMP_FIXPROTO=stmp-install-fixproto
13719         fi
13720     fi
13721 fi
13722
13723 # Expand extra_headers to include complete path.
13724 # This substitutes for lots of t-* files.
13725 extra_headers_list=
13726 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13727 for file in ${extra_headers} ; do
13728   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13729 done
13730
13731 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13732 if test x"$use_gcc_tgmath" = xyes
13733 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13734 fi
13735
13736 # Define collect2 in Makefile.
13737 case $host_can_use_collect2 in
13738   no) collect2= ;;
13739   *) collect2='collect2$(exeext)' ;;
13740 esac
13741
13742
13743 # Add a definition of USE_COLLECT2 if system wants one.
13744 case $use_collect2 in
13745   no) use_collect2= ;;
13746   "") ;;
13747   *)
13748     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13749     xm_defines="${xm_defines} USE_COLLECT2"
13750     case $host_can_use_collect2 in
13751       no)
13752         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13753 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13754    { (exit 1); exit 1; }; }
13755         ;;
13756     esac
13757     ;;
13758 esac
13759
13760 # ---------------------------
13761 # Assembler & linker features
13762 # ---------------------------
13763
13764 # Identify the assembler which will work hand-in-glove with the newly
13765 # built GCC, so that we can examine its features.  This is the assembler
13766 # which will be driven by the driver program.
13767 #
13768 # If build != host, and we aren't building gas in-tree, we identify a
13769 # build->target assembler and hope that it will have the same features
13770 # as the host->target assembler we'll be using.
13771 gcc_cv_gas_major_version=
13772 gcc_cv_gas_minor_version=
13773 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13774
13775 if test "${gcc_cv_as+set}" = set; then
13776   :
13777 else
13778
13779 if test -x "$DEFAULT_ASSEMBLER"; then
13780         gcc_cv_as="$DEFAULT_ASSEMBLER"
13781 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13782      && test -f ../gas/Makefile \
13783      && test x$build = x$host; then
13784         gcc_cv_as=../gas/as-new$build_exeext
13785 elif test -x as$build_exeext; then
13786         # Build using assembler in the current directory.
13787         gcc_cv_as=./as$build_exeext
13788 elif test -x $AS_FOR_TARGET; then
13789         gcc_cv_as="$AS_FOR_TARGET"
13790 else
13791         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13792 set dummy $AS_FOR_TARGET; ac_word=$2
13793 echo "$as_me:$LINENO: checking for $ac_word" >&5
13794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13795 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   case $gcc_cv_as in
13799   [\\/]* | ?:[\\/]*)
13800   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13801   ;;
13802   *)
13803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13805 do
13806   IFS=$as_save_IFS
13807   test -z "$as_dir" && as_dir=.
13808   for ac_exec_ext in '' $ac_executable_extensions; do
13809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13812     break 2
13813   fi
13814 done
13815 done
13816
13817   ;;
13818 esac
13819 fi
13820 gcc_cv_as=$ac_cv_path_gcc_cv_as
13821
13822 if test -n "$gcc_cv_as"; then
13823   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13824 echo "${ECHO_T}$gcc_cv_as" >&6
13825 else
13826   echo "$as_me:$LINENO: result: no" >&5
13827 echo "${ECHO_T}no" >&6
13828 fi
13829
13830 fi
13831 fi
13832
13833
13834 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13835
13836 case "$ORIGINAL_AS_FOR_TARGET" in
13837   ./as | ./as$build_exeext) ;;
13838   *)           ac_config_files="$ac_config_files as:exec-tool.in"
13839  ;;
13840 esac
13841
13842 echo "$as_me:$LINENO: checking what assembler to use" >&5
13843 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13844 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13845   # Single tree build which includes gas.  We want to prefer it
13846   # over whatever linker top-level may have detected, since
13847   # we'll use what we're building after installation anyway.
13848   echo "$as_me:$LINENO: result: newly built gas" >&5
13849 echo "${ECHO_T}newly built gas" >&6
13850   in_tree_gas=yes
13851   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13852 for f in $gcc_cv_as_bfd_srcdir/configure \
13853          $gcc_cv_as_gas_srcdir/configure \
13854          $gcc_cv_as_gas_srcdir/configure.in \
13855          $gcc_cv_as_gas_srcdir/Makefile.in ; do
13856   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13857   if test x$gcc_cv_gas_version != x; then
13858     break
13859   fi
13860 done
13861 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13862 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13863 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13864 case $gcc_cv_gas_patch_version in
13865   "") gcc_cv_gas_patch_version="0" ;;
13866 esac
13867 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13868                             + $gcc_cv_gas_minor_version \) \* 1000 \
13869                             + $gcc_cv_gas_patch_version`
13870
13871   in_tree_gas_is_elf=no
13872   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13873      || (grep 'obj_format = multi' ../gas/Makefile \
13874          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13875   then
13876     in_tree_gas_is_elf=yes
13877   fi
13878 else
13879   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13880 echo "${ECHO_T}$gcc_cv_as" >&6
13881   in_tree_gas=no
13882 fi
13883
13884 # Identify the linker which will work hand-in-glove with the newly
13885 # built GCC, so that we can examine its features.  This is the linker
13886 # which will be driven by the driver program.
13887 #
13888 # If build != host, and we aren't building gas in-tree, we identify a
13889 # build->target linker and hope that it will have the same features
13890 # as the host->target linker we'll be using.
13891 gcc_cv_gld_major_version=
13892 gcc_cv_gld_minor_version=
13893 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13894 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13895
13896 if test "${gcc_cv_ld+set}" = set; then
13897   :
13898 else
13899
13900 if test -x "$DEFAULT_LINKER"; then
13901         gcc_cv_ld="$DEFAULT_LINKER"
13902 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13903      && test -f ../ld/Makefile \
13904      && test x$build = x$host; then
13905         gcc_cv_ld=../ld/ld-new$build_exeext
13906 elif test -x collect-ld$build_exeext; then
13907         # Build using linker in the current directory.
13908         gcc_cv_ld=./collect-ld$build_exeext
13909 elif test -x $LD_FOR_TARGET; then
13910         gcc_cv_ld="$LD_FOR_TARGET"
13911 else
13912         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13913 set dummy $LD_FOR_TARGET; ac_word=$2
13914 echo "$as_me:$LINENO: checking for $ac_word" >&5
13915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13916 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919   case $gcc_cv_ld in
13920   [\\/]* | ?:[\\/]*)
13921   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13922   ;;
13923   *)
13924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13926 do
13927   IFS=$as_save_IFS
13928   test -z "$as_dir" && as_dir=.
13929   for ac_exec_ext in '' $ac_executable_extensions; do
13930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13933     break 2
13934   fi
13935 done
13936 done
13937
13938   ;;
13939 esac
13940 fi
13941 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13942
13943 if test -n "$gcc_cv_ld"; then
13944   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13945 echo "${ECHO_T}$gcc_cv_ld" >&6
13946 else
13947   echo "$as_me:$LINENO: result: no" >&5
13948 echo "${ECHO_T}no" >&6
13949 fi
13950
13951 fi
13952 fi
13953
13954
13955 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13956
13957 case "$ORIGINAL_LD_FOR_TARGET" in
13958   ./collect-ld | ./collect-ld$build_exeext) ;;
13959   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13960  ;;
13961 esac
13962
13963 echo "$as_me:$LINENO: checking what linker to use" >&5
13964 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13965 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13966         # Single tree build which includes ld.  We want to prefer it
13967         # over whatever linker top-level may have detected, since
13968         # we'll use what we're building after installation anyway.
13969         echo "$as_me:$LINENO: result: newly built ld" >&5
13970 echo "${ECHO_T}newly built ld" >&6
13971         in_tree_ld=yes
13972         in_tree_ld_is_elf=no
13973         if (grep 'EMUL = .*elf' ../ld/Makefile \
13974             || grep 'EMUL = .*linux' ../ld/Makefile \
13975             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13976           in_tree_ld_is_elf=yes
13977         fi
13978         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
13979         do
13980                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13981                 if test x$gcc_cv_gld_version != x; then
13982                         break
13983                 fi
13984         done
13985         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13986         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13987 else
13988         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13989 echo "${ECHO_T}$gcc_cv_ld" >&6
13990         in_tree_ld=no
13991 fi
13992
13993 # Figure out what nm we will be using.
13994 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13995 if test "${gcc_cv_nm+set}" = set; then
13996   :
13997 else
13998
13999 if test -f $gcc_cv_binutils_srcdir/configure.in \
14000      && test -f ../binutils/Makefile \
14001      && test x$build = x$host; then
14002         gcc_cv_nm=../binutils/nm-new$build_exeext
14003 elif test -x nm$build_exeext; then
14004         gcc_cv_nm=./nm$build_exeext
14005 elif test -x $NM_FOR_TARGET; then
14006         gcc_cv_nm="$NM_FOR_TARGET"
14007 else
14008         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
14009 set dummy $NM_FOR_TARGET; ac_word=$2
14010 echo "$as_me:$LINENO: checking for $ac_word" >&5
14011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14012 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   case $gcc_cv_nm in
14016   [\\/]* | ?:[\\/]*)
14017   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14018   ;;
14019   *)
14020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14022 do
14023   IFS=$as_save_IFS
14024   test -z "$as_dir" && as_dir=.
14025   for ac_exec_ext in '' $ac_executable_extensions; do
14026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14027     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14029     break 2
14030   fi
14031 done
14032 done
14033
14034   ;;
14035 esac
14036 fi
14037 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14038
14039 if test -n "$gcc_cv_nm"; then
14040   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14041 echo "${ECHO_T}$gcc_cv_nm" >&6
14042 else
14043   echo "$as_me:$LINENO: result: no" >&5
14044 echo "${ECHO_T}no" >&6
14045 fi
14046
14047 fi
14048 fi
14049
14050
14051 echo "$as_me:$LINENO: checking what nm to use" >&5
14052 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
14053 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
14054         # Single tree build which includes binutils.
14055         echo "$as_me:$LINENO: result: newly built nm" >&5
14056 echo "${ECHO_T}newly built nm" >&6
14057         in_tree_nm=yes
14058 else
14059         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14060 echo "${ECHO_T}$gcc_cv_nm" >&6
14061         in_tree_nm=no
14062 fi
14063
14064 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
14065
14066 case "$ORIGINAL_NM_FOR_TARGET" in
14067   ./nm | ./nm$build_exeext) ;;
14068   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
14069  ;;
14070 esac
14071
14072
14073 # Figure out what objdump we will be using.
14074 if test "${gcc_cv_objdump+set}" = set; then
14075   :
14076 else
14077
14078 if test -f $gcc_cv_binutils_srcdir/configure.in \
14079      && test -f ../binutils/Makefile \
14080      && test x$build = x$host; then
14081         # Single tree build which includes binutils.
14082         gcc_cv_objdump=../binutils/objdump$build_exeext
14083 elif test -x objdump$build_exeext; then
14084         gcc_cv_objdump=./objdump$build_exeext
14085 elif test -x $OBJDUMP_FOR_TARGET; then
14086         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
14087 else
14088         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14089 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
14090 echo "$as_me:$LINENO: checking for $ac_word" >&5
14091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14092 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14093   echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095   case $gcc_cv_objdump in
14096   [\\/]* | ?:[\\/]*)
14097   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14098   ;;
14099   *)
14100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 for as_dir in $PATH
14102 do
14103   IFS=$as_save_IFS
14104   test -z "$as_dir" && as_dir=.
14105   for ac_exec_ext in '' $ac_executable_extensions; do
14106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14107     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14109     break 2
14110   fi
14111 done
14112 done
14113
14114   ;;
14115 esac
14116 fi
14117 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14118
14119 if test -n "$gcc_cv_objdump"; then
14120   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14121 echo "${ECHO_T}$gcc_cv_objdump" >&6
14122 else
14123   echo "$as_me:$LINENO: result: no" >&5
14124 echo "${ECHO_T}no" >&6
14125 fi
14126
14127 fi
14128 fi
14129
14130
14131 echo "$as_me:$LINENO: checking what objdump to use" >&5
14132 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
14133 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
14134         # Single tree build which includes binutils.
14135         echo "$as_me:$LINENO: result: newly built objdump" >&5
14136 echo "${ECHO_T}newly built objdump" >&6
14137 elif test x$gcc_cv_objdump = x; then
14138         echo "$as_me:$LINENO: result: not found" >&5
14139 echo "${ECHO_T}not found" >&6
14140 else
14141         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14142 echo "${ECHO_T}$gcc_cv_objdump" >&6
14143 fi
14144
14145 # Figure out what assembler alignment features are present.
14146 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14147 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
14148 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14149   echo $ECHO_N "(cached) $ECHO_C" >&6
14150 else
14151   gcc_cv_as_balign_and_p2align=no
14152     if test $in_tree_gas = yes; then
14153     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14154   then gcc_cv_as_balign_and_p2align=yes
14155 fi
14156   elif test x$gcc_cv_as != x; then
14157     echo '.balign 4
14158 .p2align 2' > conftest.s
14159     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161   (eval $ac_try) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); }; }
14165     then
14166         gcc_cv_as_balign_and_p2align=yes
14167     else
14168       echo "configure: failed program was" >&5
14169       cat conftest.s >&5
14170     fi
14171     rm -f conftest.o conftest.s
14172   fi
14173 fi
14174 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14175 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
14176 if test $gcc_cv_as_balign_and_p2align = yes; then
14177
14178 cat >>confdefs.h <<\_ACEOF
14179 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14180 _ACEOF
14181
14182 fi
14183
14184 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14185 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
14186 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14187   echo $ECHO_N "(cached) $ECHO_C" >&6
14188 else
14189   gcc_cv_as_max_skip_p2align=no
14190     if test $in_tree_gas = yes; then
14191     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14192   then gcc_cv_as_max_skip_p2align=yes
14193 fi
14194   elif test x$gcc_cv_as != x; then
14195     echo '.p2align 4,,7' > conftest.s
14196     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198   (eval $ac_try) 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); }; }
14202     then
14203         gcc_cv_as_max_skip_p2align=yes
14204     else
14205       echo "configure: failed program was" >&5
14206       cat conftest.s >&5
14207     fi
14208     rm -f conftest.o conftest.s
14209   fi
14210 fi
14211 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14212 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
14213 if test $gcc_cv_as_max_skip_p2align = yes; then
14214
14215 cat >>confdefs.h <<\_ACEOF
14216 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14217 _ACEOF
14218
14219 fi
14220
14221 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
14222 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
14223 if test "${gcc_cv_as_literal16+set}" = set; then
14224   echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226   gcc_cv_as_literal16=no
14227     if test $in_tree_gas = yes; then
14228     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14229   then gcc_cv_as_literal16=yes
14230 fi
14231   elif test x$gcc_cv_as != x; then
14232     echo '.literal16' > conftest.s
14233     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235   (eval $ac_try) 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); }; }
14239     then
14240         gcc_cv_as_literal16=yes
14241     else
14242       echo "configure: failed program was" >&5
14243       cat conftest.s >&5
14244     fi
14245     rm -f conftest.o conftest.s
14246   fi
14247 fi
14248 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
14249 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
14250 if test $gcc_cv_as_literal16 = yes; then
14251
14252 cat >>confdefs.h <<\_ACEOF
14253 #define HAVE_GAS_LITERAL16 1
14254 _ACEOF
14255
14256 fi
14257
14258 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14259 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
14260 if test "${gcc_cv_as_subsection_m1+set}" = set; then
14261   echo $ECHO_N "(cached) $ECHO_C" >&6
14262 else
14263   gcc_cv_as_subsection_m1=no
14264     if test $in_tree_gas = yes; then
14265     if test $in_tree_gas_is_elf = yes \
14266   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14267   then gcc_cv_as_subsection_m1=yes
14268 fi
14269   elif test x$gcc_cv_as != x; then
14270     echo 'conftest_label1: .word 0
14271 .subsection -1
14272 conftest_label2: .word 0
14273 .previous' > conftest.s
14274     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276   (eval $ac_try) 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); }; }
14280     then
14281         if test x$gcc_cv_nm != x; then
14282     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
14283     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
14284     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
14285     then :
14286     else gcc_cv_as_subsection_m1=yes
14287     fi
14288     rm -f conftest.nm1 conftest.nm2
14289   fi
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_subsection_m1" >&5
14298 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
14299 if test $gcc_cv_as_subsection_m1 = yes; then
14300
14301 cat >>confdefs.h <<\_ACEOF
14302 #define HAVE_GAS_SUBSECTION_ORDERING 1
14303 _ACEOF
14304
14305 fi
14306
14307 echo "$as_me:$LINENO: checking assembler for .weak" >&5
14308 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
14309 if test "${gcc_cv_as_weak+set}" = set; then
14310   echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312   gcc_cv_as_weak=no
14313     if test $in_tree_gas = yes; then
14314     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14315   then gcc_cv_as_weak=yes
14316 fi
14317   elif test x$gcc_cv_as != x; then
14318     echo '      .weak foobar' > conftest.s
14319     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321   (eval $ac_try) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; }
14325     then
14326         gcc_cv_as_weak=yes
14327     else
14328       echo "configure: failed program was" >&5
14329       cat conftest.s >&5
14330     fi
14331     rm -f conftest.o conftest.s
14332   fi
14333 fi
14334 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14335 echo "${ECHO_T}$gcc_cv_as_weak" >&6
14336 if test $gcc_cv_as_weak = yes; then
14337
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_GAS_WEAK 1
14340 _ACEOF
14341
14342 fi
14343
14344 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14345 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
14346 if test "${gcc_cv_as_weakref+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   gcc_cv_as_weakref=no
14350     if test $in_tree_gas = yes; then
14351     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14352   then gcc_cv_as_weakref=yes
14353 fi
14354   elif test x$gcc_cv_as != x; then
14355     echo '      .weakref foobar, barfnot' > conftest.s
14356     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }
14362     then
14363         gcc_cv_as_weakref=yes
14364     else
14365       echo "configure: failed program was" >&5
14366       cat conftest.s >&5
14367     fi
14368     rm -f conftest.o conftest.s
14369   fi
14370 fi
14371 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14372 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
14373 if test $gcc_cv_as_weakref = yes; then
14374
14375 cat >>confdefs.h <<\_ACEOF
14376 #define HAVE_GAS_WEAKREF 1
14377 _ACEOF
14378
14379 fi
14380
14381 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14382 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
14383 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14384   echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386   gcc_cv_as_nsubspa_comdat=no
14387     if test $in_tree_gas = yes; then
14388     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14389   then gcc_cv_as_nsubspa_comdat=yes
14390 fi
14391   elif test x$gcc_cv_as != x; then
14392     echo '      .SPACE $TEXT$
14393         .NSUBSPA $CODE$,COMDAT' > conftest.s
14394     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396   (eval $ac_try) 2>&5
14397   ac_status=$?
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); }; }
14400     then
14401         gcc_cv_as_nsubspa_comdat=yes
14402     else
14403       echo "configure: failed program was" >&5
14404       cat conftest.s >&5
14405     fi
14406     rm -f conftest.o conftest.s
14407   fi
14408 fi
14409 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14410 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
14411 if test $gcc_cv_as_nsubspa_comdat = yes; then
14412
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_GAS_NSUBSPA_COMDAT 1
14415 _ACEOF
14416
14417 fi
14418
14419 # .hidden needs to be supported in both the assembler and the linker,
14420 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14421 # This is irritatingly difficult to feature test for; we have to check the
14422 # date string after the version number.  If we've got an in-tree
14423 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14424 # to be safe.
14425 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14426 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14427 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14428 if test "${gcc_cv_as_hidden+set}" = set; then
14429   echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431   gcc_cv_as_hidden=no
14432     if test $in_tree_gas = yes; then
14433     if test $in_tree_gas_is_elf = yes \
14434   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14435   then gcc_cv_as_hidden=yes
14436 fi
14437   elif test x$gcc_cv_as != x; then
14438     echo '      .hidden foobar
14439 foobar:' > conftest.s
14440     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442   (eval $ac_try) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; }
14446     then
14447         gcc_cv_as_hidden=yes
14448     else
14449       echo "configure: failed program was" >&5
14450       cat conftest.s >&5
14451     fi
14452     rm -f conftest.o conftest.s
14453   fi
14454 fi
14455 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14456 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14457
14458
14459 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14460 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14461 if test "${gcc_cv_ld_hidden+set}" = set; then
14462   echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464   if test $in_tree_ld = yes ; then
14465   gcc_cv_ld_hidden=no
14466   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 \
14467      && test $in_tree_ld_is_elf = yes; then
14468      gcc_cv_ld_hidden=yes
14469   fi
14470 else
14471   gcc_cv_ld_hidden=yes
14472   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14473   if echo "$ld_ver" | grep GNU > /dev/null; then
14474     ld_vers=`echo $ld_ver | sed -n \
14475         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14476     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'`
14477     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14478     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14479     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14480     if test 0"$ld_date" -lt 20020404; then
14481       if test -n "$ld_date"; then
14482         # If there was date string, but was earlier than 2002-04-04, fail
14483         gcc_cv_ld_hidden=no
14484       elif test -z "$ld_vers"; then
14485         # If there was no date string nor ld version number, something is wrong
14486         gcc_cv_ld_hidden=no
14487       else
14488         test -z "$ld_vers_patch" && ld_vers_patch=0
14489         if test "$ld_vers_major" -lt 2; then
14490           gcc_cv_ld_hidden=no
14491         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14492           gcc_cv_ld_hidden="no"
14493         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14494           gcc_cv_ld_hidden=no
14495         fi
14496       fi
14497     fi
14498   else
14499     case "${target}" in
14500       hppa64*-*-hpux* | ia64*-*-hpux*)
14501         gcc_cv_ld_hidden=yes
14502         ;;
14503       *)
14504         gcc_cv_ld_hidden=no
14505         ;;
14506     esac
14507   fi
14508 fi
14509 fi
14510 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14511 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14512 libgcc_visibility=no
14513
14514
14515 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14516   libgcc_visibility=yes
14517
14518 cat >>confdefs.h <<\_ACEOF
14519 #define HAVE_GAS_HIDDEN 1
14520 _ACEOF
14521
14522 fi
14523
14524 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14525 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14526 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14527 if test "${gcc_cv_as_leb128+set}" = set; then
14528   echo $ECHO_N "(cached) $ECHO_C" >&6
14529 else
14530   gcc_cv_as_leb128=no
14531     if test $in_tree_gas = yes; then
14532     if test $in_tree_gas_is_elf = yes \
14533   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14534   then gcc_cv_as_leb128=yes
14535 fi
14536   elif test x$gcc_cv_as != x; then
14537     echo '      .data
14538         .uleb128 L2 - L1
14539 L1:
14540         .uleb128 1280
14541         .sleb128 -1010
14542 L2:' > conftest.s
14543     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545   (eval $ac_try) 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); }; }
14549     then
14550         # GAS versions before 2.11 do not support uleb128,
14551   # despite appearing to.
14552   # ??? There exists an elf-specific test that will crash
14553   # the assembler.  Perhaps it's better to figure out whether
14554   # arbitrary sections are supported and try the test.
14555   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14556   if echo "$as_ver" | grep GNU > /dev/null; then
14557     as_vers=`echo $as_ver | sed -n \
14558         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14559     as_major=`expr "$as_vers" : '\([0-9]*\)'`
14560     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14561     if test $as_major -eq 2 && test $as_minor -lt 11
14562     then :
14563     else gcc_cv_as_leb128=yes
14564     fi
14565   fi
14566     else
14567       echo "configure: failed program was" >&5
14568       cat conftest.s >&5
14569     fi
14570     rm -f conftest.o conftest.s
14571   fi
14572 fi
14573 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14574 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14575 if test $gcc_cv_as_leb128 = yes; then
14576
14577 cat >>confdefs.h <<\_ACEOF
14578 #define HAVE_AS_LEB128 1
14579 _ACEOF
14580
14581 fi
14582
14583 # GAS versions up to and including 2.11.0 may mis-optimize
14584 # .eh_frame data.
14585 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14586 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14587 if test "${gcc_cv_as_eh_frame+set}" = set; then
14588   echo $ECHO_N "(cached) $ECHO_C" >&6
14589 else
14590   gcc_cv_as_eh_frame=no
14591     if test $in_tree_gas = yes; then
14592     if test $in_tree_gas_is_elf = yes \
14593   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14594   then gcc_cv_as_eh_frame=yes
14595 fi
14596   elif test x$gcc_cv_as != x; then
14597     echo '      .text
14598 .LFB1:
14599         .4byte  0
14600 .L1:
14601         .4byte  0
14602 .LFE1:
14603         .section        .eh_frame,"aw",@progbits
14604 __FRAME_BEGIN__:
14605         .4byte  .LECIE1-.LSCIE1
14606 .LSCIE1:
14607         .4byte  0x0
14608         .byte   0x1
14609         .ascii "z\0"
14610         .byte   0x1
14611         .byte   0x78
14612         .byte   0x1a
14613         .byte   0x0
14614         .byte   0x4
14615         .4byte  1
14616         .p2align 1
14617 .LECIE1:
14618 .LSFDE1:
14619         .4byte  .LEFDE1-.LASFDE1
14620 .LASFDE1:
14621         .4byte  .LASFDE1-__FRAME_BEGIN__
14622         .4byte  .LFB1
14623         .4byte  .LFE1-.LFB1
14624         .byte   0x4
14625         .4byte  .LFE1-.LFB1
14626         .byte   0x4
14627         .4byte  .L1-.LFB1
14628 .LEFDE1:' > conftest.s
14629     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631   (eval $ac_try) 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; }
14635     then
14636           cat > conftest.lit <<EOF
14637  0000 10000000 00000000 017a0001 781a0004  .........z..x...
14638  0010 01000000 12000000 18000000 00000000  ................
14639  0020 08000000 04080000 0044               .........D      
14640 EOF
14641 cat > conftest.big <<EOF
14642  0000 00000010 00000000 017a0001 781a0004  .........z..x...
14643  0010 00000001 00000012 00000018 00000000  ................
14644  0020 00000008 04000000 0844               .........D      
14645 EOF
14646   # If the assembler didn't choke, and we can objdump,
14647   # and we got the correct data, then succeed.
14648   # The text in the here-document typically retains its unix-style line
14649   # endings, while the output of objdump will use host line endings.
14650   # Therefore, use diff -b for the comparisons.
14651   if test x$gcc_cv_objdump != x \
14652   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14653      | tail -3 > conftest.got \
14654   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14655     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14656   then
14657     gcc_cv_as_eh_frame=yes
14658   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660   (eval $ac_try) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; }; then
14664     gcc_cv_as_eh_frame=buggy
14665   else
14666     # Uh oh, what do we do now?
14667     gcc_cv_as_eh_frame=no
14668   fi
14669     else
14670       echo "configure: failed program was" >&5
14671       cat conftest.s >&5
14672     fi
14673     rm -f conftest.o conftest.s
14674   fi
14675 fi
14676 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14677 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14678
14679
14680 if test $gcc_cv_as_eh_frame = buggy; then
14681
14682 cat >>confdefs.h <<\_ACEOF
14683 #define USE_AS_TRADITIONAL_FORMAT 1
14684 _ACEOF
14685
14686 fi
14687
14688 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14689 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14690 if test "${gcc_cv_as_shf_merge+set}" = set; then
14691   echo $ECHO_N "(cached) $ECHO_C" >&6
14692 else
14693   gcc_cv_as_shf_merge=no
14694     if test $in_tree_gas = yes; then
14695     if test $in_tree_gas_is_elf = yes \
14696   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14697   then gcc_cv_as_shf_merge=yes
14698 fi
14699   elif test x$gcc_cv_as != x; then
14700     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14701     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703   (eval $ac_try) 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); }; }
14707     then
14708         gcc_cv_as_shf_merge=yes
14709     else
14710       echo "configure: failed program was" >&5
14711       cat conftest.s >&5
14712     fi
14713     rm -f conftest.o conftest.s
14714   fi
14715 fi
14716 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14717 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14718
14719 if test $gcc_cv_as_shf_merge = no; then
14720   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14721 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14722 if test "${gcc_cv_as_shf_merge+set}" = set; then
14723   echo $ECHO_N "(cached) $ECHO_C" >&6
14724 else
14725   gcc_cv_as_shf_merge=no
14726     if test $in_tree_gas = yes; then
14727     if test $in_tree_gas_is_elf = yes \
14728   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14729   then gcc_cv_as_shf_merge=yes
14730 fi
14731   elif test x$gcc_cv_as != x; then
14732     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14733     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }
14739     then
14740         gcc_cv_as_shf_merge=yes
14741     else
14742       echo "configure: failed program was" >&5
14743       cat conftest.s >&5
14744     fi
14745     rm -f conftest.o conftest.s
14746   fi
14747 fi
14748 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14749 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14750
14751 fi
14752
14753 cat >>confdefs.h <<_ACEOF
14754 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14755 _ACEOF
14756
14757
14758 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14759 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14760 if test "${gcc_cv_as_comdat_group+set}" = set; then
14761   echo $ECHO_N "(cached) $ECHO_C" >&6
14762 else
14763   gcc_cv_as_comdat_group=no
14764     if test $in_tree_gas = yes; then
14765     if test $in_tree_gas_is_elf = yes \
14766   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14767   then gcc_cv_as_comdat_group=yes
14768 fi
14769   elif test x$gcc_cv_as != x; then
14770     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14771     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773   (eval $ac_try) 2>&5
14774   ac_status=$?
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); }; }
14777     then
14778         gcc_cv_as_comdat_group=yes
14779     else
14780       echo "configure: failed program was" >&5
14781       cat conftest.s >&5
14782     fi
14783     rm -f conftest.o conftest.s
14784   fi
14785 fi
14786 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14787 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14788
14789 if test $gcc_cv_as_comdat_group = yes; then
14790   gcc_cv_as_comdat_group_percent=no
14791 else
14792  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14793 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14794 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14795   echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797   gcc_cv_as_comdat_group_percent=no
14798     if test $in_tree_gas = yes; then
14799     if test $in_tree_gas_is_elf = yes \
14800   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14801   then gcc_cv_as_comdat_group_percent=yes
14802 fi
14803   elif test x$gcc_cv_as != x; then
14804     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14805     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807   (eval $ac_try) 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; }
14811     then
14812         gcc_cv_as_comdat_group_percent=yes
14813     else
14814       echo "configure: failed program was" >&5
14815       cat conftest.s >&5
14816     fi
14817     rm -f conftest.o conftest.s
14818   fi
14819 fi
14820 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14821 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14822
14823 fi
14824 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14825   comdat_group=yes
14826   if test 0"$ld_date" -lt 20050308; then
14827     if test -n "$ld_date"; then
14828       # If there was date string, but was earlier than 2005-03-08, fail
14829       comdat_group=no
14830     elif test "$ld_vers_major" -lt 2; then
14831       comdat_group=no
14832     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14833       comdat_group=no
14834     fi
14835   fi
14836 else
14837   # assume linkers other than GNU ld don't support COMDAT group
14838   comdat_group=no
14839 fi
14840 if test $comdat_group = no; then
14841   gcc_cv_as_comdat_group=no
14842   gcc_cv_as_comdat_group_percent=no
14843 fi
14844
14845 cat >>confdefs.h <<_ACEOF
14846 #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`
14847 _ACEOF
14848
14849
14850 # Thread-local storage - the check is heavily parametrized.
14851 conftest_s=
14852 tls_first_major=
14853 tls_first_minor=
14854 tls_as_opt=
14855 case "$target" in
14856   alpha*-*-*)
14857     conftest_s='
14858         .section ".tdata","awT",@progbits
14859 foo:    .long   25
14860         .text
14861         ldq     $27,__tls_get_addr($29)         !literal!1
14862         lda     $16,foo($29)                    !tlsgd!1
14863         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14864         ldq     $27,__tls_get_addr($29)         !literal!2
14865         lda     $16,foo($29)                    !tlsldm!2
14866         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14867         ldq     $1,foo($29)                     !gotdtprel
14868         ldah    $2,foo($29)                     !dtprelhi
14869         lda     $3,foo($2)                      !dtprello
14870         lda     $4,foo($29)                     !dtprel
14871         ldq     $1,foo($29)                     !gottprel
14872         ldah    $2,foo($29)                     !tprelhi
14873         lda     $3,foo($2)                      !tprello
14874         lda     $4,foo($29)                     !tprel'
14875         tls_first_major=2
14876         tls_first_minor=13
14877         tls_as_opt=--fatal-warnings
14878         ;;
14879   frv*-*-*)
14880     conftest_s='
14881         .section ".tdata","awT",@progbits
14882 x:      .long   25
14883         .text
14884         call    #gettlsoff(x)'
14885         tls_first_major=2
14886         tls_first_minor=14
14887         ;;
14888   hppa*-*-linux*)
14889     conftest_s='
14890 t1:     .reg    %r20
14891 t2:     .reg    %r21
14892 gp:     .reg    %r19
14893         .section ".tdata","awT",@progbits
14894 foo:    .long   25
14895         .text
14896         .align  4
14897         addil LT%foo-$tls_gdidx$,gp
14898         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14899         b __tls_get_addr
14900         nop
14901         addil LT%foo-$tls_ldidx$,gp
14902         b __tls_get_addr
14903         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14904         addil LR%foo-$tls_dtpoff$,%ret0
14905         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14906         mfctl %cr27,%t1
14907         addil LT%foo-$tls_ieoff$,gp
14908         ldw RT%foo-$tls_ieoff$(%r1),%t2
14909         add %t1,%t2,%t3
14910         mfctl %cr27,%t1
14911         addil LR%foo-$tls_leoff$,%t1
14912         ldo RR%foo-$tls_leoff$(%r1),%t2'
14913         tls_first_major=2
14914         tls_first_minor=15
14915         tls_as_opt=--fatal-warnings
14916         ;;
14917   arm*-*-*)
14918     conftest_s='
14919         .section ".tdata","awT",%progbits
14920 foo:    .long   25
14921         .text
14922 .word foo(gottpoff)
14923 .word foo(tpoff)
14924 .word foo(tlsgd)
14925 .word foo(tlsldm)
14926 .word foo(tlsldo)'
14927         tls_first_major=2
14928         tls_first_minor=17
14929         ;;
14930   i[34567]86-*-*)
14931     conftest_s='
14932         .section ".tdata","awT",@progbits
14933 foo:    .long   25
14934         .text
14935         movl    %gs:0, %eax
14936         leal    foo@TLSGD(,%ebx,1), %eax
14937         leal    foo@TLSLDM(%ebx), %eax
14938         leal    foo@DTPOFF(%eax), %edx
14939         movl    foo@GOTTPOFF(%ebx), %eax
14940         subl    foo@GOTTPOFF(%ebx), %eax
14941         addl    foo@GOTNTPOFF(%ebx), %eax
14942         movl    foo@INDNTPOFF, %eax
14943         movl    $foo@TPOFF, %eax
14944         subl    $foo@TPOFF, %eax
14945         leal    foo@NTPOFF(%ecx), %eax'
14946         tls_first_major=2
14947         tls_first_minor=14
14948         tls_as_opt=--fatal-warnings
14949         ;;
14950   x86_64-*-*)
14951     conftest_s='
14952         .section ".tdata","awT",@progbits
14953 foo:    .long   25
14954         .text
14955         movq    %fs:0, %rax
14956         leaq    foo@TLSGD(%rip), %rdi
14957         leaq    foo@TLSLD(%rip), %rdi
14958         leaq    foo@DTPOFF(%rax), %rdx
14959         movq    foo@GOTTPOFF(%rip), %rax
14960         movq    $foo@TPOFF, %rax'
14961         tls_first_major=2
14962         tls_first_minor=14
14963         tls_as_opt=--fatal-warnings
14964         ;;
14965   ia64-*-*)
14966     conftest_s='
14967         .section ".tdata","awT",@progbits
14968 foo:    data8   25
14969         .text
14970         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14971         addl    r17 = @ltoff(@dtprel(foo#)), gp
14972         addl    r18 = @ltoff(@tprel(foo#)), gp
14973         addl    r19 = @dtprel(foo#), gp
14974         adds    r21 = @dtprel(foo#), r13
14975         movl    r23 = @dtprel(foo#)
14976         addl    r20 = @tprel(foo#), gp
14977         adds    r22 = @tprel(foo#), r13
14978         movl    r24 = @tprel(foo#)'
14979         tls_first_major=2
14980         tls_first_minor=13
14981         tls_as_opt=--fatal-warnings
14982         ;;
14983   mips*-*-*)
14984     conftest_s='
14985         .section .tdata,"awT",@progbits
14986 x:
14987         .word 2
14988         .text
14989         addiu $4, $28, %tlsgd(x)
14990         addiu $4, $28, %tlsldm(x)
14991         lui $4, %dtprel_hi(x)
14992         addiu $4, $4, %dtprel_lo(x)
14993         lw $4, %gottprel(x)($28)
14994         lui $4, %tprel_hi(x)
14995         addiu $4, $4, %tprel_lo(x)'
14996         tls_first_major=2
14997         tls_first_minor=16
14998         tls_as_opt='-32 --fatal-warnings'
14999         ;;
15000   powerpc-*-*)
15001     conftest_s='
15002         .section ".tdata","awT",@progbits
15003         .align 2
15004 ld0:    .space 4
15005 ld1:    .space 4
15006 x1:     .space 4
15007 x2:     .space 4
15008 x3:     .space 4
15009         .text
15010         addi 3,31,ld0@got@tlsgd
15011         bl __tls_get_addr
15012         addi 3,31,x1@got@tlsld
15013         bl __tls_get_addr
15014         addi 9,3,x1@dtprel
15015         addis 9,3,x2@dtprel@ha
15016         addi 9,9,x2@dtprel@l
15017         lwz 9,x3@got@tprel(31)
15018         add 9,9,x@tls
15019         addi 9,2,x1@tprel
15020         addis 9,2,x2@tprel@ha
15021         addi 9,9,x2@tprel@l'
15022         tls_first_major=2
15023         tls_first_minor=14
15024         tls_as_opt="-a32 --fatal-warnings"
15025         ;;
15026   powerpc64-*-*)
15027     conftest_s='
15028         .section ".tdata","awT",@progbits
15029         .align 3
15030 ld0:    .space 8
15031 ld1:    .space 8
15032 x1:     .space 8
15033 x2:     .space 8
15034 x3:     .space 8
15035         .text
15036         addi 3,2,ld0@got@tlsgd
15037         bl .__tls_get_addr
15038         nop
15039         addi 3,2,ld1@toc
15040         bl .__tls_get_addr
15041         nop
15042         addi 3,2,x1@got@tlsld
15043         bl .__tls_get_addr
15044         nop
15045         addi 9,3,x1@dtprel
15046         bl .__tls_get_addr
15047         nop
15048         addis 9,3,x2@dtprel@ha
15049         addi 9,9,x2@dtprel@l
15050         bl .__tls_get_addr
15051         nop
15052         ld 9,x3@got@dtprel(2)
15053         add 9,9,3
15054         bl .__tls_get_addr
15055         nop'
15056         tls_first_major=2
15057         tls_first_minor=14
15058         tls_as_opt="-a64 --fatal-warnings"
15059         ;;
15060   s390-*-*)
15061     conftest_s='
15062         .section ".tdata","awT",@progbits
15063 foo:    .long   25
15064         .text
15065         .long   foo@TLSGD
15066         .long   foo@TLSLDM
15067         .long   foo@DTPOFF
15068         .long   foo@NTPOFF
15069         .long   foo@GOTNTPOFF
15070         .long   foo@INDNTPOFF
15071         l       %r1,foo@GOTNTPOFF(%r12)
15072         l       %r1,0(%r1):tls_load:foo
15073         bas     %r14,0(%r1,%r13):tls_gdcall:foo
15074         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
15075         tls_first_major=2
15076         tls_first_minor=14
15077         tls_as_opt="-m31 --fatal-warnings"
15078         ;;
15079   s390x-*-*)
15080     conftest_s='
15081         .section ".tdata","awT",@progbits
15082 foo:    .long   25
15083         .text
15084         .quad   foo@TLSGD
15085         .quad   foo@TLSLDM
15086         .quad   foo@DTPOFF
15087         .quad   foo@NTPOFF
15088         .quad   foo@GOTNTPOFF
15089         lg      %r1,foo@GOTNTPOFF(%r12)
15090         larl    %r1,foo@INDNTPOFF
15091         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
15092         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
15093         tls_first_major=2
15094         tls_first_minor=14
15095         tls_as_opt="-m64 -Aesame --fatal-warnings"
15096         ;;
15097   sh-*-* | sh[34]-*-*)
15098     conftest_s='
15099         .section ".tdata","awT",@progbits
15100 foo:    .long   25
15101         .text
15102         .long   foo@TLSGD
15103         .long   foo@TLSLDM
15104         .long   foo@DTPOFF
15105         .long   foo@GOTTPOFF
15106         .long   foo@TPOFF'
15107         tls_first_major=2
15108         tls_first_minor=13
15109         tls_as_opt=--fatal-warnings
15110         ;;
15111   sparc*-*-*)
15112     case "$target" in
15113       sparc*-sun-solaris2.[56789]*)
15114         # TLS was introduced in the Solaris 9 4/04 release but
15115         # we do not enable it by default on Solaris 9 either.
15116         if test "x$enable_tls" = xyes ; then
15117           on_solaris=yes
15118         else
15119           enable_tls=no;
15120         fi
15121         ;;
15122       sparc*-sun-solaris2.*)
15123         on_solaris=yes
15124         ;;
15125       *)
15126         on_solaris=no
15127         ;;
15128     esac
15129     if test x$on_solaris = xyes && test x$gas_flag = xno; then
15130       conftest_s='
15131         .section ".tdata",#alloc,#write,#tls
15132 foo:    .long   25
15133         .text
15134         sethi   %tgd_hi22(foo), %o0
15135         add     %o0, %tgd_lo10(foo), %o1
15136         add     %l7, %o1, %o0, %tgd_add(foo)
15137         call    __tls_get_addr, %tgd_call(foo)
15138         sethi   %tldm_hi22(foo), %l1
15139         add     %l1, %tldm_lo10(foo), %l2
15140         add     %l7, %l2, %o0, %tldm_add(foo)
15141         call    __tls_get_addr, %tldm_call(foo)
15142         sethi   %tldo_hix22(foo), %l3
15143         xor     %l3, %tldo_lox10(foo), %l4
15144         add     %o0, %l4, %l5, %tldo_add(foo)
15145         sethi   %tie_hi22(foo), %o3
15146         add     %o3, %tie_lo10(foo), %o3
15147         ld      [%l7 + %o3], %o2, %tie_ld(foo)
15148         add     %g7, %o2, %o4, %tie_add(foo)
15149         sethi   %tle_hix22(foo), %l1
15150         xor     %l1, %tle_lox10(foo), %o5
15151         ld      [%g7 + %o5], %o1'
15152         tls_first_major=0
15153         tls_first_minor=0
15154     else
15155       conftest_s='
15156         .section ".tdata","awT",@progbits
15157 foo:    .long   25
15158         .text
15159         sethi   %tgd_hi22(foo), %o0
15160         add     %o0, %tgd_lo10(foo), %o1
15161         add     %l7, %o1, %o0, %tgd_add(foo)
15162         call    __tls_get_addr, %tgd_call(foo)
15163         sethi   %tldm_hi22(foo), %l1
15164         add     %l1, %tldm_lo10(foo), %l2
15165         add     %l7, %l2, %o0, %tldm_add(foo)
15166         call    __tls_get_addr, %tldm_call(foo)
15167         sethi   %tldo_hix22(foo), %l3
15168         xor     %l3, %tldo_lox10(foo), %l4
15169         add     %o0, %l4, %l5, %tldo_add(foo)
15170         sethi   %tie_hi22(foo), %o3
15171         add     %o3, %tie_lo10(foo), %o3
15172         ld      [%l7 + %o3], %o2, %tie_ld(foo)
15173         add     %g7, %o2, %o4, %tie_add(foo)
15174         sethi   %tle_hix22(foo), %l1
15175         xor     %l1, %tle_lox10(foo), %o5
15176         ld      [%g7 + %o5], %o1'
15177         tls_first_major=2
15178         tls_first_minor=14
15179         tls_as_opt="-32 --fatal-warnings"
15180       fi
15181         ;;
15182 esac
15183 set_have_as_tls=no
15184 if test "x$enable_tls" = xno ; then
15185   : # TLS explicitly disabled.
15186 elif test "x$enable_tls" = xyes ; then
15187   set_have_as_tls=yes # TLS explicitly enabled.
15188 elif test -z "$tls_first_major"; then
15189   : # If we don't have a check, assume no support.
15190 else
15191   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15192 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
15193 if test "${gcc_cv_as_tls+set}" = set; then
15194   echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196   gcc_cv_as_tls=no
15197     if test $in_tree_gas = yes; then
15198     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15199   then gcc_cv_as_tls=yes
15200 fi
15201   elif test x$gcc_cv_as != x; then
15202     echo "$conftest_s" > conftest.s
15203     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205   (eval $ac_try) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; }
15209     then
15210         gcc_cv_as_tls=yes
15211     else
15212       echo "configure: failed program was" >&5
15213       cat conftest.s >&5
15214     fi
15215     rm -f conftest.o conftest.s
15216   fi
15217 fi
15218 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15219 echo "${ECHO_T}$gcc_cv_as_tls" >&6
15220 if test $gcc_cv_as_tls = yes; then
15221   set_have_as_tls=yes
15222 fi
15223 fi
15224 if test $set_have_as_tls = yes ; then
15225
15226 cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_AS_TLS 1
15228 _ACEOF
15229
15230 fi
15231
15232 # Target-specific assembler checks.
15233
15234 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15235 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
15236 gcc_cv_ld_static_dynamic=no
15237 if test $in_tree_ld = yes ; then
15238   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15239     gcc_cv_ld_static_dynamic=yes
15240   fi
15241 elif test x$gcc_cv_ld != x; then
15242         # Check if linker supports -Bstatic/-Bdynamic option
15243         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
15244           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
15245                 gcc_cv_ld_static_dynamic=yes
15246         fi
15247 fi
15248 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
15249
15250 cat >>confdefs.h <<\_ACEOF
15251 #define HAVE_LD_STATIC_DYNAMIC 1
15252 _ACEOF
15253
15254 fi
15255 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15256 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
15257
15258 if test x"$demangler_in_ld" = xyes; then
15259   echo "$as_me:$LINENO: checking linker --demangle support" >&5
15260 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
15261   gcc_cv_ld_demangle=no
15262   if test $in_tree_ld = yes; then
15263     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 \
15264       gcc_cv_ld_demangle=yes
15265     fi
15266   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
15267     # Check if the GNU linker supports --demangle option
15268     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
15269       gcc_cv_ld_demangle=yes
15270     fi
15271   fi
15272   if test x"$gcc_cv_ld_demangle" = xyes; then
15273
15274 cat >>confdefs.h <<\_ACEOF
15275 #define HAVE_LD_DEMANGLE 1
15276 _ACEOF
15277
15278   fi
15279   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15280 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
15281 fi
15282
15283 case "$target" in
15284   # All TARGET_ABI_OSF targets.
15285   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
15286     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15287 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15288 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15289   echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291   gcc_cv_as_alpha_explicit_relocs=no
15292     if test $in_tree_gas = yes; then
15293     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15294   then gcc_cv_as_alpha_explicit_relocs=yes
15295 fi
15296   elif test x$gcc_cv_as != x; then
15297     echo '      .set nomacro
15298         .text
15299         extbl   $3, $2, $3      !lituse_bytoff!1
15300         ldq     $2, a($29)      !literal!1
15301         ldq     $4, b($29)      !literal!2
15302         ldq_u   $3, 0($2)       !lituse_base!1
15303         ldq     $27, f($29)     !literal!5
15304         jsr     $26, ($27), f   !lituse_jsr!5
15305         ldah    $29, 0($26)     !gpdisp!3
15306         lda     $0, c($29)      !gprel
15307         ldah    $1, d($29)      !gprelhigh
15308         lda     $1, d($1)       !gprellow
15309         lda     $29, 0($29)     !gpdisp!3' > conftest.s
15310     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312   (eval $ac_try) 2>&5
15313   ac_status=$?
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); }; }
15316     then
15317         gcc_cv_as_alpha_explicit_relocs=yes
15318     else
15319       echo "configure: failed program was" >&5
15320       cat conftest.s >&5
15321     fi
15322     rm -f conftest.o conftest.s
15323   fi
15324 fi
15325 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15326 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
15327 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15328
15329 cat >>confdefs.h <<\_ACEOF
15330 #define HAVE_AS_EXPLICIT_RELOCS 1
15331 _ACEOF
15332
15333 fi
15334     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15335 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
15336 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15337   echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339   gcc_cv_as_alpha_jsrdirect_relocs=no
15340     if test $in_tree_gas = yes; then
15341     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15342   then gcc_cv_as_alpha_jsrdirect_relocs=yes
15343 fi
15344   elif test x$gcc_cv_as != x; then
15345     echo '      .set nomacro
15346         .text
15347         ldq     $27, a($29)     !literal!1
15348         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
15349     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351   (eval $ac_try) 2>&5
15352   ac_status=$?
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); }; }
15355     then
15356         gcc_cv_as_alpha_jsrdirect_relocs=yes
15357     else
15358       echo "configure: failed program was" >&5
15359       cat conftest.s >&5
15360     fi
15361     rm -f conftest.o conftest.s
15362   fi
15363 fi
15364 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15365 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
15366 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15367
15368 cat >>confdefs.h <<\_ACEOF
15369 #define HAVE_AS_JSRDIRECT_RELOCS 1
15370 _ACEOF
15371
15372 fi
15373     ;;
15374
15375   cris-*-*)
15376     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15377 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
15378 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15379   echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381   gcc_cv_as_cris_no_mul_bug=no
15382     if test $in_tree_gas = yes; then
15383     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15384   then gcc_cv_as_cris_no_mul_bug=yes
15385 fi
15386   elif test x$gcc_cv_as != x; then
15387     echo '.text' > conftest.s
15388     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390   (eval $ac_try) 2>&5
15391   ac_status=$?
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); }; }
15394     then
15395         gcc_cv_as_cris_no_mul_bug=yes
15396     else
15397       echo "configure: failed program was" >&5
15398       cat conftest.s >&5
15399     fi
15400     rm -f conftest.o conftest.s
15401   fi
15402 fi
15403 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15404 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
15405 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15406
15407 cat >>confdefs.h <<\_ACEOF
15408 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15409 _ACEOF
15410
15411 fi
15412     ;;
15413
15414   sparc*-*-*)
15415     echo "$as_me:$LINENO: checking assembler for .register" >&5
15416 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
15417 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   gcc_cv_as_sparc_register_op=no
15421   if test x$gcc_cv_as != x; then
15422     echo '.register %g2, #scratch' > conftest.s
15423     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425   (eval $ac_try) 2>&5
15426   ac_status=$?
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); }; }
15429     then
15430         gcc_cv_as_sparc_register_op=yes
15431     else
15432       echo "configure: failed program was" >&5
15433       cat conftest.s >&5
15434     fi
15435     rm -f conftest.o conftest.s
15436   fi
15437 fi
15438 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15439 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15440 if test $gcc_cv_as_sparc_register_op = yes; then
15441
15442 cat >>confdefs.h <<\_ACEOF
15443 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15444 _ACEOF
15445
15446 fi
15447
15448     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15449 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15450 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15451   echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453   gcc_cv_as_sparc_relax=no
15454   if test x$gcc_cv_as != x; then
15455     echo '.text' > conftest.s
15456     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458   (eval $ac_try) 2>&5
15459   ac_status=$?
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); }; }
15462     then
15463         gcc_cv_as_sparc_relax=yes
15464     else
15465       echo "configure: failed program was" >&5
15466       cat conftest.s >&5
15467     fi
15468     rm -f conftest.o conftest.s
15469   fi
15470 fi
15471 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15472 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15473 if test $gcc_cv_as_sparc_relax = yes; then
15474
15475 cat >>confdefs.h <<\_ACEOF
15476 #define HAVE_AS_RELAX_OPTION 1
15477 _ACEOF
15478
15479 fi
15480
15481     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15482 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15483 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15484   echo $ECHO_N "(cached) $ECHO_C" >&6
15485 else
15486   gcc_cv_as_sparc_ua_pcrel=no
15487   if test x$gcc_cv_as != x; then
15488     echo '.text
15489 foo:
15490         nop
15491 .data
15492 .align 4
15493 .byte 0
15494 .uaword %r_disp32(foo)' > conftest.s
15495     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497   (eval $ac_try) 2>&5
15498   ac_status=$?
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); }; }
15501     then
15502         if test x$gcc_cv_ld != x \
15503        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15504          gcc_cv_as_sparc_ua_pcrel=yes
15505        fi
15506        rm -f conftest
15507     else
15508       echo "configure: failed program was" >&5
15509       cat conftest.s >&5
15510     fi
15511     rm -f conftest.o conftest.s
15512   fi
15513 fi
15514 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15515 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15516 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15517
15518 cat >>confdefs.h <<\_ACEOF
15519 #define HAVE_AS_SPARC_UA_PCREL 1
15520 _ACEOF
15521
15522
15523       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15524 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15525 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15526   echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528   gcc_cv_as_sparc_ua_pcrel_hidden=no
15529   if test x$gcc_cv_as != x; then
15530     echo '.data
15531 .align 4
15532 .byte 0x31
15533 .uaword %r_disp32(foo)
15534 .byte 0x32, 0x33, 0x34
15535 .global foo
15536 .hidden foo
15537 foo:
15538 .skip 4' > conftest.s
15539     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541   (eval $ac_try) 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); }; }
15545     then
15546         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15547          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15548          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15549             | grep ' 31000000 07323334' > /dev/null 2>&1; then
15550             if $gcc_cv_objdump -R conftest 2> /dev/null \
15551                | grep 'DISP32' > /dev/null 2>&1; then
15552                 :
15553             else
15554                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15555             fi
15556          fi
15557          rm -f conftest
15558     else
15559       echo "configure: failed program was" >&5
15560       cat conftest.s >&5
15561     fi
15562     rm -f conftest.o conftest.s
15563   fi
15564 fi
15565 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15566 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15567 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15568
15569 cat >>confdefs.h <<\_ACEOF
15570 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15571 _ACEOF
15572
15573 fi
15574
15575 fi # unaligned pcrel relocs
15576
15577     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15578 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15579 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15580   echo $ECHO_N "(cached) $ECHO_C" >&6
15581 else
15582   gcc_cv_as_sparc_offsetable_lo10=no
15583   if test x$gcc_cv_as != x; then
15584     echo '.text
15585         or %g1, %lo(ab) + 12, %g1
15586         or %g1, %lo(ab + 12), %g1' > conftest.s
15587     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589   (eval $ac_try) 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; }
15593     then
15594         if test x$gcc_cv_objdump != x \
15595        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15596           | grep ' 82106000 82106000' > /dev/null 2>&1; then
15597          gcc_cv_as_sparc_offsetable_lo10=yes
15598        fi
15599     else
15600       echo "configure: failed program was" >&5
15601       cat conftest.s >&5
15602     fi
15603     rm -f conftest.o conftest.s
15604   fi
15605 fi
15606 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15607 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15608 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15609
15610 cat >>confdefs.h <<\_ACEOF
15611 #define HAVE_AS_OFFSETABLE_LO10 1
15612 _ACEOF
15613
15614 fi
15615     ;;
15616
15617   i[34567]86-*-* | x86_64-*-*)
15618     case $target_os in
15619       cygwin* | pe | mingw32*)
15620         # Used for DWARF 2 in PE
15621         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15622 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15623 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15624   echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626   gcc_cv_as_ix86_pe_secrel32=no
15627     if test $in_tree_gas = yes; then
15628     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15629   then gcc_cv_as_ix86_pe_secrel32=yes
15630 fi
15631   elif test x$gcc_cv_as != x; then
15632     echo '.text
15633 foo:    nop
15634 .data
15635         .secrel32 foo' > conftest.s
15636     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638   (eval $ac_try) 2>&5
15639   ac_status=$?
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); }; }
15642     then
15643         if test x$gcc_cv_ld != x \
15644            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15645              gcc_cv_as_ix86_pe_secrel32=yes
15646            fi
15647            rm -f conftest
15648     else
15649       echo "configure: failed program was" >&5
15650       cat conftest.s >&5
15651     fi
15652     rm -f conftest.o conftest.s
15653   fi
15654 fi
15655 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15656 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15657 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15658
15659 cat >>confdefs.h <<\_ACEOF
15660 #define HAVE_GAS_PE_SECREL32_RELOC 1
15661 _ACEOF
15662
15663 fi
15664         ;;
15665     esac
15666
15667     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15668 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15669 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15670   echo $ECHO_N "(cached) $ECHO_C" >&6
15671 else
15672   gcc_cv_as_ix86_filds_fists=no
15673     if test $in_tree_gas = yes; then
15674     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15675   then gcc_cv_as_ix86_filds_fists=yes
15676 fi
15677   elif test x$gcc_cv_as != x; then
15678     echo 'filds mem; fists mem' > conftest.s
15679     if { ac_try='$gcc_cv_as  -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         gcc_cv_as_ix86_filds_fists=yes
15687     else
15688       echo "configure: failed program was" >&5
15689       cat conftest.s >&5
15690     fi
15691     rm -f conftest.o conftest.s
15692   fi
15693 fi
15694 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15695 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15696 if test $gcc_cv_as_ix86_filds_fists = yes; then
15697
15698 cat >>confdefs.h <<\_ACEOF
15699 #define HAVE_GAS_FILDS_FISTS 1
15700 _ACEOF
15701
15702 fi
15703
15704     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15705 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15706 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15707   echo $ECHO_N "(cached) $ECHO_C" >&6
15708 else
15709   gcc_cv_as_ix86_cmov_sun_syntax=no
15710   if test x$gcc_cv_as != x; then
15711     echo 'cmovl.l %edx, %eax' > conftest.s
15712     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714   (eval $ac_try) 2>&5
15715   ac_status=$?
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); }; }
15718     then
15719         gcc_cv_as_ix86_cmov_sun_syntax=yes
15720     else
15721       echo "configure: failed program was" >&5
15722       cat conftest.s >&5
15723     fi
15724     rm -f conftest.o conftest.s
15725   fi
15726 fi
15727 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15728 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15729 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15730
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15733 _ACEOF
15734
15735 fi
15736
15737     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15738 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15739 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15740   echo $ECHO_N "(cached) $ECHO_C" >&6
15741 else
15742   gcc_cv_as_ix86_ffreep=no
15743   if test x$gcc_cv_as != x; then
15744     echo 'ffreep %st(1)' > conftest.s
15745     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747   (eval $ac_try) 2>&5
15748   ac_status=$?
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); }; }
15751     then
15752         gcc_cv_as_ix86_ffreep=yes
15753     else
15754       echo "configure: failed program was" >&5
15755       cat conftest.s >&5
15756     fi
15757     rm -f conftest.o conftest.s
15758   fi
15759 fi
15760 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15761 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15762 if test $gcc_cv_as_ix86_ffreep = yes; then
15763
15764 cat >>confdefs.h <<\_ACEOF
15765 #define HAVE_AS_IX86_FFREEP 1
15766 _ACEOF
15767
15768 fi
15769
15770     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15771 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15772 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15773   echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775   gcc_cv_as_ix86_sahf=no
15776   if test x$gcc_cv_as != x; then
15777     echo 'sahf' > conftest.s
15778     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780   (eval $ac_try) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; }
15784     then
15785         gcc_cv_as_ix86_sahf=yes
15786     else
15787       echo "configure: failed program was" >&5
15788       cat conftest.s >&5
15789     fi
15790     rm -f conftest.o conftest.s
15791   fi
15792 fi
15793 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15794 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15795 if test $gcc_cv_as_ix86_sahf = yes; then
15796
15797 cat >>confdefs.h <<\_ACEOF
15798 #define HAVE_AS_IX86_SAHF 1
15799 _ACEOF
15800
15801 fi
15802
15803     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15804 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15805 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15806   echo $ECHO_N "(cached) $ECHO_C" >&6
15807 else
15808   gcc_cv_as_ix86_diff_sect_delta=no
15809   if test x$gcc_cv_as != x; then
15810     echo '.section .rodata
15811 .L1:
15812         .long .L2-.L1
15813         .long .L3-.L1
15814         .text
15815 .L3:    nop
15816 .L2:    nop' > conftest.s
15817     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819   (eval $ac_try) 2>&5
15820   ac_status=$?
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); }; }
15823     then
15824         gcc_cv_as_ix86_diff_sect_delta=yes
15825     else
15826       echo "configure: failed program was" >&5
15827       cat conftest.s >&5
15828     fi
15829     rm -f conftest.o conftest.s
15830   fi
15831 fi
15832 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15833 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15834 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15835
15836 cat >>confdefs.h <<\_ACEOF
15837 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15838 _ACEOF
15839
15840 fi
15841
15842     # This one is used unconditionally by i386.[ch]; it is to be defined
15843     # to 1 if the feature is present, 0 otherwise.
15844     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15845 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15846 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15847   echo $ECHO_N "(cached) $ECHO_C" >&6
15848 else
15849   gcc_cv_as_ix86_gotoff_in_data=no
15850     if test $in_tree_gas = yes; then
15851     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15852   then gcc_cv_as_ix86_gotoff_in_data=yes
15853 fi
15854   elif test x$gcc_cv_as != x; then
15855     echo '      .text
15856 .L0:
15857         nop
15858         .data
15859         .long .L0@GOTOFF' > conftest.s
15860     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862   (eval $ac_try) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; }
15866     then
15867         gcc_cv_as_ix86_gotoff_in_data=yes
15868     else
15869       echo "configure: failed program was" >&5
15870       cat conftest.s >&5
15871     fi
15872     rm -f conftest.o conftest.s
15873   fi
15874 fi
15875 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15876 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15877
15878
15879 cat >>confdefs.h <<_ACEOF
15880 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15881 _ACEOF
15882
15883     ;;
15884
15885   ia64*-*-*)
15886     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15887 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15888 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15889   echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15892     if test $in_tree_gas = yes; then
15893     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15894   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15895 fi
15896   elif test x$gcc_cv_as != x; then
15897     echo '      .text
15898         addl r15 = @ltoffx(x#), gp
15899         ;;
15900         ld8.mov r16 = [r15], x#' > conftest.s
15901     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903   (eval $ac_try) 2>&5
15904   ac_status=$?
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); }; }
15907     then
15908         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15909     else
15910       echo "configure: failed program was" >&5
15911       cat conftest.s >&5
15912     fi
15913     rm -f conftest.o conftest.s
15914   fi
15915 fi
15916 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15917 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15918 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15919
15920 cat >>confdefs.h <<\_ACEOF
15921 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15922 _ACEOF
15923
15924 fi
15925
15926     ;;
15927
15928   powerpc*-*-*)
15929     case $target in
15930       *-*-aix*) conftest_s='    .machine "pwr5"
15931         .csect .text[PR]
15932         mfcr 3,128';;
15933       *-*-darwin*)
15934         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15935 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15936 if test "${gcc_cv_as_machine_directive+set}" = set; then
15937   echo $ECHO_N "(cached) $ECHO_C" >&6
15938 else
15939   gcc_cv_as_machine_directive=no
15940   if test x$gcc_cv_as != x; then
15941     echo '      .machine ppc7400' > conftest.s
15942     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944   (eval $ac_try) 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; }
15948     then
15949         gcc_cv_as_machine_directive=yes
15950     else
15951       echo "configure: failed program was" >&5
15952       cat conftest.s >&5
15953     fi
15954     rm -f conftest.o conftest.s
15955   fi
15956 fi
15957 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15958 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15959
15960         if test x$gcc_cv_as_machine_directive != xyes; then
15961           echo "*** This target requires an assembler supporting \".machine\"" >&2
15962           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15963           test x$build = x$target && exit 1
15964         fi
15965         conftest_s='    .text
15966         mfcr r3,128';;
15967       *) conftest_s='   .machine power4
15968         .text
15969         mfcr 3,128';;
15970     esac
15971
15972     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15973 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15974 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15975   echo $ECHO_N "(cached) $ECHO_C" >&6
15976 else
15977   gcc_cv_as_powerpc_mfcrf=no
15978     if test $in_tree_gas = yes; then
15979     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15980   then gcc_cv_as_powerpc_mfcrf=yes
15981 fi
15982   elif test x$gcc_cv_as != x; then
15983     echo "$conftest_s" > conftest.s
15984     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986   (eval $ac_try) 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); }; }
15990     then
15991         gcc_cv_as_powerpc_mfcrf=yes
15992     else
15993       echo "configure: failed program was" >&5
15994       cat conftest.s >&5
15995     fi
15996     rm -f conftest.o conftest.s
15997   fi
15998 fi
15999 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
16000 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
16001 if test $gcc_cv_as_powerpc_mfcrf = yes; then
16002
16003 cat >>confdefs.h <<\_ACEOF
16004 #define HAVE_AS_MFCRF 1
16005 _ACEOF
16006
16007 fi
16008
16009     case $target in
16010       *-*-aix*) conftest_s='    .machine "pwr5"
16011         .csect .text[PR]
16012         popcntb 3,3';;
16013       *) conftest_s='   .machine power5
16014         .text
16015         popcntb 3,3';;
16016     esac
16017
16018     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
16019 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
16020 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
16021   echo $ECHO_N "(cached) $ECHO_C" >&6
16022 else
16023   gcc_cv_as_powerpc_popcntb=no
16024     if test $in_tree_gas = yes; then
16025     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16026   then gcc_cv_as_powerpc_popcntb=yes
16027 fi
16028   elif test x$gcc_cv_as != x; then
16029     echo "$conftest_s" > conftest.s
16030     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032   (eval $ac_try) 2>&5
16033   ac_status=$?
16034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035   (exit $ac_status); }; }
16036     then
16037         gcc_cv_as_powerpc_popcntb=yes
16038     else
16039       echo "configure: failed program was" >&5
16040       cat conftest.s >&5
16041     fi
16042     rm -f conftest.o conftest.s
16043   fi
16044 fi
16045 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
16046 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
16047 if test $gcc_cv_as_powerpc_popcntb = yes; then
16048
16049 cat >>confdefs.h <<\_ACEOF
16050 #define HAVE_AS_POPCNTB 1
16051 _ACEOF
16052
16053 fi
16054
16055     case $target in
16056       *-*-aix*) conftest_s='    .machine "pwr5x"
16057         .csect .text[PR]
16058         frin 1,1';;
16059       *) conftest_s='   .machine power5
16060         .text
16061         frin 1,1';;
16062     esac
16063
16064     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16065 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
16066 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16067   echo $ECHO_N "(cached) $ECHO_C" >&6
16068 else
16069   gcc_cv_as_powerpc_fprnd=no
16070     if test $in_tree_gas = yes; then
16071     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16072   then gcc_cv_as_powerpc_fprnd=yes
16073 fi
16074   elif test x$gcc_cv_as != x; then
16075     echo "$conftest_s" > conftest.s
16076     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078   (eval $ac_try) 2>&5
16079   ac_status=$?
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); }; }
16082     then
16083         gcc_cv_as_powerpc_fprnd=yes
16084     else
16085       echo "configure: failed program was" >&5
16086       cat conftest.s >&5
16087     fi
16088     rm -f conftest.o conftest.s
16089   fi
16090 fi
16091 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16092 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
16093 if test $gcc_cv_as_powerpc_fprnd = yes; then
16094
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAVE_AS_FPRND 1
16097 _ACEOF
16098
16099 fi
16100
16101     case $target in
16102       *-*-aix*) conftest_s='    .machine "pwr6"
16103         .csect .text[PR]
16104         mffgpr 1,3';;
16105       *) conftest_s='   .machine power6
16106         .text
16107         mffgpr 1,3';;
16108     esac
16109
16110     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
16111 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
16112 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
16113   echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115   gcc_cv_as_powerpc_mfpgpr=no
16116     if test $in_tree_gas = yes; then
16117     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16118   then gcc_cv_as_powerpc_mfpgpr=yes
16119 fi
16120   elif test x$gcc_cv_as != x; then
16121     echo "$conftest_s" > conftest.s
16122     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124   (eval $ac_try) 2>&5
16125   ac_status=$?
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); }; }
16128     then
16129         gcc_cv_as_powerpc_mfpgpr=yes
16130     else
16131       echo "configure: failed program was" >&5
16132       cat conftest.s >&5
16133     fi
16134     rm -f conftest.o conftest.s
16135   fi
16136 fi
16137 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
16138 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
16139 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
16140
16141 cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_AS_MFPGPR 1
16143 _ACEOF
16144
16145 fi
16146
16147     case $target in
16148       *-*-aix*) conftest_s='    .csect .text[PR]
16149 LCF..0:
16150         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16151       *-*-darwin*)
16152         conftest_s='    .text
16153 LCF0:
16154         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16155       *) conftest_s='   .text
16156 .LCF0:
16157         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16158     esac
16159
16160     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16161 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
16162 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16163   echo $ECHO_N "(cached) $ECHO_C" >&6
16164 else
16165   gcc_cv_as_powerpc_rel16=no
16166     if test $in_tree_gas = yes; then
16167     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16168   then gcc_cv_as_powerpc_rel16=yes
16169 fi
16170   elif test x$gcc_cv_as != x; then
16171     echo "$conftest_s" > conftest.s
16172     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174   (eval $ac_try) 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); }; }
16178     then
16179         gcc_cv_as_powerpc_rel16=yes
16180     else
16181       echo "configure: failed program was" >&5
16182       cat conftest.s >&5
16183     fi
16184     rm -f conftest.o conftest.s
16185   fi
16186 fi
16187 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16188 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
16189 if test $gcc_cv_as_powerpc_rel16 = yes; then
16190
16191 cat >>confdefs.h <<\_ACEOF
16192 #define HAVE_AS_REL16 1
16193 _ACEOF
16194
16195 fi
16196
16197     case $target in
16198       *-*-aix*) conftest_s='    .machine "pwr6"
16199         .csect .text[PR]
16200         cmpb 3,4,5';;
16201       *) conftest_s='   .machine power6
16202         .text
16203         cmpb 3,4,5';;
16204     esac
16205
16206     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
16207 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
16208 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
16209   echo $ECHO_N "(cached) $ECHO_C" >&6
16210 else
16211   gcc_cv_as_powerpc_cmpb=no
16212     if test $in_tree_gas = yes; then
16213     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16214   then gcc_cv_as_powerpc_cmpb=yes
16215 fi
16216   elif test x$gcc_cv_as != x; then
16217     echo "$conftest_s" > conftest.s
16218     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220   (eval $ac_try) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; }
16224     then
16225         gcc_cv_as_powerpc_cmpb=yes
16226     else
16227       echo "configure: failed program was" >&5
16228       cat conftest.s >&5
16229     fi
16230     rm -f conftest.o conftest.s
16231   fi
16232 fi
16233 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
16234 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
16235 if test $gcc_cv_as_powerpc_cmpb = yes; then
16236
16237 cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_AS_CMPB 1
16239 _ACEOF
16240
16241 fi
16242
16243     case $target in
16244       *-*-aix*) conftest_s='    .machine "pwr6"
16245         .csect .text[PR]
16246         dadd 1,2,3';;
16247       *) conftest_s='   .machine power6
16248         .text
16249         dadd 1,2,3';;
16250     esac
16251
16252     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
16253 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
16254 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
16255   echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257   gcc_cv_as_powerpc_dfp=no
16258     if test $in_tree_gas = yes; then
16259     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16260   then gcc_cv_as_powerpc_dfp=yes
16261 fi
16262   elif test x$gcc_cv_as != x; then
16263     echo "$conftest_s" > conftest.s
16264     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266   (eval $ac_try) 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); }; }
16270     then
16271         gcc_cv_as_powerpc_dfp=yes
16272     else
16273       echo "configure: failed program was" >&5
16274       cat conftest.s >&5
16275     fi
16276     rm -f conftest.o conftest.s
16277   fi
16278 fi
16279 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
16280 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
16281 if test $gcc_cv_as_powerpc_dfp = yes; then
16282
16283 cat >>confdefs.h <<\_ACEOF
16284 #define HAVE_AS_DFP 1
16285 _ACEOF
16286
16287 fi
16288
16289     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16290 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
16291 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
16292   echo $ECHO_N "(cached) $ECHO_C" >&6
16293 else
16294   gcc_cv_as_powerpc_gnu_attribute=no
16295     if test $in_tree_gas = yes; then
16296     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16297   then gcc_cv_as_powerpc_gnu_attribute=yes
16298 fi
16299   elif test x$gcc_cv_as != x; then
16300     echo '.gnu_attribute 4,1' > conftest.s
16301     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303   (eval $ac_try) 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); }; }
16307     then
16308         gcc_cv_as_powerpc_gnu_attribute=yes
16309     else
16310       echo "configure: failed program was" >&5
16311       cat conftest.s >&5
16312     fi
16313     rm -f conftest.o conftest.s
16314   fi
16315 fi
16316 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
16317 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
16318 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
16319
16320 cat >>confdefs.h <<\_ACEOF
16321 #define HAVE_AS_GNU_ATTRIBUTE 1
16322 _ACEOF
16323
16324 fi
16325     ;;
16326
16327   mips*-*-*)
16328     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16329 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
16330 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16331   echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333   gcc_cv_as_mips_explicit_relocs=no
16334     if test $in_tree_gas = yes; then
16335     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16336   then gcc_cv_as_mips_explicit_relocs=yes
16337 fi
16338   elif test x$gcc_cv_as != x; then
16339     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
16340     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342   (eval $ac_try) 2>&5
16343   ac_status=$?
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); }; }
16346     then
16347         gcc_cv_as_mips_explicit_relocs=yes
16348     else
16349       echo "configure: failed program was" >&5
16350       cat conftest.s >&5
16351     fi
16352     rm -f conftest.o conftest.s
16353   fi
16354 fi
16355 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16356 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
16357 if test $gcc_cv_as_mips_explicit_relocs = yes; then
16358   if test x$target_cpu_default = x
16359        then target_cpu_default=MASK_EXPLICIT_RELOCS
16360        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16361        fi
16362 fi
16363     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
16364 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
16365 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
16366   echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368   gcc_cv_as_mips_no_shared=no
16369     if test $in_tree_gas = yes; then
16370     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16371   then gcc_cv_as_mips_no_shared=yes
16372 fi
16373   elif test x$gcc_cv_as != x; then
16374     echo 'nop' > conftest.s
16375     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
16376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377   (eval $ac_try) 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; }
16381     then
16382         gcc_cv_as_mips_no_shared=yes
16383     else
16384       echo "configure: failed program was" >&5
16385       cat conftest.s >&5
16386     fi
16387     rm -f conftest.o conftest.s
16388   fi
16389 fi
16390 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
16391 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
16392 if test $gcc_cv_as_mips_no_shared = yes; then
16393
16394 cat >>confdefs.h <<\_ACEOF
16395 #define HAVE_AS_NO_SHARED 1
16396 _ACEOF
16397
16398 fi
16399
16400     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16401 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
16402 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
16403   echo $ECHO_N "(cached) $ECHO_C" >&6
16404 else
16405   gcc_cv_as_mips_gnu_attribute=no
16406     if test $in_tree_gas = yes; then
16407     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16408   then gcc_cv_as_mips_gnu_attribute=yes
16409 fi
16410   elif test x$gcc_cv_as != x; then
16411     echo '.gnu_attribute 4,1' > conftest.s
16412     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414   (eval $ac_try) 2>&5
16415   ac_status=$?
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); }; }
16418     then
16419         gcc_cv_as_mips_gnu_attribute=yes
16420     else
16421       echo "configure: failed program was" >&5
16422       cat conftest.s >&5
16423     fi
16424     rm -f conftest.o conftest.s
16425   fi
16426 fi
16427 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
16428 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
16429 if test $gcc_cv_as_mips_gnu_attribute = yes; then
16430
16431 cat >>confdefs.h <<\_ACEOF
16432 #define HAVE_AS_GNU_ATTRIBUTE 1
16433 _ACEOF
16434
16435 fi
16436
16437     echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16438 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
16439 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16440   echo $ECHO_N "(cached) $ECHO_C" >&6
16441 else
16442   gcc_cv_as_mips_dtprelword=no
16443     if test $in_tree_gas = yes; then
16444     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16445   then gcc_cv_as_mips_dtprelword=yes
16446 fi
16447   elif test x$gcc_cv_as != x; then
16448     echo '.section .tdata,"awT",@progbits
16449 x:
16450         .word 2
16451         .text
16452         .dtprelword x+0x8000' > conftest.s
16453     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455   (eval $ac_try) 2>&5
16456   ac_status=$?
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); }; }
16459     then
16460         gcc_cv_as_mips_dtprelword=yes
16461     else
16462       echo "configure: failed program was" >&5
16463       cat conftest.s >&5
16464     fi
16465     rm -f conftest.o conftest.s
16466   fi
16467 fi
16468 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16469 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
16470 if test $gcc_cv_as_mips_dtprelword = yes; then
16471
16472 cat >>confdefs.h <<\_ACEOF
16473 #define HAVE_AS_DTPRELWORD 1
16474 _ACEOF
16475
16476 fi
16477     ;;
16478 esac
16479
16480 # Mips and HP-UX need the GNU assembler.
16481 # Linux on IA64 might be able to use the Intel assembler.
16482
16483 case "$target" in
16484   mips*-*-* | *-*-hpux* )
16485     if test x$gas_flag = xyes \
16486        || test x"$host" != x"$build" \
16487        || test ! -x "$gcc_cv_as" \
16488        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16489       :
16490     else
16491       echo "*** This configuration requires the GNU assembler" >&2
16492       exit 1
16493     fi
16494     ;;
16495 esac
16496
16497 # ??? Not all targets support dwarf2 debug_line, even within a version
16498 # of gas.  Moreover, we need to emit a valid instruction to trigger any
16499 # info to the output file.  So, as supported targets are added to gas 2.11,
16500 # add some instruction here to (also) show we expect this might work.
16501 # ??? Once 2.11 is released, probably need to add first known working
16502 # version to the per-target configury.
16503 case "$target" in
16504   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16505   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16506   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16507     insn="nop"
16508     ;;
16509   ia64*-*-* | s390*-*-*)
16510     insn="nop 0"
16511     ;;
16512   mmix-*-*)
16513     insn="swym 0"
16514     ;;
16515 esac
16516 if test x"$insn" != x; then
16517  conftest_s="\
16518         .file 1 \"conftest.s\"
16519         .loc 1 3 0
16520         $insn"
16521  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16522 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16523 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16524   echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526   gcc_cv_as_dwarf2_debug_line=no
16527     if test $in_tree_gas = yes; then
16528     if test $in_tree_gas_is_elf = yes \
16529   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16530   then gcc_cv_as_dwarf2_debug_line=yes
16531 fi
16532   elif test x$gcc_cv_as != x; then
16533     echo "$conftest_s" > conftest.s
16534     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536   (eval $ac_try) 2>&5
16537   ac_status=$?
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); }; }
16540     then
16541         if test x$gcc_cv_objdump != x \
16542    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16543       | grep debug_line > /dev/null 2>&1; then
16544      gcc_cv_as_dwarf2_debug_line=yes
16545    fi
16546     else
16547       echo "configure: failed program was" >&5
16548       cat conftest.s >&5
16549     fi
16550     rm -f conftest.o conftest.s
16551   fi
16552 fi
16553 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16554 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16555
16556
16557 # The .debug_line file table must be in the exact order that
16558 # we specified the files, since these indices are also used
16559 # by DW_AT_decl_file.  Approximate this test by testing if
16560 # the assembler bitches if the same index is assigned twice.
16561  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16562 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16563 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16564   echo $ECHO_N "(cached) $ECHO_C" >&6
16565 else
16566   gcc_cv_as_dwarf2_file_buggy=no
16567   if test x$gcc_cv_as != x; then
16568     echo '      .file 1 "foo.s"
16569         .file 1 "bar.s"' > conftest.s
16570     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572   (eval $ac_try) 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); }; }
16576     then
16577         gcc_cv_as_dwarf2_file_buggy=yes
16578     else
16579       echo "configure: failed program was" >&5
16580       cat conftest.s >&5
16581     fi
16582     rm -f conftest.o conftest.s
16583   fi
16584 fi
16585 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16586 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16587
16588
16589  if test $gcc_cv_as_dwarf2_debug_line = yes \
16590  && test $gcc_cv_as_dwarf2_file_buggy = no; then
16591
16592 cat >>confdefs.h <<\_ACEOF
16593 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16594 _ACEOF
16595
16596  fi
16597
16598  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16599 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16600 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16601   echo $ECHO_N "(cached) $ECHO_C" >&6
16602 else
16603   gcc_cv_as_gdwarf2_flag=no
16604     if test $in_tree_gas = yes; then
16605     if test $in_tree_gas_is_elf = yes \
16606   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16607   then gcc_cv_as_gdwarf2_flag=yes
16608 fi
16609   elif test x$gcc_cv_as != x; then
16610     echo "$insn" > conftest.s
16611     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613   (eval $ac_try) 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; }
16617     then
16618         gcc_cv_as_gdwarf2_flag=yes
16619     else
16620       echo "configure: failed program was" >&5
16621       cat conftest.s >&5
16622     fi
16623     rm -f conftest.o conftest.s
16624   fi
16625 fi
16626 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16627 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16628 if test $gcc_cv_as_gdwarf2_flag = yes; then
16629
16630 cat >>confdefs.h <<\_ACEOF
16631 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16632 _ACEOF
16633
16634 fi
16635
16636  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16637 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16638 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   gcc_cv_as_gstabs_flag=no
16642     if test $in_tree_gas = yes; then
16643     if test $in_tree_gas_is_elf = yes \
16644   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16645   then gcc_cv_as_gstabs_flag=yes
16646 fi
16647   elif test x$gcc_cv_as != x; then
16648     echo "$insn" > conftest.s
16649     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651   (eval $ac_try) 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); }; }
16655     then
16656         # The native Solaris 9/Intel assembler doesn't understand --gstabs
16657    # and warns about it, but still exits successfully.  So check for
16658    # this.
16659    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661   (eval $ac_try) 2>&5
16662   ac_status=$?
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); }; }
16665    then :
16666    else gcc_cv_as_gstabs_flag=yes
16667    fi
16668     else
16669       echo "configure: failed program was" >&5
16670       cat conftest.s >&5
16671     fi
16672     rm -f conftest.o conftest.s
16673   fi
16674 fi
16675 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16676 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16677 if test $gcc_cv_as_gstabs_flag = yes; then
16678
16679 cat >>confdefs.h <<\_ACEOF
16680 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16681 _ACEOF
16682
16683 fi
16684
16685  echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16686 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
16687 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16688   echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690   gcc_cv_as_debug_prefix_map_flag=no
16691     if test $in_tree_gas = yes; then
16692     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16693   then gcc_cv_as_debug_prefix_map_flag=yes
16694 fi
16695   elif test x$gcc_cv_as != x; then
16696     echo "$insn" > conftest.s
16697     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699   (eval $ac_try) 2>&5
16700   ac_status=$?
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); }; }
16703     then
16704         gcc_cv_as_debug_prefix_map_flag=yes
16705     else
16706       echo "configure: failed program was" >&5
16707       cat conftest.s >&5
16708     fi
16709     rm -f conftest.o conftest.s
16710   fi
16711 fi
16712 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16713 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
16714 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16715
16716 cat >>confdefs.h <<\_ACEOF
16717 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16718 _ACEOF
16719
16720 fi
16721 fi
16722
16723 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16724 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16725 if test "${gcc_cv_as_line_zero+set}" = set; then
16726   echo $ECHO_N "(cached) $ECHO_C" >&6
16727 else
16728   gcc_cv_as_line_zero=no
16729   if test $in_tree_gas = yes; then
16730     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16731   then gcc_cv_as_line_zero=yes
16732 fi
16733   elif test "x$gcc_cv_as" != x; then
16734     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16735     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737   (eval $ac_try) 2>&5
16738   ac_status=$?
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); }; } &&
16741        test "x`cat conftest.out`" = x
16742     then
16743       gcc_cv_as_line_zero=yes
16744     else
16745       echo "configure: failed program was" >&5
16746       cat conftest.s >&5
16747       echo "configure: error output was" >&5
16748       cat conftest.out >&5
16749     fi
16750     rm -f conftest.o conftest.s conftest.out
16751   fi
16752 fi
16753 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16754 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16755 if test "x$gcc_cv_as_line_zero" = xyes; then
16756
16757 cat >>confdefs.h <<\_ACEOF
16758 #define HAVE_AS_LINE_ZERO 1
16759 _ACEOF
16760
16761 fi
16762
16763 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16764 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16765 gcc_cv_ld_ro_rw_mix=unknown
16766 if test $in_tree_ld = yes ; then
16767   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 \
16768      && test $in_tree_ld_is_elf = yes; then
16769     gcc_cv_ld_ro_rw_mix=read-write
16770   fi
16771 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16772   echo '.section myfoosect, "a"' > conftest1.s
16773   echo '.section myfoosect, "aw"' > conftest2.s
16774   echo '.byte 1' >> conftest2.s
16775   echo '.section myfoosect, "a"' > conftest3.s
16776   echo '.byte 0' >> conftest3.s
16777   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16778      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16779      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16780      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16781         conftest2.o conftest3.o > /dev/null 2>&1; then
16782     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16783                          | sed -e '/myfoosect/!d' -e N`
16784     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16785       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16786         gcc_cv_ld_ro_rw_mix=read-only
16787       else
16788         gcc_cv_ld_ro_rw_mix=read-write
16789       fi
16790     fi
16791   fi
16792   rm -f conftest.* conftest[123].*
16793 fi
16794 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16795
16796 cat >>confdefs.h <<\_ACEOF
16797 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16798 _ACEOF
16799
16800 fi
16801 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16802 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16803
16804 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16805 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16806 gcc_cv_ld_eh_frame_hdr=no
16807 if test $in_tree_ld = yes ; then
16808   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 \
16809      && test $in_tree_ld_is_elf = yes; then
16810     gcc_cv_ld_eh_frame_hdr=yes
16811   fi
16812 elif test x$gcc_cv_ld != x; then
16813         # Check if linker supports --eh-frame-hdr option
16814         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16815                 gcc_cv_ld_eh_frame_hdr=yes
16816         fi
16817 fi
16818
16819 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16820
16821 cat >>confdefs.h <<\_ACEOF
16822 #define HAVE_LD_EH_FRAME_HDR 1
16823 _ACEOF
16824
16825 fi
16826 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16827 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16828
16829 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16830 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16831 gcc_cv_ld_pie=no
16832 if test $in_tree_ld = yes ; then
16833   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 \
16834      && test $in_tree_ld_is_elf = yes; then
16835     gcc_cv_ld_pie=yes
16836   fi
16837 elif test x$gcc_cv_ld != x; then
16838         # Check if linker supports -pie option
16839         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16840                 gcc_cv_ld_pie=yes
16841         fi
16842 fi
16843 if test x"$gcc_cv_ld_pie" = xyes; then
16844
16845 cat >>confdefs.h <<\_ACEOF
16846 #define HAVE_LD_PIE 1
16847 _ACEOF
16848
16849 fi
16850 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16851 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16852
16853 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16854 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16855 gcc_cv_ld_eh_gc_sections=no
16856 if test $in_tree_ld = yes ; then
16857   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16858      && test $in_tree_ld_is_elf = yes; then
16859     gcc_cv_ld_eh_gc_sections=yes
16860   fi
16861 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16862   cat > conftest.s <<EOF
16863         .section        .text
16864 .globl _start
16865         .type _start, @function
16866 _start:
16867         .long foo
16868         .size _start, .-_start
16869         .section        .text.foo,"ax",@progbits
16870         .type foo, @function
16871 foo:
16872         .long 0
16873         .size foo, .-foo
16874         .section        .gcc_except_table.foo,"a",@progbits
16875 .L0:
16876         .long 0
16877         .section        .eh_frame,"a",@progbits
16878         .long .L0
16879 EOF
16880   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16881     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16882          | grep "gc-sections option ignored" > /dev/null; then
16883       gcc_cv_ld_eh_gc_sections=no
16884     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16885       gcc_cv_ld_eh_gc_sections=yes
16886       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16887       if test x$gcc_cv_as_comdat_group != xyes; then
16888         gcc_cv_ld_eh_gc_sections=no
16889         cat > conftest.s <<EOF
16890         .section        .text
16891 .globl _start
16892         .type _start, @function
16893 _start:
16894         .long foo
16895         .size _start, .-_start
16896         .section        .gnu.linkonce.t.foo,"ax",@progbits
16897         .type foo, @function
16898 foo:
16899         .long 0
16900         .size foo, .-foo
16901         .section        .gcc_except_table.foo,"a",@progbits
16902 .L0:
16903         .long 0
16904         .section        .eh_frame,"a",@progbits
16905         .long .L0
16906 EOF
16907         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16908           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16909                | grep "gc-sections option ignored" > /dev/null; then
16910             gcc_cv_ld_eh_gc_sections=no
16911           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16912             gcc_cv_ld_eh_gc_sections=yes
16913           fi
16914         fi
16915       fi
16916     fi
16917   fi
16918   rm -f conftest.s conftest.o conftest
16919 fi
16920 case "$target" in
16921   hppa*-*-linux*)
16922     # ??? This apparently exposes a binutils bug with PC-relative relocations.
16923     gcc_cv_ld_eh_gc_sections=no
16924     ;;
16925 esac
16926 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16927
16928 cat >>confdefs.h <<\_ACEOF
16929 #define HAVE_LD_EH_GC_SECTIONS 1
16930 _ACEOF
16931
16932 fi
16933 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16934 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16935
16936 # --------
16937 # UNSORTED
16938 # --------
16939
16940 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16941 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16942 if test "${gcc_cv_ld_as_needed+set}" = set; then
16943   echo $ECHO_N "(cached) $ECHO_C" >&6
16944 else
16945   gcc_cv_ld_as_needed=no
16946 if test $in_tree_ld = yes ; then
16947   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 \
16948      && test $in_tree_ld_is_elf = yes; then
16949     gcc_cv_ld_as_needed=yes
16950   fi
16951 elif test x$gcc_cv_ld != x; then
16952         # Check if linker supports --as-needed and --no-as-needed options
16953         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16954                 gcc_cv_ld_as_needed=yes
16955         fi
16956 fi
16957
16958 fi
16959 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16960 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16961 if test x"$gcc_cv_ld_as_needed" = xyes; then
16962
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_LD_AS_NEEDED 1
16965 _ACEOF
16966
16967 fi
16968
16969 case "$target:$tm_file" in
16970   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16971     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16972 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16973 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16974   echo $ECHO_N "(cached) $ECHO_C" >&6
16975 else
16976   gcc_cv_ld_no_dot_syms=no
16977     if test $in_tree_ld = yes ; then
16978       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
16979         gcc_cv_ld_no_dot_syms=yes
16980       fi
16981     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16982       cat > conftest1.s <<EOF
16983         .text
16984         bl .foo
16985 EOF
16986       cat > conftest2.s <<EOF
16987         .section ".opd","aw"
16988         .align 3
16989         .globl foo
16990         .type foo,@function
16991 foo:
16992         .quad .LEfoo,.TOC.@tocbase,0
16993         .text
16994 .LEfoo:
16995         blr
16996         .size foo,.-.LEfoo
16997 EOF
16998       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16999          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
17000          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
17001         gcc_cv_ld_no_dot_syms=yes
17002       fi
17003       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
17004     fi
17005
17006 fi
17007 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
17008 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
17009     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
17010
17011 cat >>confdefs.h <<\_ACEOF
17012 #define HAVE_LD_NO_DOT_SYMS 1
17013 _ACEOF
17014
17015     fi
17016     ;;
17017 esac
17018
17019 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
17020 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
17021 if test "${gcc_cv_ld_sysroot+set}" = set; then
17022   echo $ECHO_N "(cached) $ECHO_C" >&6
17023 else
17024   gcc_cv_ld_sysroot=no
17025   if test $in_tree_ld = yes ; then
17026       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
17027         gcc_cv_ld_sysroot=yes
17028       fi
17029   elif test x$gcc_cv_ld != x; then
17030     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
17031       gcc_cv_ld_sysroot=yes
17032     fi
17033   fi
17034 fi
17035 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
17036 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
17037 if test x"$gcc_cv_ld_sysroot" = xyes; then
17038
17039 cat >>confdefs.h <<\_ACEOF
17040 #define HAVE_LD_SYSROOT 1
17041 _ACEOF
17042
17043 fi
17044
17045 if test x$with_sysroot = x && test x$host = x$target \
17046    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
17047    && test "$prefix" != "NONE"; then
17048
17049 cat >>confdefs.h <<_ACEOF
17050 #define PREFIX_INCLUDE_DIR "$prefix/include"
17051 _ACEOF
17052
17053 fi
17054
17055 # Test for stack protector support in target C library.
17056 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
17057 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
17058 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
17059   echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061   gcc_cv_libc_provides_ssp=no
17062     case "$target" in
17063        *-*-linux*)
17064       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17065         if test "x$with_sysroot" = x; then
17066           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17067         elif test "x$with_build_sysroot" != "x"; then
17068           glibc_header_dir="${with_build_sysroot}/usr/include"
17069         elif test "x$with_sysroot" = xyes; then
17070           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17071         else
17072           glibc_header_dir="${with_sysroot}/usr/include"
17073         fi
17074       else
17075         glibc_header_dir=/usr/include
17076       fi
17077       # glibc 2.4 and later provides __stack_chk_fail and
17078       # either __stack_chk_guard, or TLS access to stack guard canary.
17079       if test -f $glibc_header_dir/features.h \
17080          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
17081             $glibc_header_dir/features.h > /dev/null; then
17082         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
17083            $glibc_header_dir/features.h > /dev/null; then
17084           gcc_cv_libc_provides_ssp=yes
17085         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
17086              $glibc_header_dir/features.h > /dev/null \
17087              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
17088              $glibc_header_dir/features.h > /dev/null; then
17089           gcc_cv_libc_provides_ssp=yes
17090         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
17091              $glibc_header_dir/features.h > /dev/null && \
17092              test -f $glibc_header_dir/bits/uClibc_config.h && \
17093              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
17094              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
17095           gcc_cv_libc_provides_ssp=yes
17096         fi
17097       fi
17098         ;;
17099        *-*-darwin*)
17100          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
17101 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
17102 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
17103   echo $ECHO_N "(cached) $ECHO_C" >&6
17104 else
17105   cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h.  */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h.  */
17111 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
17112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17113 #define __stack_chk_fail innocuous___stack_chk_fail
17114
17115 /* System header to define __stub macros and hopefully few prototypes,
17116     which can conflict with char __stack_chk_fail (); below.
17117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17118     <limits.h> exists even on freestanding compilers.  */
17119
17120 #ifdef __STDC__
17121 # include <limits.h>
17122 #else
17123 # include <assert.h>
17124 #endif
17125
17126 #undef __stack_chk_fail
17127
17128 /* Override any gcc2 internal prototype to avoid an error.  */
17129 #ifdef __cplusplus
17130 extern "C"
17131 {
17132 #endif
17133 /* We use char because int might match the return type of a gcc2
17134    builtin and then its argument prototype would still apply.  */
17135 char __stack_chk_fail ();
17136 /* The GNU C library defines this for functions which it implements
17137     to always fail with ENOSYS.  Some functions are actually named
17138     something starting with __ and the normal name is an alias.  */
17139 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
17140 choke me
17141 #else
17142 char (*f) () = __stack_chk_fail;
17143 #endif
17144 #ifdef __cplusplus
17145 }
17146 #endif
17147
17148 int
17149 main ()
17150 {
17151 return f != __stack_chk_fail;
17152   ;
17153   return 0;
17154 }
17155 _ACEOF
17156 rm -f conftest.$ac_objext conftest$ac_exeext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17158   (eval $ac_link) 2>conftest.er1
17159   ac_status=$?
17160   grep -v '^ *+' conftest.er1 >conftest.err
17161   rm -f conftest.er1
17162   cat conftest.err >&5
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); } &&
17165          { ac_try='test -z "$ac_c_werror_flag"
17166                          || test ! -s conftest.err'
17167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168   (eval $ac_try) 2>&5
17169   ac_status=$?
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); }; } &&
17172          { ac_try='test -s conftest$ac_exeext'
17173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174   (eval $ac_try) 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); }; }; then
17178   ac_cv_func___stack_chk_fail=yes
17179 else
17180   echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 ac_cv_func___stack_chk_fail=no
17184 fi
17185 rm -f conftest.err conftest.$ac_objext \
17186       conftest$ac_exeext conftest.$ac_ext
17187 fi
17188 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
17189 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
17190 if test $ac_cv_func___stack_chk_fail = yes; then
17191   gcc_cv_libc_provides_ssp=yes
17192 else
17193   echo "no __stack_chk_fail on this target"
17194 fi
17195
17196         ;;
17197   *) gcc_cv_libc_provides_ssp=no ;;
17198     esac
17199 fi
17200 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
17201 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
17202
17203 if test x$gcc_cv_libc_provides_ssp = xyes; then
17204
17205 cat >>confdefs.h <<\_ACEOF
17206 #define TARGET_LIBC_PROVIDES_SSP 1
17207 _ACEOF
17208
17209 fi
17210
17211 # Check if TFmode long double should be used by default or not.
17212 # Some glibc targets used DFmode long double, but with glibc 2.4
17213 # and later they can use TFmode.
17214 case "$target" in
17215   powerpc*-*-linux* | \
17216   powerpc*-*-gnu* | \
17217   sparc*-*-linux* | \
17218   s390*-*-linux* | \
17219   alpha*-*-linux*)
17220
17221 # Check whether --with-long-double-128 or --without-long-double-128 was given.
17222 if test "${with_long_double_128+set}" = set; then
17223   withval="$with_long_double_128"
17224   gcc_cv_target_ldbl128="$with_long_double_128"
17225 else
17226   gcc_cv_target_ldbl128=no
17227       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17228         if test "x$with_sysroot" = x; then
17229           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17230         elif test "x$with_build_sysroot" != "x"; then
17231           glibc_header_dir="${with_build_sysroot}/usr/include"
17232         elif test "x$with_sysroot" = xyes; then
17233           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17234         else
17235           glibc_header_dir="${with_sysroot}/usr/include"
17236         fi
17237       else
17238         glibc_header_dir=/usr/include
17239       fi
17240       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
17241         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
17242       && gcc_cv_target_ldbl128=yes
17243
17244 fi;
17245     ;;
17246 esac
17247 if test x$gcc_cv_target_ldbl128 = xyes; then
17248
17249 cat >>confdefs.h <<\_ACEOF
17250 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
17251 _ACEOF
17252
17253 fi
17254
17255 # Find out what GC implementation we want, or may, use.
17256
17257 # Check whether --with-gc or --without-gc was given.
17258 if test "${with_gc+set}" = set; then
17259   withval="$with_gc"
17260   case "$withval" in
17261   page)
17262     GGC=ggc-$withval
17263     ;;
17264   zone)
17265     GGC=ggc-$withval
17266
17267 cat >>confdefs.h <<\_ACEOF
17268 #define GGC_ZONE 1
17269 _ACEOF
17270
17271     ;;
17272   *)
17273     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
17274 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
17275    { (exit 1); exit 1; }; }
17276     ;;
17277 esac
17278 else
17279   GGC=ggc-page
17280 fi;
17281
17282 echo "Using $GGC for garbage collection."
17283
17284 # Use the system's zlib library.
17285 zlibdir=-L../zlib
17286 zlibinc="-I\$(srcdir)/../zlib"
17287
17288 # Check whether --with-system-zlib or --without-system-zlib was given.
17289 if test "${with_system_zlib+set}" = set; then
17290   withval="$with_system_zlib"
17291   zlibdir=
17292 zlibinc=
17293
17294 fi;
17295
17296
17297
17298
17299 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
17300 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
17301     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
17302 if test "${enable_maintainer_mode+set}" = set; then
17303   enableval="$enable_maintainer_mode"
17304   maintainer_mode=$enableval
17305 else
17306   maintainer_mode=no
17307 fi;
17308
17309 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
17310 echo "${ECHO_T}$maintainer_mode" >&6
17311
17312 if test "$maintainer_mode" = "yes"; then
17313   MAINT=''
17314 else
17315   MAINT='#'
17316 fi
17317
17318 # --------------
17319 # Language hooks
17320 # --------------
17321
17322 # Make empty files to contain the specs and options for each language.
17323 # Then add #include lines to for a compiler that has specs and/or options.
17324
17325 subdirs=
17326 lang_opt_files=
17327 lang_specs_files=
17328 lang_tree_files=
17329 # These (without "all_") are set in each config-lang.in.
17330 # `language' must be a single word so is spelled singularly.
17331 all_languages=
17332 all_compilers=
17333 all_outputs='Makefile gccbug libada-mk'
17334 # List of language makefile fragments.
17335 all_lang_makefrags=
17336 # List of language subdirectory makefiles.  Deprecated.
17337 all_lang_makefiles=
17338 # Additional files for gengtype
17339 all_gtfiles="$target_gtfiles"
17340
17341 # These are the languages that are set in --enable-languages,
17342 # and are available in the GCC tree.
17343 all_selected_languages=
17344
17345 # Add the language fragments.
17346 # Languages are added via two mechanisms.  Some information must be
17347 # recorded in makefile variables, these are defined in config-lang.in.
17348 # We accumulate them and plug them into the main Makefile.
17349 # The other mechanism is a set of hooks for each of the main targets
17350 # like `clean', `install', etc.
17351
17352 language_hooks="Make-hooks"
17353
17354 for lang in ${srcdir}/*/config-lang.in
17355 do
17356         test "$lang" = "${srcdir}/*/config-lang.in" && continue
17357
17358         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
17359         if test "x$lang_alias" = x
17360         then
17361               echo "$lang doesn't set \$language." 1>&2
17362               exit 1
17363         fi
17364         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
17365         subdirs="$subdirs $subdir"
17366         case ",$enable_languages," in
17367         *,$lang_alias,*)
17368             all_selected_languages="$all_selected_languages $lang_alias"
17369             if test -f $srcdir/$subdir/lang-specs.h; then
17370                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17371             fi
17372             ;;
17373         esac
17374
17375         language=
17376         boot_language=
17377         compilers=
17378         outputs=
17379         gtfiles=
17380         subdir_requires=
17381         . ${srcdir}/$subdir/config-lang.in
17382         if test "x$language" = x
17383         then
17384                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
17385                 exit 1
17386         fi
17387
17388         ok=:
17389         case ",$enable_languages," in
17390                 *,$lang_alias,*) ;;
17391                 *)
17392                         for i in $subdir_requires; do
17393                                 test -f "${srcdir}/$i/config-lang.in" && continue
17394                                 ok=false
17395                                 break
17396                         done
17397                 ;;
17398         esac
17399         $ok || continue
17400
17401         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
17402         if test -f $srcdir/$subdir/lang.opt; then
17403             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17404         fi
17405         if test -f $srcdir/$subdir/$subdir-tree.def; then
17406             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17407         fi
17408         if test -f ${srcdir}/$subdir/Makefile.in
17409                 then all_lang_makefiles="$subdir/Makefile"
17410         fi
17411         all_languages="$all_languages $language"
17412         all_compilers="$all_compilers $compilers"
17413         all_outputs="$all_outputs $outputs"
17414         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
17415 done
17416
17417 # Pick up gtfiles for c
17418 gtfiles=
17419 . ${srcdir}/c-config-lang.in
17420 all_gtfiles="$all_gtfiles [c] $gtfiles"
17421
17422 check_languages=
17423 for language in $all_selected_languages
17424 do
17425         check_languages="$check_languages check-$language"
17426 done
17427
17428 # We link each language in with a set of hooks, reached indirectly via
17429 # lang.${target}.  Only do so for selected languages.
17430
17431 rm -f Make-hooks
17432 touch Make-hooks
17433 target_list="all.cross start.encap rest.encap tags \
17434         install-common install-man install-info install-pdf dvi pdf \
17435         html uninstall info man srcextra srcman srcinfo \
17436         mostlyclean clean distclean maintainer-clean"
17437
17438 for t in $target_list
17439 do
17440         x=
17441         for lang in $all_selected_languages
17442         do
17443                 x="$x $lang.$t"
17444         done
17445         echo "lang.$t: $x" >> Make-hooks
17446 done
17447
17448 # --------
17449 # UNSORTED
17450 # --------
17451
17452 # Create .gdbinit.
17453
17454 echo "dir ." > .gdbinit
17455 echo "dir ${srcdir}" >> .gdbinit
17456 if test x$gdb_needs_out_file_path = xyes
17457 then
17458         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17459 fi
17460 if test "x$subdirs" != x; then
17461         for s in $subdirs
17462         do
17463                 echo "dir ${srcdir}/$s" >> .gdbinit
17464         done
17465 fi
17466 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17467
17468 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17469
17470
17471
17472 # Find a directory in which to install a shared libgcc.
17473
17474 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17475 if test "${enable_version_specific_runtime_libs+set}" = set; then
17476   enableval="$enable_version_specific_runtime_libs"
17477
17478 fi;
17479
17480
17481 # Check whether --with-slibdir or --without-slibdir was given.
17482 if test "${with_slibdir+set}" = set; then
17483   withval="$with_slibdir"
17484   slibdir="$with_slibdir"
17485 else
17486   if test "${enable_version_specific_runtime_libs+set}" = set; then
17487   slibdir='$(libsubdir)'
17488 elif test "$host" != "$target"; then
17489   slibdir='$(build_tooldir)/lib'
17490 else
17491   slibdir='$(libdir)'
17492 fi
17493 fi;
17494
17495
17496 objdir=`${PWDCMD-pwd}`
17497
17498
17499
17500 # Check whether --with-datarootdir or --without-datarootdir was given.
17501 if test "${with_datarootdir+set}" = set; then
17502   withval="$with_datarootdir"
17503   datarootdir="\${prefix}/$with_datarootdir"
17504 else
17505   datarootdir='$(prefix)/share'
17506 fi;
17507
17508
17509
17510 # Check whether --with-docdir or --without-docdir was given.
17511 if test "${with_docdir+set}" = set; then
17512   withval="$with_docdir"
17513   docdir="\${prefix}/$with_docdir"
17514 else
17515   docdir='$(datarootdir)'
17516 fi;
17517
17518
17519
17520 # Check whether --with-htmldir or --without-htmldir was given.
17521 if test "${with_htmldir+set}" = set; then
17522   withval="$with_htmldir"
17523   htmldir="\${prefix}/$with_htmldir"
17524 else
17525   htmldir='$(docdir)'
17526 fi;
17527
17528
17529 # Substitute configuration variables
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586 # Echo link setup.
17587 if test x${build} = x${host} ; then
17588   if test x${host} = x${target} ; then
17589     echo "Links are now set up to build a native compiler for ${target}." 1>&2
17590   else
17591     echo "Links are now set up to build a cross-compiler" 1>&2
17592     echo " from ${host} to ${target}." 1>&2
17593   fi
17594 else
17595   if test x${host} = x${target} ; then
17596     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17597     echo " for ${target}." 1>&2
17598   else
17599     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17600     echo " from ${host} to ${target}." 1>&2
17601   fi
17602 fi
17603
17604
17605
17606
17607 # Configure the subdirectories
17608 # AC_CONFIG_SUBDIRS($subdirs)
17609
17610 # Create the Makefile
17611 # and configure language subdirectories
17612           ac_config_files="$ac_config_files $all_outputs"
17613
17614
17615           ac_config_commands="$ac_config_commands default"
17616
17617 cat >confcache <<\_ACEOF
17618 # This file is a shell script that caches the results of configure
17619 # tests run on this system so they can be shared between configure
17620 # scripts and configure runs, see configure's option --config-cache.
17621 # It is not useful on other systems.  If it contains results you don't
17622 # want to keep, you may remove or edit it.
17623 #
17624 # config.status only pays attention to the cache file if you give it
17625 # the --recheck option to rerun configure.
17626 #
17627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17629 # following values.
17630
17631 _ACEOF
17632
17633 # The following way of writing the cache mishandles newlines in values,
17634 # but we know of no workaround that is simple, portable, and efficient.
17635 # So, don't put newlines in cache variables' values.
17636 # Ultrix sh set writes to stderr and can't be redirected directly,
17637 # and sets the high bit in the cache file unless we assign to the vars.
17638 {
17639   (set) 2>&1 |
17640     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17641     *ac_space=\ *)
17642       # `set' does not quote correctly, so add quotes (double-quote
17643       # substitution turns \\\\ into \\, and sed turns \\ into \).
17644       sed -n \
17645         "s/'/'\\\\''/g;
17646           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17647       ;;
17648     *)
17649       # `set' quotes correctly as required by POSIX, so do not add quotes.
17650       sed -n \
17651         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17652       ;;
17653     esac;
17654 } |
17655   sed '
17656      t clear
17657      : clear
17658      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17659      t end
17660      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17661      : end' >>confcache
17662 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17663   if test -w $cache_file; then
17664     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17665     cat confcache >$cache_file
17666   else
17667     echo "not updating unwritable cache $cache_file"
17668   fi
17669 fi
17670 rm -f confcache
17671
17672 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17673 # Let make expand exec_prefix.
17674 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17675
17676 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17677 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17678 # trailing colons and then remove the whole line if VPATH becomes empty
17679 # (actually we leave an empty line to preserve line numbers).
17680 if test "x$srcdir" = x.; then
17681   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17682 s/:*\$(srcdir):*/:/;
17683 s/:*\${srcdir}:*/:/;
17684 s/:*@srcdir@:*/:/;
17685 s/^\([^=]*=[     ]*\):*/\1/;
17686 s/:*$//;
17687 s/^[^=]*=[       ]*$//;
17688 }'
17689 fi
17690
17691 DEFS=-DHAVE_CONFIG_H
17692
17693 ac_libobjs=
17694 ac_ltlibobjs=
17695 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17696   # 1. Remove the extension, and $U if already installed.
17697   ac_i=`echo "$ac_i" |
17698          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17699   # 2. Add them.
17700   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17701   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17702 done
17703 LIBOBJS=$ac_libobjs
17704
17705 LTLIBOBJS=$ac_ltlibobjs
17706
17707
17708
17709 : ${CONFIG_STATUS=./config.status}
17710 ac_clean_files_save=$ac_clean_files
17711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17712 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17713 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17714 cat >$CONFIG_STATUS <<_ACEOF
17715 #! $SHELL
17716 # Generated by $as_me.
17717 # Run this file to recreate the current configuration.
17718 # Compiler output produced by configure, useful for debugging
17719 # configure, is in config.log if it exists.
17720
17721 debug=false
17722 ac_cs_recheck=false
17723 ac_cs_silent=false
17724 SHELL=\${CONFIG_SHELL-$SHELL}
17725 _ACEOF
17726
17727 cat >>$CONFIG_STATUS <<\_ACEOF
17728 ## --------------------- ##
17729 ## M4sh Initialization.  ##
17730 ## --------------------- ##
17731
17732 # Be Bourne compatible
17733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17734   emulate sh
17735   NULLCMD=:
17736   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17737   # is contrary to our usage.  Disable this feature.
17738   alias -g '${1+"$@"}'='"$@"'
17739 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17740   set -o posix
17741 fi
17742 DUALCASE=1; export DUALCASE # for MKS sh
17743
17744 # Support unset when possible.
17745 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17746   as_unset=unset
17747 else
17748   as_unset=false
17749 fi
17750
17751
17752 # Work around bugs in pre-3.0 UWIN ksh.
17753 $as_unset ENV MAIL MAILPATH
17754 PS1='$ '
17755 PS2='> '
17756 PS4='+ '
17757
17758 # NLS nuisances.
17759 for as_var in \
17760   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17761   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17762   LC_TELEPHONE LC_TIME
17763 do
17764   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17765     eval $as_var=C; export $as_var
17766   else
17767     $as_unset $as_var
17768   fi
17769 done
17770
17771 # Required to use basename.
17772 if expr a : '\(a\)' >/dev/null 2>&1; then
17773   as_expr=expr
17774 else
17775   as_expr=false
17776 fi
17777
17778 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17779   as_basename=basename
17780 else
17781   as_basename=false
17782 fi
17783
17784
17785 # Name of the executable.
17786 as_me=`$as_basename "$0" ||
17787 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17788          X"$0" : 'X\(//\)$' \| \
17789          X"$0" : 'X\(/\)$' \| \
17790          .     : '\(.\)' 2>/dev/null ||
17791 echo X/"$0" |
17792     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17793           /^X\/\(\/\/\)$/{ s//\1/; q; }
17794           /^X\/\(\/\).*/{ s//\1/; q; }
17795           s/.*/./; q'`
17796
17797
17798 # PATH needs CR, and LINENO needs CR and PATH.
17799 # Avoid depending upon Character Ranges.
17800 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17801 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17802 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17803 as_cr_digits='0123456789'
17804 as_cr_alnum=$as_cr_Letters$as_cr_digits
17805
17806 # The user is always right.
17807 if test "${PATH_SEPARATOR+set}" != set; then
17808   echo "#! /bin/sh" >conf$$.sh
17809   echo  "exit 0"   >>conf$$.sh
17810   chmod +x conf$$.sh
17811   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17812     PATH_SEPARATOR=';'
17813   else
17814     PATH_SEPARATOR=:
17815   fi
17816   rm -f conf$$.sh
17817 fi
17818
17819
17820   as_lineno_1=$LINENO
17821   as_lineno_2=$LINENO
17822   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17823   test "x$as_lineno_1" != "x$as_lineno_2" &&
17824   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17825   # Find who we are.  Look in the path if we contain no path at all
17826   # relative or not.
17827   case $0 in
17828     *[\\/]* ) as_myself=$0 ;;
17829     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17830 for as_dir in $PATH
17831 do
17832   IFS=$as_save_IFS
17833   test -z "$as_dir" && as_dir=.
17834   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17835 done
17836
17837        ;;
17838   esac
17839   # We did not find ourselves, most probably we were run as `sh COMMAND'
17840   # in which case we are not to be found in the path.
17841   if test "x$as_myself" = x; then
17842     as_myself=$0
17843   fi
17844   if test ! -f "$as_myself"; then
17845     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17846 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17847    { (exit 1); exit 1; }; }
17848   fi
17849   case $CONFIG_SHELL in
17850   '')
17851     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17852 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17853 do
17854   IFS=$as_save_IFS
17855   test -z "$as_dir" && as_dir=.
17856   for as_base in sh bash ksh sh5; do
17857          case $as_dir in
17858          /*)
17859            if ("$as_dir/$as_base" -c '
17860   as_lineno_1=$LINENO
17861   as_lineno_2=$LINENO
17862   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17863   test "x$as_lineno_1" != "x$as_lineno_2" &&
17864   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17865              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17866              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17867              CONFIG_SHELL=$as_dir/$as_base
17868              export CONFIG_SHELL
17869              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17870            fi;;
17871          esac
17872        done
17873 done
17874 ;;
17875   esac
17876
17877   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17878   # uniformly replaced by the line number.  The first 'sed' inserts a
17879   # line-number line before each line; the second 'sed' does the real
17880   # work.  The second script uses 'N' to pair each line-number line
17881   # with the numbered line, and appends trailing '-' during
17882   # substitution so that $LINENO is not a special case at line end.
17883   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17884   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17885   sed '=' <$as_myself |
17886     sed '
17887       N
17888       s,$,-,
17889       : loop
17890       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17891       t loop
17892       s,-$,,
17893       s,^['$as_cr_digits']*\n,,
17894     ' >$as_me.lineno &&
17895   chmod +x $as_me.lineno ||
17896     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17897 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17898    { (exit 1); exit 1; }; }
17899
17900   # Don't try to exec as it changes $[0], causing all sort of problems
17901   # (the dirname of $[0] is not the place where we might find the
17902   # original and so on.  Autoconf is especially sensible to this).
17903   . ./$as_me.lineno
17904   # Exit status is that of the last command.
17905   exit
17906 }
17907
17908
17909 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17910   *c*,-n*) ECHO_N= ECHO_C='
17911 ' ECHO_T='      ' ;;
17912   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17913   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17914 esac
17915
17916 if expr a : '\(a\)' >/dev/null 2>&1; then
17917   as_expr=expr
17918 else
17919   as_expr=false
17920 fi
17921
17922 rm -f conf$$ conf$$.exe conf$$.file
17923 echo >conf$$.file
17924 if ln -s conf$$.file conf$$ 2>/dev/null; then
17925   # We could just check for DJGPP; but this test a) works b) is more generic
17926   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17927   if test -f conf$$.exe; then
17928     # Don't use ln at all; we don't have any links
17929     as_ln_s='cp -p'
17930   else
17931     as_ln_s='ln -s'
17932   fi
17933 elif ln conf$$.file conf$$ 2>/dev/null; then
17934   as_ln_s=ln
17935 else
17936   as_ln_s='cp -p'
17937 fi
17938 rm -f conf$$ conf$$.exe conf$$.file
17939
17940 if mkdir -p . 2>/dev/null; then
17941   as_mkdir_p=:
17942 else
17943   test -d ./-p && rmdir ./-p
17944   as_mkdir_p=false
17945 fi
17946
17947 as_executable_p="test -f"
17948
17949 # Sed expression to map a string onto a valid CPP name.
17950 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17951
17952 # Sed expression to map a string onto a valid variable name.
17953 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17954
17955
17956 # IFS
17957 # We need space, tab and new line, in precisely that order.
17958 as_nl='
17959 '
17960 IFS="   $as_nl"
17961
17962 # CDPATH.
17963 $as_unset CDPATH
17964
17965 exec 6>&1
17966
17967 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17968 # report actual input values of CONFIG_FILES etc. instead of their
17969 # values after options handling.  Logging --version etc. is OK.
17970 exec 5>>config.log
17971 {
17972   echo
17973   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17974 ## Running $as_me. ##
17975 _ASBOX
17976 } >&5
17977 cat >&5 <<_CSEOF
17978
17979 This file was extended by $as_me, which was
17980 generated by GNU Autoconf 2.59.  Invocation command line was
17981
17982   CONFIG_FILES    = $CONFIG_FILES
17983   CONFIG_HEADERS  = $CONFIG_HEADERS
17984   CONFIG_LINKS    = $CONFIG_LINKS
17985   CONFIG_COMMANDS = $CONFIG_COMMANDS
17986   $ $0 $@
17987
17988 _CSEOF
17989 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17990 echo >&5
17991 _ACEOF
17992
17993 # Files that config.status was made for.
17994 if test -n "$ac_config_files"; then
17995   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17996 fi
17997
17998 if test -n "$ac_config_headers"; then
17999   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18000 fi
18001
18002 if test -n "$ac_config_links"; then
18003   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18004 fi
18005
18006 if test -n "$ac_config_commands"; then
18007   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18008 fi
18009
18010 cat >>$CONFIG_STATUS <<\_ACEOF
18011
18012 ac_cs_usage="\
18013 \`$as_me' instantiates files from templates according to the
18014 current configuration.
18015
18016 Usage: $0 [OPTIONS] [FILE]...
18017
18018   -h, --help       print this help, then exit
18019   -V, --version    print version number, then exit
18020   -q, --quiet      do not print progress messages
18021   -d, --debug      don't remove temporary files
18022       --recheck    update $as_me by reconfiguring in the same conditions
18023   --file=FILE[:TEMPLATE]
18024                    instantiate the configuration file FILE
18025   --header=FILE[:TEMPLATE]
18026                    instantiate the configuration header FILE
18027
18028 Configuration files:
18029 $config_files
18030
18031 Configuration headers:
18032 $config_headers
18033
18034 Configuration commands:
18035 $config_commands
18036
18037 Report bugs to <bug-autoconf@gnu.org>."
18038 _ACEOF
18039
18040 cat >>$CONFIG_STATUS <<_ACEOF
18041 ac_cs_version="\\
18042 config.status
18043 configured by $0, generated by GNU Autoconf 2.59,
18044   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18045
18046 Copyright (C) 2003 Free Software Foundation, Inc.
18047 This config.status script is free software; the Free Software Foundation
18048 gives unlimited permission to copy, distribute and modify it."
18049 srcdir=$srcdir
18050 _ACEOF
18051
18052 cat >>$CONFIG_STATUS <<\_ACEOF
18053 # If no file are specified by the user, then we need to provide default
18054 # value.  By we need to know if files were specified by the user.
18055 ac_need_defaults=:
18056 while test $# != 0
18057 do
18058   case $1 in
18059   --*=*)
18060     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18061     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18062     ac_shift=:
18063     ;;
18064   -*)
18065     ac_option=$1
18066     ac_optarg=$2
18067     ac_shift=shift
18068     ;;
18069   *) # This is not an option, so the user has probably given explicit
18070      # arguments.
18071      ac_option=$1
18072      ac_need_defaults=false;;
18073   esac
18074
18075   case $ac_option in
18076   # Handling of the options.
18077 _ACEOF
18078 cat >>$CONFIG_STATUS <<\_ACEOF
18079   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18080     ac_cs_recheck=: ;;
18081   --version | --vers* | -V )
18082     echo "$ac_cs_version"; exit 0 ;;
18083   --he | --h)
18084     # Conflict between --help and --header
18085     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18086 Try \`$0 --help' for more information." >&5
18087 echo "$as_me: error: ambiguous option: $1
18088 Try \`$0 --help' for more information." >&2;}
18089    { (exit 1); exit 1; }; };;
18090   --help | --hel | -h )
18091     echo "$ac_cs_usage"; exit 0 ;;
18092   --debug | --d* | -d )
18093     debug=: ;;
18094   --file | --fil | --fi | --f )
18095     $ac_shift
18096     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18097     ac_need_defaults=false;;
18098   --header | --heade | --head | --hea )
18099     $ac_shift
18100     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18101     ac_need_defaults=false;;
18102   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18103   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18104     ac_cs_silent=: ;;
18105
18106   # This is an error.
18107   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18108 Try \`$0 --help' for more information." >&5
18109 echo "$as_me: error: unrecognized option: $1
18110 Try \`$0 --help' for more information." >&2;}
18111    { (exit 1); exit 1; }; } ;;
18112
18113   *) ac_config_targets="$ac_config_targets $1" ;;
18114
18115   esac
18116   shift
18117 done
18118
18119 ac_configure_extra_args=
18120
18121 if $ac_cs_silent; then
18122   exec 6>/dev/null
18123   ac_configure_extra_args="$ac_configure_extra_args --silent"
18124 fi
18125
18126 _ACEOF
18127 cat >>$CONFIG_STATUS <<_ACEOF
18128 if \$ac_cs_recheck; then
18129   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18130   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18131 fi
18132
18133 _ACEOF
18134
18135 cat >>$CONFIG_STATUS <<_ACEOF
18136 #
18137 # INIT-COMMANDS section.
18138 #
18139
18140 subdirs='$subdirs'
18141
18142 _ACEOF
18143
18144
18145
18146 cat >>$CONFIG_STATUS <<\_ACEOF
18147 for ac_config_target in $ac_config_targets
18148 do
18149   case "$ac_config_target" in
18150   # Handling of arguments.
18151   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
18152   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
18153   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
18154   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
18155   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18156   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
18157   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18158 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18159    { (exit 1); exit 1; }; };;
18160   esac
18161 done
18162
18163 # If the user did not use the arguments to specify the items to instantiate,
18164 # then the envvar interface is used.  Set only those that are not.
18165 # We use the long form for the default assignment because of an extremely
18166 # bizarre bug on SunOS 4.1.3.
18167 if $ac_need_defaults; then
18168   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18169   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18170   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18171 fi
18172
18173 # Have a temporary directory for convenience.  Make it in the build tree
18174 # simply because there is no reason to put it here, and in addition,
18175 # creating and moving files from /tmp can sometimes cause problems.
18176 # Create a temporary directory, and hook for its removal unless debugging.
18177 $debug ||
18178 {
18179   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18180   trap '{ (exit 1); exit 1; }' 1 2 13 15
18181 }
18182
18183 # Create a (secure) tmp directory for tmp files.
18184
18185 {
18186   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18187   test -n "$tmp" && test -d "$tmp"
18188 }  ||
18189 {
18190   tmp=./confstat$$-$RANDOM
18191   (umask 077 && mkdir $tmp)
18192 } ||
18193 {
18194    echo "$me: cannot create a temporary directory in ." >&2
18195    { (exit 1); exit 1; }
18196 }
18197
18198 _ACEOF
18199
18200 cat >>$CONFIG_STATUS <<_ACEOF
18201
18202 #
18203 # CONFIG_FILES section.
18204 #
18205
18206 # No need to generate the scripts if there are no CONFIG_FILES.
18207 # This happens for instance when ./config.status config.h
18208 if test -n "\$CONFIG_FILES"; then
18209   # Protect against being on the right side of a sed subst in config.status.
18210   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18211    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18212 s,@SHELL@,$SHELL,;t t
18213 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18214 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18215 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18216 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18217 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18218 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18219 s,@exec_prefix@,$exec_prefix,;t t
18220 s,@prefix@,$prefix,;t t
18221 s,@program_transform_name@,$program_transform_name,;t t
18222 s,@bindir@,$bindir,;t t
18223 s,@sbindir@,$sbindir,;t t
18224 s,@libexecdir@,$libexecdir,;t t
18225 s,@datadir@,$datadir,;t t
18226 s,@sysconfdir@,$sysconfdir,;t t
18227 s,@sharedstatedir@,$sharedstatedir,;t t
18228 s,@localstatedir@,$localstatedir,;t t
18229 s,@libdir@,$libdir,;t t
18230 s,@includedir@,$includedir,;t t
18231 s,@oldincludedir@,$oldincludedir,;t t
18232 s,@infodir@,$infodir,;t t
18233 s,@mandir@,$mandir,;t t
18234 s,@build_alias@,$build_alias,;t t
18235 s,@host_alias@,$host_alias,;t t
18236 s,@target_alias@,$target_alias,;t t
18237 s,@DEFS@,$DEFS,;t t
18238 s,@ECHO_C@,$ECHO_C,;t t
18239 s,@ECHO_N@,$ECHO_N,;t t
18240 s,@ECHO_T@,$ECHO_T,;t t
18241 s,@LIBS@,$LIBS,;t t
18242 s,@build@,$build,;t t
18243 s,@build_cpu@,$build_cpu,;t t
18244 s,@build_vendor@,$build_vendor,;t t
18245 s,@build_os@,$build_os,;t t
18246 s,@host@,$host,;t t
18247 s,@host_cpu@,$host_cpu,;t t
18248 s,@host_vendor@,$host_vendor,;t t
18249 s,@host_os@,$host_os,;t t
18250 s,@target@,$target,;t t
18251 s,@target_cpu@,$target_cpu,;t t
18252 s,@target_vendor@,$target_vendor,;t t
18253 s,@target_os@,$target_os,;t t
18254 s,@target_noncanonical@,$target_noncanonical,;t t
18255 s,@build_libsubdir@,$build_libsubdir,;t t
18256 s,@build_subdir@,$build_subdir,;t t
18257 s,@host_subdir@,$host_subdir,;t t
18258 s,@target_subdir@,$target_subdir,;t t
18259 s,@GENINSRC@,$GENINSRC,;t t
18260 s,@CC@,$CC,;t t
18261 s,@CFLAGS@,$CFLAGS,;t t
18262 s,@LDFLAGS@,$LDFLAGS,;t t
18263 s,@CPPFLAGS@,$CPPFLAGS,;t t
18264 s,@ac_ct_CC@,$ac_ct_CC,;t t
18265 s,@EXEEXT@,$EXEEXT,;t t
18266 s,@OBJEXT@,$OBJEXT,;t t
18267 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
18268 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
18269 s,@CPP@,$CPP,;t t
18270 s,@EGREP@,$EGREP,;t t
18271 s,@loose_warn@,$loose_warn,;t t
18272 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
18273 s,@strict_warn@,$strict_warn,;t t
18274 s,@warn_cflags@,$warn_cflags,;t t
18275 s,@nocommon_flag@,$nocommon_flag,;t t
18276 s,@TREEBROWSER@,$TREEBROWSER,;t t
18277 s,@valgrind_path@,$valgrind_path,;t t
18278 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
18279 s,@valgrind_command@,$valgrind_command,;t t
18280 s,@coverage_flags@,$coverage_flags,;t t
18281 s,@enable_multilib@,$enable_multilib,;t t
18282 s,@enable_decimal_float@,$enable_decimal_float,;t t
18283 s,@enable_fixed_point@,$enable_fixed_point,;t t
18284 s,@enable_shared@,$enable_shared,;t t
18285 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
18286 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
18287 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
18288 s,@onestep@,$onestep,;t t
18289 s,@PKGVERSION@,$PKGVERSION,;t t
18290 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
18291 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
18292 s,@datarootdir@,$datarootdir,;t t
18293 s,@docdir@,$docdir,;t t
18294 s,@htmldir@,$htmldir,;t t
18295 s,@SET_MAKE@,$SET_MAKE,;t t
18296 s,@AWK@,$AWK,;t t
18297 s,@LN_S@,$LN_S,;t t
18298 s,@LN@,$LN,;t t
18299 s,@RANLIB@,$RANLIB,;t t
18300 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18301 s,@ranlib_flags@,$ranlib_flags,;t t
18302 s,@INSTALL@,$INSTALL,;t t
18303 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18304 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18305 s,@make_compare_target@,$make_compare_target,;t t
18306 s,@have_mktemp_command@,$have_mktemp_command,;t t
18307 s,@MAKEINFO@,$MAKEINFO,;t t
18308 s,@BUILD_INFO@,$BUILD_INFO,;t t
18309 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
18310 s,@FLEX@,$FLEX,;t t
18311 s,@BISON@,$BISON,;t t
18312 s,@NM@,$NM,;t t
18313 s,@AR@,$AR,;t t
18314 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
18315 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
18316 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
18317 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
18318 s,@LIBICONV@,$LIBICONV,;t t
18319 s,@LTLIBICONV@,$LTLIBICONV,;t t
18320 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
18321 s,@manext@,$manext,;t t
18322 s,@objext@,$objext,;t t
18323 s,@gthread_flags@,$gthread_flags,;t t
18324 s,@extra_modes_file@,$extra_modes_file,;t t
18325 s,@extra_opt_files@,$extra_opt_files,;t t
18326 s,@USE_NLS@,$USE_NLS,;t t
18327 s,@LIBINTL@,$LIBINTL,;t t
18328 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
18329 s,@INCINTL@,$INCINTL,;t t
18330 s,@XGETTEXT@,$XGETTEXT,;t t
18331 s,@GMSGFMT@,$GMSGFMT,;t t
18332 s,@POSUB@,$POSUB,;t t
18333 s,@CATALOGS@,$CATALOGS,;t t
18334 s,@DATADIRNAME@,$DATADIRNAME,;t t
18335 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18336 s,@GENCAT@,$GENCAT,;t t
18337 s,@CATOBJEXT@,$CATOBJEXT,;t t
18338 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
18339 s,@CROSS@,$CROSS,;t t
18340 s,@ALL@,$ALL,;t t
18341 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
18342 s,@inhibit_libc@,$inhibit_libc,;t t
18343 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
18344 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
18345 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
18346 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
18347 s,@collect2@,$collect2,;t t
18348 s,@gcc_cv_as@,$gcc_cv_as,;t t
18349 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
18350 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
18351 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
18352 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
18353 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
18354 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
18355 s,@libgcc_visibility@,$libgcc_visibility,;t t
18356 s,@GGC@,$GGC,;t t
18357 s,@zlibdir@,$zlibdir,;t t
18358 s,@zlibinc@,$zlibinc,;t t
18359 s,@MAINT@,$MAINT,;t t
18360 s,@gcc_tooldir@,$gcc_tooldir,;t t
18361 s,@dollar@,$dollar,;t t
18362 s,@slibdir@,$slibdir,;t t
18363 s,@objdir@,$objdir,;t t
18364 s,@subdirs@,$subdirs,;t t
18365 s,@srcdir@,$srcdir,;t t
18366 s,@all_compilers@,$all_compilers,;t t
18367 s,@all_gtfiles@,$all_gtfiles,;t t
18368 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
18369 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
18370 s,@all_languages@,$all_languages,;t t
18371 s,@all_selected_languages@,$all_selected_languages,;t t
18372 s,@build_exeext@,$build_exeext,;t t
18373 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
18374 s,@build_xm_file_list@,$build_xm_file_list,;t t
18375 s,@build_xm_include_list@,$build_xm_include_list,;t t
18376 s,@build_xm_defines@,$build_xm_defines,;t t
18377 s,@build_file_translate@,$build_file_translate,;t t
18378 s,@check_languages@,$check_languages,;t t
18379 s,@cpp_install_dir@,$cpp_install_dir,;t t
18380 s,@xmake_file@,$xmake_file,;t t
18381 s,@tmake_file@,$tmake_file,;t t
18382 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
18383 s,@extra_headers_list@,$extra_headers_list,;t t
18384 s,@extra_objs@,$extra_objs,;t t
18385 s,@extra_parts@,$extra_parts,;t t
18386 s,@extra_passes@,$extra_passes,;t t
18387 s,@extra_programs@,$extra_programs,;t t
18388 s,@float_h_file@,$float_h_file,;t t
18389 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
18390 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
18391 s,@host_exeext@,$host_exeext,;t t
18392 s,@host_xm_file_list@,$host_xm_file_list,;t t
18393 s,@host_xm_include_list@,$host_xm_include_list,;t t
18394 s,@host_xm_defines@,$host_xm_defines,;t t
18395 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
18396 s,@install@,$install,;t t
18397 s,@lang_opt_files@,$lang_opt_files,;t t
18398 s,@lang_specs_files@,$lang_specs_files,;t t
18399 s,@lang_tree_files@,$lang_tree_files,;t t
18400 s,@local_prefix@,$local_prefix,;t t
18401 s,@md_file@,$md_file,;t t
18402 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
18403 s,@out_file@,$out_file,;t t
18404 s,@out_object_file@,$out_object_file,;t t
18405 s,@thread_file@,$thread_file,;t t
18406 s,@tm_file_list@,$tm_file_list,;t t
18407 s,@tm_include_list@,$tm_include_list,;t t
18408 s,@tm_defines@,$tm_defines,;t t
18409 s,@tm_p_file_list@,$tm_p_file_list,;t t
18410 s,@tm_p_include_list@,$tm_p_include_list,;t t
18411 s,@xm_file_list@,$xm_file_list,;t t
18412 s,@xm_include_list@,$xm_include_list,;t t
18413 s,@xm_defines@,$xm_defines,;t t
18414 s,@c_target_objs@,$c_target_objs,;t t
18415 s,@cxx_target_objs@,$cxx_target_objs,;t t
18416 s,@target_cpu_default@,$target_cpu_default,;t t
18417 s,@GMPLIBS@,$GMPLIBS,;t t
18418 s,@GMPINC@,$GMPINC,;t t
18419 s,@LIBOBJS@,$LIBOBJS,;t t
18420 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18421 /@language_hooks@/r $language_hooks
18422 s,@language_hooks@,,;t t
18423 CEOF
18424
18425 _ACEOF
18426
18427   cat >>$CONFIG_STATUS <<\_ACEOF
18428   # Split the substitutions into bite-sized pieces for seds with
18429   # small command number limits, like on Digital OSF/1 and HP-UX.
18430   ac_max_sed_lines=48
18431   ac_sed_frag=1 # Number of current file.
18432   ac_beg=1 # First line for current file.
18433   ac_end=$ac_max_sed_lines # Line after last line for current file.
18434   ac_more_lines=:
18435   ac_sed_cmds=
18436   while $ac_more_lines; do
18437     if test $ac_beg -gt 1; then
18438       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18439     else
18440       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18441     fi
18442     if test ! -s $tmp/subs.frag; then
18443       ac_more_lines=false
18444     else
18445       # The purpose of the label and of the branching condition is to
18446       # speed up the sed processing (if there are no `@' at all, there
18447       # is no need to browse any of the substitutions).
18448       # These are the two extra sed commands mentioned above.
18449       (echo ':t
18450   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18451       if test -z "$ac_sed_cmds"; then
18452         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18453       else
18454         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18455       fi
18456       ac_sed_frag=`expr $ac_sed_frag + 1`
18457       ac_beg=$ac_end
18458       ac_end=`expr $ac_end + $ac_max_sed_lines`
18459     fi
18460   done
18461   if test -z "$ac_sed_cmds"; then
18462     ac_sed_cmds=cat
18463   fi
18464 fi # test -n "$CONFIG_FILES"
18465
18466 _ACEOF
18467 cat >>$CONFIG_STATUS <<\_ACEOF
18468 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18469   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18470   case $ac_file in
18471   - | *:- | *:-:* ) # input from stdin
18472         cat >$tmp/stdin
18473         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18474         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18475   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18476         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18477   * )   ac_file_in=$ac_file.in ;;
18478   esac
18479
18480   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18481   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18483          X"$ac_file" : 'X\(//\)[^/]' \| \
18484          X"$ac_file" : 'X\(//\)$' \| \
18485          X"$ac_file" : 'X\(/\)' \| \
18486          .     : '\(.\)' 2>/dev/null ||
18487 echo X"$ac_file" |
18488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18490           /^X\(\/\/\)$/{ s//\1/; q; }
18491           /^X\(\/\).*/{ s//\1/; q; }
18492           s/.*/./; q'`
18493   { if $as_mkdir_p; then
18494     mkdir -p "$ac_dir"
18495   else
18496     as_dir="$ac_dir"
18497     as_dirs=
18498     while test ! -d "$as_dir"; do
18499       as_dirs="$as_dir $as_dirs"
18500       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18502          X"$as_dir" : 'X\(//\)[^/]' \| \
18503          X"$as_dir" : 'X\(//\)$' \| \
18504          X"$as_dir" : 'X\(/\)' \| \
18505          .     : '\(.\)' 2>/dev/null ||
18506 echo X"$as_dir" |
18507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18508           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18509           /^X\(\/\/\)$/{ s//\1/; q; }
18510           /^X\(\/\).*/{ s//\1/; q; }
18511           s/.*/./; q'`
18512     done
18513     test ! -n "$as_dirs" || mkdir $as_dirs
18514   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18515 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18516    { (exit 1); exit 1; }; }; }
18517
18518   ac_builddir=.
18519
18520 if test "$ac_dir" != .; then
18521   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18522   # A "../" for each directory in $ac_dir_suffix.
18523   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18524 else
18525   ac_dir_suffix= ac_top_builddir=
18526 fi
18527
18528 case $srcdir in
18529   .)  # No --srcdir option.  We are building in place.
18530     ac_srcdir=.
18531     if test -z "$ac_top_builddir"; then
18532        ac_top_srcdir=.
18533     else
18534        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18535     fi ;;
18536   [\\/]* | ?:[\\/]* )  # Absolute path.
18537     ac_srcdir=$srcdir$ac_dir_suffix;
18538     ac_top_srcdir=$srcdir ;;
18539   *) # Relative path.
18540     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18541     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18542 esac
18543
18544 # Do not use `cd foo && pwd` to compute absolute paths, because
18545 # the directories may not exist.
18546 case `pwd` in
18547 .) ac_abs_builddir="$ac_dir";;
18548 *)
18549   case "$ac_dir" in
18550   .) ac_abs_builddir=`pwd`;;
18551   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18552   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18553   esac;;
18554 esac
18555 case $ac_abs_builddir in
18556 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18557 *)
18558   case ${ac_top_builddir}. in
18559   .) ac_abs_top_builddir=$ac_abs_builddir;;
18560   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18561   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18562   esac;;
18563 esac
18564 case $ac_abs_builddir in
18565 .) ac_abs_srcdir=$ac_srcdir;;
18566 *)
18567   case $ac_srcdir in
18568   .) ac_abs_srcdir=$ac_abs_builddir;;
18569   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18570   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18571   esac;;
18572 esac
18573 case $ac_abs_builddir in
18574 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18575 *)
18576   case $ac_top_srcdir in
18577   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18578   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18579   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18580   esac;;
18581 esac
18582
18583
18584
18585   if test x"$ac_file" != x-; then
18586     { echo "$as_me:$LINENO: creating $ac_file" >&5
18587 echo "$as_me: creating $ac_file" >&6;}
18588     rm -f "$ac_file"
18589   fi
18590   # Let's still pretend it is `configure' which instantiates (i.e., don't
18591   # use $as_me), people would be surprised to read:
18592   #    /* config.h.  Generated by config.status.  */
18593   if test x"$ac_file" = x-; then
18594     configure_input=
18595   else
18596     configure_input="$ac_file.  "
18597   fi
18598   configure_input=$configure_input"Generated from `echo $ac_file_in |
18599                                      sed 's,.*/,,'` by configure."
18600
18601   # First look for the input files in the build tree, otherwise in the
18602   # src tree.
18603   ac_file_inputs=`IFS=:
18604     for f in $ac_file_in; do
18605       case $f in
18606       -) echo $tmp/stdin ;;
18607       [\\/$]*)
18608          # Absolute (can't be DOS-style, as IFS=:)
18609          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18610 echo "$as_me: error: cannot find input file: $f" >&2;}
18611    { (exit 1); exit 1; }; }
18612          echo "$f";;
18613       *) # Relative
18614          if test -f "$f"; then
18615            # Build tree
18616            echo "$f"
18617          elif test -f "$srcdir/$f"; then
18618            # Source tree
18619            echo "$srcdir/$f"
18620          else
18621            # /dev/null tree
18622            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18623 echo "$as_me: error: cannot find input file: $f" >&2;}
18624    { (exit 1); exit 1; }; }
18625          fi;;
18626       esac
18627     done` || { (exit 1); exit 1; }
18628 _ACEOF
18629 cat >>$CONFIG_STATUS <<_ACEOF
18630   sed "$ac_vpsub
18631 $extrasub
18632 _ACEOF
18633 cat >>$CONFIG_STATUS <<\_ACEOF
18634 :t
18635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18636 s,@configure_input@,$configure_input,;t t
18637 s,@srcdir@,$ac_srcdir,;t t
18638 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18639 s,@top_srcdir@,$ac_top_srcdir,;t t
18640 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18641 s,@builddir@,$ac_builddir,;t t
18642 s,@abs_builddir@,$ac_abs_builddir,;t t
18643 s,@top_builddir@,$ac_top_builddir,;t t
18644 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18645 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18646   rm -f $tmp/stdin
18647   if test x"$ac_file" != x-; then
18648     mv $tmp/out $ac_file
18649   else
18650     cat $tmp/out
18651     rm -f $tmp/out
18652   fi
18653
18654   # Run the commands associated with the file.
18655   case $ac_file in
18656     as ) chmod +x as ;;
18657     collect-ld ) chmod +x collect-ld ;;
18658     nm ) chmod +x nm ;;
18659   esac
18660 done
18661 _ACEOF
18662 cat >>$CONFIG_STATUS <<\_ACEOF
18663
18664 #
18665 # CONFIG_HEADER section.
18666 #
18667
18668 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18669 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18670 #
18671 # ac_d sets the value in "#define NAME VALUE" lines.
18672 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18673 ac_dB='[         ].*$,\1#\2'
18674 ac_dC=' '
18675 ac_dD=',;t'
18676 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18677 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18678 ac_uB='$,\1#\2define\3'
18679 ac_uC=' '
18680 ac_uD=',;t'
18681
18682 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18683   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18684   case $ac_file in
18685   - | *:- | *:-:* ) # input from stdin
18686         cat >$tmp/stdin
18687         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18688         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18689   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18690         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18691   * )   ac_file_in=$ac_file.in ;;
18692   esac
18693
18694   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18695 echo "$as_me: creating $ac_file" >&6;}
18696
18697   # First look for the input files in the build tree, otherwise in the
18698   # src tree.
18699   ac_file_inputs=`IFS=:
18700     for f in $ac_file_in; do
18701       case $f in
18702       -) echo $tmp/stdin ;;
18703       [\\/$]*)
18704          # Absolute (can't be DOS-style, as IFS=:)
18705          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18706 echo "$as_me: error: cannot find input file: $f" >&2;}
18707    { (exit 1); exit 1; }; }
18708          # Do quote $f, to prevent DOS paths from being IFS'd.
18709          echo "$f";;
18710       *) # Relative
18711          if test -f "$f"; then
18712            # Build tree
18713            echo "$f"
18714          elif test -f "$srcdir/$f"; then
18715            # Source tree
18716            echo "$srcdir/$f"
18717          else
18718            # /dev/null tree
18719            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18720 echo "$as_me: error: cannot find input file: $f" >&2;}
18721    { (exit 1); exit 1; }; }
18722          fi;;
18723       esac
18724     done` || { (exit 1); exit 1; }
18725   # Remove the trailing spaces.
18726   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18727
18728 _ACEOF
18729
18730 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18731 # `conftest.undefs', that substitutes the proper values into
18732 # config.h.in to produce config.h.  The first handles `#define'
18733 # templates, and the second `#undef' templates.
18734 # And first: Protect against being on the right side of a sed subst in
18735 # config.status.  Protect against being in an unquoted here document
18736 # in config.status.
18737 rm -f conftest.defines conftest.undefs
18738 # Using a here document instead of a string reduces the quoting nightmare.
18739 # Putting comments in sed scripts is not portable.
18740 #
18741 # `end' is used to avoid that the second main sed command (meant for
18742 # 0-ary CPP macros) applies to n-ary macro definitions.
18743 # See the Autoconf documentation for `clear'.
18744 cat >confdef2sed.sed <<\_ACEOF
18745 s/[\\&,]/\\&/g
18746 s,[\\$`],\\&,g
18747 t clear
18748 : clear
18749 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18750 t end
18751 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18752 : end
18753 _ACEOF
18754 # If some macros were called several times there might be several times
18755 # the same #defines, which is useless.  Nevertheless, we may not want to
18756 # sort them, since we want the *last* AC-DEFINE to be honored.
18757 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18758 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18759 rm -f confdef2sed.sed
18760
18761 # This sed command replaces #undef with comments.  This is necessary, for
18762 # example, in the case of _POSIX_SOURCE, which is predefined and required
18763 # on some systems where configure will not decide to define it.
18764 cat >>conftest.undefs <<\_ACEOF
18765 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18766 _ACEOF
18767
18768 # Break up conftest.defines because some shells have a limit on the size
18769 # of here documents, and old seds have small limits too (100 cmds).
18770 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18771 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18772 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18773 echo '  :' >>$CONFIG_STATUS
18774 rm -f conftest.tail
18775 while grep . conftest.defines >/dev/null
18776 do
18777   # Write a limited-size here document to $tmp/defines.sed.
18778   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18779   # Speed up: don't consider the non `#define' lines.
18780   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18781   # Work around the forget-to-reset-the-flag bug.
18782   echo 't clr' >>$CONFIG_STATUS
18783   echo ': clr' >>$CONFIG_STATUS
18784   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18785   echo 'CEOF
18786   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18787   rm -f $tmp/in
18788   mv $tmp/out $tmp/in
18789 ' >>$CONFIG_STATUS
18790   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18791   rm -f conftest.defines
18792   mv conftest.tail conftest.defines
18793 done
18794 rm -f conftest.defines
18795 echo '  fi # grep' >>$CONFIG_STATUS
18796 echo >>$CONFIG_STATUS
18797
18798 # Break up conftest.undefs because some shells have a limit on the size
18799 # of here documents, and old seds have small limits too (100 cmds).
18800 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18801 rm -f conftest.tail
18802 while grep . conftest.undefs >/dev/null
18803 do
18804   # Write a limited-size here document to $tmp/undefs.sed.
18805   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18806   # Speed up: don't consider the non `#undef'
18807   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18808   # Work around the forget-to-reset-the-flag bug.
18809   echo 't clr' >>$CONFIG_STATUS
18810   echo ': clr' >>$CONFIG_STATUS
18811   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18812   echo 'CEOF
18813   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18814   rm -f $tmp/in
18815   mv $tmp/out $tmp/in
18816 ' >>$CONFIG_STATUS
18817   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18818   rm -f conftest.undefs
18819   mv conftest.tail conftest.undefs
18820 done
18821 rm -f conftest.undefs
18822
18823 cat >>$CONFIG_STATUS <<\_ACEOF
18824   # Let's still pretend it is `configure' which instantiates (i.e., don't
18825   # use $as_me), people would be surprised to read:
18826   #    /* config.h.  Generated by config.status.  */
18827   if test x"$ac_file" = x-; then
18828     echo "/* Generated by configure.  */" >$tmp/config.h
18829   else
18830     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18831   fi
18832   cat $tmp/in >>$tmp/config.h
18833   rm -f $tmp/in
18834   if test x"$ac_file" != x-; then
18835     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18836       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18837 echo "$as_me: $ac_file is unchanged" >&6;}
18838     else
18839       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18840 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18841          X"$ac_file" : 'X\(//\)[^/]' \| \
18842          X"$ac_file" : 'X\(//\)$' \| \
18843          X"$ac_file" : 'X\(/\)' \| \
18844          .     : '\(.\)' 2>/dev/null ||
18845 echo X"$ac_file" |
18846     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18847           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18848           /^X\(\/\/\)$/{ s//\1/; q; }
18849           /^X\(\/\).*/{ s//\1/; q; }
18850           s/.*/./; q'`
18851       { if $as_mkdir_p; then
18852     mkdir -p "$ac_dir"
18853   else
18854     as_dir="$ac_dir"
18855     as_dirs=
18856     while test ! -d "$as_dir"; do
18857       as_dirs="$as_dir $as_dirs"
18858       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18860          X"$as_dir" : 'X\(//\)[^/]' \| \
18861          X"$as_dir" : 'X\(//\)$' \| \
18862          X"$as_dir" : 'X\(/\)' \| \
18863          .     : '\(.\)' 2>/dev/null ||
18864 echo X"$as_dir" |
18865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18867           /^X\(\/\/\)$/{ s//\1/; q; }
18868           /^X\(\/\).*/{ s//\1/; q; }
18869           s/.*/./; q'`
18870     done
18871     test ! -n "$as_dirs" || mkdir $as_dirs
18872   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18873 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18874    { (exit 1); exit 1; }; }; }
18875
18876       rm -f $ac_file
18877       mv $tmp/config.h $ac_file
18878     fi
18879   else
18880     cat $tmp/config.h
18881     rm -f $tmp/config.h
18882   fi
18883 done
18884 _ACEOF
18885 cat >>$CONFIG_STATUS <<\_ACEOF
18886
18887 #
18888 # CONFIG_COMMANDS section.
18889 #
18890 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18891   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18892   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18893   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18894 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18895          X"$ac_dest" : 'X\(//\)[^/]' \| \
18896          X"$ac_dest" : 'X\(//\)$' \| \
18897          X"$ac_dest" : 'X\(/\)' \| \
18898          .     : '\(.\)' 2>/dev/null ||
18899 echo X"$ac_dest" |
18900     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18901           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18902           /^X\(\/\/\)$/{ s//\1/; q; }
18903           /^X\(\/\).*/{ s//\1/; q; }
18904           s/.*/./; q'`
18905   { if $as_mkdir_p; then
18906     mkdir -p "$ac_dir"
18907   else
18908     as_dir="$ac_dir"
18909     as_dirs=
18910     while test ! -d "$as_dir"; do
18911       as_dirs="$as_dir $as_dirs"
18912       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18914          X"$as_dir" : 'X\(//\)[^/]' \| \
18915          X"$as_dir" : 'X\(//\)$' \| \
18916          X"$as_dir" : 'X\(/\)' \| \
18917          .     : '\(.\)' 2>/dev/null ||
18918 echo X"$as_dir" |
18919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18920           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18921           /^X\(\/\/\)$/{ s//\1/; q; }
18922           /^X\(\/\).*/{ s//\1/; q; }
18923           s/.*/./; q'`
18924     done
18925     test ! -n "$as_dirs" || mkdir $as_dirs
18926   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18927 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18928    { (exit 1); exit 1; }; }; }
18929
18930   ac_builddir=.
18931
18932 if test "$ac_dir" != .; then
18933   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18934   # A "../" for each directory in $ac_dir_suffix.
18935   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18936 else
18937   ac_dir_suffix= ac_top_builddir=
18938 fi
18939
18940 case $srcdir in
18941   .)  # No --srcdir option.  We are building in place.
18942     ac_srcdir=.
18943     if test -z "$ac_top_builddir"; then
18944        ac_top_srcdir=.
18945     else
18946        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18947     fi ;;
18948   [\\/]* | ?:[\\/]* )  # Absolute path.
18949     ac_srcdir=$srcdir$ac_dir_suffix;
18950     ac_top_srcdir=$srcdir ;;
18951   *) # Relative path.
18952     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18953     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18954 esac
18955
18956 # Do not use `cd foo && pwd` to compute absolute paths, because
18957 # the directories may not exist.
18958 case `pwd` in
18959 .) ac_abs_builddir="$ac_dir";;
18960 *)
18961   case "$ac_dir" in
18962   .) ac_abs_builddir=`pwd`;;
18963   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18964   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18965   esac;;
18966 esac
18967 case $ac_abs_builddir in
18968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18969 *)
18970   case ${ac_top_builddir}. in
18971   .) ac_abs_top_builddir=$ac_abs_builddir;;
18972   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18973   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18974   esac;;
18975 esac
18976 case $ac_abs_builddir in
18977 .) ac_abs_srcdir=$ac_srcdir;;
18978 *)
18979   case $ac_srcdir in
18980   .) ac_abs_srcdir=$ac_abs_builddir;;
18981   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18982   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18983   esac;;
18984 esac
18985 case $ac_abs_builddir in
18986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18987 *)
18988   case $ac_top_srcdir in
18989   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18990   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18991   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18992   esac;;
18993 esac
18994
18995
18996   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18997 echo "$as_me: executing $ac_dest commands" >&6;}
18998   case $ac_dest in
18999     default )
19000 case ${CONFIG_HEADERS} in
19001   *auto-host.h:config.in*)
19002   echo > cstamp-h ;;
19003 esac
19004 # Make sure all the subdirs exist.
19005 for d in $subdirs doc build
19006 do
19007     test -d $d || mkdir $d
19008 done
19009  ;;
19010   esac
19011 done
19012 _ACEOF
19013
19014 cat >>$CONFIG_STATUS <<\_ACEOF
19015
19016 { (exit 0); exit 0; }
19017 _ACEOF
19018 chmod +x $CONFIG_STATUS
19019 ac_clean_files=$ac_clean_files_save
19020
19021
19022 # configure is writing to config.log, and then calls config.status.
19023 # config.status does its own redirection, appending to config.log.
19024 # Unfortunately, on DOS this fails, as config.log is still kept open
19025 # by configure, so config.status won't be able to write to it; its
19026 # output is simply discarded.  So we exec the FD to /dev/null,
19027 # effectively closing config.log, so it can be properly (re)opened and
19028 # appended to by config.status.  When coming back to configure, we
19029 # need to make the FD available again.
19030 if test "$no_create" != yes; then
19031   ac_cs_success=:
19032   ac_config_status_args=
19033   test "$silent" = yes &&
19034     ac_config_status_args="$ac_config_status_args --quiet"
19035   exec 5>/dev/null
19036   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19037   exec 5>>config.log
19038   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19039   # would make configure fail if this is the last instruction.
19040   $ac_cs_success || { (exit 1); exit 1; }
19041 fi
19042