OSDN Git Service

2007-06-05 H.J. Lu <hongjiu.lu@intel.com>
[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 strict_warn cxx_compat_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR 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 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 always
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,fold,gc,gcac,misc,
871                           rtlflag,rtl,runtime,tree,valgrind.
872   --enable-mapped-location   location_t is fileline integer cookie
873   --enable-coverage=LEVEL
874                           enable compiler's code coverage collection.
875                           Use to measure compiler performance and locate
876                           unused parts of the compiler. With LEVEL, specify
877                           optimization. Values are opt, noopt,
878                           default is noopt
879   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
880   --enable-multilib       enable library support for multiple ABIs
881   --enable-__cxa_atexit   enable __cxa_atexit for C++
882   --enable-decimal-float={no,yes,bid,dpd}
883                         enable decimal float extension to C.  Selecting 'bid'
884                         or 'dpd' choses which decimal floating point format
885                         to use
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-gnu-ld           assume the C compiler uses GNU ld default=no
935   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
936   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
937   --with-system-libunwind use installed libunwind
938   --with-long-double-128  Use 128-bit long double by default.
939   --with-gc={page,zone}   choose the garbage collection mechanism to use
940                           with the compiler
941   --with-system-zlib      use installed libz
942   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
943   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
944   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
945   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
946
947 Some influential environment variables:
948   CC          C compiler command
949   CFLAGS      C compiler flags
950   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
951               nonstandard directory <lib dir>
952   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
953               headers in a nonstandard directory <include dir>
954   CPP         C preprocessor
955   GMPLIBS     How to link GMP
956   GMPINC      How to find GMP include files
957
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
960
961 _ACEOF
962 fi
963
964 if test "$ac_init_help" = "recursive"; then
965   # If there are subdirs, report their specific --help.
966   ac_popdir=`pwd`
967   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968     test -d $ac_dir || continue
969     ac_builddir=.
970
971 if test "$ac_dir" != .; then
972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973   # A "../" for each directory in $ac_dir_suffix.
974   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
975 else
976   ac_dir_suffix= ac_top_builddir=
977 fi
978
979 case $srcdir in
980   .)  # No --srcdir option.  We are building in place.
981     ac_srcdir=.
982     if test -z "$ac_top_builddir"; then
983        ac_top_srcdir=.
984     else
985        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
986     fi ;;
987   [\\/]* | ?:[\\/]* )  # Absolute path.
988     ac_srcdir=$srcdir$ac_dir_suffix;
989     ac_top_srcdir=$srcdir ;;
990   *) # Relative path.
991     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992     ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 esac
994
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
997 case `pwd` in
998 .) ac_abs_builddir="$ac_dir";;
999 *)
1000   case "$ac_dir" in
1001   .) ac_abs_builddir=`pwd`;;
1002   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004   esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1008 *)
1009   case ${ac_top_builddir}. in
1010   .) ac_abs_top_builddir=$ac_abs_builddir;;
1011   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013   esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1017 *)
1018   case $ac_srcdir in
1019   .) ac_abs_srcdir=$ac_abs_builddir;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022   esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1026 *)
1027   case $ac_top_srcdir in
1028   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1031   esac;;
1032 esac
1033
1034     cd $ac_dir
1035     # Check for guested configure; otherwise get Cygnus style configure.
1036     if test -f $ac_srcdir/configure.gnu; then
1037       echo
1038       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1039     elif test -f $ac_srcdir/configure; then
1040       echo
1041       $SHELL $ac_srcdir/configure  --help=recursive
1042     elif test -f $ac_srcdir/configure.ac ||
1043            test -f $ac_srcdir/configure.in; then
1044       echo
1045       $ac_configure --help
1046     else
1047       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1048     fi
1049     cd $ac_popdir
1050   done
1051 fi
1052
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1055   cat <<\_ACEOF
1056
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1060 _ACEOF
1061   exit 0
1062 fi
1063 exec 5>config.log
1064 cat >&5 <<_ACEOF
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1067
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59.  Invocation command line was
1070
1071   $ $0 $@
1072
1073 _ACEOF
1074 {
1075 cat <<_ASUNAME
1076 ## --------- ##
1077 ## Platform. ##
1078 ## --------- ##
1079
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1085
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1088
1089 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1090 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1093 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1094 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1095 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1096
1097 _ASUNAME
1098
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1100 for as_dir in $PATH
1101 do
1102   IFS=$as_save_IFS
1103   test -z "$as_dir" && as_dir=.
1104   echo "PATH: $as_dir"
1105 done
1106
1107 } >&5
1108
1109 cat >&5 <<_ACEOF
1110
1111
1112 ## ----------- ##
1113 ## Core tests. ##
1114 ## ----------- ##
1115
1116 _ACEOF
1117
1118
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1124 ac_configure_args=
1125 ac_configure_args0=
1126 ac_configure_args1=
1127 ac_sep=
1128 ac_must_keep_next=false
1129 for ac_pass in 1 2
1130 do
1131   for ac_arg
1132   do
1133     case $ac_arg in
1134     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136     | -silent | --silent | --silen | --sile | --sil)
1137       continue ;;
1138     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1140     esac
1141     case $ac_pass in
1142     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1143     2)
1144       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145       if test $ac_must_keep_next = true; then
1146         ac_must_keep_next=false # Got value, back to normal.
1147       else
1148         case $ac_arg in
1149           *=* | --config-cache | -C | -disable-* | --disable-* \
1150           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152           | -with-* | --with-* | -without-* | --without-* | --x)
1153             case "$ac_configure_args0 " in
1154               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155             esac
1156             ;;
1157           -* ) ac_must_keep_next=true ;;
1158         esac
1159       fi
1160       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161       # Get rid of the leading space.
1162       ac_sep=" "
1163       ;;
1164     esac
1165   done
1166 done
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1169
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log.  We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176   # Save into config.log some information that might help in debugging.
1177   {
1178     echo
1179
1180     cat <<\_ASBOX
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1184 _ASBOX
1185     echo
1186     # The following way of writing the cache mishandles newlines in values,
1187 {
1188   (set) 2>&1 |
1189     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190     *ac_space=\ *)
1191       sed -n \
1192         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1194       ;;
1195     *)
1196       sed -n \
1197         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1198       ;;
1199     esac;
1200 }
1201     echo
1202
1203     cat <<\_ASBOX
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1207 _ASBOX
1208     echo
1209     for ac_var in $ac_subst_vars
1210     do
1211       eval ac_val=$`echo $ac_var`
1212       echo "$ac_var='"'"'$ac_val'"'"'"
1213     done | sort
1214     echo
1215
1216     if test -n "$ac_subst_files"; then
1217       cat <<\_ASBOX
1218 ## ------------- ##
1219 ## Output files. ##
1220 ## ------------- ##
1221 _ASBOX
1222       echo
1223       for ac_var in $ac_subst_files
1224       do
1225         eval ac_val=$`echo $ac_var`
1226         echo "$ac_var='"'"'$ac_val'"'"'"
1227       done | sort
1228       echo
1229     fi
1230
1231     if test -s confdefs.h; then
1232       cat <<\_ASBOX
1233 ## ----------- ##
1234 ## confdefs.h. ##
1235 ## ----------- ##
1236 _ASBOX
1237       echo
1238       sed "/^$/d" confdefs.h | sort
1239       echo
1240     fi
1241     test "$ac_signal" != 0 &&
1242       echo "$as_me: caught signal $ac_signal"
1243     echo "$as_me: exit $exit_status"
1244   } >&5
1245   rm -f core *.core &&
1246   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247     exit $exit_status
1248      ' 0
1249 for ac_signal in 1 2 13 15; do
1250   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251 done
1252 ac_signal=0
1253
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 echo >confdefs.h
1258
1259 # Predefined preprocessor variables.
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1263 _ACEOF
1264
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268 _ACEOF
1269
1270
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1273 _ACEOF
1274
1275
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1278 _ACEOF
1279
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283 _ACEOF
1284
1285
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289   if test "x$prefix" != xNONE; then
1290     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1291   else
1292     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293   fi
1294 fi
1295 for ac_site_file in $CONFIG_SITE; do
1296   if test -r "$ac_site_file"; then
1297     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299     sed 's/^/| /' "$ac_site_file" >&5
1300     . "$ac_site_file"
1301   fi
1302 done
1303
1304 if test -r "$cache_file"; then
1305   # Some versions of bash will fail to source /dev/null (special
1306   # files actually), so we avoid doing that.
1307   if test -f "$cache_file"; then
1308     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1310     case $cache_file in
1311       [\\/]* | ?:[\\/]* ) . $cache_file;;
1312       *)                      . ./$cache_file;;
1313     esac
1314   fi
1315 else
1316   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1318   >$cache_file
1319 fi
1320
1321 # Check that the precious variables saved in the cache have kept the same
1322 # value.
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327   eval ac_new_set=\$ac_env_${ac_var}_set
1328   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329   eval ac_new_val="\$ac_env_${ac_var}_value"
1330   case $ac_old_set,$ac_new_set in
1331     set,)
1332       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334       ac_cache_corrupted=: ;;
1335     ,set)
1336       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338       ac_cache_corrupted=: ;;
1339     ,);;
1340     *)
1341       if test "x$ac_old_val" != "x$ac_new_val"; then
1342         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1345 echo "$as_me:   former value:  $ac_old_val" >&2;}
1346         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1347 echo "$as_me:   current value: $ac_new_val" >&2;}
1348         ac_cache_corrupted=:
1349       fi;;
1350   esac
1351   # Pass precious variables to config.status.
1352   if test "$ac_new_set" = set; then
1353     case $ac_new_val in
1354     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356     *) ac_arg=$ac_var=$ac_new_val ;;
1357     esac
1358     case " $ac_configure_args " in
1359       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1360       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361     esac
1362   fi
1363 done
1364 if $ac_cache_corrupted; then
1365   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369    { (exit 1); exit 1; }; }
1370 fi
1371
1372 ac_ext=c
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1398
1399
1400 gcc_version=`cat $srcdir/BASE-VER`
1401
1402 # Determine the host, build, and target systems
1403 ac_aux_dir=
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405   if test -f $ac_dir/install-sh; then
1406     ac_aux_dir=$ac_dir
1407     ac_install_sh="$ac_aux_dir/install-sh -c"
1408     break
1409   elif test -f $ac_dir/install.sh; then
1410     ac_aux_dir=$ac_dir
1411     ac_install_sh="$ac_aux_dir/install.sh -c"
1412     break
1413   elif test -f $ac_dir/shtool; then
1414     ac_aux_dir=$ac_dir
1415     ac_install_sh="$ac_aux_dir/shtool install -c"
1416     break
1417   fi
1418 done
1419 if test -z "$ac_aux_dir"; then
1420   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422    { (exit 1); exit 1; }; }
1423 fi
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432    { (exit 1); exit 1; }; }
1433
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437   echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439   ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441   ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445    { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449    { (exit 1); exit 1; }; }
1450
1451 fi
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1454 build=$ac_cv_build
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458
1459
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463   echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465   ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467   ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471    { (exit 1); exit 1; }; }
1472
1473 fi
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1476 host=$ac_cv_host
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489   ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493    { (exit 1); exit 1; }; }
1494
1495 fi
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502
1503
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507   test "$program_prefix$program_suffix$program_transform_name" = \
1508     NONENONEs,x,x, &&
1509   program_prefix=${target_alias}-
1510
1511 # Determine the noncanonical target name, for directory use.
1512  case ${build_alias} in
1513   "") build_noncanonical=${build} ;;
1514   *) build_noncanonical=${build_alias} ;;
1515 esac
1516
1517  case ${host_alias} in
1518   "") host_noncanonical=${build_noncanonical} ;;
1519   *) host_noncanonical=${host_alias} ;;
1520 esac
1521
1522  case ${target_alias} in
1523   "") target_noncanonical=${host_noncanonical} ;;
1524   *) target_noncanonical=${target_alias} ;;
1525 esac
1526
1527
1528
1529
1530 # Determine the target- and build-specific subdirectories
1531
1532 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1533 # have matching libraries, they should use host libraries: Makefile.tpl
1534 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1535 # However, they still use the build modules, because the corresponding
1536 # host modules (e.g. bison) are only built for the host when bootstrap
1537 # finishes. So:
1538 # - build_subdir is where we find build modules, and never changes.
1539 # - build_libsubdir is where we find build libraries, and can be overridden.
1540
1541 # Prefix 'build-' so this never conflicts with target_subdir.
1542 build_subdir="build-${build_noncanonical}"
1543
1544 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1545 if test "${with_build_libsubdir+set}" = set; then
1546   withval="$with_build_libsubdir"
1547   build_libsubdir="$withval"
1548 else
1549   build_libsubdir="$build_subdir"
1550 fi;
1551 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1552 if ( test $srcdir = . && test -d gcc ) \
1553    || test -d $srcdir/../host-${host_noncanonical}; then
1554   host_subdir="host-${host_noncanonical}"
1555 else
1556   host_subdir=.
1557 fi
1558 # No prefix.
1559 target_subdir=${target_noncanonical}
1560
1561
1562 # Set program_transform_name
1563 test "$program_prefix" != NONE &&
1564   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1565 # Use a double $ so make ignores it.
1566 test "$program_suffix" != NONE &&
1567   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1568 # Double any \ or $.  echo might interpret backslashes.
1569 # By default was `s,x,x', remove it if useless.
1570 cat <<\_ACEOF >conftest.sed
1571 s/[\\$]/&&/g;s/;s,x,x,$//
1572 _ACEOF
1573 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1574 rm conftest.sed
1575
1576
1577 # Check for bogus environment variables.
1578 # Test if LIBRARY_PATH contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # LIBRARY_PATH contains the current directory if one of the following
1581 # is true:
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1586 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1587 case ${LIBRARY_PATH} in
1588   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1589     library_path_setting="contains current directory"
1590     ;;
1591   *)
1592     library_path_setting="ok"
1593     ;;
1594 esac
1595 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1596 echo "${ECHO_T}$library_path_setting" >&6
1597 if test "$library_path_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** LIBRARY_PATH shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** LIBRARY_PATH shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606    { (exit 1); exit 1; }; }
1607 fi
1608
1609 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1610 # since this would lead to problems installing/building glibc.
1611 # GCC_EXEC_PREFIX contains the current directory if one of the following
1612 # is true:
1613 # - one of the terminals (":" and ";") is the first or last sign
1614 # - two terminals occur directly after each other
1615 # - the path contains an element with a dot in it
1616 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1617 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1618 case ${GCC_EXEC_PREFIX} in
1619   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1620     gcc_exec_prefix_setting="contains current directory"
1621     ;;
1622   *)
1623     gcc_exec_prefix_setting="ok"
1624     ;;
1625 esac
1626 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1627 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1628 if test "$gcc_exec_prefix_setting" != "ok"; then
1629 { { echo "$as_me:$LINENO: error:
1630 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1631 *** building gcc. Please change the environment variable
1632 *** and run configure again." >&5
1633 echo "$as_me: error:
1634 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1635 *** building gcc. Please change the environment variable
1636 *** and run configure again." >&2;}
1637    { (exit 1); exit 1; }; }
1638 fi
1639
1640 # -----------
1641 # Directories
1642 # -----------
1643
1644 # Specify the local prefix
1645 local_prefix=
1646
1647 # Check whether --with-local-prefix or --without-local-prefix was given.
1648 if test "${with_local_prefix+set}" = set; then
1649   withval="$with_local_prefix"
1650   case "${withval}" in
1651 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1652 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1653    { (exit 1); exit 1; }; } ;;
1654 no)     ;;
1655 *)      local_prefix=$with_local_prefix ;;
1656 esac
1657 fi;
1658
1659 # Default local prefix if it is empty
1660 if test x$local_prefix = x; then
1661         local_prefix=/usr/local
1662 fi
1663
1664 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1665 # passed in by the toplevel make and thus we'd get different behavior
1666 # depending on where we built the sources.
1667 gcc_gxx_include_dir=
1668 # Specify the g++ header file directory
1669
1670 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1671 if test "${with_gxx_include_dir+set}" = set; then
1672   withval="$with_gxx_include_dir"
1673   case "${withval}" in
1674 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1675 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1676    { (exit 1); exit 1; }; } ;;
1677 no)     ;;
1678 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1679 esac
1680 fi;
1681
1682 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1683 if test x${gcc_gxx_include_dir} = x; then
1684   if test x${enable_version_specific_runtime_libs} = xyes; then
1685     gcc_gxx_include_dir='${libsubdir}/include/c++'
1686   else
1687     libstdcxx_incdir='include/c++/$(version)'
1688     if test x$host != x$target; then
1689        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1690     fi
1691     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1692   fi
1693 fi
1694
1695
1696 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1697 if test "${with_cpp_install_dir+set}" = set; then
1698   withval="$with_cpp_install_dir"
1699   if test x$withval = xyes; then
1700   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1701 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1702    { (exit 1); exit 1; }; }
1703 elif test x$withval != xno; then
1704   cpp_install_dir=$withval
1705 fi
1706 fi;
1707
1708 # We would like to our source tree to be readonly.  However when releases or
1709 # pre-releases are generated, the flex/bison generated files as well as the
1710 # various formats of manuals need to be included along with the rest of the
1711 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1712 # just that.
1713
1714 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1715 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1716     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1717 if test "${enable_generated_files_in_srcdir+set}" = set; then
1718   enableval="$enable_generated_files_in_srcdir"
1719   generated_files_in_srcdir=$enableval
1720 else
1721   generated_files_in_srcdir=no
1722 fi;
1723
1724 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1725 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1726
1727 if test "$generated_files_in_srcdir" = "yes"; then
1728   GENINSRC=''
1729 else
1730   GENINSRC='#'
1731 fi
1732
1733
1734 # -------------------
1735 # Find default linker
1736 # -------------------
1737
1738 # With GNU ld
1739
1740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1741 if test "${with_gnu_ld+set}" = set; then
1742   withval="$with_gnu_ld"
1743   gnu_ld_flag="$with_gnu_ld"
1744 else
1745   gnu_ld_flag=no
1746 fi;
1747
1748 # With pre-defined ld
1749
1750 # Check whether --with-ld or --without-ld was given.
1751 if test "${with_ld+set}" = set; then
1752   withval="$with_ld"
1753   DEFAULT_LINKER="$with_ld"
1754 fi;
1755 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1756   if test ! -x "$DEFAULT_LINKER"; then
1757     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1758 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1759    { (exit 1); exit 1; }; }
1760   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1761     gnu_ld_flag=yes
1762   fi
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1766 _ACEOF
1767
1768 fi
1769
1770 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define HAVE_GNU_LD $gnu_ld
1774 _ACEOF
1775
1776
1777 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1778 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1779 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1780   if test x"$gnu_ld_flag" = x"no"; then
1781     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1782 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1783   else
1784     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1785 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1786   fi
1787 else
1788   echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1790 fi
1791
1792 # With demangler in GNU ld
1793
1794 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1795 if test "${with_demangler_in_ld+set}" = set; then
1796   withval="$with_demangler_in_ld"
1797   demangler_in_ld="$with_demangler_in_ld"
1798 else
1799   demangler_in_ld=no
1800 fi;
1801
1802 # ----------------------
1803 # Find default assembler
1804 # ----------------------
1805
1806 # With GNU as
1807
1808 # Check whether --with-gnu-as or --without-gnu-as was given.
1809 if test "${with_gnu_as+set}" = set; then
1810   withval="$with_gnu_as"
1811   gas_flag="$with_gnu_as"
1812 else
1813   gas_flag=no
1814 fi;
1815
1816
1817 # Check whether --with-as or --without-as was given.
1818 if test "${with_as+set}" = set; then
1819   withval="$with_as"
1820   DEFAULT_ASSEMBLER="$with_as"
1821 fi;
1822 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1823   if test ! -x "$DEFAULT_ASSEMBLER"; then
1824     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1825 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1826    { (exit 1); exit 1; }; }
1827   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1828     gas_flag=yes
1829   fi
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1833 _ACEOF
1834
1835 fi
1836
1837 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1838 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1839 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1840   if test x"$gas_flag" = x"no"; then
1841     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1842 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1843   else
1844     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1845 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1846   fi
1847 else
1848   echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1850 fi
1851
1852 # ---------------
1853 # Find C compiler
1854 # ---------------
1855
1856 # If a non-executable a.out is present (e.g. created by GNU as above even if
1857 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1858 # file, even when creating an executable, so an execution test fails.
1859 # Remove possible default executable files to avoid this.
1860 #
1861 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1862 # Autoconf includes it.
1863 rm -f a.out a.exe b.out
1864
1865 # Find the native compiler
1866 ac_ext=c
1867 ac_cpp='$CPP $CPPFLAGS'
1868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1871 if test -n "$ac_tool_prefix"; then
1872   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877   echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879   if test -n "$CC"; then
1880   ac_cv_prog_CC="$CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885   IFS=$as_save_IFS
1886   test -z "$as_dir" && as_dir=.
1887   for ac_exec_ext in '' $ac_executable_extensions; do
1888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891     break 2
1892   fi
1893 done
1894 done
1895
1896 fi
1897 fi
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900   echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1902 else
1903   echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907 fi
1908 if test -z "$ac_cv_prog_CC"; then
1909   ac_ct_CC=$CC
1910   # Extract the first word of "gcc", so it can be a program name with args.
1911 set dummy gcc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   if test -n "$ac_ct_CC"; then
1918   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923   IFS=$as_save_IFS
1924   test -z "$as_dir" && as_dir=.
1925   for ac_exec_ext in '' $ac_executable_extensions; do
1926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927     ac_cv_prog_ac_ct_CC="gcc"
1928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929     break 2
1930   fi
1931 done
1932 done
1933
1934 fi
1935 fi
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1940 else
1941   echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 fi
1944
1945   CC=$ac_ct_CC
1946 else
1947   CC="$ac_cv_prog_CC"
1948 fi
1949
1950 if test -z "$CC"; then
1951   if test -n "$ac_tool_prefix"; then
1952   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1953 set dummy ${ac_tool_prefix}cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   if test -n "$CC"; then
1960   ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965   IFS=$as_save_IFS
1966   test -z "$as_dir" && as_dir=.
1967   for ac_exec_ext in '' $ac_executable_extensions; do
1968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969     ac_cv_prog_CC="${ac_tool_prefix}cc"
1970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971     break 2
1972   fi
1973 done
1974 done
1975
1976 fi
1977 fi
1978 CC=$ac_cv_prog_CC
1979 if test -n "$CC"; then
1980   echo "$as_me:$LINENO: result: $CC" >&5
1981 echo "${ECHO_T}$CC" >&6
1982 else
1983   echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1985 fi
1986
1987 fi
1988 if test -z "$ac_cv_prog_CC"; then
1989   ac_ct_CC=$CC
1990   # Extract the first word of "cc", so it can be a program name with args.
1991 set dummy cc; ac_word=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995   echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997   if test -n "$ac_ct_CC"; then
1998   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1999 else
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2002 do
2003   IFS=$as_save_IFS
2004   test -z "$as_dir" && as_dir=.
2005   for ac_exec_ext in '' $ac_executable_extensions; do
2006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007     ac_cv_prog_ac_ct_CC="cc"
2008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009     break 2
2010   fi
2011 done
2012 done
2013
2014 fi
2015 fi
2016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017 if test -n "$ac_ct_CC"; then
2018   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2019 echo "${ECHO_T}$ac_ct_CC" >&6
2020 else
2021   echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6
2023 fi
2024
2025   CC=$ac_ct_CC
2026 else
2027   CC="$ac_cv_prog_CC"
2028 fi
2029
2030 fi
2031 if test -z "$CC"; then
2032   # Extract the first word of "cc", so it can be a program name with args.
2033 set dummy cc; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037   echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039   if test -n "$CC"; then
2040   ac_cv_prog_CC="$CC" # Let the user override the test.
2041 else
2042   ac_prog_rejected=no
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046   IFS=$as_save_IFS
2047   test -z "$as_dir" && as_dir=.
2048   for ac_exec_ext in '' $ac_executable_extensions; do
2049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2051        ac_prog_rejected=yes
2052        continue
2053      fi
2054     ac_cv_prog_CC="cc"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060
2061 if test $ac_prog_rejected = yes; then
2062   # We found a bogon in the path, so make sure we never use it.
2063   set dummy $ac_cv_prog_CC
2064   shift
2065   if test $# != 0; then
2066     # We chose a different compiler from the bogus one.
2067     # However, it has the same basename, so the bogon will be chosen
2068     # first if we set CC to just the basename; use the full file name.
2069     shift
2070     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2071   fi
2072 fi
2073 fi
2074 fi
2075 CC=$ac_cv_prog_CC
2076 if test -n "$CC"; then
2077   echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2079 else
2080   echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2082 fi
2083
2084 fi
2085 if test -z "$CC"; then
2086   if test -n "$ac_tool_prefix"; then
2087   for ac_prog in cl
2088   do
2089     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test -n "$CC"; then
2097   ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112
2113 fi
2114 fi
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117   echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120   echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124     test -n "$CC" && break
2125   done
2126 fi
2127 if test -z "$CC"; then
2128   ac_ct_CC=$CC
2129   for ac_prog in cl
2130 do
2131   # Extract the first word of "$ac_prog", so it can be a program name with args.
2132 set dummy $ac_prog; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136   echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138   if test -n "$ac_ct_CC"; then
2139   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   for ac_exec_ext in '' $ac_executable_extensions; do
2147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148     ac_cv_prog_ac_ct_CC="$ac_prog"
2149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150     break 2
2151   fi
2152 done
2153 done
2154
2155 fi
2156 fi
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2161 else
2162   echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2164 fi
2165
2166   test -n "$ac_ct_CC" && break
2167 done
2168
2169   CC=$ac_ct_CC
2170 fi
2171
2172 fi
2173
2174
2175 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2176 See \`config.log' for more details." >&5
2177 echo "$as_me: error: no acceptable C compiler found in \$PATH
2178 See \`config.log' for more details." >&2;}
2179    { (exit 1); exit 1; }; }
2180
2181 # Provide some information about the compiler.
2182 echo "$as_me:$LINENO:" \
2183      "checking for C compiler version" >&5
2184 ac_compiler=`set X $ac_compile; echo $2`
2185 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2186   (eval $ac_compiler --version </dev/null >&5) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }
2190 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2191   (eval $ac_compiler -v </dev/null >&5) 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }
2195 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2196   (eval $ac_compiler -V </dev/null >&5) 2>&5
2197   ac_status=$?
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }
2200
2201 cat >conftest.$ac_ext <<_ACEOF
2202 /* confdefs.h.  */
2203 _ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h.  */
2207
2208 int
2209 main ()
2210 {
2211
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 ac_clean_files_save=$ac_clean_files
2217 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2218 # Try to create an executable without -o first, disregard a.out.
2219 # It will help us diagnose broken compilers, and finding out an intuition
2220 # of exeext.
2221 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2222 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2223 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2224 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2225   (eval $ac_link_default) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); }; then
2229   # Find the output, starting from the most likely.  This scheme is
2230 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2231 # resort.
2232
2233 # Be careful to initialize this variable, since it used to be cached.
2234 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2235 ac_cv_exeext=
2236 # b.out is created by i960 compilers.
2237 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2238 do
2239   test -f "$ac_file" || continue
2240   case $ac_file in
2241     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2242         ;;
2243     conftest.$ac_ext )
2244         # This is the source file.
2245         ;;
2246     [ab].out )
2247         # We found the default executable, but exeext='' is most
2248         # certainly right.
2249         break;;
2250     *.* )
2251         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252         # FIXME: I believe we export ac_cv_exeext for Libtool,
2253         # but it would be cool to find out if it's true.  Does anybody
2254         # maintain Libtool? --akim.
2255         export ac_cv_exeext
2256         break;;
2257     * )
2258         break;;
2259   esac
2260 done
2261 else
2262   echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2264
2265 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: C compiler cannot create executables
2268 See \`config.log' for more details." >&2;}
2269    { (exit 77); exit 77; }; }
2270 fi
2271
2272 ac_exeext=$ac_cv_exeext
2273 echo "$as_me:$LINENO: result: $ac_file" >&5
2274 echo "${ECHO_T}$ac_file" >&6
2275
2276 # Check the compiler produces executables we can run.  If not, either
2277 # the compiler is broken, or we cross compile.
2278 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2279 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2280 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2281 # If not cross compiling, check that we can run a simple program.
2282 if test "$cross_compiling" != yes; then
2283   if { ac_try='./$ac_file'
2284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285   (eval $ac_try) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; }; then
2289     cross_compiling=no
2290   else
2291     if test "$cross_compiling" = maybe; then
2292         cross_compiling=yes
2293     else
2294         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2295 If you meant to cross compile, use \`--host'.
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'.
2299 See \`config.log' for more details." >&2;}
2300    { (exit 1); exit 1; }; }
2301     fi
2302   fi
2303 fi
2304 echo "$as_me:$LINENO: result: yes" >&5
2305 echo "${ECHO_T}yes" >&6
2306
2307 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2308 ac_clean_files=$ac_clean_files_save
2309 # Check the compiler produces executables we can run.  If not, either
2310 # the compiler is broken, or we cross compile.
2311 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2312 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2313 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2314 echo "${ECHO_T}$cross_compiling" >&6
2315
2316 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2317 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2319   (eval $ac_link) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; then
2323   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2324 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2325 # work properly (i.e., refer to `conftest.exe'), while it won't with
2326 # `rm'.
2327 for ac_file in conftest.exe conftest conftest.*; do
2328   test -f "$ac_file" || continue
2329   case $ac_file in
2330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2331     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332           export ac_cv_exeext
2333           break;;
2334     * ) break;;
2335   esac
2336 done
2337 else
2338   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2341 See \`config.log' for more details." >&2;}
2342    { (exit 1); exit 1; }; }
2343 fi
2344
2345 rm -f conftest$ac_cv_exeext
2346 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2347 echo "${ECHO_T}$ac_cv_exeext" >&6
2348
2349 rm -f conftest.$ac_ext
2350 EXEEXT=$ac_cv_exeext
2351 ac_exeext=$EXEEXT
2352 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2353 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2354 if test "${ac_cv_objext+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2363
2364 int
2365 main ()
2366 {
2367
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 rm -f conftest.o conftest.obj
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374   (eval $ac_compile) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; then
2378   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2379   case $ac_file in
2380     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2381     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2382        break;;
2383   esac
2384 done
2385 else
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&2;}
2393    { (exit 1); exit 1; }; }
2394 fi
2395
2396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2397 fi
2398 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399 echo "${ECHO_T}$ac_cv_objext" >&6
2400 OBJEXT=$ac_cv_objext
2401 ac_objext=$OBJEXT
2402 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2404 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h.  */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h.  */
2413
2414 int
2415 main ()
2416 {
2417 #ifndef __GNUC__
2418        choke me
2419 #endif
2420
2421   ;
2422   return 0;
2423 }
2424 _ACEOF
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427   (eval $ac_compile) 2>conftest.er1
2428   ac_status=$?
2429   grep -v '^ *+' conftest.er1 >conftest.err
2430   rm -f conftest.er1
2431   cat conftest.err >&5
2432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433   (exit $ac_status); } &&
2434          { ac_try='test -z "$ac_c_werror_flag"
2435                          || test ! -s conftest.err'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; } &&
2441          { ac_try='test -s conftest.$ac_objext'
2442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443   (eval $ac_try) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }; }; then
2447   ac_compiler_gnu=yes
2448 else
2449   echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 ac_compiler_gnu=no
2453 fi
2454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2456
2457 fi
2458 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2460 GCC=`test $ac_compiler_gnu = yes && echo yes`
2461 ac_test_CFLAGS=${CFLAGS+set}
2462 ac_save_CFLAGS=$CFLAGS
2463 CFLAGS="-g"
2464 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2465 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2466 if test "${ac_cv_prog_cc_g+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h.  */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h.  */
2475
2476 int
2477 main ()
2478 {
2479
2480   ;
2481   return 0;
2482 }
2483 _ACEOF
2484 rm -f conftest.$ac_objext
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486   (eval $ac_compile) 2>conftest.er1
2487   ac_status=$?
2488   grep -v '^ *+' conftest.er1 >conftest.err
2489   rm -f conftest.er1
2490   cat conftest.err >&5
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); } &&
2493          { ac_try='test -z "$ac_c_werror_flag"
2494                          || test ! -s conftest.err'
2495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496   (eval $ac_try) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }; } &&
2500          { ac_try='test -s conftest.$ac_objext'
2501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502   (eval $ac_try) 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }; }; then
2506   ac_cv_prog_cc_g=yes
2507 else
2508   echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 ac_cv_prog_cc_g=no
2512 fi
2513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514 fi
2515 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2516 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2517 if test "$ac_test_CFLAGS" = set; then
2518   CFLAGS=$ac_save_CFLAGS
2519 elif test $ac_cv_prog_cc_g = yes; then
2520   if test "$GCC" = yes; then
2521     CFLAGS="-g -O2"
2522   else
2523     CFLAGS="-g"
2524   fi
2525 else
2526   if test "$GCC" = yes; then
2527     CFLAGS="-O2"
2528   else
2529     CFLAGS=
2530   fi
2531 fi
2532 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2533 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2534 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   ac_cv_prog_cc_stdc=no
2538 ac_save_CC=$CC
2539 cat >conftest.$ac_ext <<_ACEOF
2540 /* confdefs.h.  */
2541 _ACEOF
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h.  */
2545 #include <stdarg.h>
2546 #include <stdio.h>
2547 #include <sys/types.h>
2548 #include <sys/stat.h>
2549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2550 struct buf { int x; };
2551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2552 static char *e (p, i)
2553      char **p;
2554      int i;
2555 {
2556   return p[i];
2557 }
2558 static char *f (char * (*g) (char **, int), char **p, ...)
2559 {
2560   char *s;
2561   va_list v;
2562   va_start (v,p);
2563   s = g (p, va_arg (v,int));
2564   va_end (v);
2565   return s;
2566 }
2567
2568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2569    function prototypes and stuff, but not '\xHH' hex character constants.
2570    These don't provoke an error unfortunately, instead are silently treated
2571    as 'x'.  The following induces an error, until -std1 is added to get
2572    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2573    array size at least.  It's necessary to write '\x00'==0 to get something
2574    that's true only with -std1.  */
2575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2576
2577 int test (int i, double x);
2578 struct s1 {int (*f) (int a);};
2579 struct s2 {int (*f) (double a);};
2580 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2581 int argc;
2582 char **argv;
2583 int
2584 main ()
2585 {
2586 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 # Don't try gcc -ansi; that turns off useful extensions and
2592 # breaks some systems' header files.
2593 # AIX                   -qlanglvl=ansi
2594 # Ultrix and OSF/1      -std1
2595 # HP-UX 10.20 and later -Ae
2596 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2597 # SVR4                  -Xc -D__EXTENSIONS__
2598 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2599 do
2600   CC="$ac_save_CC $ac_arg"
2601   rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603   (eval $ac_compile) 2>conftest.er1
2604   ac_status=$?
2605   grep -v '^ *+' conftest.er1 >conftest.err
2606   rm -f conftest.er1
2607   cat conftest.err >&5
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); } &&
2610          { ac_try='test -z "$ac_c_werror_flag"
2611                          || test ! -s conftest.err'
2612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613   (eval $ac_try) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; } &&
2617          { ac_try='test -s conftest.$ac_objext'
2618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619   (eval $ac_try) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; }; then
2623   ac_cv_prog_cc_stdc=$ac_arg
2624 break
2625 else
2626   echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2628
2629 fi
2630 rm -f conftest.err conftest.$ac_objext
2631 done
2632 rm -f conftest.$ac_ext conftest.$ac_objext
2633 CC=$ac_save_CC
2634
2635 fi
2636
2637 case "x$ac_cv_prog_cc_stdc" in
2638   x|xno)
2639     echo "$as_me:$LINENO: result: none needed" >&5
2640 echo "${ECHO_T}none needed" >&6 ;;
2641   *)
2642     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2644     CC="$CC $ac_cv_prog_cc_stdc" ;;
2645 esac
2646
2647 # Some people use a C++ compiler to compile C.  Since we use `exit',
2648 # in C++ we need to declare it.  In case someone uses the same compiler
2649 # for both compiling C and C++ we need to have the C++ compiler decide
2650 # the declaration of exit, since it's the most demanding environment.
2651 cat >conftest.$ac_ext <<_ACEOF
2652 #ifndef __cplusplus
2653   choke me
2654 #endif
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658   (eval $ac_compile) 2>conftest.er1
2659   ac_status=$?
2660   grep -v '^ *+' conftest.er1 >conftest.err
2661   rm -f conftest.er1
2662   cat conftest.err >&5
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); } &&
2665          { ac_try='test -z "$ac_c_werror_flag"
2666                          || test ! -s conftest.err'
2667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668   (eval $ac_try) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; } &&
2672          { ac_try='test -s conftest.$ac_objext'
2673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }; }; then
2678   for ac_declaration in \
2679    '' \
2680    'extern "C" void std::exit (int) throw (); using std::exit;' \
2681    'extern "C" void std::exit (int); using std::exit;' \
2682    'extern "C" void exit (int) throw ();' \
2683    'extern "C" void exit (int);' \
2684    'void exit (int);'
2685 do
2686   cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692 $ac_declaration
2693 #include <stdlib.h>
2694 int
2695 main ()
2696 {
2697 exit (42);
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704   (eval $ac_compile) 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } &&
2711          { ac_try='test -z "$ac_c_werror_flag"
2712                          || test ! -s conftest.err'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; } &&
2718          { ac_try='test -s conftest.$ac_objext'
2719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720   (eval $ac_try) 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }; }; then
2724   :
2725 else
2726   echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729 continue
2730 fi
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732   cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738 $ac_declaration
2739 int
2740 main ()
2741 {
2742 exit (42);
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749   (eval $ac_compile) 2>conftest.er1
2750   ac_status=$?
2751   grep -v '^ *+' conftest.er1 >conftest.err
2752   rm -f conftest.er1
2753   cat conftest.err >&5
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); } &&
2756          { ac_try='test -z "$ac_c_werror_flag"
2757                          || test ! -s conftest.err'
2758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; } &&
2763          { ac_try='test -s conftest.$ac_objext'
2764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765   (eval $ac_try) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }; }; then
2769   break
2770 else
2771   echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774 fi
2775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2776 done
2777 rm -f conftest*
2778 if test -n "$ac_declaration"; then
2779   echo '#ifdef __cplusplus' >>confdefs.h
2780   echo $ac_declaration      >>confdefs.h
2781   echo '#endif'             >>confdefs.h
2782 fi
2783
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 fi
2789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790 ac_ext=c
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795
2796 if test "x$CC" != xcc; then
2797   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2798 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2799 else
2800   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2801 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2802 fi
2803 set dummy $CC; ac_cc=`echo $2 |
2804                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2805 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2806   echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808   cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h.  */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h.  */
2814
2815 int
2816 main ()
2817 {
2818
2819   ;
2820   return 0;
2821 }
2822 _ACEOF
2823 # Make sure it works both with $CC and with simple cc.
2824 # We do the test twice because some compilers refuse to overwrite an
2825 # existing .o file with -o, though they will create one.
2826 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2827 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828   (eval $ac_try) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); } &&
2832    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833   (eval $ac_try) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); };
2837 then
2838   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2839   if test "x$CC" != xcc; then
2840     # Test first that cc exists at all.
2841     if { ac_try='cc -c conftest.$ac_ext >&5'
2842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; }; then
2847       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); } &&
2853          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); };
2858       then
2859         # cc works too.
2860         :
2861       else
2862         # cc exists but doesn't like -o.
2863         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2864       fi
2865     fi
2866   fi
2867 else
2868   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2869 fi
2870 rm -f conftest*
2871
2872 fi
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2874   echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6
2876 else
2877   echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2879
2880 cat >>confdefs.h <<\_ACEOF
2881 #define NO_MINUS_C_MINUS_O 1
2882 _ACEOF
2883
2884 fi
2885
2886 # expand $ac_aux_dir to an absolute path
2887 am_aux_dir=`cd $ac_aux_dir && pwd`
2888
2889 # FIXME: we rely on the cache variable name because
2890 # there is no other way.
2891 set dummy $CC
2892 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2893 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2894    # Losing compiler, so override with the script.
2895    # FIXME: It is wrong to rewrite CC.
2896    # But if we don't then we get into trouble of one sort or another.
2897    # A longer-term fix would be to have automake use am__CC in this case,
2898    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2899    CC="$am_aux_dir/compile $CC"
2900 fi
2901
2902 # autoconf is lame and doesn't give us any substitution variable for this.
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2904   NO_MINUS_C_MINUS_O=yes
2905 else
2906   OUTPUT_OPTION='-o $@'
2907 fi
2908
2909
2910
2911 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2912 # optimizations to be activated explicitly by the toplevel.
2913 case "$CC" in
2914   */prev-gcc/xgcc*) ;;
2915   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2916 esac
2917
2918
2919 # -------------------------
2920 # Check C compiler features
2921 # -------------------------
2922
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2929 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2930 # On Suns, sometimes $CPP names a directory.
2931 if test -n "$CPP" && test -d "$CPP"; then
2932   CPP=
2933 fi
2934 if test -z "$CPP"; then
2935   if test "${ac_cv_prog_CPP+set}" = set; then
2936   echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938       # Double quotes because CPP needs to be expanded
2939     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2940     do
2941       ac_preproc_ok=false
2942 for ac_c_preproc_warn_flag in '' yes
2943 do
2944   # Use a header file that comes with gcc, so configuring glibc
2945   # with a fresh cross-compiler works.
2946   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2947   # <limits.h> exists even on freestanding compilers.
2948   # On the NeXT, cc -E runs the code through the compiler's parser,
2949   # not just through cpp. "Syntax error" is here to catch this case.
2950   cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h.  */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h.  */
2956 #ifdef __STDC__
2957 # include <limits.h>
2958 #else
2959 # include <assert.h>
2960 #endif
2961                      Syntax error
2962 _ACEOF
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2965   ac_status=$?
2966   grep -v '^ *+' conftest.er1 >conftest.err
2967   rm -f conftest.er1
2968   cat conftest.err >&5
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); } >/dev/null; then
2971   if test -s conftest.err; then
2972     ac_cpp_err=$ac_c_preproc_warn_flag
2973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2974   else
2975     ac_cpp_err=
2976   fi
2977 else
2978   ac_cpp_err=yes
2979 fi
2980 if test -z "$ac_cpp_err"; then
2981   :
2982 else
2983   echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986   # Broken: fails on valid input.
2987 continue
2988 fi
2989 rm -f conftest.err conftest.$ac_ext
2990
2991   # OK, works on sane cases.  Now check whether non-existent headers
2992   # can be detected and how.
2993   cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h.  */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h.  */
2999 #include <ac_nonexistent.h>
3000 _ACEOF
3001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3002   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3003   ac_status=$?
3004   grep -v '^ *+' conftest.er1 >conftest.err
3005   rm -f conftest.er1
3006   cat conftest.err >&5
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); } >/dev/null; then
3009   if test -s conftest.err; then
3010     ac_cpp_err=$ac_c_preproc_warn_flag
3011     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3012   else
3013     ac_cpp_err=
3014   fi
3015 else
3016   ac_cpp_err=yes
3017 fi
3018 if test -z "$ac_cpp_err"; then
3019   # Broken: success on invalid input.
3020 continue
3021 else
3022   echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
3025   # Passes both tests.
3026 ac_preproc_ok=:
3027 break
3028 fi
3029 rm -f conftest.err conftest.$ac_ext
3030
3031 done
3032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3033 rm -f conftest.err conftest.$ac_ext
3034 if $ac_preproc_ok; then
3035   break
3036 fi
3037
3038     done
3039     ac_cv_prog_CPP=$CPP
3040
3041 fi
3042   CPP=$ac_cv_prog_CPP
3043 else
3044   ac_cv_prog_CPP=$CPP
3045 fi
3046 echo "$as_me:$LINENO: result: $CPP" >&5
3047 echo "${ECHO_T}$CPP" >&6
3048 ac_preproc_ok=false
3049 for ac_c_preproc_warn_flag in '' yes
3050 do
3051   # Use a header file that comes with gcc, so configuring glibc
3052   # with a fresh cross-compiler works.
3053   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3054   # <limits.h> exists even on freestanding compilers.
3055   # On the NeXT, cc -E runs the code through the compiler's parser,
3056   # not just through cpp. "Syntax error" is here to catch this case.
3057   cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h.  */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h.  */
3063 #ifdef __STDC__
3064 # include <limits.h>
3065 #else
3066 # include <assert.h>
3067 #endif
3068                      Syntax error
3069 _ACEOF
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3072   ac_status=$?
3073   grep -v '^ *+' conftest.er1 >conftest.err
3074   rm -f conftest.er1
3075   cat conftest.err >&5
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } >/dev/null; then
3078   if test -s conftest.err; then
3079     ac_cpp_err=$ac_c_preproc_warn_flag
3080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3081   else
3082     ac_cpp_err=
3083   fi
3084 else
3085   ac_cpp_err=yes
3086 fi
3087 if test -z "$ac_cpp_err"; then
3088   :
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093   # Broken: fails on valid input.
3094 continue
3095 fi
3096 rm -f conftest.err conftest.$ac_ext
3097
3098   # OK, works on sane cases.  Now check whether non-existent headers
3099   # can be detected and how.
3100   cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h.  */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h.  */
3106 #include <ac_nonexistent.h>
3107 _ACEOF
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3110   ac_status=$?
3111   grep -v '^ *+' conftest.er1 >conftest.err
3112   rm -f conftest.er1
3113   cat conftest.err >&5
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); } >/dev/null; then
3116   if test -s conftest.err; then
3117     ac_cpp_err=$ac_c_preproc_warn_flag
3118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3119   else
3120     ac_cpp_err=
3121   fi
3122 else
3123   ac_cpp_err=yes
3124 fi
3125 if test -z "$ac_cpp_err"; then
3126   # Broken: success on invalid input.
3127 continue
3128 else
3129   echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132   # Passes both tests.
3133 ac_preproc_ok=:
3134 break
3135 fi
3136 rm -f conftest.err conftest.$ac_ext
3137
3138 done
3139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140 rm -f conftest.err conftest.$ac_ext
3141 if $ac_preproc_ok; then
3142   :
3143 else
3144   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3147 See \`config.log' for more details." >&2;}
3148    { (exit 1); exit 1; }; }
3149 fi
3150
3151 ac_ext=c
3152 ac_cpp='$CPP $CPPFLAGS'
3153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156
3157
3158 echo "$as_me:$LINENO: checking for inline" >&5
3159 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3160 if test "${ac_cv_c_inline+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163   ac_cv_c_inline=no
3164 for ac_kw in inline __inline__ __inline; do
3165   cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171 #ifndef __cplusplus
3172 typedef int foo_t;
3173 static $ac_kw foo_t static_foo () {return 0; }
3174 $ac_kw foo_t foo () {return 0; }
3175 #endif
3176
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180   (eval $ac_compile) 2>conftest.er1
3181   ac_status=$?
3182   grep -v '^ *+' conftest.er1 >conftest.err
3183   rm -f conftest.er1
3184   cat conftest.err >&5
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); } &&
3187          { ac_try='test -z "$ac_c_werror_flag"
3188                          || test ! -s conftest.err'
3189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; } &&
3194          { ac_try='test -s conftest.$ac_objext'
3195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196   (eval $ac_try) 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }; }; then
3200   ac_cv_c_inline=$ac_kw; break
3201 else
3202   echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3204
3205 fi
3206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3207 done
3208
3209 fi
3210 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3211 echo "${ECHO_T}$ac_cv_c_inline" >&6
3212
3213
3214 case $ac_cv_c_inline in
3215   inline | yes) ;;
3216   *)
3217     case $ac_cv_c_inline in
3218       no) ac_val=;;
3219       *) ac_val=$ac_cv_c_inline;;
3220     esac
3221     cat >>confdefs.h <<_ACEOF
3222 #ifndef __cplusplus
3223 #define inline $ac_val
3224 #endif
3225 _ACEOF
3226     ;;
3227 esac
3228
3229
3230 # sizeof(char) is 1 by definition.
3231
3232 echo "$as_me:$LINENO: checking for egrep" >&5
3233 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3234 if test "${ac_cv_prog_egrep+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3238     then ac_cv_prog_egrep='grep -E'
3239     else ac_cv_prog_egrep='egrep'
3240     fi
3241 fi
3242 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3243 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3244  EGREP=$ac_cv_prog_egrep
3245
3246
3247 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3248 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3249 if test "${ac_cv_header_stdc+set}" = set; then
3250   echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252   cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h.  */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h.  */
3258 #include <stdlib.h>
3259 #include <stdarg.h>
3260 #include <string.h>
3261 #include <float.h>
3262
3263 int
3264 main ()
3265 {
3266
3267   ;
3268   return 0;
3269 }
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273   (eval $ac_compile) 2>conftest.er1
3274   ac_status=$?
3275   grep -v '^ *+' conftest.er1 >conftest.err
3276   rm -f conftest.er1
3277   cat conftest.err >&5
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); } &&
3280          { ac_try='test -z "$ac_c_werror_flag"
3281                          || test ! -s conftest.err'
3282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283   (eval $ac_try) 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); }; } &&
3287          { ac_try='test -s conftest.$ac_objext'
3288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289   (eval $ac_try) 2>&5
3290   ac_status=$?
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); }; }; then
3293   ac_cv_header_stdc=yes
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_cv_header_stdc=no
3299 fi
3300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3301
3302 if test $ac_cv_header_stdc = yes; then
3303   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3304   cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h.  */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h.  */
3310 #include <string.h>
3311
3312 _ACEOF
3313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3314   $EGREP "memchr" >/dev/null 2>&1; then
3315   :
3316 else
3317   ac_cv_header_stdc=no
3318 fi
3319 rm -f conftest*
3320
3321 fi
3322
3323 if test $ac_cv_header_stdc = yes; then
3324   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3325   cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h.  */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h.  */
3331 #include <stdlib.h>
3332
3333 _ACEOF
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335   $EGREP "free" >/dev/null 2>&1; then
3336   :
3337 else
3338   ac_cv_header_stdc=no
3339 fi
3340 rm -f conftest*
3341
3342 fi
3343
3344 if test $ac_cv_header_stdc = yes; then
3345   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3346   if test "$cross_compiling" = yes; then
3347   :
3348 else
3349   cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h.  */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h.  */
3355 #include <ctype.h>
3356 #if ((' ' & 0x0FF) == 0x020)
3357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3359 #else
3360 # define ISLOWER(c) \
3361                    (('a' <= (c) && (c) <= 'i') \
3362                      || ('j' <= (c) && (c) <= 'r') \
3363                      || ('s' <= (c) && (c) <= 'z'))
3364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3365 #endif
3366
3367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3368 int
3369 main ()
3370 {
3371   int i;
3372   for (i = 0; i < 256; i++)
3373     if (XOR (islower (i), ISLOWER (i))
3374         || toupper (i) != TOUPPER (i))
3375       exit(2);
3376   exit (0);
3377 }
3378 _ACEOF
3379 rm -f conftest$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381   (eval $ac_link) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386   (eval $ac_try) 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }; }; then
3390   :
3391 else
3392   echo "$as_me: program exited with status $ac_status" >&5
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 ( exit $ac_status )
3397 ac_cv_header_stdc=no
3398 fi
3399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3400 fi
3401 fi
3402 fi
3403 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3404 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3405 if test $ac_cv_header_stdc = yes; then
3406
3407 cat >>confdefs.h <<\_ACEOF
3408 #define STDC_HEADERS 1
3409 _ACEOF
3410
3411 fi
3412
3413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3424                   inttypes.h stdint.h unistd.h
3425 do
3426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3427 echo "$as_me:$LINENO: checking for $ac_header" >&5
3428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438 $ac_includes_default
3439
3440 #include <$ac_header>
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444   (eval $ac_compile) 2>conftest.er1
3445   ac_status=$?
3446   grep -v '^ *+' conftest.er1 >conftest.err
3447   rm -f conftest.er1
3448   cat conftest.err >&5
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); } &&
3451          { ac_try='test -z "$ac_c_werror_flag"
3452                          || test ! -s conftest.err'
3453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454   (eval $ac_try) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); }; } &&
3458          { ac_try='test -s conftest.$ac_objext'
3459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460   (eval $ac_try) 2>&5
3461   ac_status=$?
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); }; }; then
3464   eval "$as_ac_Header=yes"
3465 else
3466   echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 eval "$as_ac_Header=no"
3470 fi
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3472 fi
3473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3476   cat >>confdefs.h <<_ACEOF
3477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3478 _ACEOF
3479
3480 fi
3481
3482 done
3483
3484
3485 echo "$as_me:$LINENO: checking for void *" >&5
3486 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3487 if test "${ac_cv_type_void_p+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h.  */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h.  */
3496 $ac_includes_default
3497 int
3498 main ()
3499 {
3500 if ((void * *) 0)
3501   return 0;
3502 if (sizeof (void *))
3503   return 0;
3504   ;
3505   return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510   (eval $ac_compile) 2>conftest.er1
3511   ac_status=$?
3512   grep -v '^ *+' conftest.er1 >conftest.err
3513   rm -f conftest.er1
3514   cat conftest.err >&5
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); } &&
3517          { ac_try='test -z "$ac_c_werror_flag"
3518                          || test ! -s conftest.err'
3519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }; } &&
3524          { ac_try='test -s conftest.$ac_objext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   ac_cv_type_void_p=yes
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 ac_cv_type_void_p=no
3536 fi
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538 fi
3539 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3540 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3541
3542 echo "$as_me:$LINENO: checking size of void *" >&5
3543 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3544 if test "${ac_cv_sizeof_void_p+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   if test "$ac_cv_type_void_p" = yes; then
3548   # The cast to unsigned long works around a bug in the HP C Compiler
3549   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3550   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3551   # This bug is HP SR number 8606223364.
3552   if test "$cross_compiling" = yes; then
3553   # Depending upon the size, compute the lo and hi bounds.
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560 $ac_includes_default
3561 int
3562 main ()
3563 {
3564 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3565 test_array [0] = 0
3566
3567   ;
3568   return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573   (eval $ac_compile) 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } &&
3580          { ac_try='test -z "$ac_c_werror_flag"
3581                          || test ! -s conftest.err'
3582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583   (eval $ac_try) 2>&5
3584   ac_status=$?
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); }; } &&
3587          { ac_try='test -s conftest.$ac_objext'
3588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589   (eval $ac_try) 2>&5
3590   ac_status=$?
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); }; }; then
3593   ac_lo=0 ac_mid=0
3594   while :; do
3595     cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601 $ac_includes_default
3602 int
3603 main ()
3604 {
3605 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3606 test_array [0] = 0
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614   (eval $ac_compile) 2>conftest.er1
3615   ac_status=$?
3616   grep -v '^ *+' conftest.er1 >conftest.err
3617   rm -f conftest.er1
3618   cat conftest.err >&5
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } &&
3621          { ac_try='test -z "$ac_c_werror_flag"
3622                          || test ! -s conftest.err'
3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624   (eval $ac_try) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); }; } &&
3628          { ac_try='test -s conftest.$ac_objext'
3629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630   (eval $ac_try) 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; }; then
3634   ac_hi=$ac_mid; break
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 ac_lo=`expr $ac_mid + 1`
3640                     if test $ac_lo -le $ac_mid; then
3641                       ac_lo= ac_hi=
3642                       break
3643                     fi
3644                     ac_mid=`expr 2 '*' $ac_mid + 1`
3645 fi
3646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647   done
3648 else
3649   echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h.  */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h.  */
3658 $ac_includes_default
3659 int
3660 main ()
3661 {
3662 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3663 test_array [0] = 0
3664
3665   ;
3666   return 0;
3667 }
3668 _ACEOF
3669 rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671   (eval $ac_compile) 2>conftest.er1
3672   ac_status=$?
3673   grep -v '^ *+' conftest.er1 >conftest.err
3674   rm -f conftest.er1
3675   cat conftest.err >&5
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); } &&
3678          { ac_try='test -z "$ac_c_werror_flag"
3679                          || test ! -s conftest.err'
3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681   (eval $ac_try) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; } &&
3685          { ac_try='test -s conftest.$ac_objext'
3686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687   (eval $ac_try) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); }; }; then
3691   ac_hi=-1 ac_mid=-1
3692   while :; do
3693     cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h.  */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h.  */
3699 $ac_includes_default
3700 int
3701 main ()
3702 {
3703 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3704 test_array [0] = 0
3705
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712   (eval $ac_compile) 2>conftest.er1
3713   ac_status=$?
3714   grep -v '^ *+' conftest.er1 >conftest.err
3715   rm -f conftest.er1
3716   cat conftest.err >&5
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); } &&
3719          { ac_try='test -z "$ac_c_werror_flag"
3720                          || test ! -s conftest.err'
3721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722   (eval $ac_try) 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; } &&
3726          { ac_try='test -s conftest.$ac_objext'
3727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728   (eval $ac_try) 2>&5
3729   ac_status=$?
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); }; }; then
3732   ac_lo=$ac_mid; break
3733 else
3734   echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 ac_hi=`expr '(' $ac_mid ')' - 1`
3738                        if test $ac_mid -le $ac_hi; then
3739                          ac_lo= ac_hi=
3740                          break
3741                        fi
3742                        ac_mid=`expr 2 '*' $ac_mid`
3743 fi
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745   done
3746 else
3747   echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 ac_lo= ac_hi=
3751 fi
3752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3753 fi
3754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3755 # Binary search between lo and hi bounds.
3756 while test "x$ac_lo" != "x$ac_hi"; do
3757   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3758   cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h.  */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h.  */
3764 $ac_includes_default
3765 int
3766 main ()
3767 {
3768 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3769 test_array [0] = 0
3770
3771   ;
3772   return 0;
3773 }
3774 _ACEOF
3775 rm -f conftest.$ac_objext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777   (eval $ac_compile) 2>conftest.er1
3778   ac_status=$?
3779   grep -v '^ *+' conftest.er1 >conftest.err
3780   rm -f conftest.er1
3781   cat conftest.err >&5
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); } &&
3784          { ac_try='test -z "$ac_c_werror_flag"
3785                          || test ! -s conftest.err'
3786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787   (eval $ac_try) 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); }; } &&
3791          { ac_try='test -s conftest.$ac_objext'
3792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793   (eval $ac_try) 2>&5
3794   ac_status=$?
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }; }; then
3797   ac_hi=$ac_mid
3798 else
3799   echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 ac_lo=`expr '(' $ac_mid ')' + 1`
3803 fi
3804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 done
3806 case $ac_lo in
3807 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3808 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3809 See \`config.log' for more details." >&5
3810 echo "$as_me: error: cannot compute sizeof (void *), 77
3811 See \`config.log' for more details." >&2;}
3812    { (exit 1); exit 1; }; } ;;
3813 esac
3814 else
3815   if test "$cross_compiling" = yes; then
3816   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3817 See \`config.log' for more details." >&5
3818 echo "$as_me: error: cannot run test program while cross compiling
3819 See \`config.log' for more details." >&2;}
3820    { (exit 1); exit 1; }; }
3821 else
3822   cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h.  */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h.  */
3828 $ac_includes_default
3829 long longval () { return (long) (sizeof (void *)); }
3830 unsigned long ulongval () { return (long) (sizeof (void *)); }
3831 #include <stdio.h>
3832 #include <stdlib.h>
3833 int
3834 main ()
3835 {
3836
3837   FILE *f = fopen ("conftest.val", "w");
3838   if (! f)
3839     exit (1);
3840   if (((long) (sizeof (void *))) < 0)
3841     {
3842       long i = longval ();
3843       if (i != ((long) (sizeof (void *))))
3844         exit (1);
3845       fprintf (f, "%ld\n", i);
3846     }
3847   else
3848     {
3849       unsigned long i = ulongval ();
3850       if (i != ((long) (sizeof (void *))))
3851         exit (1);
3852       fprintf (f, "%lu\n", i);
3853     }
3854   exit (ferror (f) || fclose (f) != 0);
3855
3856   ;
3857   return 0;
3858 }
3859 _ACEOF
3860 rm -f conftest$ac_exeext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3862   (eval $ac_link) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867   (eval $ac_try) 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; }; then
3871   ac_cv_sizeof_void_p=`cat conftest.val`
3872 else
3873   echo "$as_me: program exited with status $ac_status" >&5
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 ( exit $ac_status )
3878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3879 See \`config.log' for more details." >&5
3880 echo "$as_me: error: cannot compute sizeof (void *), 77
3881 See \`config.log' for more details." >&2;}
3882    { (exit 1); exit 1; }; }
3883 fi
3884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3885 fi
3886 fi
3887 rm -f conftest.val
3888 else
3889   ac_cv_sizeof_void_p=0
3890 fi
3891 fi
3892 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3893 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3894 cat >>confdefs.h <<_ACEOF
3895 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3896 _ACEOF
3897
3898
3899 echo "$as_me:$LINENO: checking for short" >&5
3900 echo $ECHO_N "checking for short... $ECHO_C" >&6
3901 if test "${ac_cv_type_short+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 $ac_includes_default
3911 int
3912 main ()
3913 {
3914 if ((short *) 0)
3915   return 0;
3916 if (sizeof (short))
3917   return 0;
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924   (eval $ac_compile) 2>conftest.er1
3925   ac_status=$?
3926   grep -v '^ *+' conftest.er1 >conftest.err
3927   rm -f conftest.er1
3928   cat conftest.err >&5
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } &&
3931          { ac_try='test -z "$ac_c_werror_flag"
3932                          || test ! -s conftest.err'
3933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934   (eval $ac_try) 2>&5
3935   ac_status=$?
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); }; } &&
3938          { ac_try='test -s conftest.$ac_objext'
3939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940   (eval $ac_try) 2>&5
3941   ac_status=$?
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); }; }; then
3944   ac_cv_type_short=yes
3945 else
3946   echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 ac_cv_type_short=no
3950 fi
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952 fi
3953 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3954 echo "${ECHO_T}$ac_cv_type_short" >&6
3955
3956 echo "$as_me:$LINENO: checking size of short" >&5
3957 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3958 if test "${ac_cv_sizeof_short+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   if test "$ac_cv_type_short" = yes; then
3962   # The cast to unsigned long works around a bug in the HP C Compiler
3963   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3964   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3965   # This bug is HP SR number 8606223364.
3966   if test "$cross_compiling" = yes; then
3967   # Depending upon the size, compute the lo and hi bounds.
3968 cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h.  */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h.  */
3974 $ac_includes_default
3975 int
3976 main ()
3977 {
3978 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3979 test_array [0] = 0
3980
3981   ;
3982   return 0;
3983 }
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987   (eval $ac_compile) 2>conftest.er1
3988   ac_status=$?
3989   grep -v '^ *+' conftest.er1 >conftest.err
3990   rm -f conftest.er1
3991   cat conftest.err >&5
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } &&
3994          { ac_try='test -z "$ac_c_werror_flag"
3995                          || test ! -s conftest.err'
3996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997   (eval $ac_try) 2>&5
3998   ac_status=$?
3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); }; } &&
4001          { ac_try='test -s conftest.$ac_objext'
4002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003   (eval $ac_try) 2>&5
4004   ac_status=$?
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); }; }; then
4007   ac_lo=0 ac_mid=0
4008   while :; do
4009     cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015 $ac_includes_default
4016 int
4017 main ()
4018 {
4019 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4020 test_array [0] = 0
4021
4022   ;
4023   return 0;
4024 }
4025 _ACEOF
4026 rm -f conftest.$ac_objext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028   (eval $ac_compile) 2>conftest.er1
4029   ac_status=$?
4030   grep -v '^ *+' conftest.er1 >conftest.err
4031   rm -f conftest.er1
4032   cat conftest.err >&5
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); } &&
4035          { ac_try='test -z "$ac_c_werror_flag"
4036                          || test ! -s conftest.err'
4037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038   (eval $ac_try) 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); }; } &&
4042          { ac_try='test -s conftest.$ac_objext'
4043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044   (eval $ac_try) 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); }; }; then
4048   ac_hi=$ac_mid; break
4049 else
4050   echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 ac_lo=`expr $ac_mid + 1`
4054                     if test $ac_lo -le $ac_mid; then
4055                       ac_lo= ac_hi=
4056                       break
4057                     fi
4058                     ac_mid=`expr 2 '*' $ac_mid + 1`
4059 fi
4060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4061   done
4062 else
4063   echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h.  */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h.  */
4072 $ac_includes_default
4073 int
4074 main ()
4075 {
4076 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4077 test_array [0] = 0
4078
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085   (eval $ac_compile) 2>conftest.er1
4086   ac_status=$?
4087   grep -v '^ *+' conftest.er1 >conftest.err
4088   rm -f conftest.er1
4089   cat conftest.err >&5
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); } &&
4092          { ac_try='test -z "$ac_c_werror_flag"
4093                          || test ! -s conftest.err'
4094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095   (eval $ac_try) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; } &&
4099          { ac_try='test -s conftest.$ac_objext'
4100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101   (eval $ac_try) 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; }; then
4105   ac_hi=-1 ac_mid=-1
4106   while :; do
4107     cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113 $ac_includes_default
4114 int
4115 main ()
4116 {
4117 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4118 test_array [0] = 0
4119
4120   ;
4121   return 0;
4122 }
4123 _ACEOF
4124 rm -f conftest.$ac_objext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126   (eval $ac_compile) 2>conftest.er1
4127   ac_status=$?
4128   grep -v '^ *+' conftest.er1 >conftest.err
4129   rm -f conftest.er1
4130   cat conftest.err >&5
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); } &&
4133          { ac_try='test -z "$ac_c_werror_flag"
4134                          || test ! -s conftest.err'
4135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136   (eval $ac_try) 2>&5
4137   ac_status=$?
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); }; } &&
4140          { ac_try='test -s conftest.$ac_objext'
4141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142   (eval $ac_try) 2>&5
4143   ac_status=$?
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); }; }; then
4146   ac_lo=$ac_mid; break
4147 else
4148   echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151 ac_hi=`expr '(' $ac_mid ')' - 1`
4152                        if test $ac_mid -le $ac_hi; then
4153                          ac_lo= ac_hi=
4154                          break
4155                        fi
4156                        ac_mid=`expr 2 '*' $ac_mid`
4157 fi
4158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159   done
4160 else
4161   echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164 ac_lo= ac_hi=
4165 fi
4166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4167 fi
4168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169 # Binary search between lo and hi bounds.
4170 while test "x$ac_lo" != "x$ac_hi"; do
4171   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178 $ac_includes_default
4179 int
4180 main ()
4181 {
4182 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4183 test_array [0] = 0
4184
4185   ;
4186   return 0;
4187 }
4188 _ACEOF
4189 rm -f conftest.$ac_objext
4190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191   (eval $ac_compile) 2>conftest.er1
4192   ac_status=$?
4193   grep -v '^ *+' conftest.er1 >conftest.err
4194   rm -f conftest.er1
4195   cat conftest.err >&5
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); } &&
4198          { ac_try='test -z "$ac_c_werror_flag"
4199                          || test ! -s conftest.err'
4200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201   (eval $ac_try) 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); }; } &&
4205          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4211   ac_hi=$ac_mid
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 ac_lo=`expr '(' $ac_mid ')' + 1`
4217 fi
4218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4219 done
4220 case $ac_lo in
4221 ?*) ac_cv_sizeof_short=$ac_lo;;
4222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4223 See \`config.log' for more details." >&5
4224 echo "$as_me: error: cannot compute sizeof (short), 77
4225 See \`config.log' for more details." >&2;}
4226    { (exit 1); exit 1; }; } ;;
4227 esac
4228 else
4229   if test "$cross_compiling" = yes; then
4230   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: cannot run test program while cross compiling
4233 See \`config.log' for more details." >&2;}
4234    { (exit 1); exit 1; }; }
4235 else
4236   cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h.  */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h.  */
4242 $ac_includes_default
4243 long longval () { return (long) (sizeof (short)); }
4244 unsigned long ulongval () { return (long) (sizeof (short)); }
4245 #include <stdio.h>
4246 #include <stdlib.h>
4247 int
4248 main ()
4249 {
4250
4251   FILE *f = fopen ("conftest.val", "w");
4252   if (! f)
4253     exit (1);
4254   if (((long) (sizeof (short))) < 0)
4255     {
4256       long i = longval ();
4257       if (i != ((long) (sizeof (short))))
4258         exit (1);
4259       fprintf (f, "%ld\n", i);
4260     }
4261   else
4262     {
4263       unsigned long i = ulongval ();
4264       if (i != ((long) (sizeof (short))))
4265         exit (1);
4266       fprintf (f, "%lu\n", i);
4267     }
4268   exit (ferror (f) || fclose (f) != 0);
4269
4270   ;
4271   return 0;
4272 }
4273 _ACEOF
4274 rm -f conftest$ac_exeext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276   (eval $ac_link) 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281   (eval $ac_try) 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; }; then
4285   ac_cv_sizeof_short=`cat conftest.val`
4286 else
4287   echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ( exit $ac_status )
4292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4293 See \`config.log' for more details." >&5
4294 echo "$as_me: error: cannot compute sizeof (short), 77
4295 See \`config.log' for more details." >&2;}
4296    { (exit 1); exit 1; }; }
4297 fi
4298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4299 fi
4300 fi
4301 rm -f conftest.val
4302 else
4303   ac_cv_sizeof_short=0
4304 fi
4305 fi
4306 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4307 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4308 cat >>confdefs.h <<_ACEOF
4309 #define SIZEOF_SHORT $ac_cv_sizeof_short
4310 _ACEOF
4311
4312
4313 echo "$as_me:$LINENO: checking for int" >&5
4314 echo $ECHO_N "checking for int... $ECHO_C" >&6
4315 if test "${ac_cv_type_int+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324 $ac_includes_default
4325 int
4326 main ()
4327 {
4328 if ((int *) 0)
4329   return 0;
4330 if (sizeof (int))
4331   return 0;
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338   (eval $ac_compile) 2>conftest.er1
4339   ac_status=$?
4340   grep -v '^ *+' conftest.er1 >conftest.err
4341   rm -f conftest.er1
4342   cat conftest.err >&5
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } &&
4345          { ac_try='test -z "$ac_c_werror_flag"
4346                          || test ! -s conftest.err'
4347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348   (eval $ac_try) 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); }; } &&
4352          { ac_try='test -s conftest.$ac_objext'
4353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354   (eval $ac_try) 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }; }; then
4358   ac_cv_type_int=yes
4359 else
4360   echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 ac_cv_type_int=no
4364 fi
4365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 fi
4367 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4368 echo "${ECHO_T}$ac_cv_type_int" >&6
4369
4370 echo "$as_me:$LINENO: checking size of int" >&5
4371 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4372 if test "${ac_cv_sizeof_int+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   if test "$ac_cv_type_int" = yes; then
4376   # The cast to unsigned long works around a bug in the HP C Compiler
4377   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4378   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4379   # This bug is HP SR number 8606223364.
4380   if test "$cross_compiling" = yes; then
4381   # Depending upon the size, compute the lo and hi bounds.
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388 $ac_includes_default
4389 int
4390 main ()
4391 {
4392 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4393 test_array [0] = 0
4394
4395   ;
4396   return 0;
4397 }
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401   (eval $ac_compile) 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } &&
4408          { ac_try='test -z "$ac_c_werror_flag"
4409                          || test ! -s conftest.err'
4410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411   (eval $ac_try) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; } &&
4415          { ac_try='test -s conftest.$ac_objext'
4416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417   (eval $ac_try) 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; }; then
4421   ac_lo=0 ac_mid=0
4422   while :; do
4423     cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h.  */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h.  */
4429 $ac_includes_default
4430 int
4431 main ()
4432 {
4433 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4434 test_array [0] = 0
4435
4436   ;
4437   return 0;
4438 }
4439 _ACEOF
4440 rm -f conftest.$ac_objext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442   (eval $ac_compile) 2>conftest.er1
4443   ac_status=$?
4444   grep -v '^ *+' conftest.er1 >conftest.err
4445   rm -f conftest.er1
4446   cat conftest.err >&5
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); } &&
4449          { ac_try='test -z "$ac_c_werror_flag"
4450                          || test ! -s conftest.err'
4451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452   (eval $ac_try) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; } &&
4456          { ac_try='test -s conftest.$ac_objext'
4457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458   (eval $ac_try) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; }; then
4462   ac_hi=$ac_mid; break
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 ac_lo=`expr $ac_mid + 1`
4468                     if test $ac_lo -le $ac_mid; then
4469                       ac_lo= ac_hi=
4470                       break
4471                     fi
4472                     ac_mid=`expr 2 '*' $ac_mid + 1`
4473 fi
4474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4475   done
4476 else
4477   echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h.  */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h.  */
4486 $ac_includes_default
4487 int
4488 main ()
4489 {
4490 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4491 test_array [0] = 0
4492
4493   ;
4494   return 0;
4495 }
4496 _ACEOF
4497 rm -f conftest.$ac_objext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499   (eval $ac_compile) 2>conftest.er1
4500   ac_status=$?
4501   grep -v '^ *+' conftest.er1 >conftest.err
4502   rm -f conftest.er1
4503   cat conftest.err >&5
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); } &&
4506          { ac_try='test -z "$ac_c_werror_flag"
4507                          || test ! -s conftest.err'
4508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509   (eval $ac_try) 2>&5
4510   ac_status=$?
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); }; } &&
4513          { ac_try='test -s conftest.$ac_objext'
4514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515   (eval $ac_try) 2>&5
4516   ac_status=$?
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); }; }; then
4519   ac_hi=-1 ac_mid=-1
4520   while :; do
4521     cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h.  */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h.  */
4527 $ac_includes_default
4528 int
4529 main ()
4530 {
4531 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4532 test_array [0] = 0
4533
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540   (eval $ac_compile) 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } &&
4547          { ac_try='test -z "$ac_c_werror_flag"
4548                          || test ! -s conftest.err'
4549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550   (eval $ac_try) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; } &&
4554          { ac_try='test -s conftest.$ac_objext'
4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556   (eval $ac_try) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }; then
4560   ac_lo=$ac_mid; break
4561 else
4562   echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565 ac_hi=`expr '(' $ac_mid ')' - 1`
4566                        if test $ac_mid -le $ac_hi; then
4567                          ac_lo= ac_hi=
4568                          break
4569                        fi
4570                        ac_mid=`expr 2 '*' $ac_mid`
4571 fi
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573   done
4574 else
4575   echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578 ac_lo= ac_hi=
4579 fi
4580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4581 fi
4582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583 # Binary search between lo and hi bounds.
4584 while test "x$ac_lo" != "x$ac_hi"; do
4585   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4586   cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592 $ac_includes_default
4593 int
4594 main ()
4595 {
4596 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4597 test_array [0] = 0
4598
4599   ;
4600   return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605   (eval $ac_compile) 2>conftest.er1
4606   ac_status=$?
4607   grep -v '^ *+' conftest.er1 >conftest.err
4608   rm -f conftest.er1
4609   cat conftest.err >&5
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); } &&
4612          { ac_try='test -z "$ac_c_werror_flag"
4613                          || test ! -s conftest.err'
4614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615   (eval $ac_try) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; } &&
4619          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4625   ac_hi=$ac_mid
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ac_lo=`expr '(' $ac_mid ')' + 1`
4631 fi
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633 done
4634 case $ac_lo in
4635 ?*) ac_cv_sizeof_int=$ac_lo;;
4636 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4637 See \`config.log' for more details." >&5
4638 echo "$as_me: error: cannot compute sizeof (int), 77
4639 See \`config.log' for more details." >&2;}
4640    { (exit 1); exit 1; }; } ;;
4641 esac
4642 else
4643   if test "$cross_compiling" = yes; then
4644   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4645 See \`config.log' for more details." >&5
4646 echo "$as_me: error: cannot run test program while cross compiling
4647 See \`config.log' for more details." >&2;}
4648    { (exit 1); exit 1; }; }
4649 else
4650   cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656 $ac_includes_default
4657 long longval () { return (long) (sizeof (int)); }
4658 unsigned long ulongval () { return (long) (sizeof (int)); }
4659 #include <stdio.h>
4660 #include <stdlib.h>
4661 int
4662 main ()
4663 {
4664
4665   FILE *f = fopen ("conftest.val", "w");
4666   if (! f)
4667     exit (1);
4668   if (((long) (sizeof (int))) < 0)
4669     {
4670       long i = longval ();
4671       if (i != ((long) (sizeof (int))))
4672         exit (1);
4673       fprintf (f, "%ld\n", i);
4674     }
4675   else
4676     {
4677       unsigned long i = ulongval ();
4678       if (i != ((long) (sizeof (int))))
4679         exit (1);
4680       fprintf (f, "%lu\n", i);
4681     }
4682   exit (ferror (f) || fclose (f) != 0);
4683
4684   ;
4685   return 0;
4686 }
4687 _ACEOF
4688 rm -f conftest$ac_exeext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690   (eval $ac_link) 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695   (eval $ac_try) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; }; then
4699   ac_cv_sizeof_int=`cat conftest.val`
4700 else
4701   echo "$as_me: program exited with status $ac_status" >&5
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 ( exit $ac_status )
4706 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4707 See \`config.log' for more details." >&5
4708 echo "$as_me: error: cannot compute sizeof (int), 77
4709 See \`config.log' for more details." >&2;}
4710    { (exit 1); exit 1; }; }
4711 fi
4712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4713 fi
4714 fi
4715 rm -f conftest.val
4716 else
4717   ac_cv_sizeof_int=0
4718 fi
4719 fi
4720 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4721 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4722 cat >>confdefs.h <<_ACEOF
4723 #define SIZEOF_INT $ac_cv_sizeof_int
4724 _ACEOF
4725
4726
4727 echo "$as_me:$LINENO: checking for long" >&5
4728 echo $ECHO_N "checking for long... $ECHO_C" >&6
4729 if test "${ac_cv_type_long+set}" = set; then
4730   echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732   cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h.  */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h.  */
4738 $ac_includes_default
4739 int
4740 main ()
4741 {
4742 if ((long *) 0)
4743   return 0;
4744 if (sizeof (long))
4745   return 0;
4746   ;
4747   return 0;
4748 }
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752   (eval $ac_compile) 2>conftest.er1
4753   ac_status=$?
4754   grep -v '^ *+' conftest.er1 >conftest.err
4755   rm -f conftest.er1
4756   cat conftest.err >&5
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); } &&
4759          { ac_try='test -z "$ac_c_werror_flag"
4760                          || test ! -s conftest.err'
4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762   (eval $ac_try) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; } &&
4766          { ac_try='test -s conftest.$ac_objext'
4767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768   (eval $ac_try) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }; }; then
4772   ac_cv_type_long=yes
4773 else
4774   echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 ac_cv_type_long=no
4778 fi
4779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4780 fi
4781 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4782 echo "${ECHO_T}$ac_cv_type_long" >&6
4783
4784 echo "$as_me:$LINENO: checking size of long" >&5
4785 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4786 if test "${ac_cv_sizeof_long+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789   if test "$ac_cv_type_long" = yes; then
4790   # The cast to unsigned long works around a bug in the HP C Compiler
4791   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4792   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4793   # This bug is HP SR number 8606223364.
4794   if test "$cross_compiling" = yes; then
4795   # Depending upon the size, compute the lo and hi bounds.
4796 cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802 $ac_includes_default
4803 int
4804 main ()
4805 {
4806 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4807 test_array [0] = 0
4808
4809   ;
4810   return 0;
4811 }
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815   (eval $ac_compile) 2>conftest.er1
4816   ac_status=$?
4817   grep -v '^ *+' conftest.er1 >conftest.err
4818   rm -f conftest.er1
4819   cat conftest.err >&5
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } &&
4822          { ac_try='test -z "$ac_c_werror_flag"
4823                          || test ! -s conftest.err'
4824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825   (eval $ac_try) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; } &&
4829          { ac_try='test -s conftest.$ac_objext'
4830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831   (eval $ac_try) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); }; }; then
4835   ac_lo=0 ac_mid=0
4836   while :; do
4837     cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h.  */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h.  */
4843 $ac_includes_default
4844 int
4845 main ()
4846 {
4847 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4848 test_array [0] = 0
4849
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856   (eval $ac_compile) 2>conftest.er1
4857   ac_status=$?
4858   grep -v '^ *+' conftest.er1 >conftest.err
4859   rm -f conftest.er1
4860   cat conftest.err >&5
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); } &&
4863          { ac_try='test -z "$ac_c_werror_flag"
4864                          || test ! -s conftest.err'
4865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866   (eval $ac_try) 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); }; } &&
4870          { ac_try='test -s conftest.$ac_objext'
4871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872   (eval $ac_try) 2>&5
4873   ac_status=$?
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); }; }; then
4876   ac_hi=$ac_mid; break
4877 else
4878   echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 ac_lo=`expr $ac_mid + 1`
4882                     if test $ac_lo -le $ac_mid; then
4883                       ac_lo= ac_hi=
4884                       break
4885                     fi
4886                     ac_mid=`expr 2 '*' $ac_mid + 1`
4887 fi
4888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4889   done
4890 else
4891   echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h.  */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h.  */
4900 $ac_includes_default
4901 int
4902 main ()
4903 {
4904 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4905 test_array [0] = 0
4906
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913   (eval $ac_compile) 2>conftest.er1
4914   ac_status=$?
4915   grep -v '^ *+' conftest.er1 >conftest.err
4916   rm -f conftest.er1
4917   cat conftest.err >&5
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); } &&
4920          { ac_try='test -z "$ac_c_werror_flag"
4921                          || test ! -s conftest.err'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; } &&
4927          { ac_try='test -s conftest.$ac_objext'
4928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929   (eval $ac_try) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); }; }; then
4933   ac_hi=-1 ac_mid=-1
4934   while :; do
4935     cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941 $ac_includes_default
4942 int
4943 main ()
4944 {
4945 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4946 test_array [0] = 0
4947
4948   ;
4949   return 0;
4950 }
4951 _ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954   (eval $ac_compile) 2>conftest.er1
4955   ac_status=$?
4956   grep -v '^ *+' conftest.er1 >conftest.err
4957   rm -f conftest.er1
4958   cat conftest.err >&5
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); } &&
4961          { ac_try='test -z "$ac_c_werror_flag"
4962                          || test ! -s conftest.err'
4963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964   (eval $ac_try) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); }; } &&
4968          { ac_try='test -s conftest.$ac_objext'
4969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970   (eval $ac_try) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; }; then
4974   ac_lo=$ac_mid; break
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 ac_hi=`expr '(' $ac_mid ')' - 1`
4980                        if test $ac_mid -le $ac_hi; then
4981                          ac_lo= ac_hi=
4982                          break
4983                        fi
4984                        ac_mid=`expr 2 '*' $ac_mid`
4985 fi
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4987   done
4988 else
4989   echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 ac_lo= ac_hi=
4993 fi
4994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4995 fi
4996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4997 # Binary search between lo and hi bounds.
4998 while test "x$ac_lo" != "x$ac_hi"; do
4999   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5000   cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h.  */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h.  */
5006 $ac_includes_default
5007 int
5008 main ()
5009 {
5010 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5011 test_array [0] = 0
5012
5013   ;
5014   return 0;
5015 }
5016 _ACEOF
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019   (eval $ac_compile) 2>conftest.er1
5020   ac_status=$?
5021   grep -v '^ *+' conftest.er1 >conftest.err
5022   rm -f conftest.er1
5023   cat conftest.err >&5
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } &&
5026          { ac_try='test -z "$ac_c_werror_flag"
5027                          || test ! -s conftest.err'
5028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029   (eval $ac_try) 2>&5
5030   ac_status=$?
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); }; } &&
5033          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5039   ac_hi=$ac_mid
5040 else
5041   echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5043
5044 ac_lo=`expr '(' $ac_mid ')' + 1`
5045 fi
5046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5047 done
5048 case $ac_lo in
5049 ?*) ac_cv_sizeof_long=$ac_lo;;
5050 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5051 See \`config.log' for more details." >&5
5052 echo "$as_me: error: cannot compute sizeof (long), 77
5053 See \`config.log' for more details." >&2;}
5054    { (exit 1); exit 1; }; } ;;
5055 esac
5056 else
5057   if test "$cross_compiling" = yes; then
5058   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5059 See \`config.log' for more details." >&5
5060 echo "$as_me: error: cannot run test program while cross compiling
5061 See \`config.log' for more details." >&2;}
5062    { (exit 1); exit 1; }; }
5063 else
5064   cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h.  */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h.  */
5070 $ac_includes_default
5071 long longval () { return (long) (sizeof (long)); }
5072 unsigned long ulongval () { return (long) (sizeof (long)); }
5073 #include <stdio.h>
5074 #include <stdlib.h>
5075 int
5076 main ()
5077 {
5078
5079   FILE *f = fopen ("conftest.val", "w");
5080   if (! f)
5081     exit (1);
5082   if (((long) (sizeof (long))) < 0)
5083     {
5084       long i = longval ();
5085       if (i != ((long) (sizeof (long))))
5086         exit (1);
5087       fprintf (f, "%ld\n", i);
5088     }
5089   else
5090     {
5091       unsigned long i = ulongval ();
5092       if (i != ((long) (sizeof (long))))
5093         exit (1);
5094       fprintf (f, "%lu\n", i);
5095     }
5096   exit (ferror (f) || fclose (f) != 0);
5097
5098   ;
5099   return 0;
5100 }
5101 _ACEOF
5102 rm -f conftest$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104   (eval $ac_link) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109   (eval $ac_try) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; }; then
5113   ac_cv_sizeof_long=`cat conftest.val`
5114 else
5115   echo "$as_me: program exited with status $ac_status" >&5
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ( exit $ac_status )
5120 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: cannot compute sizeof (long), 77
5123 See \`config.log' for more details." >&2;}
5124    { (exit 1); exit 1; }; }
5125 fi
5126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5127 fi
5128 fi
5129 rm -f conftest.val
5130 else
5131   ac_cv_sizeof_long=0
5132 fi
5133 fi
5134 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5135 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5136 cat >>confdefs.h <<_ACEOF
5137 #define SIZEOF_LONG $ac_cv_sizeof_long
5138 _ACEOF
5139
5140
5141 echo "$as_me:$LINENO: checking for long long" >&5
5142 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5143 if test "${ac_cv_type_long_long+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h.  */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h.  */
5152 $ac_includes_default
5153 int
5154 main ()
5155 {
5156 if ((long long *) 0)
5157   return 0;
5158 if (sizeof (long long))
5159   return 0;
5160   ;
5161   return 0;
5162 }
5163 _ACEOF
5164 rm -f conftest.$ac_objext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166   (eval $ac_compile) 2>conftest.er1
5167   ac_status=$?
5168   grep -v '^ *+' conftest.er1 >conftest.err
5169   rm -f conftest.er1
5170   cat conftest.err >&5
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } &&
5173          { ac_try='test -z "$ac_c_werror_flag"
5174                          || test ! -s conftest.err'
5175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176   (eval $ac_try) 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }; } &&
5180          { ac_try='test -s conftest.$ac_objext'
5181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182   (eval $ac_try) 2>&5
5183   ac_status=$?
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); }; }; then
5186   ac_cv_type_long_long=yes
5187 else
5188   echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5190
5191 ac_cv_type_long_long=no
5192 fi
5193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5194 fi
5195 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5196 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5197 if test $ac_cv_type_long_long = yes; then
5198
5199 cat >>confdefs.h <<_ACEOF
5200 #define HAVE_LONG_LONG 1
5201 _ACEOF
5202
5203 echo "$as_me:$LINENO: checking for long long" >&5
5204 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5205 if test "${ac_cv_type_long_long+set}" = set; then
5206   echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208   cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214 $ac_includes_default
5215 int
5216 main ()
5217 {
5218 if ((long long *) 0)
5219   return 0;
5220 if (sizeof (long long))
5221   return 0;
5222   ;
5223   return 0;
5224 }
5225 _ACEOF
5226 rm -f conftest.$ac_objext
5227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228   (eval $ac_compile) 2>conftest.er1
5229   ac_status=$?
5230   grep -v '^ *+' conftest.er1 >conftest.err
5231   rm -f conftest.er1
5232   cat conftest.err >&5
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); } &&
5235          { ac_try='test -z "$ac_c_werror_flag"
5236                          || test ! -s conftest.err'
5237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238   (eval $ac_try) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }; } &&
5242          { ac_try='test -s conftest.$ac_objext'
5243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244   (eval $ac_try) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); }; }; then
5248   ac_cv_type_long_long=yes
5249 else
5250   echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5252
5253 ac_cv_type_long_long=no
5254 fi
5255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5256 fi
5257 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5258 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5259
5260 echo "$as_me:$LINENO: checking size of long long" >&5
5261 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5262 if test "${ac_cv_sizeof_long_long+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   if test "$ac_cv_type_long_long" = yes; then
5266   # The cast to unsigned long works around a bug in the HP C Compiler
5267   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5268   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5269   # This bug is HP SR number 8606223364.
5270   if test "$cross_compiling" = yes; then
5271   # Depending upon the size, compute the lo and hi bounds.
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 $ac_includes_default
5279 int
5280 main ()
5281 {
5282 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5283 test_array [0] = 0
5284
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 rm -f conftest.$ac_objext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291   (eval $ac_compile) 2>conftest.er1
5292   ac_status=$?
5293   grep -v '^ *+' conftest.er1 >conftest.err
5294   rm -f conftest.er1
5295   cat conftest.err >&5
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); } &&
5298          { ac_try='test -z "$ac_c_werror_flag"
5299                          || test ! -s conftest.err'
5300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301   (eval $ac_try) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }; } &&
5305          { ac_try='test -s conftest.$ac_objext'
5306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307   (eval $ac_try) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; }; then
5311   ac_lo=0 ac_mid=0
5312   while :; do
5313     cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h.  */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h.  */
5319 $ac_includes_default
5320 int
5321 main ()
5322 {
5323 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5324 test_array [0] = 0
5325
5326   ;
5327   return 0;
5328 }
5329 _ACEOF
5330 rm -f conftest.$ac_objext
5331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332   (eval $ac_compile) 2>conftest.er1
5333   ac_status=$?
5334   grep -v '^ *+' conftest.er1 >conftest.err
5335   rm -f conftest.er1
5336   cat conftest.err >&5
5337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); } &&
5339          { ac_try='test -z "$ac_c_werror_flag"
5340                          || test ! -s conftest.err'
5341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342   (eval $ac_try) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; } &&
5346          { ac_try='test -s conftest.$ac_objext'
5347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348   (eval $ac_try) 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); }; }; then
5352   ac_hi=$ac_mid; break
5353 else
5354   echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 ac_lo=`expr $ac_mid + 1`
5358                     if test $ac_lo -le $ac_mid; then
5359                       ac_lo= ac_hi=
5360                       break
5361                     fi
5362                     ac_mid=`expr 2 '*' $ac_mid + 1`
5363 fi
5364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5365   done
5366 else
5367   echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5369
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376 $ac_includes_default
5377 int
5378 main ()
5379 {
5380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5381 test_array [0] = 0
5382
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389   (eval $ac_compile) 2>conftest.er1
5390   ac_status=$?
5391   grep -v '^ *+' conftest.er1 >conftest.err
5392   rm -f conftest.er1
5393   cat conftest.err >&5
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); } &&
5396          { ac_try='test -z "$ac_c_werror_flag"
5397                          || test ! -s conftest.err'
5398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399   (eval $ac_try) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }; } &&
5403          { ac_try='test -s conftest.$ac_objext'
5404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405   (eval $ac_try) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; }; then
5409   ac_hi=-1 ac_mid=-1
5410   while :; do
5411     cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h.  */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h.  */
5417 $ac_includes_default
5418 int
5419 main ()
5420 {
5421 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5422 test_array [0] = 0
5423
5424   ;
5425   return 0;
5426 }
5427 _ACEOF
5428 rm -f conftest.$ac_objext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430   (eval $ac_compile) 2>conftest.er1
5431   ac_status=$?
5432   grep -v '^ *+' conftest.er1 >conftest.err
5433   rm -f conftest.er1
5434   cat conftest.err >&5
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); } &&
5437          { ac_try='test -z "$ac_c_werror_flag"
5438                          || test ! -s conftest.err'
5439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440   (eval $ac_try) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }; } &&
5444          { ac_try='test -s conftest.$ac_objext'
5445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446   (eval $ac_try) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; }; then
5450   ac_lo=$ac_mid; break
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 ac_hi=`expr '(' $ac_mid ')' - 1`
5456                        if test $ac_mid -le $ac_hi; then
5457                          ac_lo= ac_hi=
5458                          break
5459                        fi
5460                        ac_mid=`expr 2 '*' $ac_mid`
5461 fi
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463   done
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 ac_lo= ac_hi=
5469 fi
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471 fi
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 # Binary search between lo and hi bounds.
5474 while test "x$ac_lo" != "x$ac_hi"; do
5475   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5476   cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482 $ac_includes_default
5483 int
5484 main ()
5485 {
5486 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5487 test_array [0] = 0
5488
5489   ;
5490   return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495   (eval $ac_compile) 2>conftest.er1
5496   ac_status=$?
5497   grep -v '^ *+' conftest.er1 >conftest.err
5498   rm -f conftest.er1
5499   cat conftest.err >&5
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } &&
5502          { ac_try='test -z "$ac_c_werror_flag"
5503                          || test ! -s conftest.err'
5504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505   (eval $ac_try) 2>&5
5506   ac_status=$?
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); }; } &&
5509          { ac_try='test -s conftest.$ac_objext'
5510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511   (eval $ac_try) 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); }; }; then
5515   ac_hi=$ac_mid
5516 else
5517   echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5519
5520 ac_lo=`expr '(' $ac_mid ')' + 1`
5521 fi
5522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5523 done
5524 case $ac_lo in
5525 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5527 See \`config.log' for more details." >&5
5528 echo "$as_me: error: cannot compute sizeof (long long), 77
5529 See \`config.log' for more details." >&2;}
5530    { (exit 1); exit 1; }; } ;;
5531 esac
5532 else
5533   if test "$cross_compiling" = yes; then
5534   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5535 See \`config.log' for more details." >&5
5536 echo "$as_me: error: cannot run test program while cross compiling
5537 See \`config.log' for more details." >&2;}
5538    { (exit 1); exit 1; }; }
5539 else
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 $ac_includes_default
5547 long longval () { return (long) (sizeof (long long)); }
5548 unsigned long ulongval () { return (long) (sizeof (long long)); }
5549 #include <stdio.h>
5550 #include <stdlib.h>
5551 int
5552 main ()
5553 {
5554
5555   FILE *f = fopen ("conftest.val", "w");
5556   if (! f)
5557     exit (1);
5558   if (((long) (sizeof (long long))) < 0)
5559     {
5560       long i = longval ();
5561       if (i != ((long) (sizeof (long long))))
5562         exit (1);
5563       fprintf (f, "%ld\n", i);
5564     }
5565   else
5566     {
5567       unsigned long i = ulongval ();
5568       if (i != ((long) (sizeof (long long))))
5569         exit (1);
5570       fprintf (f, "%lu\n", i);
5571     }
5572   exit (ferror (f) || fclose (f) != 0);
5573
5574   ;
5575   return 0;
5576 }
5577 _ACEOF
5578 rm -f conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580   (eval $ac_link) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585   (eval $ac_try) 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }; }; then
5589   ac_cv_sizeof_long_long=`cat conftest.val`
5590 else
5591   echo "$as_me: program exited with status $ac_status" >&5
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5594
5595 ( exit $ac_status )
5596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5597 See \`config.log' for more details." >&5
5598 echo "$as_me: error: cannot compute sizeof (long long), 77
5599 See \`config.log' for more details." >&2;}
5600    { (exit 1); exit 1; }; }
5601 fi
5602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5603 fi
5604 fi
5605 rm -f conftest.val
5606 else
5607   ac_cv_sizeof_long_long=0
5608 fi
5609 fi
5610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5611 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5612 cat >>confdefs.h <<_ACEOF
5613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5614 _ACEOF
5615
5616
5617 fi
5618
5619 echo "$as_me:$LINENO: checking for __int64" >&5
5620 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5621 if test "${ac_cv_type___int64+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h.  */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h.  */
5630 $ac_includes_default
5631 int
5632 main ()
5633 {
5634 if ((__int64 *) 0)
5635   return 0;
5636 if (sizeof (__int64))
5637   return 0;
5638   ;
5639   return 0;
5640 }
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644   (eval $ac_compile) 2>conftest.er1
5645   ac_status=$?
5646   grep -v '^ *+' conftest.er1 >conftest.err
5647   rm -f conftest.er1
5648   cat conftest.err >&5
5649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650   (exit $ac_status); } &&
5651          { ac_try='test -z "$ac_c_werror_flag"
5652                          || test ! -s conftest.err'
5653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654   (eval $ac_try) 2>&5
5655   ac_status=$?
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); }; } &&
5658          { ac_try='test -s conftest.$ac_objext'
5659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660   (eval $ac_try) 2>&5
5661   ac_status=$?
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); }; }; then
5664   ac_cv_type___int64=yes
5665 else
5666   echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5668
5669 ac_cv_type___int64=no
5670 fi
5671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5672 fi
5673 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5674 echo "${ECHO_T}$ac_cv_type___int64" >&6
5675 if test $ac_cv_type___int64 = yes; then
5676
5677 cat >>confdefs.h <<_ACEOF
5678 #define HAVE___INT64 1
5679 _ACEOF
5680
5681 echo "$as_me:$LINENO: checking for __int64" >&5
5682 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5683 if test "${ac_cv_type___int64+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h.  */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h.  */
5692 $ac_includes_default
5693 int
5694 main ()
5695 {
5696 if ((__int64 *) 0)
5697   return 0;
5698 if (sizeof (__int64))
5699   return 0;
5700   ;
5701   return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706   (eval $ac_compile) 2>conftest.er1
5707   ac_status=$?
5708   grep -v '^ *+' conftest.er1 >conftest.err
5709   rm -f conftest.er1
5710   cat conftest.err >&5
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); } &&
5713          { ac_try='test -z "$ac_c_werror_flag"
5714                          || test ! -s conftest.err'
5715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716   (eval $ac_try) 2>&5
5717   ac_status=$?
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); }; } &&
5720          { ac_try='test -s conftest.$ac_objext'
5721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722   (eval $ac_try) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); }; }; then
5726   ac_cv_type___int64=yes
5727 else
5728   echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ac_cv_type___int64=no
5732 fi
5733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5734 fi
5735 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5736 echo "${ECHO_T}$ac_cv_type___int64" >&6
5737
5738 echo "$as_me:$LINENO: checking size of __int64" >&5
5739 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5740 if test "${ac_cv_sizeof___int64+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   if test "$ac_cv_type___int64" = yes; then
5744   # The cast to unsigned long works around a bug in the HP C Compiler
5745   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5746   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5747   # This bug is HP SR number 8606223364.
5748   if test "$cross_compiling" = yes; then
5749   # Depending upon the size, compute the lo and hi bounds.
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 $ac_includes_default
5757 int
5758 main ()
5759 {
5760 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5761 test_array [0] = 0
5762
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769   (eval $ac_compile) 2>conftest.er1
5770   ac_status=$?
5771   grep -v '^ *+' conftest.er1 >conftest.err
5772   rm -f conftest.er1
5773   cat conftest.err >&5
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } &&
5776          { ac_try='test -z "$ac_c_werror_flag"
5777                          || test ! -s conftest.err'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; } &&
5783          { ac_try='test -s conftest.$ac_objext'
5784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785   (eval $ac_try) 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); }; }; then
5789   ac_lo=0 ac_mid=0
5790   while :; do
5791     cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h.  */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h.  */
5797 $ac_includes_default
5798 int
5799 main ()
5800 {
5801 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5802 test_array [0] = 0
5803
5804   ;
5805   return 0;
5806 }
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810   (eval $ac_compile) 2>conftest.er1
5811   ac_status=$?
5812   grep -v '^ *+' conftest.er1 >conftest.err
5813   rm -f conftest.er1
5814   cat conftest.err >&5
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); } &&
5817          { ac_try='test -z "$ac_c_werror_flag"
5818                          || test ! -s conftest.err'
5819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820   (eval $ac_try) 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); }; } &&
5824          { ac_try='test -s conftest.$ac_objext'
5825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826   (eval $ac_try) 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); }; }; then
5830   ac_hi=$ac_mid; break
5831 else
5832   echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835 ac_lo=`expr $ac_mid + 1`
5836                     if test $ac_lo -le $ac_mid; then
5837                       ac_lo= ac_hi=
5838                       break
5839                     fi
5840                     ac_mid=`expr 2 '*' $ac_mid + 1`
5841 fi
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843   done
5844 else
5845   echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h.  */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h.  */
5854 $ac_includes_default
5855 int
5856 main ()
5857 {
5858 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5859 test_array [0] = 0
5860
5861   ;
5862   return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867   (eval $ac_compile) 2>conftest.er1
5868   ac_status=$?
5869   grep -v '^ *+' conftest.er1 >conftest.err
5870   rm -f conftest.er1
5871   cat conftest.err >&5
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); } &&
5874          { ac_try='test -z "$ac_c_werror_flag"
5875                          || test ! -s conftest.err'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; } &&
5881          { ac_try='test -s conftest.$ac_objext'
5882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883   (eval $ac_try) 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; }; then
5887   ac_hi=-1 ac_mid=-1
5888   while :; do
5889     cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895 $ac_includes_default
5896 int
5897 main ()
5898 {
5899 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5900 test_array [0] = 0
5901
5902   ;
5903   return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908   (eval $ac_compile) 2>conftest.er1
5909   ac_status=$?
5910   grep -v '^ *+' conftest.er1 >conftest.err
5911   rm -f conftest.er1
5912   cat conftest.err >&5
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); } &&
5915          { ac_try='test -z "$ac_c_werror_flag"
5916                          || test ! -s conftest.err'
5917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918   (eval $ac_try) 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; } &&
5922          { ac_try='test -s conftest.$ac_objext'
5923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924   (eval $ac_try) 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); }; }; then
5928   ac_lo=$ac_mid; break
5929 else
5930   echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933 ac_hi=`expr '(' $ac_mid ')' - 1`
5934                        if test $ac_mid -le $ac_hi; then
5935                          ac_lo= ac_hi=
5936                          break
5937                        fi
5938                        ac_mid=`expr 2 '*' $ac_mid`
5939 fi
5940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941   done
5942 else
5943   echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5945
5946 ac_lo= ac_hi=
5947 fi
5948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949 fi
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 # Binary search between lo and hi bounds.
5952 while test "x$ac_lo" != "x$ac_hi"; do
5953   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5954   cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960 $ac_includes_default
5961 int
5962 main ()
5963 {
5964 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5965 test_array [0] = 0
5966
5967   ;
5968   return 0;
5969 }
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973   (eval $ac_compile) 2>conftest.er1
5974   ac_status=$?
5975   grep -v '^ *+' conftest.er1 >conftest.err
5976   rm -f conftest.er1
5977   cat conftest.err >&5
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); } &&
5980          { ac_try='test -z "$ac_c_werror_flag"
5981                          || test ! -s conftest.err'
5982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983   (eval $ac_try) 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); }; } &&
5987          { ac_try='test -s conftest.$ac_objext'
5988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989   (eval $ac_try) 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; }; then
5993   ac_hi=$ac_mid
5994 else
5995   echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 ac_lo=`expr '(' $ac_mid ')' + 1`
5999 fi
6000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001 done
6002 case $ac_lo in
6003 ?*) ac_cv_sizeof___int64=$ac_lo;;
6004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6005 See \`config.log' for more details." >&5
6006 echo "$as_me: error: cannot compute sizeof (__int64), 77
6007 See \`config.log' for more details." >&2;}
6008    { (exit 1); exit 1; }; } ;;
6009 esac
6010 else
6011   if test "$cross_compiling" = yes; then
6012   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6013 See \`config.log' for more details." >&5
6014 echo "$as_me: error: cannot run test program while cross compiling
6015 See \`config.log' for more details." >&2;}
6016    { (exit 1); exit 1; }; }
6017 else
6018   cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h.  */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h.  */
6024 $ac_includes_default
6025 long longval () { return (long) (sizeof (__int64)); }
6026 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6027 #include <stdio.h>
6028 #include <stdlib.h>
6029 int
6030 main ()
6031 {
6032
6033   FILE *f = fopen ("conftest.val", "w");
6034   if (! f)
6035     exit (1);
6036   if (((long) (sizeof (__int64))) < 0)
6037     {
6038       long i = longval ();
6039       if (i != ((long) (sizeof (__int64))))
6040         exit (1);
6041       fprintf (f, "%ld\n", i);
6042     }
6043   else
6044     {
6045       unsigned long i = ulongval ();
6046       if (i != ((long) (sizeof (__int64))))
6047         exit (1);
6048       fprintf (f, "%lu\n", i);
6049     }
6050   exit (ferror (f) || fclose (f) != 0);
6051
6052   ;
6053   return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058   (eval $ac_link) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063   (eval $ac_try) 2>&5
6064   ac_status=$?
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); }; }; then
6067   ac_cv_sizeof___int64=`cat conftest.val`
6068 else
6069   echo "$as_me: program exited with status $ac_status" >&5
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073 ( exit $ac_status )
6074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6075 See \`config.log' for more details." >&5
6076 echo "$as_me: error: cannot compute sizeof (__int64), 77
6077 See \`config.log' for more details." >&2;}
6078    { (exit 1); exit 1; }; }
6079 fi
6080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6081 fi
6082 fi
6083 rm -f conftest.val
6084 else
6085   ac_cv_sizeof___int64=0
6086 fi
6087 fi
6088 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6089 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6090 cat >>confdefs.h <<_ACEOF
6091 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6092 _ACEOF
6093
6094
6095 fi
6096
6097
6098 # ---------------------
6099 # Warnings and checking
6100 # ---------------------
6101
6102 # Check $CC warning features (if it's GCC).
6103 # We want to use -pedantic, but we don't want warnings about
6104 # * 'long long'
6105 # * variadic macros
6106 # * overlong strings
6107 # So, we only use -pedantic if we can disable those warnings.
6108
6109 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6110 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6111 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   save_CFLAGS="$CFLAGS"
6115   CFLAGS="-Wno-long-long"
6116   cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h.  */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h.  */
6122
6123 _ACEOF
6124 rm -f conftest.$ac_objext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126   (eval $ac_compile) 2>conftest.er1
6127   ac_status=$?
6128   grep -v '^ *+' conftest.er1 >conftest.err
6129   rm -f conftest.er1
6130   cat conftest.err >&5
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); } &&
6133          { ac_try='test -z "$ac_c_werror_flag"
6134                          || test ! -s conftest.err'
6135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136   (eval $ac_try) 2>&5
6137   ac_status=$?
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); }; } &&
6140          { ac_try='test -s conftest.$ac_objext'
6141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142   (eval $ac_try) 2>&5
6143   ac_status=$?
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); }; }; then
6146   ac_cv_prog_cc_w_no_long_long=yes
6147 else
6148   echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6150
6151 ac_cv_prog_cc_w_no_long_long=no
6152 fi
6153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6154   CFLAGS="$save_CFLAGS"
6155
6156 fi
6157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6158 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6159
6160 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6161 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6162 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165   save_CFLAGS="$CFLAGS"
6166   CFLAGS="-Wno-variadic-macros"
6167   cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h.  */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h.  */
6173
6174 _ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177   (eval $ac_compile) 2>conftest.er1
6178   ac_status=$?
6179   grep -v '^ *+' conftest.er1 >conftest.err
6180   rm -f conftest.er1
6181   cat conftest.err >&5
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } &&
6184          { ac_try='test -z "$ac_c_werror_flag"
6185                          || test ! -s conftest.err'
6186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187   (eval $ac_try) 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); }; } &&
6191          { ac_try='test -s conftest.$ac_objext'
6192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193   (eval $ac_try) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); }; }; then
6197   ac_cv_prog_cc_w_no_variadic_macros=yes
6198 else
6199   echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6201
6202 ac_cv_prog_cc_w_no_variadic_macros=no
6203 fi
6204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6205   CFLAGS="$save_CFLAGS"
6206
6207 fi
6208 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6209 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6210
6211 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6212 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6213 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   save_CFLAGS="$CFLAGS"
6217   CFLAGS="-Wno-overlength-strings"
6218   cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h.  */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h.  */
6224
6225 _ACEOF
6226 rm -f conftest.$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228   (eval $ac_compile) 2>conftest.er1
6229   ac_status=$?
6230   grep -v '^ *+' conftest.er1 >conftest.err
6231   rm -f conftest.er1
6232   cat conftest.err >&5
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } &&
6235          { ac_try='test -z "$ac_c_werror_flag"
6236                          || test ! -s conftest.err'
6237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238   (eval $ac_try) 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; } &&
6242          { ac_try='test -s conftest.$ac_objext'
6243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244   (eval $ac_try) 2>&5
6245   ac_status=$?
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); }; }; then
6248   ac_cv_prog_cc_w_no_overlength_strings=yes
6249 else
6250   echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6252
6253 ac_cv_prog_cc_w_no_overlength_strings=no
6254 fi
6255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6256   CFLAGS="$save_CFLAGS"
6257
6258 fi
6259 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6260 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6261
6262 strict_warn=
6263 if test $ac_cv_prog_cc_w_no_long_long = yes \
6264    && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6265    && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6266   strict_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6267 fi
6268
6269 # Add -Wold-style-definition if it's accepted
6270 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6271 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6272 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   save_CFLAGS="$CFLAGS"
6276   CFLAGS="-Wold-style-definition"
6277   cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h.  */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h.  */
6283
6284 _ACEOF
6285 rm -f conftest.$ac_objext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6287   (eval $ac_compile) 2>conftest.er1
6288   ac_status=$?
6289   grep -v '^ *+' conftest.er1 >conftest.err
6290   rm -f conftest.er1
6291   cat conftest.err >&5
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); } &&
6294          { ac_try='test -z "$ac_c_werror_flag"
6295                          || test ! -s conftest.err'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; } &&
6301          { ac_try='test -s conftest.$ac_objext'
6302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303   (eval $ac_try) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }; }; then
6307   ac_cv_prog_cc_w_old_style_definition=yes
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 ac_cv_prog_cc_w_old_style_definition=no
6313 fi
6314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6315   CFLAGS="$save_CFLAGS"
6316
6317 fi
6318 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6319 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6320 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6321   strict_warn="${strict_warn} -Wold-style-definition"
6322 fi
6323
6324 # Add -Wmissing-format-attribute if it's accepted
6325 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6326 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6327 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   save_CFLAGS="$CFLAGS"
6331   CFLAGS="-Wmissing-format-attribute"
6332   cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338
6339 _ACEOF
6340 rm -f conftest.$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342   (eval $ac_compile) 2>conftest.er1
6343   ac_status=$?
6344   grep -v '^ *+' conftest.er1 >conftest.err
6345   rm -f conftest.er1
6346   cat conftest.err >&5
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); } &&
6349          { ac_try='test -z "$ac_c_werror_flag"
6350                          || test ! -s conftest.err'
6351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352   (eval $ac_try) 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); }; } &&
6356          { ac_try='test -s conftest.$ac_objext'
6357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358   (eval $ac_try) 2>&5
6359   ac_status=$?
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); }; }; then
6362   ac_cv_prog_cc_w_missing_format_attribute=yes
6363 else
6364   echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367 ac_cv_prog_cc_w_missing_format_attribute=no
6368 fi
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370   CFLAGS="$save_CFLAGS"
6371
6372 fi
6373 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6374 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6375 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6376   strict_warn="${strict_warn} -Wmissing-format-attribute"
6377 fi
6378
6379 # Enable -Werror, period.
6380 # Check whether --enable-werror_always or --disable-werror_always was given.
6381 if test "${enable_werror_always+set}" = set; then
6382   enableval="$enable_werror_always"
6383
6384 else
6385   enable_werror_always=no
6386 fi;
6387 if test x${enable_werror_always} = xyes ; then
6388   strict_warn="${strict_warn} -Werror"
6389 fi
6390
6391
6392 # Get C++ compatibility warning flag, if supported.
6393 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6394 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6395 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   save_CFLAGS="$CFLAGS"
6399   CFLAGS="-Wc++-compat"
6400   cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410   (eval $ac_compile) 2>conftest.er1
6411   ac_status=$?
6412   grep -v '^ *+' conftest.er1 >conftest.err
6413   rm -f conftest.er1
6414   cat conftest.err >&5
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } &&
6417          { ac_try='test -z "$ac_c_werror_flag"
6418                          || test ! -s conftest.err'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; } &&
6424          { ac_try='test -s conftest.$ac_objext'
6425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426   (eval $ac_try) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; }; then
6430   ac_cv_prog_cc_w_cxx_compat=yes
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 ac_cv_prog_cc_w_cxx_compat=no
6436 fi
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438   CFLAGS="$save_CFLAGS"
6439
6440 fi
6441 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6442 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6443 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6444   cxx_compat_warn="-Wc++-compat"
6445 fi
6446
6447
6448
6449 # If the native compiler is GCC, we can enable warnings even in stage1.
6450 # That's useful for people building cross-compilers, or just running a
6451 # quick `make'.
6452 warn_cflags=
6453 if test "x$GCC" = "xyes"; then
6454   warn_cflags='$(GCC_WARN_CFLAGS)'
6455 fi
6456
6457
6458 # Enable expensive internal checks
6459 is_release=
6460 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6461   is_release=yes
6462 fi
6463
6464 # Check whether --enable-checking or --disable-checking was given.
6465 if test "${enable_checking+set}" = set; then
6466   enableval="$enable_checking"
6467   ac_checking_flags="${enableval}"
6468 else
6469
6470 # Determine the default checks.
6471 if test x$is_release = x ; then
6472   ac_checking_flags=yes
6473 else
6474   ac_checking_flags=release
6475 fi
6476 fi;
6477 ac_assert_checking=1
6478 ac_checking=
6479 ac_fold_checking=
6480 ac_gc_checking=
6481 ac_gc_always_collect=
6482 ac_rtl_checking=
6483 ac_rtlflag_checking=
6484 ac_runtime_checking=1
6485 ac_tree_checking=
6486 ac_valgrind_checking=
6487 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6488 for check in $ac_checking_flags
6489 do
6490         case $check in
6491         # these set all the flags to specific states
6492         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6493                         ac_fold_checking= ; ac_gc_checking=1 ;
6494                         ac_gc_always_collect= ; ac_rtl_checking= ;
6495                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6496                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6497         no|none)        ac_assert_checking= ; ac_checking= ;
6498                         ac_fold_checking= ; ac_gc_checking= ;
6499                         ac_gc_always_collect= ; ac_rtl_checking= ;
6500                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6501                         ac_tree_checking= ; ac_valgrind_checking= ;;
6502         all)            ac_assert_checking=1 ; ac_checking=1 ;
6503                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6504                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6505                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6506                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6507         release)        ac_assert_checking=1 ; ac_checking= ;
6508                         ac_fold_checking= ; ac_gc_checking= ;
6509                         ac_gc_always_collect= ; ac_rtl_checking= ;
6510                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6511                         ac_tree_checking= ; ac_valgrind_checking= ;;
6512         # these enable particular checks
6513         assert)         ac_assert_checking=1 ;;
6514         fold)           ac_fold_checking=1 ;;
6515         gc)             ac_gc_checking=1 ;;
6516         gcac)           ac_gc_always_collect=1 ;;
6517         misc)           ac_checking=1 ;;
6518         rtl)            ac_rtl_checking=1 ;;
6519         rtlflag)        ac_rtlflag_checking=1 ;;
6520         runtime)        ac_runtime_checking=1 ;;
6521         tree)           ac_tree_checking=1 ;;
6522         valgrind)       ac_valgrind_checking=1 ;;
6523         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6524 echo "$as_me: error: unknown check category $check" >&2;}
6525    { (exit 1); exit 1; }; } ;;
6526         esac
6527 done
6528 IFS="$ac_save_IFS"
6529
6530 nocommon_flag=""
6531 if test x$ac_checking != x ; then
6532
6533 cat >>confdefs.h <<\_ACEOF
6534 #define ENABLE_CHECKING 1
6535 _ACEOF
6536
6537   nocommon_flag=-fno-common
6538 fi
6539
6540 if test x$ac_assert_checking != x ; then
6541
6542 cat >>confdefs.h <<\_ACEOF
6543 #define ENABLE_ASSERT_CHECKING 1
6544 _ACEOF
6545
6546 fi
6547
6548 if test x$ac_runtime_checking != x ; then
6549
6550 cat >>confdefs.h <<\_ACEOF
6551 #define ENABLE_RUNTIME_CHECKING 1
6552 _ACEOF
6553
6554 fi
6555 if test x$ac_tree_checking != x ; then
6556
6557 cat >>confdefs.h <<\_ACEOF
6558 #define ENABLE_TREE_CHECKING 1
6559 _ACEOF
6560
6561   TREEBROWSER=tree-browser.o
6562 fi
6563
6564 if test x$ac_rtl_checking != x ; then
6565
6566 cat >>confdefs.h <<\_ACEOF
6567 #define ENABLE_RTL_CHECKING 1
6568 _ACEOF
6569
6570 fi
6571 if test x$ac_rtlflag_checking != x ; then
6572
6573 cat >>confdefs.h <<\_ACEOF
6574 #define ENABLE_RTL_FLAG_CHECKING 1
6575 _ACEOF
6576
6577 fi
6578 if test x$ac_gc_checking != x ; then
6579
6580 cat >>confdefs.h <<\_ACEOF
6581 #define ENABLE_GC_CHECKING 1
6582 _ACEOF
6583
6584 fi
6585 if test x$ac_gc_always_collect != x ; then
6586
6587 cat >>confdefs.h <<\_ACEOF
6588 #define ENABLE_GC_ALWAYS_COLLECT 1
6589 _ACEOF
6590
6591 fi
6592 if test x$ac_fold_checking != x ; then
6593
6594 cat >>confdefs.h <<\_ACEOF
6595 #define ENABLE_FOLD_CHECKING 1
6596 _ACEOF
6597
6598 fi
6599 valgrind_path_defines=
6600 valgrind_command=
6601
6602 if test "${ac_cv_header_valgrind_h+set}" = set; then
6603   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6604 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6605 if test "${ac_cv_header_valgrind_h+set}" = set; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 fi
6608 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6609 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6610 else
6611   # Is the header compilable?
6612 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6613 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6614 cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h.  */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h.  */
6620 $ac_includes_default
6621 #include <valgrind.h>
6622 _ACEOF
6623 rm -f conftest.$ac_objext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625   (eval $ac_compile) 2>conftest.er1
6626   ac_status=$?
6627   grep -v '^ *+' conftest.er1 >conftest.err
6628   rm -f conftest.er1
6629   cat conftest.err >&5
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); } &&
6632          { ac_try='test -z "$ac_c_werror_flag"
6633                          || test ! -s conftest.err'
6634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635   (eval $ac_try) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); }; } &&
6639          { ac_try='test -s conftest.$ac_objext'
6640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641   (eval $ac_try) 2>&5
6642   ac_status=$?
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); }; }; then
6645   ac_header_compiler=yes
6646 else
6647   echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6649
6650 ac_header_compiler=no
6651 fi
6652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6654 echo "${ECHO_T}$ac_header_compiler" >&6
6655
6656 # Is the header present?
6657 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6658 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6659 cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h.  */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h.  */
6665 #include <valgrind.h>
6666 _ACEOF
6667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6669   ac_status=$?
6670   grep -v '^ *+' conftest.er1 >conftest.err
6671   rm -f conftest.er1
6672   cat conftest.err >&5
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); } >/dev/null; then
6675   if test -s conftest.err; then
6676     ac_cpp_err=$ac_c_preproc_warn_flag
6677     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6678   else
6679     ac_cpp_err=
6680   fi
6681 else
6682   ac_cpp_err=yes
6683 fi
6684 if test -z "$ac_cpp_err"; then
6685   ac_header_preproc=yes
6686 else
6687   echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6689
6690   ac_header_preproc=no
6691 fi
6692 rm -f conftest.err conftest.$ac_ext
6693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6694 echo "${ECHO_T}$ac_header_preproc" >&6
6695
6696 # So?  What about this header?
6697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6698   yes:no: )
6699     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6700 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6701     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6702 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6703     ac_header_preproc=yes
6704     ;;
6705   no:yes:* )
6706     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6707 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6708     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6709 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6710     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6711 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6712     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6713 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6714     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6715 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6716     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6717 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6718     (
6719       cat <<\_ASBOX
6720 ## ------------------------------------------ ##
6721 ## Report this to the AC_PACKAGE_NAME lists.  ##
6722 ## ------------------------------------------ ##
6723 _ASBOX
6724     ) |
6725       sed "s/^/$as_me: WARNING:     /" >&2
6726     ;;
6727 esac
6728 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6729 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6730 if test "${ac_cv_header_valgrind_h+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   ac_cv_header_valgrind_h=$ac_header_preproc
6734 fi
6735 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6736 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6737
6738 fi
6739 if test $ac_cv_header_valgrind_h = yes; then
6740   have_valgrind_h=yes
6741 else
6742   have_valgrind_h=no
6743 fi
6744
6745
6746
6747 if test x$ac_valgrind_checking != x ; then
6748   # It is certainly possible that there's valgrind but no valgrind.h.
6749   # GCC relies on making annotations so we must have both.
6750   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6751 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6752   cat >conftest.$ac_ext <<_ACEOF
6753 /* confdefs.h.  */
6754 _ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h.  */
6758 #include <valgrind/memcheck.h>
6759 #ifndef VALGRIND_DISCARD
6760 #error VALGRIND_DISCARD not defined
6761 #endif
6762 _ACEOF
6763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6765   ac_status=$?
6766   grep -v '^ *+' conftest.er1 >conftest.err
6767   rm -f conftest.er1
6768   cat conftest.err >&5
6769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770   (exit $ac_status); } >/dev/null; then
6771   if test -s conftest.err; then
6772     ac_cpp_err=$ac_c_preproc_warn_flag
6773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6774   else
6775     ac_cpp_err=
6776   fi
6777 else
6778   ac_cpp_err=yes
6779 fi
6780 if test -z "$ac_cpp_err"; then
6781   gcc_cv_header_valgrind_memcheck_h=yes
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786   gcc_cv_header_valgrind_memcheck_h=no
6787 fi
6788 rm -f conftest.err conftest.$ac_ext
6789   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6790 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6791   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6792 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6793   cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h.  */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h.  */
6799 #include <memcheck.h>
6800 #ifndef VALGRIND_DISCARD
6801 #error VALGRIND_DISCARD not defined
6802 #endif
6803 _ACEOF
6804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6806   ac_status=$?
6807   grep -v '^ *+' conftest.er1 >conftest.err
6808   rm -f conftest.er1
6809   cat conftest.err >&5
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); } >/dev/null; then
6812   if test -s conftest.err; then
6813     ac_cpp_err=$ac_c_preproc_warn_flag
6814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6815   else
6816     ac_cpp_err=
6817   fi
6818 else
6819   ac_cpp_err=yes
6820 fi
6821 if test -z "$ac_cpp_err"; then
6822   gcc_cv_header_memcheck_h=yes
6823 else
6824   echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827   gcc_cv_header_memcheck_h=no
6828 fi
6829 rm -f conftest.err conftest.$ac_ext
6830   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6831 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6832
6833 # Prepare PATH_SEPARATOR.
6834 # The user is always right.
6835 if test "${PATH_SEPARATOR+set}" != set; then
6836   echo "#! /bin/sh" >conf$$.sh
6837   echo  "exit 0"   >>conf$$.sh
6838   chmod +x conf$$.sh
6839   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6840     PATH_SEPARATOR=';'
6841   else
6842     PATH_SEPARATOR=:
6843   fi
6844   rm -f conf$$.sh
6845 fi
6846
6847 # Find out how to test for executable files. Don't use a zero-byte file,
6848 # as systems may use methods other than mode bits to determine executability.
6849 cat >conf$$.file <<_ASEOF
6850 #! /bin/sh
6851 exit 0
6852 _ASEOF
6853 chmod +x conf$$.file
6854 if test -x conf$$.file >/dev/null 2>&1; then
6855   ac_executable_p="test -x"
6856 else
6857   ac_executable_p="test -f"
6858 fi
6859 rm -f conf$$.file
6860
6861 # Extract the first word of "valgrind", so it can be a program name with args.
6862 set dummy valgrind; ac_word=$2
6863 echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6865 if test "${ac_cv_path_valgrind_path+set}" = set; then
6866   echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868   case "$valgrind_path" in
6869   [\\/]* | ?:[\\/]*)
6870     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6871     ;;
6872   *)
6873     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6874     for ac_dir in $PATH; do
6875       IFS="$ac_save_IFS"
6876       test -z "$ac_dir" && ac_dir=.
6877       for ac_exec_ext in '' $ac_executable_extensions; do
6878         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6879           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6880             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6881             break 2
6882           fi
6883         fi
6884       done
6885     done
6886     IFS="$ac_save_IFS"
6887     ;;
6888 esac
6889 fi
6890 valgrind_path="$ac_cv_path_valgrind_path"
6891 if test -n "$valgrind_path"; then
6892   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6893 echo "${ECHO_T}$valgrind_path" >&6
6894 else
6895   echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6
6897 fi
6898
6899   if test "x$valgrind_path" = "x" \
6900     || (test $have_valgrind_h = no \
6901         && test $gcc_cv_header_memcheck_h = no \
6902         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6903         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6904 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6905    { (exit 1); exit 1; }; }
6906   fi
6907   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6908   valgrind_command="$valgrind_path -q"
6909
6910 cat >>confdefs.h <<\_ACEOF
6911 #define ENABLE_VALGRIND_CHECKING 1
6912 _ACEOF
6913
6914   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6915
6916 cat >>confdefs.h <<\_ACEOF
6917 #define HAVE_VALGRIND_MEMCHECK_H 1
6918 _ACEOF
6919
6920   fi
6921   if test $gcc_cv_header_memcheck_h = yes; then
6922
6923 cat >>confdefs.h <<\_ACEOF
6924 #define HAVE_MEMCHECK_H 1
6925 _ACEOF
6926
6927   fi
6928 fi
6929
6930
6931
6932 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6933 if test "${enable_mapped_location+set}" = set; then
6934   enableval="$enable_mapped_location"
6935
6936 else
6937   enable_mapped_location=no
6938 fi;
6939
6940 if test "$enable_mapped_location" = yes ; then
6941
6942 cat >>confdefs.h <<\_ACEOF
6943 #define USE_MAPPED_LOCATION 1
6944 _ACEOF
6945
6946 fi
6947
6948 # Enable code coverage collection
6949 # Check whether --enable-coverage or --disable-coverage was given.
6950 if test "${enable_coverage+set}" = set; then
6951   enableval="$enable_coverage"
6952   case "${enableval}" in
6953   yes|noopt)
6954     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6955     ;;
6956   opt)
6957     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6958     ;;
6959   no)
6960     # a.k.a. --disable-coverage
6961     coverage_flags=""
6962     ;;
6963   *)
6964     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6965 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6966    { (exit 1); exit 1; }; }
6967     ;;
6968 esac
6969 else
6970   coverage_flags=""
6971 fi;
6972
6973
6974 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6975 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6976   enableval="$enable_gather_detailed_mem_stats"
6977
6978 else
6979   enable_gather_detailed_mem_stats=no
6980 fi;
6981 if test x$enable_gather_detailed_mem_stats = xyes ; then
6982
6983 cat >>confdefs.h <<\_ACEOF
6984 #define GATHER_STATISTICS 1
6985 _ACEOF
6986
6987 fi
6988
6989 # -------------------------------
6990 # Miscenalleous configure options
6991 # -------------------------------
6992
6993 # With stabs
6994
6995 # Check whether --with-stabs or --without-stabs was given.
6996 if test "${with_stabs+set}" = set; then
6997   withval="$with_stabs"
6998   stabs="$with_stabs"
6999 else
7000   stabs=no
7001 fi;
7002
7003 # Determine whether or not multilibs are enabled.
7004 # Check whether --enable-multilib or --disable-multilib was given.
7005 if test "${enable_multilib+set}" = set; then
7006   enableval="$enable_multilib"
7007
7008 else
7009   enable_multilib=yes
7010 fi;
7011
7012
7013 # Enable __cxa_atexit for C++.
7014 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7015 if test "${enable___cxa_atexit+set}" = set; then
7016   enableval="$enable___cxa_atexit"
7017
7018 fi;
7019
7020 # Enable C extension for decimal float if target supports it.
7021 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7022 if test "${enable_decimal_float+set}" = set; then
7023   enableval="$enable_decimal_float"
7024
7025   case $enable_decimal_float in
7026     yes | no | bid | dpd) ;;
7027     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7028 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7029 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7030 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7031    { (exit 1); exit 1; }; } ;;
7032   esac
7033
7034 else
7035
7036   case $target in
7037     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7038       enable_decimal_float=yes
7039       ;;
7040     *)
7041       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7042 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7043       enable_decimal_float=no
7044       ;;
7045   esac
7046
7047 fi;
7048
7049 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7050
7051 cat >>confdefs.h <<_ACEOF
7052 #define ENABLE_DECIMAL_FLOAT $dfp
7053 _ACEOF
7054
7055
7056 # x86's use BID format instead of DPD
7057 case x$enable_decimal_float in
7058   xyes)
7059     case $target in
7060       i?86*-*-linux* | x86_64*-*-linux*)
7061         enable_decimal_float=bid
7062         ;;
7063       *)
7064         enable_decimal_float=dpd
7065         ;;
7066     esac
7067     ;;
7068   xno)
7069     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7070     # dependency on libdecnumber.
7071     enable_decimal_float=dpd
7072     ;;
7073 esac
7074
7075
7076 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7077
7078 cat >>confdefs.h <<_ACEOF
7079 #define ENABLE_DECIMAL_BID_FORMAT $bid
7080 _ACEOF
7081
7082
7083 # Enable threads
7084 # Pass with no value to take the default
7085 # Pass with a value to specify a thread package
7086 # Check whether --enable-threads or --disable-threads was given.
7087 if test "${enable_threads+set}" = set; then
7088   enableval="$enable_threads"
7089
7090 else
7091   enable_threads=''
7092 fi;
7093
7094 # Check whether --enable-tls or --disable-tls was given.
7095 if test "${enable_tls+set}" = set; then
7096   enableval="$enable_tls"
7097
7098   case $enable_tls in
7099     yes | no) ;;
7100     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7101 Valid choices are 'yes' and 'no'." >&5
7102 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7103 Valid choices are 'yes' and 'no'." >&2;}
7104    { (exit 1); exit 1; }; } ;;
7105   esac
7106
7107 else
7108   enable_tls=''
7109 fi;
7110
7111 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7112 if test "${enable_objc_gc+set}" = set; then
7113   enableval="$enable_objc_gc"
7114   if test x$enable_objc_gc = xno; then
7115         objc_boehm_gc=''
7116 else
7117         objc_boehm_gc=1
7118 fi
7119 else
7120   objc_boehm_gc=''
7121 fi;
7122
7123
7124 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7125 if test "${with_dwarf2+set}" = set; then
7126   withval="$with_dwarf2"
7127   dwarf2="$with_dwarf2"
7128 else
7129   dwarf2=no
7130 fi;
7131
7132 # Check whether --enable-shared or --disable-shared was given.
7133 if test "${enable_shared+set}" = set; then
7134   enableval="$enable_shared"
7135
7136   case $enable_shared in
7137   yes | no) ;;
7138   *)
7139     enable_shared=no
7140     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7141     for pkg in $enableval; do
7142       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7143         enable_shared=yes
7144       fi
7145     done
7146     IFS="$ac_save_ifs"
7147     ;;
7148   esac
7149
7150 else
7151   enable_shared=yes
7152 fi;
7153
7154
7155
7156 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7157 if test "${with_build_sysroot+set}" = set; then
7158   withval="$with_build_sysroot"
7159
7160 fi;
7161
7162
7163 # Check whether --with-sysroot or --without-sysroot was given.
7164 if test "${with_sysroot+set}" = set; then
7165   withval="$with_sysroot"
7166
7167  case ${with_sysroot} in
7168  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7169  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7170  esac
7171
7172  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7173  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7174
7175  if test "x$prefix" = xNONE; then
7176   test_prefix=/usr/local
7177  else
7178   test_prefix=$prefix
7179  fi
7180  if test "x$exec_prefix" = xNONE; then
7181   test_exec_prefix=$test_prefix
7182  else
7183   test_exec_prefix=$exec_prefix
7184  fi
7185  case ${TARGET_SYSTEM_ROOT} in
7186  "${test_prefix}"|"${test_prefix}/"*|\
7187  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7188  '${prefix}'|'${prefix}/'*|\
7189  '${exec_prefix}'|'${exec_prefix}/'*)
7190    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7191    TARGET_SYSTEM_ROOT_DEFINE="$t"
7192    ;;
7193  esac
7194
7195 else
7196
7197  TARGET_SYSTEM_ROOT=
7198  TARGET_SYSTEM_ROOT_DEFINE=
7199  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7200
7201 fi;
7202
7203
7204
7205
7206 # Build with intermodule optimisations
7207 # Check whether --enable-intermodule or --disable-intermodule was given.
7208 if test "${enable_intermodule+set}" = set; then
7209   enableval="$enable_intermodule"
7210   case ${enable_intermodule} in
7211   yes) onestep="-onestep";;
7212   *) onestep="";;
7213 esac
7214 else
7215   onestep=""
7216 fi;
7217
7218
7219 # Sanity check enable_languages in case someone does not run the toplevel
7220 # configure # script.
7221 # Check whether --enable-languages or --disable-languages was given.
7222 if test "${enable_languages+set}" = set; then
7223   enableval="$enable_languages"
7224   case ,${enable_languages}, in
7225        ,,|,yes,)
7226                 # go safe -- we cannot be much sure without the toplevel
7227                 # configure's
7228                 # analysis of which target libs are present and usable
7229                 enable_languages=c
7230                 ;;
7231          *,all,*)
7232                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7233 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7234    { (exit 1); exit 1; }; }
7235                 ;;
7236         *,c,*)
7237                 ;;
7238         *)
7239                 enable_languages=c,${enable_languages}
7240                 ;;
7241 esac
7242 else
7243   enable_languages=c
7244 fi;
7245
7246 # Used by documentation targets
7247
7248
7249
7250
7251 # -------------------------
7252 # Checks for other programs
7253 # -------------------------
7254
7255 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7256 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7257 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7258 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7259   echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261   cat >conftest.make <<\_ACEOF
7262 all:
7263         @echo 'ac_maketemp="$(MAKE)"'
7264 _ACEOF
7265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7266 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7267 if test -n "$ac_maketemp"; then
7268   eval ac_cv_prog_make_${ac_make}_set=yes
7269 else
7270   eval ac_cv_prog_make_${ac_make}_set=no
7271 fi
7272 rm -f conftest.make
7273 fi
7274 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7275   echo "$as_me:$LINENO: result: yes" >&5
7276 echo "${ECHO_T}yes" >&6
7277   SET_MAKE=
7278 else
7279   echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6
7281   SET_MAKE="MAKE=${MAKE-make}"
7282 fi
7283
7284
7285 # Find some useful tools
7286 for ac_prog in gawk mawk nawk awk
7287 do
7288   # Extract the first word of "$ac_prog", so it can be a program name with args.
7289 set dummy $ac_prog; ac_word=$2
7290 echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7292 if test "${ac_cv_prog_AWK+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   if test -n "$AWK"; then
7296   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303   for ac_exec_ext in '' $ac_executable_extensions; do
7304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305     ac_cv_prog_AWK="$ac_prog"
7306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310 done
7311
7312 fi
7313 fi
7314 AWK=$ac_cv_prog_AWK
7315 if test -n "$AWK"; then
7316   echo "$as_me:$LINENO: result: $AWK" >&5
7317 echo "${ECHO_T}$AWK" >&6
7318 else
7319   echo "$as_me:$LINENO: result: no" >&5
7320 echo "${ECHO_T}no" >&6
7321 fi
7322
7323   test -n "$AWK" && break
7324 done
7325
7326 # We need awk to create options.c and options.h.
7327 # Bail out if it's missing.
7328 case ${AWK} in
7329   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7330 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7331    { (exit 1); exit 1; }; } ;;
7332 esac
7333
7334 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7335 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7336 if test "${gcc_cv_prog_LN_S+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   rm -f conftestdata_t
7340 echo >conftestdata_f
7341 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7342 then
7343   gcc_cv_prog_LN_S="ln -s"
7344 else
7345   if ln conftestdata_f conftestdata_t 2>/dev/null
7346   then
7347     gcc_cv_prog_LN_S=ln
7348   else
7349     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7350     then
7351       gcc_cv_prog_LN_S="cp -p"
7352     else
7353       gcc_cv_prog_LN_S=cp
7354     fi
7355   fi
7356 fi
7357 rm -f conftestdata_f conftestdata_t
7358
7359 fi
7360 LN_S="$gcc_cv_prog_LN_S"
7361 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7362   echo "$as_me:$LINENO: result: yes" >&5
7363 echo "${ECHO_T}yes" >&6
7364 else
7365   if test "$gcc_cv_prog_LN_S" = "ln"; then
7366     echo "$as_me:$LINENO: result: no, using ln" >&5
7367 echo "${ECHO_T}no, using ln" >&6
7368   else
7369     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7370 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7371   fi
7372 fi
7373
7374 echo "$as_me:$LINENO: checking whether ln works" >&5
7375 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7376 if test "${acx_cv_prog_LN+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   rm -f conftestdata_t
7380 echo >conftestdata_f
7381 if ln conftestdata_f conftestdata_t 2>/dev/null
7382 then
7383   acx_cv_prog_LN=ln
7384 else
7385   acx_cv_prog_LN=no
7386 fi
7387 rm -f conftestdata_f conftestdata_t
7388
7389 fi
7390 if test $acx_cv_prog_LN = no; then
7391   LN="$LN_S"
7392   echo "$as_me:$LINENO: result: no, using $LN" >&5
7393 echo "${ECHO_T}no, using $LN" >&6
7394 else
7395   LN="$acx_cv_prog_LN"
7396   echo "$as_me:$LINENO: result: yes" >&5
7397 echo "${ECHO_T}yes" >&6
7398 fi
7399
7400 if test -n "$ac_tool_prefix"; then
7401   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7403 echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7405 if test "${ac_cv_prog_RANLIB+set}" = set; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   if test -n "$RANLIB"; then
7409   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416   for ac_exec_ext in '' $ac_executable_extensions; do
7417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423 done
7424
7425 fi
7426 fi
7427 RANLIB=$ac_cv_prog_RANLIB
7428 if test -n "$RANLIB"; then
7429   echo "$as_me:$LINENO: result: $RANLIB" >&5
7430 echo "${ECHO_T}$RANLIB" >&6
7431 else
7432   echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6
7434 fi
7435
7436 fi
7437 if test -z "$ac_cv_prog_RANLIB"; then
7438   ac_ct_RANLIB=$RANLIB
7439   # Extract the first word of "ranlib", so it can be a program name with args.
7440 set dummy ranlib; ac_word=$2
7441 echo "$as_me:$LINENO: checking for $ac_word" >&5
7442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7443 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7444   echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446   if test -n "$ac_ct_RANLIB"; then
7447   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454   for ac_exec_ext in '' $ac_executable_extensions; do
7455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456     ac_cv_prog_ac_ct_RANLIB="ranlib"
7457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461 done
7462
7463   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7464 fi
7465 fi
7466 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7467 if test -n "$ac_ct_RANLIB"; then
7468   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7469 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7470 else
7471   echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6
7473 fi
7474
7475   RANLIB=$ac_ct_RANLIB
7476 else
7477   RANLIB="$ac_cv_prog_RANLIB"
7478 fi
7479
7480 case "${host}" in
7481 *-*-darwin*)
7482   # By default, the Darwin ranlib will not treat common symbols as
7483   # definitions when  building the archive table of contents.  Other
7484   # ranlibs do that; pass an option to the Darwin ranlib that makes
7485   # it behave similarly.
7486   ranlib_flags="-c"
7487   ;;
7488 *)
7489   ranlib_flags=""
7490 esac
7491
7492
7493 # Find a good install program.  We prefer a C program (faster),
7494 # so one script is as good as another.  But avoid the broken or
7495 # incompatible versions:
7496 # SysV /etc/install, /usr/sbin/install
7497 # SunOS /usr/etc/install
7498 # IRIX /sbin/install
7499 # AIX /bin/install
7500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7502 # ./install, which can be erroneously created by make from ./install.sh.
7503 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7504 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7505 if test -z "$INSTALL"; then
7506 if test "${ac_cv_path_install+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7510   for ac_dir in $PATH; do
7511     # Account for people who put trailing slashes in PATH elements.
7512     case "$ac_dir/" in
7513     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7514     *)
7515       # OSF1 and SCO ODT 3.0 have their own names for install.
7516       for ac_prog in ginstall scoinst install; do
7517         if test -f $ac_dir/$ac_prog; then
7518           if test $ac_prog = install &&
7519             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7520             # AIX install.  It has an incompatible calling convention.
7521             # OSF/1 installbsd also uses dspmsg, but is usable.
7522             :
7523           else
7524             ac_cv_path_install="$ac_dir/$ac_prog -c"
7525             break 2
7526           fi
7527         fi
7528       done
7529       ;;
7530     esac
7531   done
7532   IFS="$ac_save_IFS"
7533
7534 fi
7535   if test "${ac_cv_path_install+set}" = set; then
7536     INSTALL="$ac_cv_path_install"
7537   else
7538     # As a last resort, use the slow shell script.  We don't cache a
7539     # path for INSTALL within a source directory, because that will
7540     # break other packages using the cache if that directory is
7541     # removed, or if the path is relative.
7542     INSTALL="$ac_install_sh"
7543   fi
7544 fi
7545 echo "$as_me:$LINENO: result: $INSTALL" >&5
7546 echo "${ECHO_T}$INSTALL" >&6
7547
7548 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7549 # It thinks the first close brace ends the variable substitution.
7550 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7551
7552 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7553
7554
7555 # See if cmp has --ignore-initial.
7556 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7557 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7558 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561    echo abfoo >t1
7562   echo cdfoo >t2
7563   gcc_cv_prog_cmp_skip=slowcompare
7564   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7565     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7566       :
7567     else
7568       gcc_cv_prog_cmp_skip=gnucompare
7569     fi
7570   fi
7571   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7572     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7573       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7574         :
7575       else
7576         gcc_cv_prog_cmp_skip=fastcompare
7577       fi
7578     fi
7579   fi
7580   rm t1 t2
7581
7582 fi
7583 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7584 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7585 make_compare_target=$gcc_cv_prog_cmp_skip
7586
7587
7588
7589 # See if we have the mktemp command.
7590 # Extract the first word of "mktemp", so it can be a program name with args.
7591 set dummy mktemp; ac_word=$2
7592 echo "$as_me:$LINENO: checking for $ac_word" >&5
7593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7594 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   if test -n "$have_mktemp_command"; then
7598   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603   IFS=$as_save_IFS
7604   test -z "$as_dir" && as_dir=.
7605   for ac_exec_ext in '' $ac_executable_extensions; do
7606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607     ac_cv_prog_have_mktemp_command="yes"
7608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609     break 2
7610   fi
7611 done
7612 done
7613
7614   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7615 fi
7616 fi
7617 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7618 if test -n "$have_mktemp_command"; then
7619   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7620 echo "${ECHO_T}$have_mktemp_command" >&6
7621 else
7622   echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6
7624 fi
7625
7626
7627 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7628
7629 # See if makeinfo has been installed and is modern enough
7630 # that we can use it.
7631
7632 ac_executable_extensions="$build_exeext"
7633
7634 # Extract the first word of "makeinfo", so it can be a program name with args.
7635 set dummy makeinfo; ac_word=$2
7636 echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7638 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7639   echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641   if test -n "$MAKEINFO"; then
7642   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7643 else
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649   for ac_exec_ext in '' $ac_executable_extensions; do
7650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651     ac_cv_prog_MAKEINFO="makeinfo"
7652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656 done
7657
7658 fi
7659 fi
7660 MAKEINFO=$ac_cv_prog_MAKEINFO
7661 if test -n "$MAKEINFO"; then
7662   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7663 echo "${ECHO_T}$MAKEINFO" >&6
7664 else
7665   echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6
7667 fi
7668
7669 if test -n "$MAKEINFO"; then
7670   # Found it, now check the version.
7671   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7672 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7673 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676     ac_prog_version=`$MAKEINFO --version 2>&1 |
7677                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7678   echo "configure:7678: version of makeinfo is $ac_prog_version" >&5
7679   case $ac_prog_version in
7680     '')     gcc_cv_prog_makeinfo_modern=no;;
7681     4.[4-9]*)
7682             gcc_cv_prog_makeinfo_modern=yes;;
7683     *)      gcc_cv_prog_makeinfo_modern=no;;
7684   esac
7685
7686 fi
7687 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7688 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7689 else
7690   gcc_cv_prog_makeinfo_modern=no
7691 fi
7692
7693 if test $gcc_cv_prog_makeinfo_modern = no; then
7694   MAKEINFO="$MISSING makeinfo"
7695   { echo "$as_me:$LINENO: WARNING:
7696 *** Makeinfo is missing or too old.
7697 *** Info documentation will not be built." >&5
7698 echo "$as_me: WARNING:
7699 *** Makeinfo is missing or too old.
7700 *** Info documentation will not be built." >&2;}
7701   BUILD_INFO=
7702 else
7703   BUILD_INFO=info
7704 fi
7705
7706
7707 # Is pod2man recent enough to regenerate manpages?
7708 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7709 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7710 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7711   echo "$as_me:$LINENO: result: yes" >&5
7712 echo "${ECHO_T}yes" >&6
7713   GENERATED_MANPAGES=generated-manpages
7714 else
7715   echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6
7717   GENERATED_MANPAGES=
7718 fi
7719
7720
7721 # How about lex?
7722 for ac_prog in flex
7723 do
7724   # Extract the first word of "$ac_prog", so it can be a program name with args.
7725 set dummy $ac_prog; ac_word=$2
7726 echo "$as_me:$LINENO: checking for $ac_word" >&5
7727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7728 if test "${ac_cv_prog_FLEX+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   if test -n "$FLEX"; then
7732   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737   IFS=$as_save_IFS
7738   test -z "$as_dir" && as_dir=.
7739   for ac_exec_ext in '' $ac_executable_extensions; do
7740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741     ac_cv_prog_FLEX="$ac_prog"
7742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743     break 2
7744   fi
7745 done
7746 done
7747
7748 fi
7749 fi
7750 FLEX=$ac_cv_prog_FLEX
7751 if test -n "$FLEX"; then
7752   echo "$as_me:$LINENO: result: $FLEX" >&5
7753 echo "${ECHO_T}$FLEX" >&6
7754 else
7755   echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6
7757 fi
7758
7759   test -n "$FLEX" && break
7760 done
7761 test -n "$FLEX" || FLEX="$MISSING flex"
7762
7763
7764 # Bison?
7765 for ac_prog in bison
7766 do
7767   # Extract the first word of "$ac_prog", so it can be a program name with args.
7768 set dummy $ac_prog; ac_word=$2
7769 echo "$as_me:$LINENO: checking for $ac_word" >&5
7770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7771 if test "${ac_cv_prog_BISON+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   if test -n "$BISON"; then
7775   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   test -z "$as_dir" && as_dir=.
7782   for ac_exec_ext in '' $ac_executable_extensions; do
7783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7784     ac_cv_prog_BISON="$ac_prog"
7785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786     break 2
7787   fi
7788 done
7789 done
7790
7791 fi
7792 fi
7793 BISON=$ac_cv_prog_BISON
7794 if test -n "$BISON"; then
7795   echo "$as_me:$LINENO: result: $BISON" >&5
7796 echo "${ECHO_T}$BISON" >&6
7797 else
7798   echo "$as_me:$LINENO: result: no" >&5
7799 echo "${ECHO_T}no" >&6
7800 fi
7801
7802   test -n "$BISON" && break
7803 done
7804 test -n "$BISON" || BISON="$MISSING bison"
7805
7806
7807 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7808 # check for build == host before using them.
7809
7810 # NM
7811 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7812   && test -d ../binutils ; then
7813   NM='$(objdir)/../binutils/nm-new'
7814 else
7815   # Extract the first word of "nm", so it can be a program name with args.
7816 set dummy nm; ac_word=$2
7817 echo "$as_me:$LINENO: checking for $ac_word" >&5
7818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7819 if test "${ac_cv_prog_NM+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   if test -n "$NM"; then
7823   ac_cv_prog_NM="$NM" # Let the user override the test.
7824 else
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7827 do
7828   IFS=$as_save_IFS
7829   test -z "$as_dir" && as_dir=.
7830   for ac_exec_ext in '' $ac_executable_extensions; do
7831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832     ac_cv_prog_NM="nm"
7833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834     break 2
7835   fi
7836 done
7837 done
7838
7839   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7840 fi
7841 fi
7842 NM=$ac_cv_prog_NM
7843 if test -n "$NM"; then
7844   echo "$as_me:$LINENO: result: $NM" >&5
7845 echo "${ECHO_T}$NM" >&6
7846 else
7847   echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6
7849 fi
7850
7851 fi
7852
7853 # AR
7854 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7855   && test -d ../binutils ; then
7856   AR='$(objdir)/../binutils/ar'
7857 else
7858   # Extract the first word of "ar", so it can be a program name with args.
7859 set dummy ar; ac_word=$2
7860 echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7862 if test "${ac_cv_prog_AR+set}" = set; then
7863   echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865   if test -n "$AR"; then
7866   ac_cv_prog_AR="$AR" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871   IFS=$as_save_IFS
7872   test -z "$as_dir" && as_dir=.
7873   for ac_exec_ext in '' $ac_executable_extensions; do
7874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875     ac_cv_prog_AR="ar"
7876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877     break 2
7878   fi
7879 done
7880 done
7881
7882   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7883 fi
7884 fi
7885 AR=$ac_cv_prog_AR
7886 if test -n "$AR"; then
7887   echo "$as_me:$LINENO: result: $AR" >&5
7888 echo "${ECHO_T}$AR" >&6
7889 else
7890   echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6
7892 fi
7893
7894 fi
7895
7896
7897 # --------------------
7898 # Checks for C headers
7899 # --------------------
7900
7901 echo "$as_me:$LINENO: checking for GNU C library" >&5
7902 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7903 if test "${gcc_cv_glibc+set}" = set; then
7904   echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906   cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912 #include <features.h>
7913 int
7914 main ()
7915 {
7916
7917 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7918 #error Not a GNU C library system
7919 #endif
7920   ;
7921   return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7926   (eval $ac_compile) 2>conftest.er1
7927   ac_status=$?
7928   grep -v '^ *+' conftest.er1 >conftest.err
7929   rm -f conftest.er1
7930   cat conftest.err >&5
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } &&
7933          { ac_try='test -z "$ac_c_werror_flag"
7934                          || test ! -s conftest.err'
7935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936   (eval $ac_try) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; } &&
7940          { ac_try='test -s conftest.$ac_objext'
7941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942   (eval $ac_try) 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; }; then
7946   gcc_cv_glibc=yes
7947 else
7948   echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 gcc_cv_glibc=no
7952 fi
7953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7954 fi
7955
7956 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7957 echo "${ECHO_T}$gcc_cv_glibc" >&6
7958 if test $gcc_cv_glibc = yes; then
7959
7960 cat >>confdefs.h <<\_ACEOF
7961 #define _GNU_SOURCE 1
7962 _ACEOF
7963
7964 fi
7965
7966 # Need to reject headers which give warnings, so that the -Werror bootstrap
7967 # works later. *sigh*  This needs to come before all header checks.
7968
7969 ac_c_preproc_warn_flag=yes
7970
7971 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7972 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7973 if test "${ac_cv_header_stdc+set}" = set; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976   cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h.  */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h.  */
7982 #include <stdlib.h>
7983 #include <stdarg.h>
7984 #include <string.h>
7985 #include <float.h>
7986
7987 int
7988 main ()
7989 {
7990
7991   ;
7992   return 0;
7993 }
7994 _ACEOF
7995 rm -f conftest.$ac_objext
7996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7997   (eval $ac_compile) 2>conftest.er1
7998   ac_status=$?
7999   grep -v '^ *+' conftest.er1 >conftest.err
8000   rm -f conftest.er1
8001   cat conftest.err >&5
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); } &&
8004          { ac_try='test -z "$ac_c_werror_flag"
8005                          || test ! -s conftest.err'
8006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007   (eval $ac_try) 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); }; } &&
8011          { ac_try='test -s conftest.$ac_objext'
8012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013   (eval $ac_try) 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); }; }; then
8017   ac_cv_header_stdc=yes
8018 else
8019   echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022 ac_cv_header_stdc=no
8023 fi
8024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8025
8026 if test $ac_cv_header_stdc = yes; then
8027   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8028   cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h.  */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h.  */
8034 #include <string.h>
8035
8036 _ACEOF
8037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8038   $EGREP "memchr" >/dev/null 2>&1; then
8039   :
8040 else
8041   ac_cv_header_stdc=no
8042 fi
8043 rm -f conftest*
8044
8045 fi
8046
8047 if test $ac_cv_header_stdc = yes; then
8048   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8049   cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055 #include <stdlib.h>
8056
8057 _ACEOF
8058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8059   $EGREP "free" >/dev/null 2>&1; then
8060   :
8061 else
8062   ac_cv_header_stdc=no
8063 fi
8064 rm -f conftest*
8065
8066 fi
8067
8068 if test $ac_cv_header_stdc = yes; then
8069   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8070   if test "$cross_compiling" = yes; then
8071   :
8072 else
8073   cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h.  */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h.  */
8079 #include <ctype.h>
8080 #if ((' ' & 0x0FF) == 0x020)
8081 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8082 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8083 #else
8084 # define ISLOWER(c) \
8085                    (('a' <= (c) && (c) <= 'i') \
8086                      || ('j' <= (c) && (c) <= 'r') \
8087                      || ('s' <= (c) && (c) <= 'z'))
8088 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8089 #endif
8090
8091 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8092 int
8093 main ()
8094 {
8095   int i;
8096   for (i = 0; i < 256; i++)
8097     if (XOR (islower (i), ISLOWER (i))
8098         || toupper (i) != TOUPPER (i))
8099       exit(2);
8100   exit (0);
8101 }
8102 _ACEOF
8103 rm -f conftest$ac_exeext
8104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8105   (eval $ac_link) 2>&5
8106   ac_status=$?
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110   (eval $ac_try) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); }; }; then
8114   :
8115 else
8116   echo "$as_me: program exited with status $ac_status" >&5
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8119
8120 ( exit $ac_status )
8121 ac_cv_header_stdc=no
8122 fi
8123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8124 fi
8125 fi
8126 fi
8127 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8128 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8129 if test $ac_cv_header_stdc = yes; then
8130
8131 cat >>confdefs.h <<\_ACEOF
8132 #define STDC_HEADERS 1
8133 _ACEOF
8134
8135 fi
8136
8137 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8138 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8139 if test "${ac_cv_header_time+set}" = set; then
8140   echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8142   cat >conftest.$ac_ext <<_ACEOF
8143 /* confdefs.h.  */
8144 _ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h.  */
8148 #include <sys/types.h>
8149 #include <sys/time.h>
8150 #include <time.h>
8151
8152 int
8153 main ()
8154 {
8155 if ((struct tm *) 0)
8156 return 0;
8157   ;
8158   return 0;
8159 }
8160 _ACEOF
8161 rm -f conftest.$ac_objext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8163   (eval $ac_compile) 2>conftest.er1
8164   ac_status=$?
8165   grep -v '^ *+' conftest.er1 >conftest.err
8166   rm -f conftest.er1
8167   cat conftest.err >&5
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } &&
8170          { ac_try='test -z "$ac_c_werror_flag"
8171                          || test ! -s conftest.err'
8172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173   (eval $ac_try) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); }; } &&
8177          { ac_try='test -s conftest.$ac_objext'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; }; then
8183   ac_cv_header_time=yes
8184 else
8185   echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 ac_cv_header_time=no
8189 fi
8190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8191 fi
8192 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8193 echo "${ECHO_T}$ac_cv_header_time" >&6
8194 if test $ac_cv_header_time = yes; then
8195
8196 cat >>confdefs.h <<\_ACEOF
8197 #define TIME_WITH_SYS_TIME 1
8198 _ACEOF
8199
8200 fi
8201
8202 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8203 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8204 if test "${gcc_cv_header_string+set}" = set; then
8205   echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207   cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213 #include <string.h>
8214 #include <strings.h>
8215 int
8216 main ()
8217 {
8218
8219   ;
8220   return 0;
8221 }
8222 _ACEOF
8223 rm -f conftest.$ac_objext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8225   (eval $ac_compile) 2>conftest.er1
8226   ac_status=$?
8227   grep -v '^ *+' conftest.er1 >conftest.err
8228   rm -f conftest.er1
8229   cat conftest.err >&5
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); } &&
8232          { ac_try='test -z "$ac_c_werror_flag"
8233                          || test ! -s conftest.err'
8234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235   (eval $ac_try) 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); }; } &&
8239          { ac_try='test -s conftest.$ac_objext'
8240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241   (eval $ac_try) 2>&5
8242   ac_status=$?
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); }; }; then
8245   gcc_cv_header_string=yes
8246 else
8247   echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 gcc_cv_header_string=no
8251 fi
8252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8253 fi
8254 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8255 echo "${ECHO_T}$gcc_cv_header_string" >&6
8256 if test $gcc_cv_header_string = yes; then
8257
8258 cat >>confdefs.h <<\_ACEOF
8259 #define STRING_WITH_STRINGS 1
8260 _ACEOF
8261
8262 fi
8263
8264 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8265 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8266 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275 #include <sys/types.h>
8276 #include <sys/wait.h>
8277 #ifndef WEXITSTATUS
8278 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8279 #endif
8280 #ifndef WIFEXITED
8281 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8282 #endif
8283
8284 int
8285 main ()
8286 {
8287   int s;
8288   wait (&s);
8289   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8290   ;
8291   return 0;
8292 }
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8296   (eval $ac_compile) 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } &&
8303          { ac_try='test -z "$ac_c_werror_flag"
8304                          || test ! -s conftest.err'
8305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306   (eval $ac_try) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; } &&
8310          { ac_try='test -s conftest.$ac_objext'
8311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312   (eval $ac_try) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; }; then
8316   ac_cv_header_sys_wait_h=yes
8317 else
8318   echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8320
8321 ac_cv_header_sys_wait_h=no
8322 fi
8323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8324 fi
8325 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8326 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8327 if test $ac_cv_header_sys_wait_h = yes; then
8328
8329 cat >>confdefs.h <<\_ACEOF
8330 #define HAVE_SYS_WAIT_H 1
8331 _ACEOF
8332
8333 fi
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8358                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8359                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8360                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8361 do
8362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363 echo "$as_me:$LINENO: checking for $ac_header" >&5
8364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8366   echo $ECHO_N "(cached) $ECHO_C" >&6
8367 else
8368   cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h.  */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h.  */
8374 #include <$ac_header>
8375 _ACEOF
8376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8378   ac_status=$?
8379   grep -v '^ *+' conftest.er1 >conftest.err
8380   rm -f conftest.er1
8381   cat conftest.err >&5
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); } >/dev/null; then
8384   if test -s conftest.err; then
8385     ac_cpp_err=$ac_c_preproc_warn_flag
8386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8387   else
8388     ac_cpp_err=
8389   fi
8390 else
8391   ac_cpp_err=yes
8392 fi
8393 if test -z "$ac_cpp_err"; then
8394   eval "$as_ac_Header=yes"
8395 else
8396   echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399   eval "$as_ac_Header=no"
8400 fi
8401 rm -f conftest.err conftest.$ac_ext
8402 fi
8403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8406   cat >>confdefs.h <<_ACEOF
8407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8408 _ACEOF
8409
8410 fi
8411 done
8412
8413
8414 # Check for thread headers.
8415 echo "$as_me:$LINENO: checking for thread.h" >&5
8416 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8417 if test "${ac_cv_header_thread_h+set}" = set; then
8418   echo $ECHO_N "(cached) $ECHO_C" >&6
8419 else
8420   cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h.  */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h.  */
8426 #include <thread.h>
8427 _ACEOF
8428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8430   ac_status=$?
8431   grep -v '^ *+' conftest.er1 >conftest.err
8432   rm -f conftest.er1
8433   cat conftest.err >&5
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); } >/dev/null; then
8436   if test -s conftest.err; then
8437     ac_cpp_err=$ac_c_preproc_warn_flag
8438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8439   else
8440     ac_cpp_err=
8441   fi
8442 else
8443   ac_cpp_err=yes
8444 fi
8445 if test -z "$ac_cpp_err"; then
8446   ac_cv_header_thread_h=yes
8447 else
8448   echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451   ac_cv_header_thread_h=no
8452 fi
8453 rm -f conftest.err conftest.$ac_ext
8454 fi
8455 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8456 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8457 if test $ac_cv_header_thread_h = yes; then
8458   have_thread_h=yes
8459 else
8460   have_thread_h=
8461 fi
8462
8463 echo "$as_me:$LINENO: checking for pthread.h" >&5
8464 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8465 if test "${ac_cv_header_pthread_h+set}" = set; then
8466   echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468   cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h.  */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h.  */
8474 #include <pthread.h>
8475 _ACEOF
8476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8478   ac_status=$?
8479   grep -v '^ *+' conftest.er1 >conftest.err
8480   rm -f conftest.er1
8481   cat conftest.err >&5
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } >/dev/null; then
8484   if test -s conftest.err; then
8485     ac_cpp_err=$ac_c_preproc_warn_flag
8486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8487   else
8488     ac_cpp_err=
8489   fi
8490 else
8491   ac_cpp_err=yes
8492 fi
8493 if test -z "$ac_cpp_err"; then
8494   ac_cv_header_pthread_h=yes
8495 else
8496   echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8498
8499   ac_cv_header_pthread_h=no
8500 fi
8501 rm -f conftest.err conftest.$ac_ext
8502 fi
8503 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8504 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8505 if test $ac_cv_header_pthread_h = yes; then
8506   have_pthread_h=yes
8507 else
8508   have_pthread_h=
8509 fi
8510
8511
8512 # These tests can't be done till we know if we have limits.h.
8513 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8514 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8515 if test "${gcc_cv_decl_char_bit+set}" = set; then
8516   echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518   cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h.  */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h.  */
8524 #ifdef HAVE_LIMITS_H
8525 #include <limits.h>
8526 #endif
8527 #ifdef CHAR_BIT
8528 found
8529 #endif
8530 _ACEOF
8531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8532   $EGREP "found" >/dev/null 2>&1; then
8533   gcc_cv_decl_char_bit=yes
8534 else
8535   gcc_cv_decl_char_bit=no
8536 fi
8537 rm -f conftest*
8538
8539
8540 fi
8541 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8542 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8543 if test $gcc_cv_decl_char_bit = no; then
8544   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8545 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8546 if test "${gcc_cv_c_nbby+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   i=8
8550  gcc_cv_c_nbby=
8551  while test $i -lt 65; do
8552    cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h.  */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h.  */
8558
8559 int
8560 main ()
8561 {
8562 switch(0) {
8563   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8564   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8565   ; }
8566   ;
8567   return 0;
8568 }
8569 _ACEOF
8570 rm -f conftest.$ac_objext
8571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8572   (eval $ac_compile) 2>conftest.er1
8573   ac_status=$?
8574   grep -v '^ *+' conftest.er1 >conftest.err
8575   rm -f conftest.er1
8576   cat conftest.err >&5
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); } &&
8579          { ac_try='test -z "$ac_c_werror_flag"
8580                          || test ! -s conftest.err'
8581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582   (eval $ac_try) 2>&5
8583   ac_status=$?
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); }; } &&
8586          { ac_try='test -s conftest.$ac_objext'
8587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588   (eval $ac_try) 2>&5
8589   ac_status=$?
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); }; }; then
8592   gcc_cv_c_nbby=$i; break
8593 else
8594   echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597 fi
8598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8599    i=`expr $i + 1`
8600  done
8601  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8602
8603 fi
8604 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8605 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8606 if test $gcc_cv_c_nbby = failed; then
8607   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8608 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8609    { (exit 1); exit 1; }; }
8610 else
8611
8612 cat >>confdefs.h <<_ACEOF
8613 #define CHAR_BIT $gcc_cv_c_nbby
8614 _ACEOF
8615
8616 fi
8617 fi
8618 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8619 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8620 if test "${ac_cv_c_bigendian+set}" = set; then
8621   echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623   # See if sys/param.h defines the BYTE_ORDER macro.
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630 #include <sys/types.h>
8631 #include <sys/param.h>
8632
8633 int
8634 main ()
8635 {
8636 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8637  bogus endian macros
8638 #endif
8639
8640   ;
8641   return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646   (eval $ac_compile) 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } &&
8653          { ac_try='test -z "$ac_c_werror_flag"
8654                          || test ! -s conftest.err'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; } &&
8660          { ac_try='test -s conftest.$ac_objext'
8661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662   (eval $ac_try) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; }; then
8666   # It does; now see whether it defined to BIG_ENDIAN or not.
8667 cat >conftest.$ac_ext <<_ACEOF
8668 /* confdefs.h.  */
8669 _ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h.  */
8673 #include <sys/types.h>
8674 #include <sys/param.h>
8675
8676 int
8677 main ()
8678 {
8679 #if BYTE_ORDER != BIG_ENDIAN
8680  not big endian
8681 #endif
8682
8683   ;
8684   return 0;
8685 }
8686 _ACEOF
8687 rm -f conftest.$ac_objext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8689   (eval $ac_compile) 2>conftest.er1
8690   ac_status=$?
8691   grep -v '^ *+' conftest.er1 >conftest.err
8692   rm -f conftest.er1
8693   cat conftest.err >&5
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); } &&
8696          { ac_try='test -z "$ac_c_werror_flag"
8697                          || test ! -s conftest.err'
8698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699   (eval $ac_try) 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; } &&
8703          { ac_try='test -s conftest.$ac_objext'
8704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705   (eval $ac_try) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); }; }; then
8709   ac_cv_c_bigendian=yes
8710 else
8711   echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714 ac_cv_c_bigendian=no
8715 fi
8716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8717 else
8718   echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8720
8721 # It does not; compile a test program.
8722 if test "$cross_compiling" = yes; then
8723   # try to guess the endianness by grepping values into an object file
8724   ac_cv_c_bigendian=unknown
8725   cat >conftest.$ac_ext <<_ACEOF
8726 /* confdefs.h.  */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h.  */
8731 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8732 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8733 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8734 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8735 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8736 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8737 int
8738 main ()
8739 {
8740  _ascii (); _ebcdic ();
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747   (eval $ac_compile) 2>conftest.er1
8748   ac_status=$?
8749   grep -v '^ *+' conftest.er1 >conftest.err
8750   rm -f conftest.er1
8751   cat conftest.err >&5
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } &&
8754          { ac_try='test -z "$ac_c_werror_flag"
8755                          || test ! -s conftest.err'
8756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757   (eval $ac_try) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); }; } &&
8761          { ac_try='test -s conftest.$ac_objext'
8762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763   (eval $ac_try) 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); }; }; then
8767   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8768   ac_cv_c_bigendian=yes
8769 fi
8770 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8771   if test "$ac_cv_c_bigendian" = unknown; then
8772     ac_cv_c_bigendian=no
8773   else
8774     # finding both strings is unlikely to happen, but who knows?
8775     ac_cv_c_bigendian=unknown
8776   fi
8777 fi
8778 else
8779   echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 fi
8783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8784 else
8785   cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h.  */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h.  */
8791 int
8792 main ()
8793 {
8794   /* Are we little or big endian?  From Harbison&Steele.  */
8795   union
8796   {
8797     long l;
8798     char c[sizeof (long)];
8799   } u;
8800   u.l = 1;
8801   exit (u.c[sizeof (long) - 1] == 1);
8802 }
8803 _ACEOF
8804 rm -f conftest$ac_exeext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806   (eval $ac_link) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   ac_cv_c_bigendian=no
8816 else
8817   echo "$as_me: program exited with status $ac_status" >&5
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8820
8821 ( exit $ac_status )
8822 ac_cv_c_bigendian=yes
8823 fi
8824 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8825 fi
8826 fi
8827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8830 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8831 case $ac_cv_c_bigendian in
8832   yes)
8833
8834 cat >>confdefs.h <<\_ACEOF
8835 #define WORDS_BIGENDIAN 1
8836 _ACEOF
8837  ;;
8838   no)
8839      ;;
8840   *)
8841     { { echo "$as_me:$LINENO: error: unknown endianness
8842 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8843 echo "$as_me: error: unknown endianness
8844 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8845    { (exit 1); exit 1; }; } ;;
8846 esac
8847
8848
8849 # --------
8850 # UNSORTED
8851 # --------
8852
8853
8854 # These libraries may be used by collect2.
8855 # We may need a special search path to get them linked.
8856 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8857 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8858 if test "${gcc_cv_collect2_libs+set}" = set; then
8859   echo $ECHO_N "(cached) $ECHO_C" >&6
8860 else
8861   save_LIBS="$LIBS"
8862 for libs in '' -lld -lmld \
8863                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8864                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8865 do
8866         LIBS="$libs"
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
8874 /* Override any gcc2 internal prototype to avoid an error.  */
8875 #ifdef __cplusplus
8876 extern "C"
8877 #endif
8878 /* We use char because int might match the return type of a gcc2
8879    builtin and then its argument prototype would still apply.  */
8880 char ldopen ();
8881 int
8882 main ()
8883 {
8884 ldopen ();
8885   ;
8886   return 0;
8887 }
8888 _ACEOF
8889 rm -f conftest.$ac_objext conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891   (eval $ac_link) 2>conftest.er1
8892   ac_status=$?
8893   grep -v '^ *+' conftest.er1 >conftest.err
8894   rm -f conftest.er1
8895   cat conftest.err >&5
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } &&
8898          { ac_try='test -z "$ac_c_werror_flag"
8899                          || test ! -s conftest.err'
8900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901   (eval $ac_try) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); }; } &&
8905          { ac_try='test -s conftest$ac_exeext'
8906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907   (eval $ac_try) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; }; then
8911   gcc_cv_collect2_libs="$libs"; break
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 fi
8917 rm -f conftest.err conftest.$ac_objext \
8918       conftest$ac_exeext conftest.$ac_ext
8919 done
8920 LIBS="$save_LIBS"
8921 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8922 fi
8923 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8924 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8925 case $gcc_cv_collect2_libs in
8926         "none required")        ;;
8927         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8928 esac
8929
8930
8931 # When building Ada code on Alpha, we need exc_resume which is usually in
8932 # -lexc.  So test for it.
8933 save_LIBS="$LIBS"
8934 LIBS=
8935 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8936 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8937 if test "${ac_cv_search_exc_resume+set}" = set; then
8938   echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940   ac_func_search_save_LIBS=$LIBS
8941 ac_cv_search_exc_resume=no
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h.  */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h.  */
8948
8949 /* Override any gcc2 internal prototype to avoid an error.  */
8950 #ifdef __cplusplus
8951 extern "C"
8952 #endif
8953 /* We use char because int might match the return type of a gcc2
8954    builtin and then its argument prototype would still apply.  */
8955 char exc_resume ();
8956 int
8957 main ()
8958 {
8959 exc_resume ();
8960   ;
8961   return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966   (eval $ac_link) 2>conftest.er1
8967   ac_status=$?
8968   grep -v '^ *+' conftest.er1 >conftest.err
8969   rm -f conftest.er1
8970   cat conftest.err >&5
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); } &&
8973          { ac_try='test -z "$ac_c_werror_flag"
8974                          || test ! -s conftest.err'
8975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976   (eval $ac_try) 2>&5
8977   ac_status=$?
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); }; } &&
8980          { ac_try='test -s conftest$ac_exeext'
8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982   (eval $ac_try) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; }; then
8986   ac_cv_search_exc_resume="none required"
8987 else
8988   echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8990
8991 fi
8992 rm -f conftest.err conftest.$ac_objext \
8993       conftest$ac_exeext conftest.$ac_ext
8994 if test "$ac_cv_search_exc_resume" = no; then
8995   for ac_lib in exc; do
8996     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8997     cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h.  */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h.  */
9003
9004 /* Override any gcc2 internal prototype to avoid an error.  */
9005 #ifdef __cplusplus
9006 extern "C"
9007 #endif
9008 /* We use char because int might match the return type of a gcc2
9009    builtin and then its argument prototype would still apply.  */
9010 char exc_resume ();
9011 int
9012 main ()
9013 {
9014 exc_resume ();
9015   ;
9016   return 0;
9017 }
9018 _ACEOF
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9021   (eval $ac_link) 2>conftest.er1
9022   ac_status=$?
9023   grep -v '^ *+' conftest.er1 >conftest.err
9024   rm -f conftest.er1
9025   cat conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } &&
9028          { ac_try='test -z "$ac_c_werror_flag"
9029                          || test ! -s conftest.err'
9030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031   (eval $ac_try) 2>&5
9032   ac_status=$?
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); }; } &&
9035          { ac_try='test -s conftest$ac_exeext'
9036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037   (eval $ac_try) 2>&5
9038   ac_status=$?
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); }; }; then
9041   ac_cv_search_exc_resume="-l$ac_lib"
9042 break
9043 else
9044   echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9046
9047 fi
9048 rm -f conftest.err conftest.$ac_objext \
9049       conftest$ac_exeext conftest.$ac_ext
9050   done
9051 fi
9052 LIBS=$ac_func_search_save_LIBS
9053 fi
9054 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9055 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9056 if test "$ac_cv_search_exc_resume" != no; then
9057   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9058
9059 fi
9060
9061 GNAT_LIBEXC="$LIBS"
9062 LIBS="$save_LIBS"
9063
9064
9065 # Some systems put ldexp and frexp in libm instead of libc; assume
9066 # they're both in the same place.  jcf-dump needs them.
9067 save_LIBS="$LIBS"
9068 LIBS=
9069 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9070 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9071 if test "${ac_cv_search_ldexp+set}" = set; then
9072   echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074   ac_func_search_save_LIBS=$LIBS
9075 ac_cv_search_ldexp=no
9076 cat >conftest.$ac_ext <<_ACEOF
9077 /* confdefs.h.  */
9078 _ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h.  */
9082
9083 /* Override any gcc2 internal prototype to avoid an error.  */
9084 #ifdef __cplusplus
9085 extern "C"
9086 #endif
9087 /* We use char because int might match the return type of a gcc2
9088    builtin and then its argument prototype would still apply.  */
9089 char ldexp ();
9090 int
9091 main ()
9092 {
9093 ldexp ();
9094   ;
9095   return 0;
9096 }
9097 _ACEOF
9098 rm -f conftest.$ac_objext conftest$ac_exeext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100   (eval $ac_link) 2>conftest.er1
9101   ac_status=$?
9102   grep -v '^ *+' conftest.er1 >conftest.err
9103   rm -f conftest.er1
9104   cat conftest.err >&5
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); } &&
9107          { ac_try='test -z "$ac_c_werror_flag"
9108                          || test ! -s conftest.err'
9109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110   (eval $ac_try) 2>&5
9111   ac_status=$?
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); }; } &&
9114          { ac_try='test -s conftest$ac_exeext'
9115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116   (eval $ac_try) 2>&5
9117   ac_status=$?
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   (exit $ac_status); }; }; then
9120   ac_cv_search_ldexp="none required"
9121 else
9122   echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125 fi
9126 rm -f conftest.err conftest.$ac_objext \
9127       conftest$ac_exeext conftest.$ac_ext
9128 if test "$ac_cv_search_ldexp" = no; then
9129   for ac_lib in m; do
9130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9131     cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h.  */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h.  */
9137
9138 /* Override any gcc2 internal prototype to avoid an error.  */
9139 #ifdef __cplusplus
9140 extern "C"
9141 #endif
9142 /* We use char because int might match the return type of a gcc2
9143    builtin and then its argument prototype would still apply.  */
9144 char ldexp ();
9145 int
9146 main ()
9147 {
9148 ldexp ();
9149   ;
9150   return 0;
9151 }
9152 _ACEOF
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155   (eval $ac_link) 2>conftest.er1
9156   ac_status=$?
9157   grep -v '^ *+' conftest.er1 >conftest.err
9158   rm -f conftest.er1
9159   cat conftest.err >&5
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); } &&
9162          { ac_try='test -z "$ac_c_werror_flag"
9163                          || test ! -s conftest.err'
9164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165   (eval $ac_try) 2>&5
9166   ac_status=$?
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); }; } &&
9169          { ac_try='test -s conftest$ac_exeext'
9170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171   (eval $ac_try) 2>&5
9172   ac_status=$?
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); }; }; then
9175   ac_cv_search_ldexp="-l$ac_lib"
9176 break
9177 else
9178   echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181 fi
9182 rm -f conftest.err conftest.$ac_objext \
9183       conftest$ac_exeext conftest.$ac_ext
9184   done
9185 fi
9186 LIBS=$ac_func_search_save_LIBS
9187 fi
9188 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9189 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9190 if test "$ac_cv_search_ldexp" != no; then
9191   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9192
9193 fi
9194
9195 LDEXP_LIB="$LIBS"
9196 LIBS="$save_LIBS"
9197
9198
9199 # Use <inttypes.h> only if it exists,
9200 # doesn't clash with <sys/types.h>, and declares intmax_t.
9201 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9202 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9203 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9204   echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206   cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h.  */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h.  */
9212 #include <sys/types.h>
9213 #include <inttypes.h>
9214 int
9215 main ()
9216 {
9217 intmax_t i = -1;
9218   ;
9219   return 0;
9220 }
9221 _ACEOF
9222 rm -f conftest.$ac_objext
9223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9224   (eval $ac_compile) 2>conftest.er1
9225   ac_status=$?
9226   grep -v '^ *+' conftest.er1 >conftest.err
9227   rm -f conftest.er1
9228   cat conftest.err >&5
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); } &&
9231          { ac_try='test -z "$ac_c_werror_flag"
9232                          || test ! -s conftest.err'
9233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234   (eval $ac_try) 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; } &&
9238          { ac_try='test -s conftest.$ac_objext'
9239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240   (eval $ac_try) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); }; }; then
9244   gcc_cv_header_inttypes_h=yes
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249 gcc_cv_header_inttypes_h=no
9250 fi
9251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9252 fi
9253
9254 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9255 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9256 if test $gcc_cv_header_inttypes_h = yes; then
9257
9258 cat >>confdefs.h <<\_ACEOF
9259 #define HAVE_INTTYPES_H 1
9260 _ACEOF
9261
9262 fi
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9302         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9303         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9304         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
9305 do
9306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9307 echo "$as_me:$LINENO: checking for $ac_func" >&5
9308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9309 if eval "test \"\${$as_ac_var+set}\" = set"; then
9310   echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312   cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h.  */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h.  */
9318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9320 #define $ac_func innocuous_$ac_func
9321
9322 /* System header to define __stub macros and hopefully few prototypes,
9323     which can conflict with char $ac_func (); below.
9324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9325     <limits.h> exists even on freestanding compilers.  */
9326
9327 #ifdef __STDC__
9328 # include <limits.h>
9329 #else
9330 # include <assert.h>
9331 #endif
9332
9333 #undef $ac_func
9334
9335 /* Override any gcc2 internal prototype to avoid an error.  */
9336 #ifdef __cplusplus
9337 extern "C"
9338 {
9339 #endif
9340 /* We use char because int might match the return type of a gcc2
9341    builtin and then its argument prototype would still apply.  */
9342 char $ac_func ();
9343 /* The GNU C library defines this for functions which it implements
9344     to always fail with ENOSYS.  Some functions are actually named
9345     something starting with __ and the normal name is an alias.  */
9346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9347 choke me
9348 #else
9349 char (*f) () = $ac_func;
9350 #endif
9351 #ifdef __cplusplus
9352 }
9353 #endif
9354
9355 int
9356 main ()
9357 {
9358 return f != $ac_func;
9359   ;
9360   return 0;
9361 }
9362 _ACEOF
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365   (eval $ac_link) 2>conftest.er1
9366   ac_status=$?
9367   grep -v '^ *+' conftest.er1 >conftest.err
9368   rm -f conftest.er1
9369   cat conftest.err >&5
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); } &&
9372          { ac_try='test -z "$ac_c_werror_flag"
9373                          || test ! -s conftest.err'
9374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375   (eval $ac_try) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; } &&
9379          { ac_try='test -s conftest$ac_exeext'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; }; then
9385   eval "$as_ac_var=yes"
9386 else
9387   echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 eval "$as_ac_var=no"
9391 fi
9392 rm -f conftest.err conftest.$ac_objext \
9393       conftest$ac_exeext conftest.$ac_ext
9394 fi
9395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9397 if test `eval echo '${'$as_ac_var'}'` = yes; then
9398   cat >>confdefs.h <<_ACEOF
9399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9400 _ACEOF
9401
9402 fi
9403 done
9404
9405
9406 if test x$ac_cv_func_mbstowcs = xyes; then
9407   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9408 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9409 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412       if test "$cross_compiling" = yes; then
9413   gcc_cv_func_mbstowcs_works=yes
9414 else
9415   cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h.  */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h.  */
9421 #include <stdlib.h>
9422 int main()
9423 {
9424   mbstowcs(0, "", 0);
9425   return 0;
9426 }
9427 _ACEOF
9428 rm -f conftest$ac_exeext
9429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9430   (eval $ac_link) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435   (eval $ac_try) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); }; }; then
9439   gcc_cv_func_mbstowcs_works=yes
9440 else
9441   echo "$as_me: program exited with status $ac_status" >&5
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9444
9445 ( exit $ac_status )
9446 gcc_cv_func_mbstowcs_works=no
9447 fi
9448 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9449 fi
9450 fi
9451 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9452 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9453   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9454
9455 cat >>confdefs.h <<\_ACEOF
9456 #define HAVE_WORKING_MBSTOWCS 1
9457 _ACEOF
9458
9459   fi
9460 fi
9461
9462 echo "$as_me:$LINENO: checking for ssize_t" >&5
9463 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9464 if test "${ac_cv_type_ssize_t+set}" = set; then
9465   echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467   cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h.  */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h.  */
9473 $ac_includes_default
9474 int
9475 main ()
9476 {
9477 if ((ssize_t *) 0)
9478   return 0;
9479 if (sizeof (ssize_t))
9480   return 0;
9481   ;
9482   return 0;
9483 }
9484 _ACEOF
9485 rm -f conftest.$ac_objext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9487   (eval $ac_compile) 2>conftest.er1
9488   ac_status=$?
9489   grep -v '^ *+' conftest.er1 >conftest.err
9490   rm -f conftest.er1
9491   cat conftest.err >&5
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); } &&
9494          { ac_try='test -z "$ac_c_werror_flag"
9495                          || test ! -s conftest.err'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; } &&
9501          { ac_try='test -s conftest.$ac_objext'
9502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503   (eval $ac_try) 2>&5
9504   ac_status=$?
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); }; }; then
9507   ac_cv_type_ssize_t=yes
9508 else
9509   echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9511
9512 ac_cv_type_ssize_t=no
9513 fi
9514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9515 fi
9516 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9517 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9518 if test $ac_cv_type_ssize_t = yes; then
9519   :
9520 else
9521
9522 cat >>confdefs.h <<_ACEOF
9523 #define ssize_t int
9524 _ACEOF
9525
9526 fi
9527
9528
9529 # Try to determine the array type of the second argument of getgroups
9530 # for the target system (int or gid_t).
9531 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9532 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9533 if test "${ac_cv_type_uid_t+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536   cat >conftest.$ac_ext <<_ACEOF
9537 /* confdefs.h.  */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h.  */
9542 #include <sys/types.h>
9543
9544 _ACEOF
9545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9546   $EGREP "uid_t" >/dev/null 2>&1; then
9547   ac_cv_type_uid_t=yes
9548 else
9549   ac_cv_type_uid_t=no
9550 fi
9551 rm -f conftest*
9552
9553 fi
9554 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9555 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9556 if test $ac_cv_type_uid_t = no; then
9557
9558 cat >>confdefs.h <<\_ACEOF
9559 #define uid_t int
9560 _ACEOF
9561
9562
9563 cat >>confdefs.h <<\_ACEOF
9564 #define gid_t int
9565 _ACEOF
9566
9567 fi
9568
9569 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9570 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9571 if test "${ac_cv_type_getgroups+set}" = set; then
9572   echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574   if test "$cross_compiling" = yes; then
9575   ac_cv_type_getgroups=cross
9576 else
9577   cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h.  */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h.  */
9583 /* Thanks to Mike Rendell for this test.  */
9584 #include <sys/types.h>
9585 #define NGID 256
9586 #undef MAX
9587 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9588
9589 int
9590 main ()
9591 {
9592   gid_t gidset[NGID];
9593   int i, n;
9594   union { gid_t gval; long lval; }  val;
9595
9596   val.lval = -1;
9597   for (i = 0; i < NGID; i++)
9598     gidset[i] = val.gval;
9599   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9600                  gidset);
9601   /* Exit non-zero if getgroups seems to require an array of ints.  This
9602      happens when gid_t is short but getgroups modifies an array of ints.  */
9603   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9604 }
9605 _ACEOF
9606 rm -f conftest$ac_exeext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608   (eval $ac_link) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613   (eval $ac_try) 2>&5
9614   ac_status=$?
9615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616   (exit $ac_status); }; }; then
9617   ac_cv_type_getgroups=gid_t
9618 else
9619   echo "$as_me: program exited with status $ac_status" >&5
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623 ( exit $ac_status )
9624 ac_cv_type_getgroups=int
9625 fi
9626 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9627 fi
9628 if test $ac_cv_type_getgroups = cross; then
9629         cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h.  */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h.  */
9635 #include <unistd.h>
9636
9637 _ACEOF
9638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9639   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9640   ac_cv_type_getgroups=gid_t
9641 else
9642   ac_cv_type_getgroups=int
9643 fi
9644 rm -f conftest*
9645
9646 fi
9647 fi
9648 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9649 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9650
9651 cat >>confdefs.h <<_ACEOF
9652 #define GETGROUPS_T $ac_cv_type_getgroups
9653 _ACEOF
9654
9655
9656 if test "${target}" = "${build}"; then
9657   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9658 else
9659   case "${target}" in
9660         # This condition may need some tweaking.  It should include all
9661         # targets where the array type of the second argument of getgroups
9662         # is int and the type of gid_t is not equivalent to int.
9663         *-*-sunos* | *-*-ultrix*)
9664                 TARGET_GETGROUPS_T=int
9665                 ;;
9666         *)
9667                 TARGET_GETGROUPS_T=gid_t
9668                 ;;
9669   esac
9670 fi
9671
9672
9673
9674 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9675 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9676 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9677   echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679   cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685 #include <sys/mman.h>
9686 _ACEOF
9687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9688   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9689   ac_status=$?
9690   grep -v '^ *+' conftest.er1 >conftest.err
9691   rm -f conftest.er1
9692   cat conftest.err >&5
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } >/dev/null; then
9695   if test -s conftest.err; then
9696     ac_cpp_err=$ac_c_preproc_warn_flag
9697     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9698   else
9699     ac_cpp_err=
9700   fi
9701 else
9702   ac_cpp_err=yes
9703 fi
9704 if test -z "$ac_cpp_err"; then
9705   ac_cv_header_sys_mman_h=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710   ac_cv_header_sys_mman_h=no
9711 fi
9712 rm -f conftest.err conftest.$ac_ext
9713 fi
9714 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9715 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9716 if test $ac_cv_header_sys_mman_h = yes; then
9717   gcc_header_sys_mman_h=yes
9718 else
9719   gcc_header_sys_mman_h=no
9720 fi
9721
9722 echo "$as_me:$LINENO: checking for mmap" >&5
9723 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9724 if test "${ac_cv_func_mmap+set}" = set; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9735 #define mmap innocuous_mmap
9736
9737 /* System header to define __stub macros and hopefully few prototypes,
9738     which can conflict with char mmap (); below.
9739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740     <limits.h> exists even on freestanding compilers.  */
9741
9742 #ifdef __STDC__
9743 # include <limits.h>
9744 #else
9745 # include <assert.h>
9746 #endif
9747
9748 #undef mmap
9749
9750 /* Override any gcc2 internal prototype to avoid an error.  */
9751 #ifdef __cplusplus
9752 extern "C"
9753 {
9754 #endif
9755 /* We use char because int might match the return type of a gcc2
9756    builtin and then its argument prototype would still apply.  */
9757 char mmap ();
9758 /* The GNU C library defines this for functions which it implements
9759     to always fail with ENOSYS.  Some functions are actually named
9760     something starting with __ and the normal name is an alias.  */
9761 #if defined (__stub_mmap) || defined (__stub___mmap)
9762 choke me
9763 #else
9764 char (*f) () = mmap;
9765 #endif
9766 #ifdef __cplusplus
9767 }
9768 #endif
9769
9770 int
9771 main ()
9772 {
9773 return f != mmap;
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9780   (eval $ac_link) 2>conftest.er1
9781   ac_status=$?
9782   grep -v '^ *+' conftest.er1 >conftest.err
9783   rm -f conftest.er1
9784   cat conftest.err >&5
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); } &&
9787          { ac_try='test -z "$ac_c_werror_flag"
9788                          || test ! -s conftest.err'
9789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; } &&
9794          { ac_try='test -s conftest$ac_exeext'
9795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796   (eval $ac_try) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }; }; then
9800   ac_cv_func_mmap=yes
9801 else
9802   echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9804
9805 ac_cv_func_mmap=no
9806 fi
9807 rm -f conftest.err conftest.$ac_objext \
9808       conftest$ac_exeext conftest.$ac_ext
9809 fi
9810 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9811 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9812 if test $ac_cv_func_mmap = yes; then
9813   gcc_func_mmap=yes
9814 else
9815   gcc_func_mmap=no
9816 fi
9817
9818 if test "$gcc_header_sys_mman_h" != yes \
9819  || test "$gcc_func_mmap" != yes; then
9820    gcc_cv_func_mmap_file=no
9821    gcc_cv_func_mmap_dev_zero=no
9822    gcc_cv_func_mmap_anon=no
9823 else
9824    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9825 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9826 if test "${gcc_cv_func_mmap_file+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   # Add a system to this blacklist if
9830    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9831    # memory area containing the same data that you'd get if you applied
9832    # read() to the same fd.  The only system known to have a problem here
9833    # is VMS, where text files have record structure.
9834    case "$host_os" in
9835      vms* | ultrix*)
9836         gcc_cv_func_mmap_file=no ;;
9837      *)
9838         gcc_cv_func_mmap_file=yes;;
9839    esac
9840 fi
9841 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9842 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9843    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9844 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9845 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9846   echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848   # Add a system to this blacklist if it has mmap() but /dev/zero
9849    # does not exist, or if mmapping /dev/zero does not give anonymous
9850    # zeroed pages with both the following properties:
9851    # 1. If you map N consecutive pages in with one call, and then
9852    #    unmap any subset of those pages, the pages that were not
9853    #    explicitly unmapped remain accessible.
9854    # 2. If you map two adjacent blocks of memory and then unmap them
9855    #    both at once, they must both go away.
9856    # Systems known to be in this category are Windows (all variants),
9857    # VMS, and Darwin.
9858    case "$host_os" in
9859      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9860         gcc_cv_func_mmap_dev_zero=no ;;
9861      *)
9862         gcc_cv_func_mmap_dev_zero=yes;;
9863    esac
9864 fi
9865 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9866 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9867
9868    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9869    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9870 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9871 if test "${gcc_cv_decl_map_anon+set}" = set; then
9872   echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874   cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h.  */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h.  */
9880 #include <sys/types.h>
9881 #include <sys/mman.h>
9882 #include <unistd.h>
9883
9884 #ifndef MAP_ANONYMOUS
9885 #define MAP_ANONYMOUS MAP_ANON
9886 #endif
9887
9888 int
9889 main ()
9890 {
9891 int n = MAP_ANONYMOUS;
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 rm -f conftest.$ac_objext
9897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9898   (eval $ac_compile) 2>conftest.er1
9899   ac_status=$?
9900   grep -v '^ *+' conftest.er1 >conftest.err
9901   rm -f conftest.er1
9902   cat conftest.err >&5
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); } &&
9905          { ac_try='test -z "$ac_c_werror_flag"
9906                          || test ! -s conftest.err'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; } &&
9912          { ac_try='test -s conftest.$ac_objext'
9913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914   (eval $ac_try) 2>&5
9915   ac_status=$?
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); }; }; then
9918   gcc_cv_decl_map_anon=yes
9919 else
9920   echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9922
9923 gcc_cv_decl_map_anon=no
9924 fi
9925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9926 fi
9927 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9928 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9929
9930    if test $gcc_cv_decl_map_anon = no; then
9931      gcc_cv_func_mmap_anon=no
9932    else
9933      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9934 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9935 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9936   echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9939    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9940    # doesn't give anonymous zeroed pages with the same properties listed
9941    # above for use of /dev/zero.
9942    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9943    case "$host_os" in
9944      vms* | cygwin* | pe | mingw* | sco* | udk* )
9945         gcc_cv_func_mmap_anon=no ;;
9946      *)
9947         gcc_cv_func_mmap_anon=yes;;
9948    esac
9949 fi
9950 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9951 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9952    fi
9953 fi
9954
9955 if test $gcc_cv_func_mmap_file = yes; then
9956
9957 cat >>confdefs.h <<\_ACEOF
9958 #define HAVE_MMAP_FILE 1
9959 _ACEOF
9960
9961 fi
9962 if test $gcc_cv_func_mmap_dev_zero = yes; then
9963
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_MMAP_DEV_ZERO 1
9966 _ACEOF
9967
9968 fi
9969 if test $gcc_cv_func_mmap_anon = yes; then
9970
9971 cat >>confdefs.h <<\_ACEOF
9972 #define HAVE_MMAP_ANON 1
9973 _ACEOF
9974
9975 fi
9976
9977
9978 case "${host}" in
9979 *-*-*vms*)
9980   # Under VMS, vfork works very differently than on Unix. The standard test
9981   # won't work, and it isn't easily adaptable. It makes more sense to
9982   # just force it.
9983   ac_cv_func_vfork_works=yes
9984   ;;
9985 esac
9986 echo "$as_me:$LINENO: checking for pid_t" >&5
9987 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9988 if test "${ac_cv_type_pid_t+set}" = set; then
9989   echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991   cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h.  */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h.  */
9997 $ac_includes_default
9998 int
9999 main ()
10000 {
10001 if ((pid_t *) 0)
10002   return 0;
10003 if (sizeof (pid_t))
10004   return 0;
10005   ;
10006   return 0;
10007 }
10008 _ACEOF
10009 rm -f conftest.$ac_objext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011   (eval $ac_compile) 2>conftest.er1
10012   ac_status=$?
10013   grep -v '^ *+' conftest.er1 >conftest.err
10014   rm -f conftest.er1
10015   cat conftest.err >&5
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); } &&
10018          { ac_try='test -z "$ac_c_werror_flag"
10019                          || test ! -s conftest.err'
10020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021   (eval $ac_try) 2>&5
10022   ac_status=$?
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); }; } &&
10025          { ac_try='test -s conftest.$ac_objext'
10026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027   (eval $ac_try) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); }; }; then
10031   ac_cv_type_pid_t=yes
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036 ac_cv_type_pid_t=no
10037 fi
10038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10039 fi
10040 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10041 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10042 if test $ac_cv_type_pid_t = yes; then
10043   :
10044 else
10045
10046 cat >>confdefs.h <<_ACEOF
10047 #define pid_t int
10048 _ACEOF
10049
10050 fi
10051
10052
10053
10054 for ac_header in unistd.h vfork.h
10055 do
10056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10057 echo "$as_me:$LINENO: checking for $ac_header" >&5
10058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10060   echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062   cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h.  */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h.  */
10068 #include <$ac_header>
10069 _ACEOF
10070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } >/dev/null; then
10078   if test -s conftest.err; then
10079     ac_cpp_err=$ac_c_preproc_warn_flag
10080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10081   else
10082     ac_cpp_err=
10083   fi
10084 else
10085   ac_cpp_err=yes
10086 fi
10087 if test -z "$ac_cpp_err"; then
10088   eval "$as_ac_Header=yes"
10089 else
10090   echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10092
10093   eval "$as_ac_Header=no"
10094 fi
10095 rm -f conftest.err conftest.$ac_ext
10096 fi
10097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10100   cat >>confdefs.h <<_ACEOF
10101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10102 _ACEOF
10103
10104 fi
10105 done
10106
10107
10108
10109 for ac_func in fork vfork
10110 do
10111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10112 echo "$as_me:$LINENO: checking for $ac_func" >&5
10113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10114 if eval "test \"\${$as_ac_var+set}\" = set"; then
10115   echo $ECHO_N "(cached) $ECHO_C" >&6
10116 else
10117   cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h.  */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h.  */
10123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10125 #define $ac_func innocuous_$ac_func
10126
10127 /* System header to define __stub macros and hopefully few prototypes,
10128     which can conflict with char $ac_func (); below.
10129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10130     <limits.h> exists even on freestanding compilers.  */
10131
10132 #ifdef __STDC__
10133 # include <limits.h>
10134 #else
10135 # include <assert.h>
10136 #endif
10137
10138 #undef $ac_func
10139
10140 /* Override any gcc2 internal prototype to avoid an error.  */
10141 #ifdef __cplusplus
10142 extern "C"
10143 {
10144 #endif
10145 /* We use char because int might match the return type of a gcc2
10146    builtin and then its argument prototype would still apply.  */
10147 char $ac_func ();
10148 /* The GNU C library defines this for functions which it implements
10149     to always fail with ENOSYS.  Some functions are actually named
10150     something starting with __ and the normal name is an alias.  */
10151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10152 choke me
10153 #else
10154 char (*f) () = $ac_func;
10155 #endif
10156 #ifdef __cplusplus
10157 }
10158 #endif
10159
10160 int
10161 main ()
10162 {
10163 return f != $ac_func;
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext conftest$ac_exeext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10170   (eval $ac_link) 2>conftest.er1
10171   ac_status=$?
10172   grep -v '^ *+' conftest.er1 >conftest.err
10173   rm -f conftest.er1
10174   cat conftest.err >&5
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } &&
10177          { ac_try='test -z "$ac_c_werror_flag"
10178                          || test ! -s conftest.err'
10179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180   (eval $ac_try) 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; } &&
10184          { ac_try='test -s conftest$ac_exeext'
10185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186   (eval $ac_try) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); }; }; then
10190   eval "$as_ac_var=yes"
10191 else
10192   echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10194
10195 eval "$as_ac_var=no"
10196 fi
10197 rm -f conftest.err conftest.$ac_objext \
10198       conftest$ac_exeext conftest.$ac_ext
10199 fi
10200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10202 if test `eval echo '${'$as_ac_var'}'` = yes; then
10203   cat >>confdefs.h <<_ACEOF
10204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10205 _ACEOF
10206
10207 fi
10208 done
10209
10210 if test "x$ac_cv_func_fork" = xyes; then
10211   echo "$as_me:$LINENO: checking for working fork" >&5
10212 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10213 if test "${ac_cv_func_fork_works+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   if test "$cross_compiling" = yes; then
10217   ac_cv_func_fork_works=cross
10218 else
10219   cat >conftest.$ac_ext <<_ACEOF
10220 /* By Ruediger Kuhlmann. */
10221       #include <sys/types.h>
10222       #if HAVE_UNISTD_H
10223       # include <unistd.h>
10224       #endif
10225       /* Some systems only have a dummy stub for fork() */
10226       int main ()
10227       {
10228         if (fork() < 0)
10229           exit (1);
10230         exit (0);
10231       }
10232 _ACEOF
10233 rm -f conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235   (eval $ac_link) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240   (eval $ac_try) 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; }; then
10244   ac_cv_func_fork_works=yes
10245 else
10246   echo "$as_me: program exited with status $ac_status" >&5
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ( exit $ac_status )
10251 ac_cv_func_fork_works=no
10252 fi
10253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10254 fi
10255 fi
10256 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10257 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10258
10259 else
10260   ac_cv_func_fork_works=$ac_cv_func_fork
10261 fi
10262 if test "x$ac_cv_func_fork_works" = xcross; then
10263   case $host in
10264     *-*-amigaos* | *-*-msdosdjgpp*)
10265       # Override, as these systems have only a dummy fork() stub
10266       ac_cv_func_fork_works=no
10267       ;;
10268     *)
10269       ac_cv_func_fork_works=yes
10270       ;;
10271   esac
10272   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10273 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10274 fi
10275 ac_cv_func_vfork_works=$ac_cv_func_vfork
10276 if test "x$ac_cv_func_vfork" = xyes; then
10277   echo "$as_me:$LINENO: checking for working vfork" >&5
10278 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10279 if test "${ac_cv_func_vfork_works+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   if test "$cross_compiling" = yes; then
10283   ac_cv_func_vfork_works=cross
10284 else
10285   cat >conftest.$ac_ext <<_ACEOF
10286 /* confdefs.h.  */
10287 _ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h.  */
10291 /* Thanks to Paul Eggert for this test.  */
10292 #include <stdio.h>
10293 #include <stdlib.h>
10294 #include <sys/types.h>
10295 #include <sys/stat.h>
10296 #include <sys/wait.h>
10297 #if HAVE_UNISTD_H
10298 # include <unistd.h>
10299 #endif
10300 #if HAVE_VFORK_H
10301 # include <vfork.h>
10302 #endif
10303 /* On some sparc systems, changes by the child to local and incoming
10304    argument registers are propagated back to the parent.  The compiler
10305    is told about this with #include <vfork.h>, but some compilers
10306    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10307    static variable whose address is put into a register that is
10308    clobbered by the vfork.  */
10309 static void
10310 #ifdef __cplusplus
10311 sparc_address_test (int arg)
10312 # else
10313 sparc_address_test (arg) int arg;
10314 #endif
10315 {
10316   static pid_t child;
10317   if (!child) {
10318     child = vfork ();
10319     if (child < 0) {
10320       perror ("vfork");
10321       _exit(2);
10322     }
10323     if (!child) {
10324       arg = getpid();
10325       write(-1, "", 0);
10326       _exit (arg);
10327     }
10328   }
10329 }
10330
10331 int
10332 main ()
10333 {
10334   pid_t parent = getpid ();
10335   pid_t child;
10336
10337   sparc_address_test (0);
10338
10339   child = vfork ();
10340
10341   if (child == 0) {
10342     /* Here is another test for sparc vfork register problems.  This
10343        test uses lots of local variables, at least as many local
10344        variables as main has allocated so far including compiler
10345        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10346        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10347        reuse the register of parent for one of the local variables,
10348        since it will think that parent can't possibly be used any more
10349        in this routine.  Assigning to the local variable will thus
10350        munge parent in the parent process.  */
10351     pid_t
10352       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10353       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10354     /* Convince the compiler that p..p7 are live; otherwise, it might
10355        use the same hardware register for all 8 local variables.  */
10356     if (p != p1 || p != p2 || p != p3 || p != p4
10357         || p != p5 || p != p6 || p != p7)
10358       _exit(1);
10359
10360     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10361        from child file descriptors.  If the child closes a descriptor
10362        before it execs or exits, this munges the parent's descriptor
10363        as well.  Test for this by closing stdout in the child.  */
10364     _exit(close(fileno(stdout)) != 0);
10365   } else {
10366     int status;
10367     struct stat st;
10368
10369     while (wait(&status) != child)
10370       ;
10371     exit(
10372          /* Was there some problem with vforking?  */
10373          child < 0
10374
10375          /* Did the child fail?  (This shouldn't happen.)  */
10376          || status
10377
10378          /* Did the vfork/compiler bug occur?  */
10379          || parent != getpid()
10380
10381          /* Did the file descriptor bug occur?  */
10382          || fstat(fileno(stdout), &st) != 0
10383          );
10384   }
10385 }
10386 _ACEOF
10387 rm -f conftest$ac_exeext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10389   (eval $ac_link) 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394   (eval $ac_try) 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); }; }; then
10398   ac_cv_func_vfork_works=yes
10399 else
10400   echo "$as_me: program exited with status $ac_status" >&5
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10403
10404 ( exit $ac_status )
10405 ac_cv_func_vfork_works=no
10406 fi
10407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10408 fi
10409 fi
10410 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10411 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10412
10413 fi;
10414 if test "x$ac_cv_func_fork_works" = xcross; then
10415   ac_cv_func_vfork_works=$ac_cv_func_vfork
10416   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10417 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10418 fi
10419
10420 if test "x$ac_cv_func_vfork_works" = xyes; then
10421
10422 cat >>confdefs.h <<\_ACEOF
10423 #define HAVE_WORKING_VFORK 1
10424 _ACEOF
10425
10426 else
10427
10428 cat >>confdefs.h <<\_ACEOF
10429 #define vfork fork
10430 _ACEOF
10431
10432 fi
10433 if test "x$ac_cv_func_fork_works" = xyes; then
10434
10435 cat >>confdefs.h <<\_ACEOF
10436 #define HAVE_WORKING_FORK 1
10437 _ACEOF
10438
10439 fi
10440
10441
10442
10443       if test "X$prefix" = "XNONE"; then
10444     acl_final_prefix="$ac_default_prefix"
10445   else
10446     acl_final_prefix="$prefix"
10447   fi
10448   if test "X$exec_prefix" = "XNONE"; then
10449     acl_final_exec_prefix='${prefix}'
10450   else
10451     acl_final_exec_prefix="$exec_prefix"
10452   fi
10453   acl_save_prefix="$prefix"
10454   prefix="$acl_final_prefix"
10455   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10456   prefix="$acl_save_prefix"
10457
10458
10459 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10460 if test "${with_gnu_ld+set}" = set; then
10461   withval="$with_gnu_ld"
10462   test "$withval" = no || with_gnu_ld=yes
10463 else
10464   with_gnu_ld=no
10465 fi;
10466 # Prepare PATH_SEPARATOR.
10467 # The user is always right.
10468 if test "${PATH_SEPARATOR+set}" != set; then
10469   echo "#! /bin/sh" >conf$$.sh
10470   echo  "exit 0"   >>conf$$.sh
10471   chmod +x conf$$.sh
10472   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10473     PATH_SEPARATOR=';'
10474   else
10475     PATH_SEPARATOR=:
10476   fi
10477   rm -f conf$$.sh
10478 fi
10479 ac_prog=ld
10480 if test "$GCC" = yes; then
10481   # Check if gcc -print-prog-name=ld gives a path.
10482   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10483 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10484   case $host in
10485   *-*-mingw*)
10486     # gcc leaves a trailing carriage return which upsets mingw
10487     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10488   *)
10489     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10490   esac
10491   case $ac_prog in
10492     # Accept absolute paths.
10493     [\\/]* | [A-Za-z]:[\\/]*)
10494       re_direlt='/[^/][^/]*/\.\./'
10495       # Canonicalize the path of ld
10496       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10497       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10498         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10499       done
10500       test -z "$LD" && LD="$ac_prog"
10501       ;;
10502   "")
10503     # If it fails, then pretend we aren't using GCC.
10504     ac_prog=ld
10505     ;;
10506   *)
10507     # If it is relative, then search for the first ld in PATH.
10508     with_gnu_ld=unknown
10509     ;;
10510   esac
10511 elif test "$with_gnu_ld" = yes; then
10512   echo "$as_me:$LINENO: checking for GNU ld" >&5
10513 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10514 else
10515   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10516 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10517 fi
10518 if test "${acl_cv_path_LD+set}" = set; then
10519   echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521   if test -z "$LD"; then
10522   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10523   for ac_dir in $PATH; do
10524     test -z "$ac_dir" && ac_dir=.
10525     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10526       acl_cv_path_LD="$ac_dir/$ac_prog"
10527       # Check to see if the program is GNU ld.  I'd rather use --version,
10528       # but apparently some GNU ld's only accept -v.
10529       # Break only if it was the GNU/non-GNU ld that we prefer.
10530       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10531         test "$with_gnu_ld" != no && break
10532       else
10533         test "$with_gnu_ld" != yes && break
10534       fi
10535     fi
10536   done
10537   IFS="$ac_save_ifs"
10538 else
10539   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10540 fi
10541 fi
10542
10543 LD="$acl_cv_path_LD"
10544 if test -n "$LD"; then
10545   echo "$as_me:$LINENO: result: $LD" >&5
10546 echo "${ECHO_T}$LD" >&6
10547 else
10548   echo "$as_me:$LINENO: result: no" >&5
10549 echo "${ECHO_T}no" >&6
10550 fi
10551 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10552 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10553    { (exit 1); exit 1; }; }
10554 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10555 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10556 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10557   echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10560 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10561   acl_cv_prog_gnu_ld=yes
10562 else
10563   acl_cv_prog_gnu_ld=no
10564 fi
10565 fi
10566 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10567 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10568 with_gnu_ld=$acl_cv_prog_gnu_ld
10569
10570
10571
10572                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10573 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10574 if test "${acl_cv_rpath+set}" = set; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577
10578     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10579     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10580     . ./conftest.sh
10581     rm -f ./conftest.sh
10582     acl_cv_rpath=done
10583
10584 fi
10585 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10586 echo "${ECHO_T}$acl_cv_rpath" >&6
10587   wl="$acl_cv_wl"
10588   libext="$acl_cv_libext"
10589   shlibext="$acl_cv_shlibext"
10590   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10591   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10592   hardcode_direct="$acl_cv_hardcode_direct"
10593   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10594     # Check whether --enable-rpath or --disable-rpath was given.
10595 if test "${enable_rpath+set}" = set; then
10596   enableval="$enable_rpath"
10597   :
10598 else
10599   enable_rpath=yes
10600 fi;
10601
10602
10603
10604
10605
10606
10607
10608     use_additional=yes
10609
10610   acl_save_prefix="$prefix"
10611   prefix="$acl_final_prefix"
10612   acl_save_exec_prefix="$exec_prefix"
10613   exec_prefix="$acl_final_exec_prefix"
10614
10615     eval additional_includedir=\"$includedir\"
10616     eval additional_libdir=\"$libdir\"
10617
10618   exec_prefix="$acl_save_exec_prefix"
10619   prefix="$acl_save_prefix"
10620
10621
10622 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10623 if test "${with_libiconv_prefix+set}" = set; then
10624   withval="$with_libiconv_prefix"
10625
10626     if test "X$withval" = "Xno"; then
10627       use_additional=no
10628     else
10629       if test "X$withval" = "X"; then
10630
10631   acl_save_prefix="$prefix"
10632   prefix="$acl_final_prefix"
10633   acl_save_exec_prefix="$exec_prefix"
10634   exec_prefix="$acl_final_exec_prefix"
10635
10636           eval additional_includedir=\"$includedir\"
10637           eval additional_libdir=\"$libdir\"
10638
10639   exec_prefix="$acl_save_exec_prefix"
10640   prefix="$acl_save_prefix"
10641
10642       else
10643         additional_includedir="$withval/include"
10644         additional_libdir="$withval/lib"
10645       fi
10646     fi
10647
10648 fi;
10649       LIBICONV=
10650   LTLIBICONV=
10651   INCICONV=
10652   rpathdirs=
10653   ltrpathdirs=
10654   names_already_handled=
10655   names_next_round='iconv '
10656   while test -n "$names_next_round"; do
10657     names_this_round="$names_next_round"
10658     names_next_round=
10659     for name in $names_this_round; do
10660       already_handled=
10661       for n in $names_already_handled; do
10662         if test "$n" = "$name"; then
10663           already_handled=yes
10664           break
10665         fi
10666       done
10667       if test -z "$already_handled"; then
10668         names_already_handled="$names_already_handled $name"
10669                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10670         eval value=\"\$HAVE_LIB$uppername\"
10671         if test -n "$value"; then
10672           if test "$value" = yes; then
10673             eval value=\"\$LIB$uppername\"
10674             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10675             eval value=\"\$LTLIB$uppername\"
10676             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10677           else
10678                                     :
10679           fi
10680         else
10681                               found_dir=
10682           found_la=
10683           found_so=
10684           found_a=
10685           if test $use_additional = yes; then
10686             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10687               found_dir="$additional_libdir"
10688               found_so="$additional_libdir/lib$name.$shlibext"
10689               if test -f "$additional_libdir/lib$name.la"; then
10690                 found_la="$additional_libdir/lib$name.la"
10691               fi
10692             else
10693               if test -f "$additional_libdir/lib$name.$libext"; then
10694                 found_dir="$additional_libdir"
10695                 found_a="$additional_libdir/lib$name.$libext"
10696                 if test -f "$additional_libdir/lib$name.la"; then
10697                   found_la="$additional_libdir/lib$name.la"
10698                 fi
10699               fi
10700             fi
10701           fi
10702           if test "X$found_dir" = "X"; then
10703             for x in $LDFLAGS $LTLIBICONV; do
10704
10705   acl_save_prefix="$prefix"
10706   prefix="$acl_final_prefix"
10707   acl_save_exec_prefix="$exec_prefix"
10708   exec_prefix="$acl_final_exec_prefix"
10709   eval x=\"$x\"
10710   exec_prefix="$acl_save_exec_prefix"
10711   prefix="$acl_save_prefix"
10712
10713               case "$x" in
10714                 -L*)
10715                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10716                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10717                     found_dir="$dir"
10718                     found_so="$dir/lib$name.$shlibext"
10719                     if test -f "$dir/lib$name.la"; then
10720                       found_la="$dir/lib$name.la"
10721                     fi
10722                   else
10723                     if test -f "$dir/lib$name.$libext"; then
10724                       found_dir="$dir"
10725                       found_a="$dir/lib$name.$libext"
10726                       if test -f "$dir/lib$name.la"; then
10727                         found_la="$dir/lib$name.la"
10728                       fi
10729                     fi
10730                   fi
10731                   ;;
10732               esac
10733               if test "X$found_dir" != "X"; then
10734                 break
10735               fi
10736             done
10737           fi
10738           if test "X$found_dir" != "X"; then
10739                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10740             if test "X$found_so" != "X"; then
10741                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10742                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10743               else
10744                                                                                 haveit=
10745                 for x in $ltrpathdirs; do
10746                   if test "X$x" = "X$found_dir"; then
10747                     haveit=yes
10748                     break
10749                   fi
10750                 done
10751                 if test -z "$haveit"; then
10752                   ltrpathdirs="$ltrpathdirs $found_dir"
10753                 fi
10754                                 if test "$hardcode_direct" = yes; then
10755                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10756                 else
10757                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10758                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10759                                                             haveit=
10760                     for x in $rpathdirs; do
10761                       if test "X$x" = "X$found_dir"; then
10762                         haveit=yes
10763                         break
10764                       fi
10765                     done
10766                     if test -z "$haveit"; then
10767                       rpathdirs="$rpathdirs $found_dir"
10768                     fi
10769                   else
10770                                                                                 haveit=
10771                     for x in $LDFLAGS $LIBICONV; do
10772
10773   acl_save_prefix="$prefix"
10774   prefix="$acl_final_prefix"
10775   acl_save_exec_prefix="$exec_prefix"
10776   exec_prefix="$acl_final_exec_prefix"
10777   eval x=\"$x\"
10778   exec_prefix="$acl_save_exec_prefix"
10779   prefix="$acl_save_prefix"
10780
10781                       if test "X$x" = "X-L$found_dir"; then
10782                         haveit=yes
10783                         break
10784                       fi
10785                     done
10786                     if test -z "$haveit"; then
10787                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10788                     fi
10789                     if test "$hardcode_minus_L" != no; then
10790                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10791                     else
10792                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10793                     fi
10794                   fi
10795                 fi
10796               fi
10797             else
10798               if test "X$found_a" != "X"; then
10799                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10800               else
10801                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10802               fi
10803             fi
10804                         additional_includedir=
10805             case "$found_dir" in
10806               */lib | */lib/)
10807                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10808                 additional_includedir="$basedir/include"
10809                 ;;
10810             esac
10811             if test "X$additional_includedir" != "X"; then
10812                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10813                 haveit=
10814                 if test "X$additional_includedir" = "X/usr/local/include"; then
10815                   if test -n "$GCC"; then
10816                     case $host_os in
10817                       linux*) haveit=yes;;
10818                     esac
10819                   fi
10820                 fi
10821                 if test -z "$haveit"; then
10822                   for x in $CPPFLAGS $INCICONV; do
10823
10824   acl_save_prefix="$prefix"
10825   prefix="$acl_final_prefix"
10826   acl_save_exec_prefix="$exec_prefix"
10827   exec_prefix="$acl_final_exec_prefix"
10828   eval x=\"$x\"
10829   exec_prefix="$acl_save_exec_prefix"
10830   prefix="$acl_save_prefix"
10831
10832                     if test "X$x" = "X-I$additional_includedir"; then
10833                       haveit=yes
10834                       break
10835                     fi
10836                   done
10837                   if test -z "$haveit"; then
10838                     if test -d "$additional_includedir"; then
10839                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10840                     fi
10841                   fi
10842                 fi
10843               fi
10844             fi
10845                         if test -n "$found_la"; then
10846                                                         save_libdir="$libdir"
10847               case "$found_la" in
10848                 */* | *\\*) . "$found_la" ;;
10849                 *) . "./$found_la" ;;
10850               esac
10851               libdir="$save_libdir"
10852                             for dep in $dependency_libs; do
10853                 case "$dep" in
10854                   -L*)
10855                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10856                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10857                       haveit=
10858                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10859                         if test -n "$GCC"; then
10860                           case $host_os in
10861                             linux*) haveit=yes;;
10862                           esac
10863                         fi
10864                       fi
10865                       if test -z "$haveit"; then
10866                         haveit=
10867                         for x in $LDFLAGS $LIBICONV; do
10868
10869   acl_save_prefix="$prefix"
10870   prefix="$acl_final_prefix"
10871   acl_save_exec_prefix="$exec_prefix"
10872   exec_prefix="$acl_final_exec_prefix"
10873   eval x=\"$x\"
10874   exec_prefix="$acl_save_exec_prefix"
10875   prefix="$acl_save_prefix"
10876
10877                           if test "X$x" = "X-L$additional_libdir"; then
10878                             haveit=yes
10879                             break
10880                           fi
10881                         done
10882                         if test -z "$haveit"; then
10883                           if test -d "$additional_libdir"; then
10884                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10885                           fi
10886                         fi
10887                         haveit=
10888                         for x in $LDFLAGS $LTLIBICONV; do
10889
10890   acl_save_prefix="$prefix"
10891   prefix="$acl_final_prefix"
10892   acl_save_exec_prefix="$exec_prefix"
10893   exec_prefix="$acl_final_exec_prefix"
10894   eval x=\"$x\"
10895   exec_prefix="$acl_save_exec_prefix"
10896   prefix="$acl_save_prefix"
10897
10898                           if test "X$x" = "X-L$additional_libdir"; then
10899                             haveit=yes
10900                             break
10901                           fi
10902                         done
10903                         if test -z "$haveit"; then
10904                           if test -d "$additional_libdir"; then
10905                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10906                           fi
10907                         fi
10908                       fi
10909                     fi
10910                     ;;
10911                   -R*)
10912                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10913                     if test "$enable_rpath" != no; then
10914                                                                   haveit=
10915                       for x in $rpathdirs; do
10916                         if test "X$x" = "X$dir"; then
10917                           haveit=yes
10918                           break
10919                         fi
10920                       done
10921                       if test -z "$haveit"; then
10922                         rpathdirs="$rpathdirs $dir"
10923                       fi
10924                                                                   haveit=
10925                       for x in $ltrpathdirs; do
10926                         if test "X$x" = "X$dir"; then
10927                           haveit=yes
10928                           break
10929                         fi
10930                       done
10931                       if test -z "$haveit"; then
10932                         ltrpathdirs="$ltrpathdirs $dir"
10933                       fi
10934                     fi
10935                     ;;
10936                   -l*)
10937                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10938                     ;;
10939                   *.la)
10940                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10941                     ;;
10942                   *)
10943                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10944                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10945                     ;;
10946                 esac
10947               done
10948             fi
10949           else
10950                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10951             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10952           fi
10953         fi
10954       fi
10955     done
10956   done
10957   if test "X$rpathdirs" != "X"; then
10958     if test -n "$hardcode_libdir_separator"; then
10959                         alldirs=
10960       for found_dir in $rpathdirs; do
10961         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10962       done
10963             acl_save_libdir="$libdir"
10964       libdir="$alldirs"
10965       eval flag=\"$hardcode_libdir_flag_spec\"
10966       libdir="$acl_save_libdir"
10967       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10968     else
10969             for found_dir in $rpathdirs; do
10970         acl_save_libdir="$libdir"
10971         libdir="$found_dir"
10972         eval flag=\"$hardcode_libdir_flag_spec\"
10973         libdir="$acl_save_libdir"
10974         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10975       done
10976     fi
10977   fi
10978   if test "X$ltrpathdirs" != "X"; then
10979             for found_dir in $ltrpathdirs; do
10980       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10981     done
10982   fi
10983
10984
10985
10986
10987
10988
10989
10990           am_save_CPPFLAGS="$CPPFLAGS"
10991
10992   for element in $INCICONV; do
10993     haveit=
10994     for x in $CPPFLAGS; do
10995
10996   acl_save_prefix="$prefix"
10997   prefix="$acl_final_prefix"
10998   acl_save_exec_prefix="$exec_prefix"
10999   exec_prefix="$acl_final_exec_prefix"
11000   eval x=\"$x\"
11001   exec_prefix="$acl_save_exec_prefix"
11002   prefix="$acl_save_prefix"
11003
11004       if test "X$x" = "X$element"; then
11005         haveit=yes
11006         break
11007       fi
11008     done
11009     if test -z "$haveit"; then
11010       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11011     fi
11012   done
11013
11014
11015   echo "$as_me:$LINENO: checking for iconv" >&5
11016 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11017 if test "${am_cv_func_iconv+set}" = set; then
11018   echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020
11021     am_cv_func_iconv="no, consider installing GNU libiconv"
11022     am_cv_lib_iconv=no
11023     cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029 #include <stdlib.h>
11030 #include <iconv.h>
11031 int
11032 main ()
11033 {
11034 iconv_t cd = iconv_open("","");
11035        iconv(cd,NULL,NULL,NULL,NULL);
11036        iconv_close(cd);
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043   (eval $ac_link) 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } &&
11050          { ac_try='test -z "$ac_c_werror_flag"
11051                          || test ! -s conftest.err'
11052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053   (eval $ac_try) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; } &&
11057          { ac_try='test -s conftest$ac_exeext'
11058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059   (eval $ac_try) 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }; }; then
11063   am_cv_func_iconv=yes
11064 else
11065   echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11067
11068 fi
11069 rm -f conftest.err conftest.$ac_objext \
11070       conftest$ac_exeext conftest.$ac_ext
11071     if test "$am_cv_func_iconv" != yes; then
11072       am_save_LIBS="$LIBS"
11073       LIBS="$LIBS $LIBICONV"
11074       cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 #include <stdlib.h>
11081 #include <iconv.h>
11082 int
11083 main ()
11084 {
11085 iconv_t cd = iconv_open("","");
11086          iconv(cd,NULL,NULL,NULL,NULL);
11087          iconv_close(cd);
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 rm -f conftest.$ac_objext conftest$ac_exeext
11093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094   (eval $ac_link) 2>conftest.er1
11095   ac_status=$?
11096   grep -v '^ *+' conftest.er1 >conftest.err
11097   rm -f conftest.er1
11098   cat conftest.err >&5
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); } &&
11101          { ac_try='test -z "$ac_c_werror_flag"
11102                          || test ! -s conftest.err'
11103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104   (eval $ac_try) 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); }; } &&
11108          { ac_try='test -s conftest$ac_exeext'
11109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110   (eval $ac_try) 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; }; then
11114   am_cv_lib_iconv=yes
11115         am_cv_func_iconv=yes
11116 else
11117   echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11119
11120 fi
11121 rm -f conftest.err conftest.$ac_objext \
11122       conftest$ac_exeext conftest.$ac_ext
11123       LIBS="$am_save_LIBS"
11124     fi
11125
11126 fi
11127 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11128 echo "${ECHO_T}$am_cv_func_iconv" >&6
11129   if test "$am_cv_func_iconv" = yes; then
11130
11131 cat >>confdefs.h <<\_ACEOF
11132 #define HAVE_ICONV 1
11133 _ACEOF
11134
11135   fi
11136   if test "$am_cv_lib_iconv" = yes; then
11137     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11138 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11139     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11140 echo "${ECHO_T}$LIBICONV" >&6
11141   else
11142             CPPFLAGS="$am_save_CPPFLAGS"
11143     LIBICONV=
11144     LTLIBICONV=
11145   fi
11146
11147
11148
11149   if test "$am_cv_func_iconv" = yes; then
11150     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11151 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11152     if test "${am_cv_proto_iconv+set}" = set; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155
11156       cat >conftest.$ac_ext <<_ACEOF
11157 /* confdefs.h.  */
11158 _ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h.  */
11162
11163 #include <stdlib.h>
11164 #include <iconv.h>
11165 extern
11166 #ifdef __cplusplus
11167 "C"
11168 #endif
11169 #if defined(__STDC__) || defined(__cplusplus)
11170 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11171 #else
11172 size_t iconv();
11173 #endif
11174
11175 int
11176 main ()
11177 {
11178
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 rm -f conftest.$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185   (eval $ac_compile) 2>conftest.er1
11186   ac_status=$?
11187   grep -v '^ *+' conftest.er1 >conftest.err
11188   rm -f conftest.er1
11189   cat conftest.err >&5
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); } &&
11192          { ac_try='test -z "$ac_c_werror_flag"
11193                          || test ! -s conftest.err'
11194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195   (eval $ac_try) 2>&5
11196   ac_status=$?
11197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198   (exit $ac_status); }; } &&
11199          { ac_try='test -s conftest.$ac_objext'
11200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201   (eval $ac_try) 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); }; }; then
11205   am_cv_proto_iconv_arg1=""
11206 else
11207   echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210 am_cv_proto_iconv_arg1="const"
11211 fi
11212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11213       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);"
11214 fi
11215
11216     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11217     echo "$as_me:$LINENO: result: ${ac_t:-
11218          }$am_cv_proto_iconv" >&5
11219 echo "${ECHO_T}${ac_t:-
11220          }$am_cv_proto_iconv" >&6
11221
11222 cat >>confdefs.h <<_ACEOF
11223 #define ICONV_CONST $am_cv_proto_iconv_arg1
11224 _ACEOF
11225
11226   fi
11227
11228 # Until we have in-tree GNU iconv:
11229 LIBICONV_DEP=
11230
11231
11232
11233   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11234 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11235 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11236   echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238   cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h.  */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h.  */
11244 #include <locale.h>
11245 int
11246 main ()
11247 {
11248 return LC_MESSAGES
11249   ;
11250   return 0;
11251 }
11252 _ACEOF
11253 rm -f conftest.$ac_objext conftest$ac_exeext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11255   (eval $ac_link) 2>conftest.er1
11256   ac_status=$?
11257   grep -v '^ *+' conftest.er1 >conftest.err
11258   rm -f conftest.er1
11259   cat conftest.err >&5
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); } &&
11262          { ac_try='test -z "$ac_c_werror_flag"
11263                          || test ! -s conftest.err'
11264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265   (eval $ac_try) 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; } &&
11269          { ac_try='test -s conftest$ac_exeext'
11270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271   (eval $ac_try) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; }; then
11275   am_cv_val_LC_MESSAGES=yes
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 am_cv_val_LC_MESSAGES=no
11281 fi
11282 rm -f conftest.err conftest.$ac_objext \
11283       conftest$ac_exeext conftest.$ac_ext
11284 fi
11285 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11286 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11287   if test $am_cv_val_LC_MESSAGES = yes; then
11288
11289 cat >>confdefs.h <<\_ACEOF
11290 #define HAVE_LC_MESSAGES 1
11291 _ACEOF
11292
11293   fi
11294
11295
11296
11297   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11298 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11299 if test "${am_cv_langinfo_codeset+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h.  */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h.  */
11308 #include <langinfo.h>
11309 int
11310 main ()
11311 {
11312 char* cs = nl_langinfo(CODESET);
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319   (eval $ac_link) 2>conftest.er1
11320   ac_status=$?
11321   grep -v '^ *+' conftest.er1 >conftest.err
11322   rm -f conftest.er1
11323   cat conftest.err >&5
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); } &&
11326          { ac_try='test -z "$ac_c_werror_flag"
11327                          || test ! -s conftest.err'
11328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329   (eval $ac_try) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; } &&
11333          { ac_try='test -s conftest$ac_exeext'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; }; then
11339   am_cv_langinfo_codeset=yes
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344 am_cv_langinfo_codeset=no
11345 fi
11346 rm -f conftest.err conftest.$ac_objext \
11347       conftest$ac_exeext conftest.$ac_ext
11348
11349 fi
11350 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11351 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11352   if test $am_cv_langinfo_codeset = yes; then
11353
11354 cat >>confdefs.h <<\_ACEOF
11355 #define HAVE_LANGINFO_CODESET 1
11356 _ACEOF
11357
11358   fi
11359
11360
11361 # We will need to find libiberty.h and ansidecl.h
11362 saved_CFLAGS="$CFLAGS"
11363 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11404         strsignal strstr strverscmp \
11405         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11406         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
11407 do
11408   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11409 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11410 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11411 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11412   echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414   cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h.  */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h.  */
11420 #undef $ac_tr_decl
11421 #define $ac_tr_decl 1
11422
11423 #include "ansidecl.h"
11424 #include "system.h"
11425
11426 int
11427 main ()
11428 {
11429 #ifndef $ac_func
11430 char *(*pfn) = (char *(*)) $ac_func ;
11431 #endif
11432   ;
11433   return 0;
11434 }
11435 _ACEOF
11436 rm -f conftest.$ac_objext
11437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11438   (eval $ac_compile) 2>conftest.er1
11439   ac_status=$?
11440   grep -v '^ *+' conftest.er1 >conftest.err
11441   rm -f conftest.er1
11442   cat conftest.err >&5
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } &&
11445          { ac_try='test -z "$ac_c_werror_flag"
11446                          || test ! -s conftest.err'
11447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448   (eval $ac_try) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; } &&
11452          { ac_try='test -s conftest.$ac_objext'
11453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454   (eval $ac_try) 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; }; then
11458   eval "gcc_cv_have_decl_$ac_func=yes"
11459 else
11460   echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 eval "gcc_cv_have_decl_$ac_func=no"
11464 fi
11465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11466 fi
11467
11468 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11469   echo "$as_me:$LINENO: result: yes" >&5
11470 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11471 #define $ac_tr_decl 1
11472 _ACEOF
11473
11474 else
11475   echo "$as_me:$LINENO: result: no" >&5
11476 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11477 #define $ac_tr_decl 0
11478 _ACEOF
11479
11480 fi
11481
11482 done
11483
11484
11485
11486
11487
11488 for ac_func in getrlimit setrlimit getrusage
11489 do
11490   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11491 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11492 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11493 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11494   echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496   cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h.  */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h.  */
11502 #undef $ac_tr_decl
11503 #define $ac_tr_decl 1
11504
11505 #include "ansidecl.h"
11506 #include "system.h"
11507 #ifdef HAVE_SYS_RESOURCE_H
11508 #include <sys/resource.h>
11509 #endif
11510
11511
11512 int
11513 main ()
11514 {
11515 #ifndef $ac_func
11516 char *(*pfn) = (char *(*)) $ac_func ;
11517 #endif
11518   ;
11519   return 0;
11520 }
11521 _ACEOF
11522 rm -f conftest.$ac_objext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11524   (eval $ac_compile) 2>conftest.er1
11525   ac_status=$?
11526   grep -v '^ *+' conftest.er1 >conftest.err
11527   rm -f conftest.er1
11528   cat conftest.err >&5
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); } &&
11531          { ac_try='test -z "$ac_c_werror_flag"
11532                          || test ! -s conftest.err'
11533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534   (eval $ac_try) 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); }; } &&
11538          { ac_try='test -s conftest.$ac_objext'
11539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540   (eval $ac_try) 2>&5
11541   ac_status=$?
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); }; }; then
11544   eval "gcc_cv_have_decl_$ac_func=yes"
11545 else
11546   echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 eval "gcc_cv_have_decl_$ac_func=no"
11550 fi
11551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11552 fi
11553
11554 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11555   echo "$as_me:$LINENO: result: yes" >&5
11556 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11557 #define $ac_tr_decl 1
11558 _ACEOF
11559
11560 else
11561   echo "$as_me:$LINENO: result: no" >&5
11562 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11563 #define $ac_tr_decl 0
11564 _ACEOF
11565
11566 fi
11567
11568 done
11569
11570
11571 cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h.  */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h.  */
11577
11578 #include "ansidecl.h"
11579 #include "system.h"
11580 #ifdef HAVE_SYS_RESOURCE_H
11581 #include <sys/resource.h>
11582 #endif
11583
11584 int
11585 main ()
11586 {
11587 rlim_t l = 0;
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594   (eval $ac_compile) 2>conftest.er1
11595   ac_status=$?
11596   grep -v '^ *+' conftest.er1 >conftest.err
11597   rm -f conftest.er1
11598   cat conftest.err >&5
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); } &&
11601          { ac_try='test -z "$ac_c_werror_flag"
11602                          || test ! -s conftest.err'
11603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604   (eval $ac_try) 2>&5
11605   ac_status=$?
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); }; } &&
11608          { ac_try='test -s conftest.$ac_objext'
11609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610   (eval $ac_try) 2>&5
11611   ac_status=$?
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); }; }; then
11614   :
11615 else
11616   echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11618
11619
11620 cat >>confdefs.h <<\_ACEOF
11621 #define rlim_t long
11622 _ACEOF
11623
11624 fi
11625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11626
11627 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11628 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11629 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11630 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11631
11632 for ac_func in ldgetname
11633 do
11634   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11635 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11636 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11637 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11638   echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640   cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h.  */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h.  */
11646 #undef $ac_tr_decl
11647 #define $ac_tr_decl 1
11648
11649 #include "ansidecl.h"
11650 #include "system.h"
11651 #ifdef HAVE_LDFCN_H
11652 #undef FREAD
11653 #undef FWRITE
11654 #include <ldfcn.h>
11655 #endif
11656
11657
11658 int
11659 main ()
11660 {
11661 #ifndef $ac_func
11662 char *(*pfn) = (char *(*)) $ac_func ;
11663 #endif
11664   ;
11665   return 0;
11666 }
11667 _ACEOF
11668 rm -f conftest.$ac_objext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11670   (eval $ac_compile) 2>conftest.er1
11671   ac_status=$?
11672   grep -v '^ *+' conftest.er1 >conftest.err
11673   rm -f conftest.er1
11674   cat conftest.err >&5
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } &&
11677          { ac_try='test -z "$ac_c_werror_flag"
11678                          || test ! -s conftest.err'
11679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680   (eval $ac_try) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; } &&
11684          { ac_try='test -s conftest.$ac_objext'
11685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686   (eval $ac_try) 2>&5
11687   ac_status=$?
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); }; }; then
11690   eval "gcc_cv_have_decl_$ac_func=yes"
11691 else
11692   echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11694
11695 eval "gcc_cv_have_decl_$ac_func=no"
11696 fi
11697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11698 fi
11699
11700 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11701   echo "$as_me:$LINENO: result: yes" >&5
11702 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11703 #define $ac_tr_decl 1
11704 _ACEOF
11705
11706 else
11707   echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11709 #define $ac_tr_decl 0
11710 _ACEOF
11711
11712 fi
11713
11714 done
11715
11716
11717
11718 for ac_func in times
11719 do
11720   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11721 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11722 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11723 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11724   echo $ECHO_N "(cached) $ECHO_C" >&6
11725 else
11726   cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h.  */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h.  */
11732 #undef $ac_tr_decl
11733 #define $ac_tr_decl 1
11734
11735 #include "ansidecl.h"
11736 #include "system.h"
11737 #ifdef HAVE_SYS_TIMES_H
11738 #include <sys/times.h>
11739 #endif
11740
11741
11742 int
11743 main ()
11744 {
11745 #ifndef $ac_func
11746 char *(*pfn) = (char *(*)) $ac_func ;
11747 #endif
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754   (eval $ac_compile) 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -z "$ac_c_werror_flag"
11762                          || test ! -s conftest.err'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; } &&
11768          { ac_try='test -s conftest.$ac_objext'
11769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770   (eval $ac_try) 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); }; }; then
11774   eval "gcc_cv_have_decl_$ac_func=yes"
11775 else
11776   echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11778
11779 eval "gcc_cv_have_decl_$ac_func=no"
11780 fi
11781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11782 fi
11783
11784 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11785   echo "$as_me:$LINENO: result: yes" >&5
11786 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11787 #define $ac_tr_decl 1
11788 _ACEOF
11789
11790 else
11791   echo "$as_me:$LINENO: result: no" >&5
11792 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11793 #define $ac_tr_decl 0
11794 _ACEOF
11795
11796 fi
11797
11798 done
11799
11800
11801
11802 for ac_func in sigaltstack
11803 do
11804   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11805 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11806 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11807 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 #undef $ac_tr_decl
11817 #define $ac_tr_decl 1
11818
11819 #include "ansidecl.h"
11820 #include "system.h"
11821 #include <signal.h>
11822
11823
11824 int
11825 main ()
11826 {
11827 #ifndef $ac_func
11828 char *(*pfn) = (char *(*)) $ac_func ;
11829 #endif
11830   ;
11831   return 0;
11832 }
11833 _ACEOF
11834 rm -f conftest.$ac_objext
11835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11836   (eval $ac_compile) 2>conftest.er1
11837   ac_status=$?
11838   grep -v '^ *+' conftest.er1 >conftest.err
11839   rm -f conftest.er1
11840   cat conftest.err >&5
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); } &&
11843          { ac_try='test -z "$ac_c_werror_flag"
11844                          || test ! -s conftest.err'
11845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846   (eval $ac_try) 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; } &&
11850          { ac_try='test -s conftest.$ac_objext'
11851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852   (eval $ac_try) 2>&5
11853   ac_status=$?
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); }; }; then
11856   eval "gcc_cv_have_decl_$ac_func=yes"
11857 else
11858   echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11860
11861 eval "gcc_cv_have_decl_$ac_func=no"
11862 fi
11863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11864 fi
11865
11866 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11867   echo "$as_me:$LINENO: result: yes" >&5
11868 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11869 #define $ac_tr_decl 1
11870 _ACEOF
11871
11872 else
11873   echo "$as_me:$LINENO: result: no" >&5
11874 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11875 #define $ac_tr_decl 0
11876 _ACEOF
11877
11878 fi
11879
11880 done
11881
11882
11883 # More time-related stuff.
11884 echo "$as_me:$LINENO: checking for struct tms" >&5
11885 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11886 if test "${ac_cv_struct_tms+set}" = set; then
11887   echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896
11897 #include "ansidecl.h"
11898 #include "system.h"
11899 #ifdef HAVE_SYS_TIMES_H
11900 #include <sys/times.h>
11901 #endif
11902
11903 int
11904 main ()
11905 {
11906 struct tms tms;
11907   ;
11908   return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913   (eval $ac_compile) 2>conftest.er1
11914   ac_status=$?
11915   grep -v '^ *+' conftest.er1 >conftest.err
11916   rm -f conftest.er1
11917   cat conftest.err >&5
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); } &&
11920          { ac_try='test -z "$ac_c_werror_flag"
11921                          || test ! -s conftest.err'
11922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923   (eval $ac_try) 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); }; } &&
11927          { ac_try='test -s conftest.$ac_objext'
11928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929   (eval $ac_try) 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; }; then
11933   ac_cv_struct_tms=yes
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938 ac_cv_struct_tms=no
11939 fi
11940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11941 fi
11942 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11943 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11944 if test $ac_cv_struct_tms = yes; then
11945
11946 cat >>confdefs.h <<\_ACEOF
11947 #define HAVE_STRUCT_TMS 1
11948 _ACEOF
11949
11950 fi
11951
11952 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11953 # revisit after autoconf 2.50.
11954 echo "$as_me:$LINENO: checking for clock_t" >&5
11955 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11956 if test "${gcc_cv_type_clock_t+set}" = set; then
11957   echo $ECHO_N "(cached) $ECHO_C" >&6
11958 else
11959
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h.  */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h.  */
11966
11967 #include "ansidecl.h"
11968 #include "system.h"
11969
11970 int
11971 main ()
11972 {
11973 clock_t x;
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 rm -f conftest.$ac_objext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11980   (eval $ac_compile) 2>conftest.er1
11981   ac_status=$?
11982   grep -v '^ *+' conftest.er1 >conftest.err
11983   rm -f conftest.er1
11984   cat conftest.err >&5
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); } &&
11987          { ac_try='test -z "$ac_c_werror_flag"
11988                          || test ! -s conftest.err'
11989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990   (eval $ac_try) 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; } &&
11994          { ac_try='test -s conftest.$ac_objext'
11995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996   (eval $ac_try) 2>&5
11997   ac_status=$?
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); }; }; then
12000   gcc_cv_type_clock_t=yes
12001 else
12002   echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12004
12005 gcc_cv_type_clock_t=no
12006 fi
12007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12008 fi
12009 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12010 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12011 if test $gcc_cv_type_clock_t = yes; then
12012
12013 cat >>confdefs.h <<\_ACEOF
12014 #define HAVE_CLOCK_T 1
12015 _ACEOF
12016
12017 fi
12018
12019 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12020 CFLAGS="$saved_CFLAGS"
12021
12022 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12023 if test "${enable_initfini_array+set}" = set; then
12024   enableval="$enable_initfini_array"
12025
12026 else
12027
12028 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12029 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12030 if test "${gcc_cv_initfini_array+set}" = set; then
12031   echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033     if test "$cross_compiling" = yes; then
12034   gcc_cv_initfini_array=no
12035 else
12036   cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042
12043 static int x = -1;
12044 int main (void) { return x; }
12045 int foo (void) { x = 0; }
12046 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12047 _ACEOF
12048 rm -f conftest$ac_exeext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050   (eval $ac_link) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055   (eval $ac_try) 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); }; }; then
12059   gcc_cv_initfini_array=yes
12060 else
12061   echo "$as_me: program exited with status $ac_status" >&5
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 ( exit $ac_status )
12066 gcc_cv_initfini_array=no
12067 fi
12068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12069 fi
12070 fi
12071 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12072 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12073   enable_initfini_array=$gcc_cv_initfini_array
12074
12075 fi;
12076 if test $enable_initfini_array = yes; then
12077
12078 cat >>confdefs.h <<\_ACEOF
12079 #define HAVE_INITFINI_ARRAY 1
12080 _ACEOF
12081
12082 fi
12083
12084 # mkdir takes a single argument on some systems.
12085 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12086 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12087 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12088   echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090   cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h.  */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h.  */
12096
12097 #include <sys/types.h>
12098 #ifdef HAVE_SYS_STAT_H
12099 # include <sys/stat.h>
12100 #endif
12101 #ifdef HAVE_UNISTD_H
12102 # include <unistd.h>
12103 #endif
12104 #ifdef HAVE_DIRECT_H
12105 # include <direct.h>
12106 #endif
12107 int
12108 main ()
12109 {
12110 mkdir ("foo", 0);
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   gcc_cv_mkdir_takes_one_arg=no
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142 gcc_cv_mkdir_takes_one_arg=yes
12143 fi
12144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145 fi
12146 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12147 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12148 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12149
12150 cat >>confdefs.h <<\_ACEOF
12151 #define MKDIR_TAKES_ONE_ARG 1
12152 _ACEOF
12153
12154 fi
12155
12156
12157 # File extensions
12158 manext='.1'
12159 objext='.o'
12160
12161
12162
12163 # With Setjmp/Longjmp based exception handling.
12164 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12165 if test "${enable_sjlj_exceptions+set}" = set; then
12166   enableval="$enable_sjlj_exceptions"
12167   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12168
12169 cat >>confdefs.h <<_ACEOF
12170 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12171 _ACEOF
12172
12173 fi;
12174
12175 # For platforms with the unwind ABI which includes an unwind library,
12176 # libunwind, we can choose to use the system libunwind.
12177
12178 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12179 if test "${with_system_libunwind+set}" = set; then
12180   withval="$with_system_libunwind"
12181
12182 fi;
12183
12184 # config.gcc also contains tests of with_system_libunwind.
12185 if test x$with_system_libunwind = xyes; then
12186
12187 cat >>confdefs.h <<\_ACEOF
12188 #define HAVE_GETIPINFO 1
12189 _ACEOF
12190
12191 fi
12192
12193 # --------------------------------------------------------
12194 # Build, host, and target specific configuration fragments
12195 # --------------------------------------------------------
12196
12197 # Collect build-machine-specific information.
12198 . ${srcdir}/config.build
12199
12200 # Collect host-machine-specific information.
12201 . ${srcdir}/config.host
12202
12203 target_gtfiles=
12204
12205 # Collect target-machine-specific information.
12206 . ${srcdir}/config.gcc
12207
12208 extra_objs="${host_extra_objs} ${extra_objs}"
12209 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12210
12211 # Default the target-machine variables that were not explicitly set.
12212 if test x"$tm_file" = x
12213 then tm_file=$cpu_type/$cpu_type.h; fi
12214
12215 if test x"$extra_headers" = x
12216 then extra_headers=; fi
12217
12218 if test x$md_file = x
12219 then md_file=$cpu_type/$cpu_type.md; fi
12220
12221 if test x$out_file = x
12222 then out_file=$cpu_type/$cpu_type.c; fi
12223
12224 if test x"$tmake_file" = x
12225 then tmake_file=$cpu_type/t-$cpu_type
12226 fi
12227
12228 if test x"$dwarf2" = xyes
12229 then tm_file="$tm_file tm-dwarf2.h"
12230 fi
12231
12232 # Say what files are being used for the output code and MD file.
12233 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12234 echo "Using \`$srcdir/config/$md_file' as machine description file."
12235
12236 # If any of the xm_file variables contain nonexistent files, warn
12237 # about them and drop them.
12238
12239 bx=
12240 for x in $build_xm_file; do
12241   if    test -f $srcdir/config/$x
12242   then      bx="$bx $x"
12243   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12244 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12245   fi
12246 done
12247 build_xm_file="$bx"
12248
12249 hx=
12250 for x in $host_xm_file; do
12251   if    test -f $srcdir/config/$x
12252   then      hx="$hx $x"
12253   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12254 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12255   fi
12256 done
12257 host_xm_file="$hx"
12258
12259 tx=
12260 for x in $xm_file; do
12261   if    test -f $srcdir/config/$x
12262   then      tx="$tx $x"
12263   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12264 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12265   fi
12266 done
12267 xm_file="$tx"
12268
12269 count=a
12270 for f in $tm_file; do
12271         count=${count}x
12272 done
12273 if test $count = ax; then
12274         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12275 else
12276         echo "Using the following target machine macro files:"
12277         for f in $tm_file; do
12278                 echo "  $srcdir/config/$f"
12279         done
12280 fi
12281
12282 if test x$need_64bit_hwint = xyes; then
12283
12284 cat >>confdefs.h <<\_ACEOF
12285 #define NEED_64BIT_HOST_WIDE_INT 1
12286 _ACEOF
12287
12288 fi
12289
12290 if test x$use_long_long_for_widest_fast_int = xyes; then
12291
12292 cat >>confdefs.h <<\_ACEOF
12293 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12294 _ACEOF
12295
12296 fi
12297
12298 count=a
12299 for f in $host_xm_file; do
12300         count=${count}x
12301 done
12302 if test $count = a; then
12303         :
12304 elif test $count = ax; then
12305         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12306 else
12307         echo "Using the following host machine macro files:"
12308         for f in $host_xm_file; do
12309                 echo "  $srcdir/config/$f"
12310         done
12311 fi
12312 echo "Using ${out_host_hook_obj} for host machine hooks."
12313
12314 if test "$host_xm_file" != "$build_xm_file"; then
12315         count=a
12316         for f in $build_xm_file; do
12317                 count=${count}x
12318         done
12319         if test $count = a; then
12320                 :
12321         elif test $count = ax; then
12322                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12323         else
12324                 echo "Using the following build machine macro files:"
12325                 for f in $build_xm_file; do
12326                         echo "  $srcdir/config/$f"
12327                 done
12328         fi
12329 fi
12330
12331 case ${host} in
12332   powerpc*-*-darwin*)
12333     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12334 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12335 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   cat >conftest.$ac_ext <<_ACEOF
12339
12340 #include <sys/cdefs.h>
12341 #include <sys/signal.h>
12342 #include <ucontext.h>
12343 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12344
12345 _ACEOF
12346 rm -f conftest.$ac_objext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12348   (eval $ac_compile) 2>conftest.er1
12349   ac_status=$?
12350   grep -v '^ *+' conftest.er1 >conftest.err
12351   rm -f conftest.er1
12352   cat conftest.err >&5
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); } &&
12355          { ac_try='test -z "$ac_c_werror_flag"
12356                          || test ! -s conftest.err'
12357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; } &&
12362          { ac_try='test -s conftest.$ac_objext'
12363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364   (eval $ac_try) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }; }; then
12368   gcc_cv_mcontext_underscores=no
12369 else
12370   echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12372
12373 gcc_cv_mcontext_underscores=yes
12374 fi
12375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12376 fi
12377 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12378 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12379       if test $gcc_cv_mcontext_underscores = yes; then
12380
12381 cat >>confdefs.h <<\_ACEOF
12382 #define HAS_MCONTEXT_T_UNDERSCORES
12383 _ACEOF
12384
12385       fi
12386     ;;
12387 esac
12388
12389 # ---------
12390 # Threading
12391 # ---------
12392
12393 # Check if a valid thread package
12394 case ${enable_threads} in
12395   "" | no)
12396     # No threads
12397     target_thread_file='single'
12398     ;;
12399   yes)
12400     # default
12401     target_thread_file='single'
12402     ;;
12403   aix | dce | gnat | irix | posix | posix95 | rtems | \
12404   single | solaris | vxworks | win32 )
12405     target_thread_file=${enable_threads}
12406     ;;
12407   *)
12408     echo "${enable_threads} is an unknown thread package" 1>&2
12409     exit 1
12410     ;;
12411 esac
12412
12413 if test x${thread_file} = x; then
12414   # No thread file set by target-specific clauses in config.gcc,
12415   # so use file chosen by default logic above
12416   thread_file=${target_thread_file}
12417 fi
12418
12419 # Make gthr-default.h if we have a thread file.
12420 gthread_flags=
12421 if test $thread_file != single; then
12422   rm -f gthr-default.h
12423   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12424   gthread_flags=-DHAVE_GTHR_DEFAULT
12425 fi
12426
12427
12428 # --------
12429 # UNSORTED
12430 # --------
12431
12432 use_cxa_atexit=no
12433 if test x$enable___cxa_atexit = xyes || \
12434    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12435   if test x$host = x$target; then
12436     case $host in
12437       # mingw32 doesn't have __cxa_atexit but uses atexit registration
12438       # keyed to flag_use_cxa_atexit
12439       *-*-mingw32*)
12440         use_cxa_atexit=yes
12441         ;;
12442       *)
12443         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12444 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12445 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12446   echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448   cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h.  */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h.  */
12454 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12456 #define __cxa_atexit innocuous___cxa_atexit
12457
12458 /* System header to define __stub macros and hopefully few prototypes,
12459     which can conflict with char __cxa_atexit (); below.
12460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12461     <limits.h> exists even on freestanding compilers.  */
12462
12463 #ifdef __STDC__
12464 # include <limits.h>
12465 #else
12466 # include <assert.h>
12467 #endif
12468
12469 #undef __cxa_atexit
12470
12471 /* Override any gcc2 internal prototype to avoid an error.  */
12472 #ifdef __cplusplus
12473 extern "C"
12474 {
12475 #endif
12476 /* We use char because int might match the return type of a gcc2
12477    builtin and then its argument prototype would still apply.  */
12478 char __cxa_atexit ();
12479 /* The GNU C library defines this for functions which it implements
12480     to always fail with ENOSYS.  Some functions are actually named
12481     something starting with __ and the normal name is an alias.  */
12482 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12483 choke me
12484 #else
12485 char (*f) () = __cxa_atexit;
12486 #endif
12487 #ifdef __cplusplus
12488 }
12489 #endif
12490
12491 int
12492 main ()
12493 {
12494 return f != __cxa_atexit;
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 rm -f conftest.$ac_objext conftest$ac_exeext
12500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12501   (eval $ac_link) 2>conftest.er1
12502   ac_status=$?
12503   grep -v '^ *+' conftest.er1 >conftest.err
12504   rm -f conftest.er1
12505   cat conftest.err >&5
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } &&
12508          { ac_try='test -z "$ac_c_werror_flag"
12509                          || test ! -s conftest.err'
12510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511   (eval $ac_try) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }; } &&
12515          { ac_try='test -s conftest$ac_exeext'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; }; then
12521   ac_cv_func___cxa_atexit=yes
12522 else
12523   echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526 ac_cv_func___cxa_atexit=no
12527 fi
12528 rm -f conftest.err conftest.$ac_objext \
12529       conftest$ac_exeext conftest.$ac_ext
12530 fi
12531 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12532 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12533 if test $ac_cv_func___cxa_atexit = yes; then
12534   use_cxa_atexit=yes
12535 else
12536   echo "__cxa_atexit can't be enabled on this target"
12537 fi
12538
12539         ;;
12540     esac
12541   else
12542     # We can't check for __cxa_atexit when building a cross, so assume
12543     # it is available
12544     use_cxa_atexit=yes
12545   fi
12546   if test x$use_cxa_atexit = xyes; then
12547
12548 cat >>confdefs.h <<\_ACEOF
12549 #define DEFAULT_USE_CXA_ATEXIT 2
12550 _ACEOF
12551
12552   fi
12553 fi
12554
12555 use_getipinfo=yes
12556 if test x$with_system_libunwind = xyes; then
12557    if test x$host = x$target; then
12558      echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12559 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12560 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12561   echo $ECHO_N "(cached) $ECHO_C" >&6
12562 else
12563   ac_func_search_save_LIBS=$LIBS
12564 ac_cv_search__Unwind_GetIPInfo=no
12565 cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h.  */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h.  */
12571
12572 /* Override any gcc2 internal prototype to avoid an error.  */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 /* We use char because int might match the return type of a gcc2
12577    builtin and then its argument prototype would still apply.  */
12578 char _Unwind_GetIPInfo ();
12579 int
12580 main ()
12581 {
12582 _Unwind_GetIPInfo ();
12583   ;
12584   return 0;
12585 }
12586 _ACEOF
12587 rm -f conftest.$ac_objext conftest$ac_exeext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12589   (eval $ac_link) 2>conftest.er1
12590   ac_status=$?
12591   grep -v '^ *+' conftest.er1 >conftest.err
12592   rm -f conftest.er1
12593   cat conftest.err >&5
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } &&
12596          { ac_try='test -z "$ac_c_werror_flag"
12597                          || test ! -s conftest.err'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; } &&
12603          { ac_try='test -s conftest$ac_exeext'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; }; then
12609   ac_cv_search__Unwind_GetIPInfo="none required"
12610 else
12611   echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 fi
12615 rm -f conftest.err conftest.$ac_objext \
12616       conftest$ac_exeext conftest.$ac_ext
12617 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12618   for ac_lib in unwind; do
12619     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12620     cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h.  */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h.  */
12626
12627 /* Override any gcc2 internal prototype to avoid an error.  */
12628 #ifdef __cplusplus
12629 extern "C"
12630 #endif
12631 /* We use char because int might match the return type of a gcc2
12632    builtin and then its argument prototype would still apply.  */
12633 char _Unwind_GetIPInfo ();
12634 int
12635 main ()
12636 {
12637 _Unwind_GetIPInfo ();
12638   ;
12639   return 0;
12640 }
12641 _ACEOF
12642 rm -f conftest.$ac_objext conftest$ac_exeext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12644   (eval $ac_link) 2>conftest.er1
12645   ac_status=$?
12646   grep -v '^ *+' conftest.er1 >conftest.err
12647   rm -f conftest.er1
12648   cat conftest.err >&5
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); } &&
12651          { ac_try='test -z "$ac_c_werror_flag"
12652                          || test ! -s conftest.err'
12653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654   (eval $ac_try) 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; } &&
12658          { ac_try='test -s conftest$ac_exeext'
12659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660   (eval $ac_try) 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); }; }; then
12664   ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12665 break
12666 else
12667   echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12669
12670 fi
12671 rm -f conftest.err conftest.$ac_objext \
12672       conftest$ac_exeext conftest.$ac_ext
12673   done
12674 fi
12675 LIBS=$ac_func_search_save_LIBS
12676 fi
12677 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12678 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12679 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12680   test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12681
12682 else
12683   use_getipinfo=no
12684 fi
12685
12686    fi
12687 fi
12688
12689 if test x$use_getipinfo = xyes; then
12690
12691 cat >>confdefs.h <<\_ACEOF
12692 #define HAVE_GETIPINFO 1
12693 _ACEOF
12694
12695 else
12696    echo "The system unwind library does not support _Unwind_GetIPInfo."
12697 fi
12698
12699 # Look for a file containing extra machine modes.
12700 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12701   extra_modes_file='$(srcdir)'/config/${extra_modes}
12702
12703
12704 cat >>confdefs.h <<_ACEOF
12705 #define EXTRA_MODES_FILE "config/$extra_modes"
12706 _ACEOF
12707
12708 fi
12709
12710 # Convert extra_options into a form suitable for Makefile use.
12711 extra_opt_files=
12712 for f in $extra_options; do
12713   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12714 done
12715
12716
12717 # auto-host.h is the file containing items generated by autoconf and is
12718 # the first file included by config.h.
12719 # If host=build, it is correct to have bconfig include auto-host.h
12720 # as well.  If host!=build, we are in error and need to do more
12721 # work to find out the build config parameters.
12722 if test x$host = x$build
12723 then
12724         build_auto=auto-host.h
12725 else
12726         # We create a subdir, then run autoconf in the subdir.
12727         # To prevent recursion we set host and build for the new
12728         # invocation of configure to the build for this invocation
12729         # of configure.
12730         tempdir=build.$$
12731         rm -rf $tempdir
12732         mkdir $tempdir
12733         cd $tempdir
12734         case ${srcdir} in
12735         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12736         *) realsrcdir=../${srcdir};;
12737         esac
12738         saved_CFLAGS="${CFLAGS}"
12739         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12740         ${realsrcdir}/configure \
12741                 --enable-languages=${enable_languages-all} \
12742                 --target=$target_alias --host=$build_alias --build=$build_alias
12743         CFLAGS="${saved_CFLAGS}"
12744
12745         # We just finished tests for the build machine, so rename
12746         # the file auto-build.h in the gcc directory.
12747         mv auto-host.h ../auto-build.h
12748         cd ..
12749         rm -rf $tempdir
12750         build_auto=auto-build.h
12751 fi
12752
12753
12754 tm_file="${tm_file} defaults.h"
12755 tm_p_file="${tm_p_file} tm-preds.h"
12756 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12757 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12758 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12759 # put this back in temporarily.
12760 xm_file="auto-host.h ansidecl.h ${xm_file}"
12761
12762 # --------
12763 # UNSORTED
12764 # --------
12765
12766 # Compile in configure arguments.
12767 if test -f configargs.h ; then
12768         # Being re-configured.
12769         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12770         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12771 else
12772         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12773 fi
12774
12775 # Double all backslashes and backslash all quotes to turn
12776 # gcc_config_arguments into a C string.
12777 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12778 $gcc_config_arguments
12779 EOF
12780 gcc_config_arguments_str=`cat conftest.out`
12781 rm -f conftest.out
12782
12783 cat > configargs.h <<EOF
12784 /* Generated automatically. */
12785 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12786 static const char thread_model[] = "$thread_file";
12787
12788 static const struct {
12789   const char *name, *value;
12790 } configure_default_options[] = $configure_default_options;
12791 EOF
12792
12793 # Internationalization
12794 # If we haven't got the data from the intl directory,
12795 # assume NLS is disabled.
12796 USE_NLS=no
12797 LIBINTL=
12798 LIBINTL_DEP=
12799 INCINTL=
12800 XGETTEXT=
12801 GMSGFMT=
12802 POSUB=
12803
12804 if test -f  ../intl/config.intl; then
12805   .  ../intl/config.intl
12806 fi
12807 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12808 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12809 if test x"$USE_NLS" != xyes; then
12810   echo "$as_me:$LINENO: result: no" >&5
12811 echo "${ECHO_T}no" >&6
12812 else
12813   echo "$as_me:$LINENO: result: yes" >&5
12814 echo "${ECHO_T}yes" >&6
12815
12816 cat >>confdefs.h <<\_ACEOF
12817 #define ENABLE_NLS 1
12818 _ACEOF
12819
12820
12821   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12822 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12823   # Look for .po and .gmo files in the source directory.
12824   CATALOGS=
12825   XLINGUAS=
12826   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12827     # If there aren't any .gmo files the shell will give us the
12828     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12829     # weeded out.
12830     case "$cat" in *\**)
12831       continue;;
12832     esac
12833     # The quadruple backslash is collapsed to a double backslash
12834     # by the backticks, then collapsed again by the double quotes,
12835     # leaving us with one backslash in the sed expression (right
12836     # before the dot that mustn't act as a wildcard).
12837     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12838     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12839     # The user is allowed to set LINGUAS to a list of languages to
12840     # install catalogs for.  If it's empty that means "all of them."
12841     if test "x$LINGUAS" = x; then
12842       CATALOGS="$CATALOGS $cat"
12843       XLINGUAS="$XLINGUAS $lang"
12844     else
12845       case "$LINGUAS" in *$lang*)
12846         CATALOGS="$CATALOGS $cat"
12847         XLINGUAS="$XLINGUAS $lang"
12848         ;;
12849       esac
12850     fi
12851   done
12852   LINGUAS="$XLINGUAS"
12853   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12854 echo "${ECHO_T}$LINGUAS" >&6
12855
12856
12857     DATADIRNAME=share
12858
12859   INSTOBJEXT=.mo
12860
12861   GENCAT=gencat
12862
12863   CATOBJEXT=.gmo
12864
12865 fi
12866
12867 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12868 # -liconv on the link line twice.
12869 case "$LIBINTL" in *$LIBICONV*)
12870         LIBICONV= ;;
12871 esac
12872
12873 # Check whether --enable-secureplt or --disable-secureplt was given.
12874 if test "${enable_secureplt+set}" = set; then
12875   enableval="$enable_secureplt"
12876
12877 fi;
12878
12879 # Windows32 Registry support for specifying GCC installation paths.
12880 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12881 if test "${enable_win32_registry+set}" = set; then
12882   enableval="$enable_win32_registry"
12883
12884 fi;
12885
12886 case $host_os in
12887   win32 | pe | cygwin* | mingw32* | uwin*)
12888     if test "x$enable_win32_registry" != xno; then
12889       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12890 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12891 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12892   echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894   ac_func_search_save_LIBS=$LIBS
12895 ac_cv_search_RegOpenKeyExA=no
12896 cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902
12903 /* Override any gcc2 internal prototype to avoid an error.  */
12904 #ifdef __cplusplus
12905 extern "C"
12906 #endif
12907 /* We use char because int might match the return type of a gcc2
12908    builtin and then its argument prototype would still apply.  */
12909 char RegOpenKeyExA ();
12910 int
12911 main ()
12912 {
12913 RegOpenKeyExA ();
12914   ;
12915   return 0;
12916 }
12917 _ACEOF
12918 rm -f conftest.$ac_objext conftest$ac_exeext
12919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920   (eval $ac_link) 2>conftest.er1
12921   ac_status=$?
12922   grep -v '^ *+' conftest.er1 >conftest.err
12923   rm -f conftest.er1
12924   cat conftest.err >&5
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } &&
12927          { ac_try='test -z "$ac_c_werror_flag"
12928                          || test ! -s conftest.err'
12929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930   (eval $ac_try) 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }; } &&
12934          { ac_try='test -s conftest$ac_exeext'
12935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936   (eval $ac_try) 2>&5
12937   ac_status=$?
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); }; }; then
12940   ac_cv_search_RegOpenKeyExA="none required"
12941 else
12942   echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12944
12945 fi
12946 rm -f conftest.err conftest.$ac_objext \
12947       conftest$ac_exeext conftest.$ac_ext
12948 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12949   for ac_lib in advapi32; do
12950     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12951     cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h.  */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h.  */
12957
12958 /* Override any gcc2 internal prototype to avoid an error.  */
12959 #ifdef __cplusplus
12960 extern "C"
12961 #endif
12962 /* We use char because int might match the return type of a gcc2
12963    builtin and then its argument prototype would still apply.  */
12964 char RegOpenKeyExA ();
12965 int
12966 main ()
12967 {
12968 RegOpenKeyExA ();
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12975   (eval $ac_link) 2>conftest.er1
12976   ac_status=$?
12977   grep -v '^ *+' conftest.er1 >conftest.err
12978   rm -f conftest.er1
12979   cat conftest.err >&5
12980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); } &&
12982          { ac_try='test -z "$ac_c_werror_flag"
12983                          || test ! -s conftest.err'
12984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985   (eval $ac_try) 2>&5
12986   ac_status=$?
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); }; } &&
12989          { ac_try='test -s conftest$ac_exeext'
12990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991   (eval $ac_try) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; }; then
12995   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12996 break
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 fi
13002 rm -f conftest.err conftest.$ac_objext \
13003       conftest$ac_exeext conftest.$ac_ext
13004   done
13005 fi
13006 LIBS=$ac_func_search_save_LIBS
13007 fi
13008 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13009 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13010 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13011   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13012
13013 else
13014   enable_win32_registry=no
13015 fi
13016
13017     fi
13018
13019     if test "x$enable_win32_registry" != xno; then
13020
13021 cat >>confdefs.h <<\_ACEOF
13022 #define ENABLE_WIN32_REGISTRY 1
13023 _ACEOF
13024
13025
13026       if test "x$enable_win32_registry" != xyes \
13027          && test "x$enable_win32_registry" != x; then
13028
13029 cat >>confdefs.h <<_ACEOF
13030 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13031 _ACEOF
13032
13033       fi
13034     fi
13035   ;;
13036 esac
13037
13038 # Get an absolute path to the GCC top-level source directory
13039 holddir=`${PWDCMD-pwd}`
13040 cd $srcdir
13041 topdir=`${PWDCMD-pwd}`
13042 cd $holddir
13043
13044 # Conditionalize the makefile for this host machine.
13045 xmake_file=
13046 for f in ${host_xmake_file}
13047 do
13048         if test -f ${srcdir}/config/$f
13049         then
13050                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13051         fi
13052 done
13053
13054 # Conditionalize the makefile for this target machine.
13055 tmake_file_=
13056 for f in ${tmake_file}
13057 do
13058         if test -f ${srcdir}/config/$f
13059         then
13060                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13061         fi
13062 done
13063 tmake_file="${tmake_file_}"
13064
13065 # This is a terrible hack which will go away some day.
13066 host_cc_for_libada=${CC}
13067
13068
13069 out_object_file=`basename $out_file .c`.o
13070
13071 tm_file_list="options.h"
13072 tm_include_list="options.h"
13073 for f in $tm_file; do
13074   case $f in
13075     ./* )
13076        f=`echo $f | sed 's/^..//'`
13077        tm_file_list="${tm_file_list} $f"
13078        tm_include_list="${tm_include_list} $f"
13079        ;;
13080     defaults.h )
13081        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13082        tm_include_list="${tm_include_list} $f"
13083        ;;
13084     * )
13085        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13086        tm_include_list="${tm_include_list} config/$f"
13087        ;;
13088   esac
13089 done
13090
13091 tm_p_file_list=
13092 tm_p_include_list=
13093 for f in $tm_p_file; do
13094   case $f in
13095     tm-preds.h )
13096        tm_p_file_list="${tm_p_file_list} $f"
13097        tm_p_include_list="${tm_p_include_list} $f"
13098        ;;
13099     * )
13100        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13101        tm_p_include_list="${tm_p_include_list} config/$f"
13102   esac
13103 done
13104
13105 xm_file_list=
13106 xm_include_list=
13107 for f in $xm_file; do
13108   case $f in
13109     ansidecl.h )
13110        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13111        xm_include_list="${xm_include_list} $f"
13112        ;;
13113     auto-host.h )
13114        xm_file_list="${xm_file_list} $f"
13115        xm_include_list="${xm_include_list} $f"
13116        ;;
13117     * )
13118        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13119        xm_include_list="${xm_include_list} config/$f"
13120        ;;
13121   esac
13122 done
13123
13124 host_xm_file_list=
13125 host_xm_include_list=
13126 for f in $host_xm_file; do
13127   case $f in
13128     ansidecl.h )
13129        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13130        host_xm_include_list="${host_xm_include_list} $f"
13131        ;;
13132     auto-host.h )
13133        host_xm_file_list="${host_xm_file_list} $f"
13134        host_xm_include_list="${host_xm_include_list} $f"
13135        ;;
13136     * )
13137        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13138        host_xm_include_list="${host_xm_include_list} config/$f"
13139        ;;
13140   esac
13141 done
13142
13143 build_xm_file_list=
13144 for f in $build_xm_file; do
13145   case $f in
13146     ansidecl.h )
13147        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13148        build_xm_include_list="${build_xm_include_list} $f"
13149        ;;
13150     auto-build.h | auto-host.h )
13151        build_xm_file_list="${build_xm_file_list} $f"
13152        build_xm_include_list="${build_xm_include_list} $f"
13153        ;;
13154     * )
13155        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13156        build_xm_include_list="${build_xm_include_list} config/$f"
13157        ;;
13158   esac
13159 done
13160
13161 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13162 # cross-compiler which does not use the native headers and libraries.
13163 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13164 CROSS=
13165 ALL=all.internal
13166 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13167
13168 if test "x$with_build_sysroot" != x; then
13169   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13170 else
13171   # This value is used, even on a native system, because
13172   # CROSS_SYSTEM_HEADER_DIR is just
13173   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13174   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13175 fi
13176
13177 if test x$host != x$target
13178 then
13179         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13180         ALL=all.cross
13181         SYSTEM_HEADER_DIR=$build_system_header_dir
13182         case "$host","$target" in
13183         # Darwin crosses can use the host system's libraries and headers,
13184         # because of the fat library support.  Of course, it must be the
13185         # same version of Darwin on both sides.  Allow the user to
13186         # just say --target=foo-darwin without a version number to mean
13187         # "the version on this system".
13188             *-*-darwin*,*-*-darwin*)
13189                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13190                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13191                 if test $hostos = $targetos -o $targetos = darwin ; then
13192                     CROSS=
13193                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13194                     with_headers=yes
13195                 fi
13196                 ;;
13197
13198             i?86-*-*,x86_64-*-* \
13199             | powerpc*-*-*,powerpc64*-*-*)
13200                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13201         esac
13202 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13203         SYSTEM_HEADER_DIR=$build_system_header_dir
13204 fi
13205
13206 # If this is a cross-compiler that does not
13207 # have its own set of headers then define
13208 # inhibit_libc
13209
13210 # If this is using newlib, without having the headers available now,
13211 # then define inhibit_libc in LIBGCC2_CFLAGS.
13212 # This prevents libgcc2 from containing any code which requires libc
13213 # support.
13214 inhibit_libc=false
13215 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13216        test x$with_newlib = xyes ; } &&
13217      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13218        inhibit_libc=true
13219 fi
13220
13221
13222 # When building gcc with a cross-compiler, we need to adjust things so
13223 # that the generator programs are still built with the native compiler.
13224 # Also, we cannot run fixincludes or fix-header.
13225
13226 # These are the normal (build=host) settings:
13227 CC_FOR_BUILD='$(CC)'
13228 BUILD_CFLAGS='$(ALL_CFLAGS)'
13229 STMP_FIXINC=stmp-fixinc
13230
13231 # Possibly disable fixproto, on a per-target basis.
13232 case ${use_fixproto} in
13233   no)
13234     STMP_FIXPROTO=
13235     ;;
13236   yes)
13237     STMP_FIXPROTO=stmp-fixproto
13238     ;;
13239 esac
13240
13241
13242 # And these apply if build != host, or we are generating coverage data
13243 if test x$build != x$host || test "x$coverage_flags" != x
13244 then
13245     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13246
13247     if test "x$TARGET_SYSTEM_ROOT" = x; then
13248         if test "x$STMP_FIXPROTO" != x; then
13249           STMP_FIXPROTO=stmp-install-fixproto
13250         fi
13251     fi
13252 fi
13253
13254 # Expand extra_headers to include complete path.
13255 # This substitutes for lots of t-* files.
13256 extra_headers_list=
13257 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13258 for file in ${extra_headers} ; do
13259   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13260 done
13261
13262 # Define collect2 in Makefile.
13263 case $host_can_use_collect2 in
13264   no) collect2= ;;
13265   *) collect2='collect2$(exeext)' ;;
13266 esac
13267
13268
13269 # Add a definition of USE_COLLECT2 if system wants one.
13270 case $use_collect2 in
13271   no) use_collect2= ;;
13272   "") ;;
13273   *)
13274     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13275     xm_defines="${xm_defines} USE_COLLECT2"
13276     case $host_can_use_collect2 in
13277       no)
13278         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13279 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13280    { (exit 1); exit 1; }; }
13281         ;;
13282     esac
13283     ;;
13284 esac
13285
13286 # ---------------------------
13287 # Assembler & linker features
13288 # ---------------------------
13289
13290 # Identify the assembler which will work hand-in-glove with the newly
13291 # built GCC, so that we can examine its features.  This is the assembler
13292 # which will be driven by the driver program.
13293 #
13294 # If build != host, and we aren't building gas in-tree, we identify a
13295 # build->target assembler and hope that it will have the same features
13296 # as the host->target assembler we'll be using.
13297 gcc_cv_gas_major_version=
13298 gcc_cv_gas_minor_version=
13299 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13300
13301 if test "${gcc_cv_as+set}" = set; then
13302   :
13303 else
13304
13305 if test -x "$DEFAULT_ASSEMBLER"; then
13306         gcc_cv_as="$DEFAULT_ASSEMBLER"
13307 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13308      && test -f ../gas/Makefile \
13309      && test x$build = x$host; then
13310         gcc_cv_as=../gas/as-new$build_exeext
13311 elif test -x as$build_exeext; then
13312         # Build using assembler in the current directory.
13313         gcc_cv_as=./as$build_exeext
13314 elif test -x $AS_FOR_TARGET; then
13315         gcc_cv_as="$AS_FOR_TARGET"
13316 else
13317         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13318 set dummy $AS_FOR_TARGET; ac_word=$2
13319 echo "$as_me:$LINENO: checking for $ac_word" >&5
13320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13321 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13322   echo $ECHO_N "(cached) $ECHO_C" >&6
13323 else
13324   case $gcc_cv_as in
13325   [\\/]* | ?:[\\/]*)
13326   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13327   ;;
13328   *)
13329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13331 do
13332   IFS=$as_save_IFS
13333   test -z "$as_dir" && as_dir=.
13334   for ac_exec_ext in '' $ac_executable_extensions; do
13335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13336     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13338     break 2
13339   fi
13340 done
13341 done
13342
13343   ;;
13344 esac
13345 fi
13346 gcc_cv_as=$ac_cv_path_gcc_cv_as
13347
13348 if test -n "$gcc_cv_as"; then
13349   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13350 echo "${ECHO_T}$gcc_cv_as" >&6
13351 else
13352   echo "$as_me:$LINENO: result: no" >&5
13353 echo "${ECHO_T}no" >&6
13354 fi
13355
13356 fi
13357 fi
13358
13359
13360 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13361
13362 case "$ORIGINAL_AS_FOR_TARGET" in
13363   ./as | ./as$build_exeext) ;;
13364   *)           ac_config_files="$ac_config_files as:exec-tool.in"
13365  ;;
13366 esac
13367
13368 echo "$as_me:$LINENO: checking what assembler to use" >&5
13369 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13370 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13371   # Single tree build which includes gas.  We want to prefer it
13372   # over whatever linker top-level may have detected, since
13373   # we'll use what we're building after installation anyway.
13374   echo "$as_me:$LINENO: result: newly built gas" >&5
13375 echo "${ECHO_T}newly built gas" >&6
13376   in_tree_gas=yes
13377   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13378 for f in $gcc_cv_as_bfd_srcdir/configure \
13379          $gcc_cv_as_gas_srcdir/configure \
13380          $gcc_cv_as_gas_srcdir/configure.in \
13381          $gcc_cv_as_gas_srcdir/Makefile.in ; do
13382   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13383   if test x$gcc_cv_gas_version != x; then
13384     break
13385   fi
13386 done
13387 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13388 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13389 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13390 case $gcc_cv_gas_patch_version in
13391   "") gcc_cv_gas_patch_version="0" ;;
13392 esac
13393 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13394                             + $gcc_cv_gas_minor_version \) \* 1000 \
13395                             + $gcc_cv_gas_patch_version`
13396
13397   in_tree_gas_is_elf=no
13398   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13399      || (grep 'obj_format = multi' ../gas/Makefile \
13400          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13401   then
13402     in_tree_gas_is_elf=yes
13403   fi
13404 else
13405   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13406 echo "${ECHO_T}$gcc_cv_as" >&6
13407   in_tree_gas=no
13408 fi
13409
13410 # Identify the linker which will work hand-in-glove with the newly
13411 # built GCC, so that we can examine its features.  This is the linker
13412 # which will be driven by the driver program.
13413 #
13414 # If build != host, and we aren't building gas in-tree, we identify a
13415 # build->target linker and hope that it will have the same features
13416 # as the host->target linker we'll be using.
13417 gcc_cv_gld_major_version=
13418 gcc_cv_gld_minor_version=
13419 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13420 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13421
13422 if test "${gcc_cv_ld+set}" = set; then
13423   :
13424 else
13425
13426 if test -x "$DEFAULT_LINKER"; then
13427         gcc_cv_ld="$DEFAULT_LINKER"
13428 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13429      && test -f ../ld/Makefile \
13430      && test x$build = x$host; then
13431         gcc_cv_ld=../ld/ld-new$build_exeext
13432 elif test -x collect-ld$build_exeext; then
13433         # Build using linker in the current directory.
13434         gcc_cv_ld=./collect-ld$build_exeext
13435 elif test -x $LD_FOR_TARGET; then
13436         gcc_cv_ld="$LD_FOR_TARGET"
13437 else
13438         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13439 set dummy $LD_FOR_TARGET; ac_word=$2
13440 echo "$as_me:$LINENO: checking for $ac_word" >&5
13441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13442 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13443   echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445   case $gcc_cv_ld in
13446   [\\/]* | ?:[\\/]*)
13447   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13448   ;;
13449   *)
13450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451 for as_dir in $PATH
13452 do
13453   IFS=$as_save_IFS
13454   test -z "$as_dir" && as_dir=.
13455   for ac_exec_ext in '' $ac_executable_extensions; do
13456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13457     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13459     break 2
13460   fi
13461 done
13462 done
13463
13464   ;;
13465 esac
13466 fi
13467 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13468
13469 if test -n "$gcc_cv_ld"; then
13470   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13471 echo "${ECHO_T}$gcc_cv_ld" >&6
13472 else
13473   echo "$as_me:$LINENO: result: no" >&5
13474 echo "${ECHO_T}no" >&6
13475 fi
13476
13477 fi
13478 fi
13479
13480
13481 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13482
13483 case "$ORIGINAL_LD_FOR_TARGET" in
13484   ./collect-ld | ./collect-ld$build_exeext) ;;
13485   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13486  ;;
13487 esac
13488
13489 echo "$as_me:$LINENO: checking what linker to use" >&5
13490 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13491 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13492         # Single tree build which includes ld.  We want to prefer it
13493         # over whatever linker top-level may have detected, since
13494         # we'll use what we're building after installation anyway.
13495         echo "$as_me:$LINENO: result: newly built ld" >&5
13496 echo "${ECHO_T}newly built ld" >&6
13497         in_tree_ld=yes
13498         in_tree_ld_is_elf=no
13499         if (grep 'EMUL = .*elf' ../ld/Makefile \
13500             || grep 'EMUL = .*linux' ../ld/Makefile \
13501             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13502           in_tree_ld_is_elf=yes
13503         fi
13504         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
13505         do
13506                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13507                 if test x$gcc_cv_gld_version != x; then
13508                         break
13509                 fi
13510         done
13511         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13512         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13513 else
13514         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13515 echo "${ECHO_T}$gcc_cv_ld" >&6
13516         in_tree_ld=no
13517 fi
13518
13519 # Figure out what nm we will be using.
13520 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13521 if test "${gcc_cv_nm+set}" = set; then
13522   :
13523 else
13524
13525 if test -f $gcc_cv_binutils_srcdir/configure.in \
13526      && test -f ../binutils/Makefile \
13527      && test x$build = x$host; then
13528         gcc_cv_nm=../binutils/nm-new$build_exeext
13529 elif test -x nm$build_exeext; then
13530         gcc_cv_nm=./nm$build_exeext
13531 elif test -x $NM_FOR_TARGET; then
13532         gcc_cv_nm="$NM_FOR_TARGET"
13533 else
13534         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13535 set dummy $NM_FOR_TARGET; ac_word=$2
13536 echo "$as_me:$LINENO: checking for $ac_word" >&5
13537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13538 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13539   echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541   case $gcc_cv_nm in
13542   [\\/]* | ?:[\\/]*)
13543   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13544   ;;
13545   *)
13546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13547 for as_dir in $PATH
13548 do
13549   IFS=$as_save_IFS
13550   test -z "$as_dir" && as_dir=.
13551   for ac_exec_ext in '' $ac_executable_extensions; do
13552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13553     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13555     break 2
13556   fi
13557 done
13558 done
13559
13560   ;;
13561 esac
13562 fi
13563 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13564
13565 if test -n "$gcc_cv_nm"; then
13566   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13567 echo "${ECHO_T}$gcc_cv_nm" >&6
13568 else
13569   echo "$as_me:$LINENO: result: no" >&5
13570 echo "${ECHO_T}no" >&6
13571 fi
13572
13573 fi
13574 fi
13575
13576
13577 echo "$as_me:$LINENO: checking what nm to use" >&5
13578 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13579 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13580         # Single tree build which includes binutils.
13581         echo "$as_me:$LINENO: result: newly built nm" >&5
13582 echo "${ECHO_T}newly built nm" >&6
13583         in_tree_nm=yes
13584 else
13585         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13586 echo "${ECHO_T}$gcc_cv_nm" >&6
13587         in_tree_nm=no
13588 fi
13589
13590 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13591
13592 case "$ORIGINAL_NM_FOR_TARGET" in
13593   ./nm | ./nm$build_exeext) ;;
13594   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
13595  ;;
13596 esac
13597
13598
13599 # Figure out what objdump we will be using.
13600 if test "${gcc_cv_objdump+set}" = set; then
13601   :
13602 else
13603
13604 if test -f $gcc_cv_binutils_srcdir/configure.in \
13605      && test -f ../binutils/Makefile \
13606      && test x$build = x$host; then
13607         # Single tree build which includes binutils.
13608         gcc_cv_objdump=../binutils/objdump$build_exeext
13609 elif test -x objdump$build_exeext; then
13610         gcc_cv_objdump=./objdump$build_exeext
13611 elif test -x $OBJDUMP_FOR_TARGET; then
13612         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13613 else
13614         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13615 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13616 echo "$as_me:$LINENO: checking for $ac_word" >&5
13617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13618 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13619   echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621   case $gcc_cv_objdump in
13622   [\\/]* | ?:[\\/]*)
13623   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13624   ;;
13625   *)
13626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13628 do
13629   IFS=$as_save_IFS
13630   test -z "$as_dir" && as_dir=.
13631   for ac_exec_ext in '' $ac_executable_extensions; do
13632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13635     break 2
13636   fi
13637 done
13638 done
13639
13640   ;;
13641 esac
13642 fi
13643 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13644
13645 if test -n "$gcc_cv_objdump"; then
13646   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13647 echo "${ECHO_T}$gcc_cv_objdump" >&6
13648 else
13649   echo "$as_me:$LINENO: result: no" >&5
13650 echo "${ECHO_T}no" >&6
13651 fi
13652
13653 fi
13654 fi
13655
13656
13657 echo "$as_me:$LINENO: checking what objdump to use" >&5
13658 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13659 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13660         # Single tree build which includes binutils.
13661         echo "$as_me:$LINENO: result: newly built objdump" >&5
13662 echo "${ECHO_T}newly built objdump" >&6
13663 elif test x$gcc_cv_objdump = x; then
13664         echo "$as_me:$LINENO: result: not found" >&5
13665 echo "${ECHO_T}not found" >&6
13666 else
13667         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13668 echo "${ECHO_T}$gcc_cv_objdump" >&6
13669 fi
13670
13671 # Figure out what assembler alignment features are present.
13672 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13673 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13674 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13675   echo $ECHO_N "(cached) $ECHO_C" >&6
13676 else
13677   gcc_cv_as_balign_and_p2align=no
13678     if test $in_tree_gas = yes; then
13679     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13680   then gcc_cv_as_balign_and_p2align=yes
13681 fi
13682   elif test x$gcc_cv_as != x; then
13683     echo '.balign 4
13684 .p2align 2' > conftest.s
13685     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687   (eval $ac_try) 2>&5
13688   ac_status=$?
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; }
13691     then
13692         gcc_cv_as_balign_and_p2align=yes
13693     else
13694       echo "configure: failed program was" >&5
13695       cat conftest.s >&5
13696     fi
13697     rm -f conftest.o conftest.s
13698   fi
13699 fi
13700 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13701 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13702 if test $gcc_cv_as_balign_and_p2align = yes; then
13703
13704 cat >>confdefs.h <<\_ACEOF
13705 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13706 _ACEOF
13707
13708 fi
13709
13710 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13711 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13712 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13713   echo $ECHO_N "(cached) $ECHO_C" >&6
13714 else
13715   gcc_cv_as_max_skip_p2align=no
13716     if test $in_tree_gas = yes; then
13717     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13718   then gcc_cv_as_max_skip_p2align=yes
13719 fi
13720   elif test x$gcc_cv_as != x; then
13721     echo '.p2align 4,,7' > conftest.s
13722     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724   (eval $ac_try) 2>&5
13725   ac_status=$?
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); }; }
13728     then
13729         gcc_cv_as_max_skip_p2align=yes
13730     else
13731       echo "configure: failed program was" >&5
13732       cat conftest.s >&5
13733     fi
13734     rm -f conftest.o conftest.s
13735   fi
13736 fi
13737 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13738 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13739 if test $gcc_cv_as_max_skip_p2align = yes; then
13740
13741 cat >>confdefs.h <<\_ACEOF
13742 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13743 _ACEOF
13744
13745 fi
13746
13747 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13748 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13749 if test "${gcc_cv_as_literal16+set}" = set; then
13750   echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752   gcc_cv_as_literal16=no
13753     if test $in_tree_gas = yes; then
13754     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13755   then gcc_cv_as_literal16=yes
13756 fi
13757   elif test x$gcc_cv_as != x; then
13758     echo '.literal16' > conftest.s
13759     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761   (eval $ac_try) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; }
13765     then
13766         gcc_cv_as_literal16=yes
13767     else
13768       echo "configure: failed program was" >&5
13769       cat conftest.s >&5
13770     fi
13771     rm -f conftest.o conftest.s
13772   fi
13773 fi
13774 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13775 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13776 if test $gcc_cv_as_literal16 = yes; then
13777
13778 cat >>confdefs.h <<\_ACEOF
13779 #define HAVE_GAS_LITERAL16 1
13780 _ACEOF
13781
13782 fi
13783
13784 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13785 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13786 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13787   echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789   gcc_cv_as_subsection_m1=no
13790     if test $in_tree_gas = yes; then
13791     if test $in_tree_gas_is_elf = yes \
13792   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13793   then gcc_cv_as_subsection_m1=yes
13794 fi
13795   elif test x$gcc_cv_as != x; then
13796     echo 'conftest_label1: .word 0
13797 .subsection -1
13798 conftest_label2: .word 0
13799 .previous' > conftest.s
13800     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802   (eval $ac_try) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; }
13806     then
13807         if test x$gcc_cv_nm != x; then
13808     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13809     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13810     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13811     then :
13812     else gcc_cv_as_subsection_m1=yes
13813     fi
13814     rm -f conftest.nm1 conftest.nm2
13815   fi
13816     else
13817       echo "configure: failed program was" >&5
13818       cat conftest.s >&5
13819     fi
13820     rm -f conftest.o conftest.s
13821   fi
13822 fi
13823 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13824 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13825 if test $gcc_cv_as_subsection_m1 = yes; then
13826
13827 cat >>confdefs.h <<\_ACEOF
13828 #define HAVE_GAS_SUBSECTION_ORDERING 1
13829 _ACEOF
13830
13831 fi
13832
13833 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13834 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13835 if test "${gcc_cv_as_weak+set}" = set; then
13836   echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838   gcc_cv_as_weak=no
13839     if test $in_tree_gas = yes; then
13840     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13841   then gcc_cv_as_weak=yes
13842 fi
13843   elif test x$gcc_cv_as != x; then
13844     echo '      .weak foobar' > conftest.s
13845     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847   (eval $ac_try) 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; }
13851     then
13852         gcc_cv_as_weak=yes
13853     else
13854       echo "configure: failed program was" >&5
13855       cat conftest.s >&5
13856     fi
13857     rm -f conftest.o conftest.s
13858   fi
13859 fi
13860 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13861 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13862 if test $gcc_cv_as_weak = yes; then
13863
13864 cat >>confdefs.h <<\_ACEOF
13865 #define HAVE_GAS_WEAK 1
13866 _ACEOF
13867
13868 fi
13869
13870 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13871 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13872 if test "${gcc_cv_as_weakref+set}" = set; then
13873   echo $ECHO_N "(cached) $ECHO_C" >&6
13874 else
13875   gcc_cv_as_weakref=no
13876     if test $in_tree_gas = yes; then
13877     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13878   then gcc_cv_as_weakref=yes
13879 fi
13880   elif test x$gcc_cv_as != x; then
13881     echo '      .weakref foobar, barfnot' > conftest.s
13882     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884   (eval $ac_try) 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); }; }
13888     then
13889         gcc_cv_as_weakref=yes
13890     else
13891       echo "configure: failed program was" >&5
13892       cat conftest.s >&5
13893     fi
13894     rm -f conftest.o conftest.s
13895   fi
13896 fi
13897 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13898 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13899 if test $gcc_cv_as_weakref = yes; then
13900
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_GAS_WEAKREF 1
13903 _ACEOF
13904
13905 fi
13906
13907 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13908 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13909 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13910   echo $ECHO_N "(cached) $ECHO_C" >&6
13911 else
13912   gcc_cv_as_nsubspa_comdat=no
13913     if test $in_tree_gas = yes; then
13914     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13915   then gcc_cv_as_nsubspa_comdat=yes
13916 fi
13917   elif test x$gcc_cv_as != x; then
13918     echo '      .SPACE $TEXT$
13919         .NSUBSPA $CODE$,COMDAT' > conftest.s
13920     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922   (eval $ac_try) 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); }; }
13926     then
13927         gcc_cv_as_nsubspa_comdat=yes
13928     else
13929       echo "configure: failed program was" >&5
13930       cat conftest.s >&5
13931     fi
13932     rm -f conftest.o conftest.s
13933   fi
13934 fi
13935 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13936 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13937 if test $gcc_cv_as_nsubspa_comdat = yes; then
13938
13939 cat >>confdefs.h <<\_ACEOF
13940 #define HAVE_GAS_NSUBSPA_COMDAT 1
13941 _ACEOF
13942
13943 fi
13944
13945 # .hidden needs to be supported in both the assembler and the linker,
13946 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13947 # This is irritatingly difficult to feature test for; we have to check the
13948 # date string after the version number.  If we've got an in-tree
13949 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13950 # to be safe.
13951 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13952 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13953 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13954 if test "${gcc_cv_as_hidden+set}" = set; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   gcc_cv_as_hidden=no
13958     if test $in_tree_gas = yes; then
13959     if test $in_tree_gas_is_elf = yes \
13960   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13961   then gcc_cv_as_hidden=yes
13962 fi
13963   elif test x$gcc_cv_as != x; then
13964     echo '      .hidden foobar
13965 foobar:' > conftest.s
13966     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968   (eval $ac_try) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); }; }
13972     then
13973         gcc_cv_as_hidden=yes
13974     else
13975       echo "configure: failed program was" >&5
13976       cat conftest.s >&5
13977     fi
13978     rm -f conftest.o conftest.s
13979   fi
13980 fi
13981 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13982 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13983
13984
13985 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13986 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13987 if test "${gcc_cv_ld_hidden+set}" = set; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990   if test $in_tree_ld = yes ; then
13991   gcc_cv_ld_hidden=no
13992   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 \
13993      && test $in_tree_ld_is_elf = yes; then
13994      gcc_cv_ld_hidden=yes
13995   fi
13996 else
13997   gcc_cv_ld_hidden=yes
13998   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13999   if echo "$ld_ver" | grep GNU > /dev/null; then
14000     ld_vers=`echo $ld_ver | sed -n \
14001         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14002         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14003         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14004         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
14005         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
14006         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
14007         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   -].*$,\1,p'`
14008     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'`
14009     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14010     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14011     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14012     if test 0"$ld_date" -lt 20020404; then
14013       if test -n "$ld_date"; then
14014         # If there was date string, but was earlier than 2002-04-04, fail
14015         gcc_cv_ld_hidden=no
14016       elif test -z "$ld_vers"; then
14017         # If there was no date string nor ld version number, something is wrong
14018         gcc_cv_ld_hidden=no
14019       else
14020         test -z "$ld_vers_patch" && ld_vers_patch=0
14021         if test "$ld_vers_major" -lt 2; then
14022           gcc_cv_ld_hidden=no
14023         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14024           gcc_cv_ld_hidden="no"
14025         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14026           gcc_cv_ld_hidden=no
14027         fi
14028       fi
14029     fi
14030   else
14031     case "${target}" in
14032       hppa64*-*-hpux* | ia64*-*-hpux*)
14033         gcc_cv_ld_hidden=yes
14034         ;;
14035       *)
14036         gcc_cv_ld_hidden=no
14037         ;;
14038     esac
14039   fi
14040 fi
14041 fi
14042 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14043 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14044 libgcc_visibility=no
14045
14046
14047 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14048   libgcc_visibility=yes
14049
14050 cat >>confdefs.h <<\_ACEOF
14051 #define HAVE_GAS_HIDDEN 1
14052 _ACEOF
14053
14054 fi
14055
14056 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14057 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14058 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14059 if test "${gcc_cv_as_leb128+set}" = set; then
14060   echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062   gcc_cv_as_leb128=no
14063     if test $in_tree_gas = yes; then
14064     if test $in_tree_gas_is_elf = yes \
14065   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14066   then gcc_cv_as_leb128=yes
14067 fi
14068   elif test x$gcc_cv_as != x; then
14069     echo '      .data
14070         .uleb128 L2 - L1
14071 L1:
14072         .uleb128 1280
14073         .sleb128 -1010
14074 L2:' > conftest.s
14075     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077   (eval $ac_try) 2>&5
14078   ac_status=$?
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); }; }
14081     then
14082         # GAS versions before 2.11 do not support uleb128,
14083   # despite appearing to.
14084   # ??? There exists an elf-specific test that will crash
14085   # the assembler.  Perhaps it's better to figure out whether
14086   # arbitrary sections are supported and try the test.
14087   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14088   if echo "$as_ver" | grep GNU > /dev/null; then
14089     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14090     as_major=`echo $as_ver | sed 's/\..*//'`
14091     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14092     if test $as_major -eq 2 && test $as_minor -lt 11
14093     then :
14094     else gcc_cv_as_leb128=yes
14095     fi
14096   fi
14097     else
14098       echo "configure: failed program was" >&5
14099       cat conftest.s >&5
14100     fi
14101     rm -f conftest.o conftest.s
14102   fi
14103 fi
14104 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14105 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14106 if test $gcc_cv_as_leb128 = yes; then
14107
14108 cat >>confdefs.h <<\_ACEOF
14109 #define HAVE_AS_LEB128 1
14110 _ACEOF
14111
14112 fi
14113
14114 # GAS versions up to and including 2.11.0 may mis-optimize
14115 # .eh_frame data.
14116 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14117 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14118 if test "${gcc_cv_as_eh_frame+set}" = set; then
14119   echo $ECHO_N "(cached) $ECHO_C" >&6
14120 else
14121   gcc_cv_as_eh_frame=no
14122     if test $in_tree_gas = yes; then
14123     if test $in_tree_gas_is_elf = yes \
14124   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14125   then gcc_cv_as_eh_frame=yes
14126 fi
14127   elif test x$gcc_cv_as != x; then
14128     echo '      .text
14129 .LFB1:
14130         .4byte  0
14131 .L1:
14132         .4byte  0
14133 .LFE1:
14134         .section        .eh_frame,"aw",@progbits
14135 __FRAME_BEGIN__:
14136         .4byte  .LECIE1-.LSCIE1
14137 .LSCIE1:
14138         .4byte  0x0
14139         .byte   0x1
14140         .ascii "z\0"
14141         .byte   0x1
14142         .byte   0x78
14143         .byte   0x1a
14144         .byte   0x0
14145         .byte   0x4
14146         .4byte  1
14147         .p2align 1
14148 .LECIE1:
14149 .LSFDE1:
14150         .4byte  .LEFDE1-.LASFDE1
14151 .LASFDE1:
14152         .4byte  .LASFDE1-__FRAME_BEGIN__
14153         .4byte  .LFB1
14154         .4byte  .LFE1-.LFB1
14155         .byte   0x4
14156         .4byte  .LFE1-.LFB1
14157         .byte   0x4
14158         .4byte  .L1-.LFB1
14159 .LEFDE1:' > conftest.s
14160     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162   (eval $ac_try) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); }; }
14166     then
14167           cat > conftest.lit <<EOF
14168  0000 10000000 00000000 017a0001 781a0004  .........z..x...
14169  0010 01000000 12000000 18000000 00000000  ................
14170  0020 08000000 04080000 0044               .........D      
14171 EOF
14172 cat > conftest.big <<EOF
14173  0000 00000010 00000000 017a0001 781a0004  .........z..x...
14174  0010 00000001 00000012 00000018 00000000  ................
14175  0020 00000008 04000000 0844               .........D      
14176 EOF
14177   # If the assembler didn't choke, and we can objdump,
14178   # and we got the correct data, then succeed.
14179   # The text in the here-document typically retains its unix-style line
14180   # endings, while the output of objdump will use host line endings.
14181   # Therefore, use diff -b for the comparisons.
14182   if test x$gcc_cv_objdump != x \
14183   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14184      | tail -3 > conftest.got \
14185   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14186     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14187   then
14188     gcc_cv_as_eh_frame=yes
14189   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191   (eval $ac_try) 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); }; }; then
14195     gcc_cv_as_eh_frame=buggy
14196   else
14197     # Uh oh, what do we do now?
14198     gcc_cv_as_eh_frame=no
14199   fi
14200     else
14201       echo "configure: failed program was" >&5
14202       cat conftest.s >&5
14203     fi
14204     rm -f conftest.o conftest.s
14205   fi
14206 fi
14207 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14208 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14209
14210
14211 if test $gcc_cv_as_eh_frame = buggy; then
14212
14213 cat >>confdefs.h <<\_ACEOF
14214 #define USE_AS_TRADITIONAL_FORMAT 1
14215 _ACEOF
14216
14217 fi
14218
14219 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14220 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14221 if test "${gcc_cv_as_shf_merge+set}" = set; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224   gcc_cv_as_shf_merge=no
14225     if test $in_tree_gas = yes; then
14226     if test $in_tree_gas_is_elf = yes \
14227   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14228   then gcc_cv_as_shf_merge=yes
14229 fi
14230   elif test x$gcc_cv_as != x; then
14231     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14232     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234   (eval $ac_try) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; }
14238     then
14239         gcc_cv_as_shf_merge=yes
14240     else
14241       echo "configure: failed program was" >&5
14242       cat conftest.s >&5
14243     fi
14244     rm -f conftest.o conftest.s
14245   fi
14246 fi
14247 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14248 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14249
14250 if test $gcc_cv_as_shf_merge = no; then
14251   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14252 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14253 if test "${gcc_cv_as_shf_merge+set}" = set; then
14254   echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256   gcc_cv_as_shf_merge=no
14257     if test $in_tree_gas = yes; then
14258     if test $in_tree_gas_is_elf = yes \
14259   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14260   then gcc_cv_as_shf_merge=yes
14261 fi
14262   elif test x$gcc_cv_as != x; then
14263     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14264     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266   (eval $ac_try) 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); }; }
14270     then
14271         gcc_cv_as_shf_merge=yes
14272     else
14273       echo "configure: failed program was" >&5
14274       cat conftest.s >&5
14275     fi
14276     rm -f conftest.o conftest.s
14277   fi
14278 fi
14279 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14280 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14281
14282 fi
14283
14284 cat >>confdefs.h <<_ACEOF
14285 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14286 _ACEOF
14287
14288
14289 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14290 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14291 if test "${gcc_cv_as_comdat_group+set}" = set; then
14292   echo $ECHO_N "(cached) $ECHO_C" >&6
14293 else
14294   gcc_cv_as_comdat_group=no
14295     if test $in_tree_gas = yes; then
14296     if test $in_tree_gas_is_elf = yes \
14297   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14298   then gcc_cv_as_comdat_group=yes
14299 fi
14300   elif test x$gcc_cv_as != x; then
14301     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14302     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304   (eval $ac_try) 2>&5
14305   ac_status=$?
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); }; }
14308     then
14309         gcc_cv_as_comdat_group=yes
14310     else
14311       echo "configure: failed program was" >&5
14312       cat conftest.s >&5
14313     fi
14314     rm -f conftest.o conftest.s
14315   fi
14316 fi
14317 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14318 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14319
14320 if test $gcc_cv_as_comdat_group = yes; then
14321   gcc_cv_as_comdat_group_percent=no
14322 else
14323  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14324 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14325 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14326   echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328   gcc_cv_as_comdat_group_percent=no
14329     if test $in_tree_gas = yes; then
14330     if test $in_tree_gas_is_elf = yes \
14331   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14332   then gcc_cv_as_comdat_group_percent=yes
14333 fi
14334   elif test x$gcc_cv_as != x; then
14335     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14336     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338   (eval $ac_try) 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; }
14342     then
14343         gcc_cv_as_comdat_group_percent=yes
14344     else
14345       echo "configure: failed program was" >&5
14346       cat conftest.s >&5
14347     fi
14348     rm -f conftest.o conftest.s
14349   fi
14350 fi
14351 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14352 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14353
14354 fi
14355 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14356   comdat_group=yes
14357   if test 0"$ld_date" -lt 20050308; then
14358     if test -n "$ld_date"; then
14359       # If there was date string, but was earlier than 2005-03-08, fail
14360       comdat_group=no
14361     elif test "$ld_vers_major" -lt 2; then
14362       comdat_group=no
14363     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14364       comdat_group=no
14365     fi
14366   fi
14367 else
14368   # assume linkers other than GNU ld don't support COMDAT group
14369   comdat_group=no
14370 fi
14371 if test $comdat_group = no; then
14372   gcc_cv_as_comdat_group=no
14373   gcc_cv_as_comdat_group_percent=no
14374 fi
14375
14376 cat >>confdefs.h <<_ACEOF
14377 #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`
14378 _ACEOF
14379
14380
14381 # Thread-local storage - the check is heavily parametrized.
14382 conftest_s=
14383 tls_first_major=
14384 tls_first_minor=
14385 tls_as_opt=
14386 case "$target" in
14387   alpha*-*-*)
14388     conftest_s='
14389         .section ".tdata","awT",@progbits
14390 foo:    .long   25
14391         .text
14392         ldq     $27,__tls_get_addr($29)         !literal!1
14393         lda     $16,foo($29)                    !tlsgd!1
14394         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14395         ldq     $27,__tls_get_addr($29)         !literal!2
14396         lda     $16,foo($29)                    !tlsldm!2
14397         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14398         ldq     $1,foo($29)                     !gotdtprel
14399         ldah    $2,foo($29)                     !dtprelhi
14400         lda     $3,foo($2)                      !dtprello
14401         lda     $4,foo($29)                     !dtprel
14402         ldq     $1,foo($29)                     !gottprel
14403         ldah    $2,foo($29)                     !tprelhi
14404         lda     $3,foo($2)                      !tprello
14405         lda     $4,foo($29)                     !tprel'
14406         tls_first_major=2
14407         tls_first_minor=13
14408         tls_as_opt=--fatal-warnings
14409         ;;
14410   frv*-*-*)
14411     conftest_s='
14412         .section ".tdata","awT",@progbits
14413 x:      .long   25
14414         .text
14415         call    #gettlsoff(x)'
14416         tls_first_major=2
14417         tls_first_minor=14
14418         ;;
14419   hppa*-*-linux*)
14420     conftest_s='
14421 t1:     .reg    %r20
14422 t2:     .reg    %r21
14423 gp:     .reg    %r19
14424         .section ".tdata","awT",@progbits
14425 foo:    .long   25
14426         .text
14427         .align  4
14428         addil LT%foo-$tls_gdidx$,gp
14429         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14430         b __tls_get_addr
14431         nop
14432         addil LT%foo-$tls_ldidx$,gp
14433         b __tls_get_addr
14434         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14435         addil LR%foo-$tls_dtpoff$,%ret0
14436         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14437         mfctl %cr27,%t1
14438         addil LT%foo-$tls_ieoff$,gp
14439         ldw RT%foo-$tls_ieoff$(%r1),%t2
14440         add %t1,%t2,%t3
14441         mfctl %cr27,%t1
14442         addil LR%foo-$tls_leoff$,%t1
14443         ldo RR%foo-$tls_leoff$(%r1),%t2'
14444         tls_first_major=2
14445         tls_first_minor=15
14446         tls_as_opt=--fatal-warnings
14447         ;;
14448   arm*-*-*)
14449     conftest_s='
14450         .section ".tdata","awT",%progbits
14451 foo:    .long   25
14452         .text
14453 .word foo(gottpoff)
14454 .word foo(tpoff)
14455 .word foo(tlsgd)
14456 .word foo(tlsldm)
14457 .word foo(tlsldo)'
14458         tls_first_major=2
14459         tls_first_minor=17
14460         ;;
14461   i[34567]86-*-*)
14462     conftest_s='
14463         .section ".tdata","awT",@progbits
14464 foo:    .long   25
14465         .text
14466         movl    %gs:0, %eax
14467         leal    foo@TLSGD(,%ebx,1), %eax
14468         leal    foo@TLSLDM(%ebx), %eax
14469         leal    foo@DTPOFF(%eax), %edx
14470         movl    foo@GOTTPOFF(%ebx), %eax
14471         subl    foo@GOTTPOFF(%ebx), %eax
14472         addl    foo@GOTNTPOFF(%ebx), %eax
14473         movl    foo@INDNTPOFF, %eax
14474         movl    $foo@TPOFF, %eax
14475         subl    $foo@TPOFF, %eax
14476         leal    foo@NTPOFF(%ecx), %eax'
14477         tls_first_major=2
14478         tls_first_minor=14
14479         tls_as_opt=--fatal-warnings
14480         ;;
14481   x86_64-*-*)
14482     conftest_s='
14483         .section ".tdata","awT",@progbits
14484 foo:    .long   25
14485         .text
14486         movq    %fs:0, %rax
14487         leaq    foo@TLSGD(%rip), %rdi
14488         leaq    foo@TLSLD(%rip), %rdi
14489         leaq    foo@DTPOFF(%rax), %rdx
14490         movq    foo@GOTTPOFF(%rip), %rax
14491         movq    $foo@TPOFF, %rax'
14492         tls_first_major=2
14493         tls_first_minor=14
14494         tls_as_opt=--fatal-warnings
14495         ;;
14496   ia64-*-*)
14497     conftest_s='
14498         .section ".tdata","awT",@progbits
14499 foo:    data8   25
14500         .text
14501         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14502         addl    r17 = @ltoff(@dtprel(foo#)), gp
14503         addl    r18 = @ltoff(@tprel(foo#)), gp
14504         addl    r19 = @dtprel(foo#), gp
14505         adds    r21 = @dtprel(foo#), r13
14506         movl    r23 = @dtprel(foo#)
14507         addl    r20 = @tprel(foo#), gp
14508         adds    r22 = @tprel(foo#), r13
14509         movl    r24 = @tprel(foo#)'
14510         tls_first_major=2
14511         tls_first_minor=13
14512         tls_as_opt=--fatal-warnings
14513         ;;
14514   mips*-*-*)
14515     conftest_s='
14516         .section .tdata,"awT",@progbits
14517 x:
14518         .word 2
14519         .text
14520         addiu $4, $28, %tlsgd(x)
14521         addiu $4, $28, %tlsldm(x)
14522         lui $4, %dtprel_hi(x)
14523         addiu $4, $4, %dtprel_lo(x)
14524         lw $4, %gottprel(x)($28)
14525         lui $4, %tprel_hi(x)
14526         addiu $4, $4, %tprel_lo(x)'
14527         tls_first_major=2
14528         tls_first_minor=16
14529         tls_as_opt='-32 --fatal-warnings'
14530         ;;
14531   powerpc-*-*)
14532     conftest_s='
14533         .section ".tdata","awT",@progbits
14534         .align 2
14535 ld0:    .space 4
14536 ld1:    .space 4
14537 x1:     .space 4
14538 x2:     .space 4
14539 x3:     .space 4
14540         .text
14541         addi 3,31,ld0@got@tlsgd
14542         bl __tls_get_addr
14543         addi 3,31,x1@got@tlsld
14544         bl __tls_get_addr
14545         addi 9,3,x1@dtprel
14546         addis 9,3,x2@dtprel@ha
14547         addi 9,9,x2@dtprel@l
14548         lwz 9,x3@got@tprel(31)
14549         add 9,9,x@tls
14550         addi 9,2,x1@tprel
14551         addis 9,2,x2@tprel@ha
14552         addi 9,9,x2@tprel@l'
14553         tls_first_major=2
14554         tls_first_minor=14
14555         tls_as_opt="-a32 --fatal-warnings"
14556         ;;
14557   powerpc64-*-*)
14558     conftest_s='
14559         .section ".tdata","awT",@progbits
14560         .align 3
14561 ld0:    .space 8
14562 ld1:    .space 8
14563 x1:     .space 8
14564 x2:     .space 8
14565 x3:     .space 8
14566         .text
14567         addi 3,2,ld0@got@tlsgd
14568         bl .__tls_get_addr
14569         nop
14570         addi 3,2,ld1@toc
14571         bl .__tls_get_addr
14572         nop
14573         addi 3,2,x1@got@tlsld
14574         bl .__tls_get_addr
14575         nop
14576         addi 9,3,x1@dtprel
14577         bl .__tls_get_addr
14578         nop
14579         addis 9,3,x2@dtprel@ha
14580         addi 9,9,x2@dtprel@l
14581         bl .__tls_get_addr
14582         nop
14583         ld 9,x3@got@dtprel(2)
14584         add 9,9,3
14585         bl .__tls_get_addr
14586         nop'
14587         tls_first_major=2
14588         tls_first_minor=14
14589         tls_as_opt="-a64 --fatal-warnings"
14590         ;;
14591   s390-*-*)
14592     conftest_s='
14593         .section ".tdata","awT",@progbits
14594 foo:    .long   25
14595         .text
14596         .long   foo@TLSGD
14597         .long   foo@TLSLDM
14598         .long   foo@DTPOFF
14599         .long   foo@NTPOFF
14600         .long   foo@GOTNTPOFF
14601         .long   foo@INDNTPOFF
14602         l       %r1,foo@GOTNTPOFF(%r12)
14603         l       %r1,0(%r1):tls_load:foo
14604         bas     %r14,0(%r1,%r13):tls_gdcall:foo
14605         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14606         tls_first_major=2
14607         tls_first_minor=14
14608         tls_as_opt="-m31 --fatal-warnings"
14609         ;;
14610   s390x-*-*)
14611     conftest_s='
14612         .section ".tdata","awT",@progbits
14613 foo:    .long   25
14614         .text
14615         .quad   foo@TLSGD
14616         .quad   foo@TLSLDM
14617         .quad   foo@DTPOFF
14618         .quad   foo@NTPOFF
14619         .quad   foo@GOTNTPOFF
14620         lg      %r1,foo@GOTNTPOFF(%r12)
14621         larl    %r1,foo@INDNTPOFF
14622         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14623         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14624         tls_first_major=2
14625         tls_first_minor=14
14626         tls_as_opt="-m64 -Aesame --fatal-warnings"
14627         ;;
14628   sh-*-* | sh[34]-*-*)
14629     conftest_s='
14630         .section ".tdata","awT",@progbits
14631 foo:    .long   25
14632         .text
14633         .long   foo@TLSGD
14634         .long   foo@TLSLDM
14635         .long   foo@DTPOFF
14636         .long   foo@GOTTPOFF
14637         .long   foo@TPOFF'
14638         tls_first_major=2
14639         tls_first_minor=13
14640         tls_as_opt=--fatal-warnings
14641         ;;
14642   sparc*-*-*)
14643     case "$target" in
14644       sparc*-sun-solaris2.[56789]*)
14645         # TLS was introduced in the Solaris 9 4/04 release but
14646         # we do not enable it by default on Solaris 9 either.
14647         if test "x$enable_tls" = xyes ; then
14648           on_solaris=yes
14649         else
14650           enable_tls=no;
14651         fi
14652         ;;
14653       sparc*-sun-solaris2.*)
14654         on_solaris=yes
14655         ;;
14656       *)
14657         on_solaris=no
14658         ;;
14659     esac
14660     if test x$on_solaris = xyes && test x$gas_flag = xno; then
14661       conftest_s='
14662         .section ".tdata",#alloc,#write,#tls
14663 foo:    .long   25
14664         .text
14665         sethi   %tgd_hi22(foo), %o0
14666         add     %o0, %tgd_lo10(foo), %o1
14667         add     %l7, %o1, %o0, %tgd_add(foo)
14668         call    __tls_get_addr, %tgd_call(foo)
14669         sethi   %tldm_hi22(foo), %l1
14670         add     %l1, %tldm_lo10(foo), %l2
14671         add     %l7, %l2, %o0, %tldm_add(foo)
14672         call    __tls_get_addr, %tldm_call(foo)
14673         sethi   %tldo_hix22(foo), %l3
14674         xor     %l3, %tldo_lox10(foo), %l4
14675         add     %o0, %l4, %l5, %tldo_add(foo)
14676         sethi   %tie_hi22(foo), %o3
14677         add     %o3, %tie_lo10(foo), %o3
14678         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14679         add     %g7, %o2, %o4, %tie_add(foo)
14680         sethi   %tle_hix22(foo), %l1
14681         xor     %l1, %tle_lox10(foo), %o5
14682         ld      [%g7 + %o5], %o1'
14683         tls_first_major=0
14684         tls_first_minor=0
14685     else
14686       conftest_s='
14687         .section ".tdata","awT",@progbits
14688 foo:    .long   25
14689         .text
14690         sethi   %tgd_hi22(foo), %o0
14691         add     %o0, %tgd_lo10(foo), %o1
14692         add     %l7, %o1, %o0, %tgd_add(foo)
14693         call    __tls_get_addr, %tgd_call(foo)
14694         sethi   %tldm_hi22(foo), %l1
14695         add     %l1, %tldm_lo10(foo), %l2
14696         add     %l7, %l2, %o0, %tldm_add(foo)
14697         call    __tls_get_addr, %tldm_call(foo)
14698         sethi   %tldo_hix22(foo), %l3
14699         xor     %l3, %tldo_lox10(foo), %l4
14700         add     %o0, %l4, %l5, %tldo_add(foo)
14701         sethi   %tie_hi22(foo), %o3
14702         add     %o3, %tie_lo10(foo), %o3
14703         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14704         add     %g7, %o2, %o4, %tie_add(foo)
14705         sethi   %tle_hix22(foo), %l1
14706         xor     %l1, %tle_lox10(foo), %o5
14707         ld      [%g7 + %o5], %o1'
14708         tls_first_major=2
14709         tls_first_minor=14
14710         tls_as_opt="-32 --fatal-warnings"
14711       fi
14712         ;;
14713 esac
14714 set_have_as_tls=no
14715 if test "x$enable_tls" = xno ; then
14716   : # TLS explicitly disabled.
14717 elif test "x$enable_tls" = xyes ; then
14718   set_have_as_tls=yes # TLS explicitly enabled.
14719 elif test -z "$tls_first_major"; then
14720   : # If we don't have a check, assume no support.
14721 else
14722   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14723 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14724 if test "${gcc_cv_as_tls+set}" = set; then
14725   echo $ECHO_N "(cached) $ECHO_C" >&6
14726 else
14727   gcc_cv_as_tls=no
14728     if test $in_tree_gas = yes; then
14729     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14730   then gcc_cv_as_tls=yes
14731 fi
14732   elif test x$gcc_cv_as != x; then
14733     echo "$conftest_s" > conftest.s
14734     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736   (eval $ac_try) 2>&5
14737   ac_status=$?
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); }; }
14740     then
14741         gcc_cv_as_tls=yes
14742     else
14743       echo "configure: failed program was" >&5
14744       cat conftest.s >&5
14745     fi
14746     rm -f conftest.o conftest.s
14747   fi
14748 fi
14749 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14750 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14751 if test $gcc_cv_as_tls = yes; then
14752   set_have_as_tls=yes
14753 fi
14754 fi
14755 if test $set_have_as_tls = yes ; then
14756
14757 cat >>confdefs.h <<\_ACEOF
14758 #define HAVE_AS_TLS 1
14759 _ACEOF
14760
14761 fi
14762
14763 # Target-specific assembler checks.
14764
14765 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14766 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14767 gcc_cv_ld_static_dynamic=no
14768 if test $in_tree_ld = yes ; then
14769   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14770     gcc_cv_ld_static_dynamic=yes
14771   fi
14772 elif test x$gcc_cv_ld != x; then
14773         # Check if linker supports -Bstatic/-Bdynamic option
14774         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14775           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14776                 gcc_cv_ld_static_dynamic=yes
14777         fi
14778 fi
14779 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14780
14781 cat >>confdefs.h <<\_ACEOF
14782 #define HAVE_LD_STATIC_DYNAMIC 1
14783 _ACEOF
14784
14785 fi
14786 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14787 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14788
14789 if test x"$demangler_in_ld" = xyes; then
14790   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14791 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14792   gcc_cv_ld_demangle=no
14793   if test $in_tree_ld = yes; then
14794     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 \
14795       gcc_cv_ld_demangle=yes
14796     fi
14797   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14798     # Check if the GNU linker supports --demangle option
14799     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14800       gcc_cv_ld_demangle=yes
14801     fi
14802   fi
14803   if test x"$gcc_cv_ld_demangle" = xyes; then
14804
14805 cat >>confdefs.h <<\_ACEOF
14806 #define HAVE_LD_DEMANGLE 1
14807 _ACEOF
14808
14809   fi
14810   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14811 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14812 fi
14813
14814 case "$target" in
14815   # All TARGET_ABI_OSF targets.
14816   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14817     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14818 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14819 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14820   echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822   gcc_cv_as_alpha_explicit_relocs=no
14823     if test $in_tree_gas = yes; then
14824     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14825   then gcc_cv_as_alpha_explicit_relocs=yes
14826 fi
14827   elif test x$gcc_cv_as != x; then
14828     echo '      .set nomacro
14829         .text
14830         extbl   $3, $2, $3      !lituse_bytoff!1
14831         ldq     $2, a($29)      !literal!1
14832         ldq     $4, b($29)      !literal!2
14833         ldq_u   $3, 0($2)       !lituse_base!1
14834         ldq     $27, f($29)     !literal!5
14835         jsr     $26, ($27), f   !lituse_jsr!5
14836         ldah    $29, 0($26)     !gpdisp!3
14837         lda     $0, c($29)      !gprel
14838         ldah    $1, d($29)      !gprelhigh
14839         lda     $1, d($1)       !gprellow
14840         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14841     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843   (eval $ac_try) 2>&5
14844   ac_status=$?
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); }; }
14847     then
14848         gcc_cv_as_alpha_explicit_relocs=yes
14849     else
14850       echo "configure: failed program was" >&5
14851       cat conftest.s >&5
14852     fi
14853     rm -f conftest.o conftest.s
14854   fi
14855 fi
14856 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14857 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14858 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14859
14860 cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_AS_EXPLICIT_RELOCS 1
14862 _ACEOF
14863
14864 fi
14865     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14866 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14867 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14868   echo $ECHO_N "(cached) $ECHO_C" >&6
14869 else
14870   gcc_cv_as_alpha_jsrdirect_relocs=no
14871     if test $in_tree_gas = yes; then
14872     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14873   then gcc_cv_as_alpha_jsrdirect_relocs=yes
14874 fi
14875   elif test x$gcc_cv_as != x; then
14876     echo '      .set nomacro
14877         .text
14878         ldq     $27, a($29)     !literal!1
14879         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
14880     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882   (eval $ac_try) 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; }
14886     then
14887         gcc_cv_as_alpha_jsrdirect_relocs=yes
14888     else
14889       echo "configure: failed program was" >&5
14890       cat conftest.s >&5
14891     fi
14892     rm -f conftest.o conftest.s
14893   fi
14894 fi
14895 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14896 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14897 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14898
14899 cat >>confdefs.h <<\_ACEOF
14900 #define HAVE_AS_JSRDIRECT_RELOCS 1
14901 _ACEOF
14902
14903 fi
14904     ;;
14905
14906   cris-*-*)
14907     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14908 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14909 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14910   echo $ECHO_N "(cached) $ECHO_C" >&6
14911 else
14912   gcc_cv_as_cris_no_mul_bug=no
14913     if test $in_tree_gas = yes; then
14914     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14915   then gcc_cv_as_cris_no_mul_bug=yes
14916 fi
14917   elif test x$gcc_cv_as != x; then
14918     echo '.text' > conftest.s
14919     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921   (eval $ac_try) 2>&5
14922   ac_status=$?
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); }; }
14925     then
14926         gcc_cv_as_cris_no_mul_bug=yes
14927     else
14928       echo "configure: failed program was" >&5
14929       cat conftest.s >&5
14930     fi
14931     rm -f conftest.o conftest.s
14932   fi
14933 fi
14934 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14935 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14936 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14937
14938 cat >>confdefs.h <<\_ACEOF
14939 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14940 _ACEOF
14941
14942 fi
14943     ;;
14944
14945   sparc*-*-*)
14946     echo "$as_me:$LINENO: checking assembler for .register" >&5
14947 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14948 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14949   echo $ECHO_N "(cached) $ECHO_C" >&6
14950 else
14951   gcc_cv_as_sparc_register_op=no
14952   if test x$gcc_cv_as != x; then
14953     echo '.register %g2, #scratch' > conftest.s
14954     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956   (eval $ac_try) 2>&5
14957   ac_status=$?
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); }; }
14960     then
14961         gcc_cv_as_sparc_register_op=yes
14962     else
14963       echo "configure: failed program was" >&5
14964       cat conftest.s >&5
14965     fi
14966     rm -f conftest.o conftest.s
14967   fi
14968 fi
14969 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14970 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14971 if test $gcc_cv_as_sparc_register_op = yes; then
14972
14973 cat >>confdefs.h <<\_ACEOF
14974 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14975 _ACEOF
14976
14977 fi
14978
14979     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14980 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14981 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14982   echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984   gcc_cv_as_sparc_relax=no
14985   if test x$gcc_cv_as != x; then
14986     echo '.text' > conftest.s
14987     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989   (eval $ac_try) 2>&5
14990   ac_status=$?
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); }; }
14993     then
14994         gcc_cv_as_sparc_relax=yes
14995     else
14996       echo "configure: failed program was" >&5
14997       cat conftest.s >&5
14998     fi
14999     rm -f conftest.o conftest.s
15000   fi
15001 fi
15002 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15003 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15004 if test $gcc_cv_as_sparc_relax = yes; then
15005
15006 cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_AS_RELAX_OPTION 1
15008 _ACEOF
15009
15010 fi
15011
15012     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15013 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15014 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15015   echo $ECHO_N "(cached) $ECHO_C" >&6
15016 else
15017   gcc_cv_as_sparc_ua_pcrel=no
15018   if test x$gcc_cv_as != x; then
15019     echo '.text
15020 foo:
15021         nop
15022 .data
15023 .align 4
15024 .byte 0
15025 .uaword %r_disp32(foo)' > conftest.s
15026     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028   (eval $ac_try) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); }; }
15032     then
15033         if test x$gcc_cv_ld != x \
15034        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15035          gcc_cv_as_sparc_ua_pcrel=yes
15036        fi
15037        rm -f conftest
15038     else
15039       echo "configure: failed program was" >&5
15040       cat conftest.s >&5
15041     fi
15042     rm -f conftest.o conftest.s
15043   fi
15044 fi
15045 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15046 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15047 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15048
15049 cat >>confdefs.h <<\_ACEOF
15050 #define HAVE_AS_SPARC_UA_PCREL 1
15051 _ACEOF
15052
15053
15054       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15055 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15056 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15057   echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059   gcc_cv_as_sparc_ua_pcrel_hidden=no
15060   if test x$gcc_cv_as != x; then
15061     echo '.data
15062 .align 4
15063 .byte 0x31
15064 .uaword %r_disp32(foo)
15065 .byte 0x32, 0x33, 0x34
15066 .global foo
15067 .hidden foo
15068 foo:
15069 .skip 4' > conftest.s
15070     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072   (eval $ac_try) 2>&5
15073   ac_status=$?
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); }; }
15076     then
15077         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15078          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15079          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15080             | grep ' 31000000 07323334' > /dev/null 2>&1; then
15081             if $gcc_cv_objdump -R conftest 2> /dev/null \
15082                | grep 'DISP32' > /dev/null 2>&1; then
15083                 :
15084             else
15085                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15086             fi
15087          fi
15088          rm -f conftest
15089     else
15090       echo "configure: failed program was" >&5
15091       cat conftest.s >&5
15092     fi
15093     rm -f conftest.o conftest.s
15094   fi
15095 fi
15096 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15097 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15098 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15099
15100 cat >>confdefs.h <<\_ACEOF
15101 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15102 _ACEOF
15103
15104 fi
15105
15106 fi # unaligned pcrel relocs
15107
15108     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15109 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15110 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15111   echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15113   gcc_cv_as_sparc_offsetable_lo10=no
15114   if test x$gcc_cv_as != x; then
15115     echo '.text
15116         or %g1, %lo(ab) + 12, %g1
15117         or %g1, %lo(ab + 12), %g1' > conftest.s
15118     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120   (eval $ac_try) 2>&5
15121   ac_status=$?
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); }; }
15124     then
15125         if test x$gcc_cv_objdump != x \
15126        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15127           | grep ' 82106000 82106000' > /dev/null 2>&1; then
15128          gcc_cv_as_sparc_offsetable_lo10=yes
15129        fi
15130     else
15131       echo "configure: failed program was" >&5
15132       cat conftest.s >&5
15133     fi
15134     rm -f conftest.o conftest.s
15135   fi
15136 fi
15137 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15138 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15139 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15140
15141 cat >>confdefs.h <<\_ACEOF
15142 #define HAVE_AS_OFFSETABLE_LO10 1
15143 _ACEOF
15144
15145 fi
15146     ;;
15147
15148   i[34567]86-*-* | x86_64-*-*)
15149     case $target_os in
15150       cygwin* | pe | mingw32*)
15151         # Used for DWARF 2 in PE
15152         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15153 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15154 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15155   echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157   gcc_cv_as_ix86_pe_secrel32=no
15158     if test $in_tree_gas = yes; then
15159     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15160   then gcc_cv_as_ix86_pe_secrel32=yes
15161 fi
15162   elif test x$gcc_cv_as != x; then
15163     echo '.text
15164 foo:    nop
15165 .data
15166         .secrel32 foo' > conftest.s
15167     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169   (eval $ac_try) 2>&5
15170   ac_status=$?
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); }; }
15173     then
15174         if test x$gcc_cv_ld != x \
15175            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15176              gcc_cv_as_ix86_pe_secrel32=yes
15177            fi
15178            rm -f conftest
15179     else
15180       echo "configure: failed program was" >&5
15181       cat conftest.s >&5
15182     fi
15183     rm -f conftest.o conftest.s
15184   fi
15185 fi
15186 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15187 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15188 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15189
15190 cat >>confdefs.h <<\_ACEOF
15191 #define HAVE_GAS_PE_SECREL32_RELOC 1
15192 _ACEOF
15193
15194 fi
15195         ;;
15196     esac
15197
15198     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15199 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15200 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15201   echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203   gcc_cv_as_ix86_filds_fists=no
15204     if test $in_tree_gas = yes; then
15205     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15206   then gcc_cv_as_ix86_filds_fists=yes
15207 fi
15208   elif test x$gcc_cv_as != x; then
15209     echo 'filds mem; fists mem' > conftest.s
15210     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212   (eval $ac_try) 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); }; }
15216     then
15217         gcc_cv_as_ix86_filds_fists=yes
15218     else
15219       echo "configure: failed program was" >&5
15220       cat conftest.s >&5
15221     fi
15222     rm -f conftest.o conftest.s
15223   fi
15224 fi
15225 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15226 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15227 if test $gcc_cv_as_ix86_filds_fists = yes; then
15228
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_GAS_FILDS_FISTS 1
15231 _ACEOF
15232
15233 fi
15234
15235     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15236 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15237 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15238   echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240   gcc_cv_as_ix86_cmov_sun_syntax=no
15241   if test x$gcc_cv_as != x; then
15242     echo 'cmovl.l %edx, %eax' > conftest.s
15243     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245   (eval $ac_try) 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); }; }
15249     then
15250         gcc_cv_as_ix86_cmov_sun_syntax=yes
15251     else
15252       echo "configure: failed program was" >&5
15253       cat conftest.s >&5
15254     fi
15255     rm -f conftest.o conftest.s
15256   fi
15257 fi
15258 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15259 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15260 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15261
15262 cat >>confdefs.h <<\_ACEOF
15263 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15264 _ACEOF
15265
15266 fi
15267
15268     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15269 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15270 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15271   echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273   gcc_cv_as_ix86_ffreep=no
15274   if test x$gcc_cv_as != x; then
15275     echo 'ffreep %st(1)' > conftest.s
15276     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278   (eval $ac_try) 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); }; }
15282     then
15283         gcc_cv_as_ix86_ffreep=yes
15284     else
15285       echo "configure: failed program was" >&5
15286       cat conftest.s >&5
15287     fi
15288     rm -f conftest.o conftest.s
15289   fi
15290 fi
15291 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15292 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15293 if test $gcc_cv_as_ix86_ffreep = yes; then
15294
15295 cat >>confdefs.h <<\_ACEOF
15296 #define HAVE_AS_IX86_FFREEP 1
15297 _ACEOF
15298
15299 fi
15300
15301     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15302 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15303 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15304   echo $ECHO_N "(cached) $ECHO_C" >&6
15305 else
15306   gcc_cv_as_ix86_sahf=no
15307   if test x$gcc_cv_as != x; then
15308     echo 'sahf' > conftest.s
15309     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311   (eval $ac_try) 2>&5
15312   ac_status=$?
15313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314   (exit $ac_status); }; }
15315     then
15316         gcc_cv_as_ix86_sahf=yes
15317     else
15318       echo "configure: failed program was" >&5
15319       cat conftest.s >&5
15320     fi
15321     rm -f conftest.o conftest.s
15322   fi
15323 fi
15324 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15325 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15326 if test $gcc_cv_as_ix86_sahf = yes; then
15327
15328 cat >>confdefs.h <<\_ACEOF
15329 #define HAVE_AS_IX86_SAHF 1
15330 _ACEOF
15331
15332 fi
15333
15334     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15335 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15336 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15337   echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339   gcc_cv_as_ix86_diff_sect_delta=no
15340   if test x$gcc_cv_as != x; then
15341     echo '.section .rodata
15342 .L1:
15343         .long .L2-.L1
15344         .long .L3-.L1
15345         .text
15346 .L3:    nop
15347 .L2:    nop' > conftest.s
15348     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350   (eval $ac_try) 2>&5
15351   ac_status=$?
15352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353   (exit $ac_status); }; }
15354     then
15355         gcc_cv_as_ix86_diff_sect_delta=yes
15356     else
15357       echo "configure: failed program was" >&5
15358       cat conftest.s >&5
15359     fi
15360     rm -f conftest.o conftest.s
15361   fi
15362 fi
15363 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15364 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15365 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15366
15367 cat >>confdefs.h <<\_ACEOF
15368 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15369 _ACEOF
15370
15371 fi
15372
15373     # This one is used unconditionally by i386.[ch]; it is to be defined
15374     # to 1 if the feature is present, 0 otherwise.
15375     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15376 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15377 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15378   echo $ECHO_N "(cached) $ECHO_C" >&6
15379 else
15380   gcc_cv_as_ix86_gotoff_in_data=no
15381     if test $in_tree_gas = yes; then
15382     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15383   then gcc_cv_as_ix86_gotoff_in_data=yes
15384 fi
15385   elif test x$gcc_cv_as != x; then
15386     echo '      .text
15387 .L0:
15388         nop
15389         .data
15390         .long .L0@GOTOFF' > conftest.s
15391     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393   (eval $ac_try) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; }
15397     then
15398         gcc_cv_as_ix86_gotoff_in_data=yes
15399     else
15400       echo "configure: failed program was" >&5
15401       cat conftest.s >&5
15402     fi
15403     rm -f conftest.o conftest.s
15404   fi
15405 fi
15406 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15407 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15408
15409
15410 cat >>confdefs.h <<_ACEOF
15411 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15412 _ACEOF
15413
15414     ;;
15415
15416   ia64*-*-*)
15417     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15418 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15419 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15420   echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15423     if test $in_tree_gas = yes; then
15424     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15425   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15426 fi
15427   elif test x$gcc_cv_as != x; then
15428     echo '      .text
15429         addl r15 = @ltoffx(x#), gp
15430         ;;
15431         ld8.mov r16 = [r15], x#' > conftest.s
15432     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434   (eval $ac_try) 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); }; }
15438     then
15439         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15440     else
15441       echo "configure: failed program was" >&5
15442       cat conftest.s >&5
15443     fi
15444     rm -f conftest.o conftest.s
15445   fi
15446 fi
15447 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15448 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15449 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15450
15451 cat >>confdefs.h <<\_ACEOF
15452 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15453 _ACEOF
15454
15455 fi
15456
15457     ;;
15458
15459   powerpc*-*-*)
15460     case $target in
15461       *-*-aix*) conftest_s='    .machine "pwr5"
15462         .csect .text[PR]
15463         mfcr 3,128';;
15464       *-*-darwin*)
15465         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15466 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15467 if test "${gcc_cv_as_machine_directive+set}" = set; then
15468   echo $ECHO_N "(cached) $ECHO_C" >&6
15469 else
15470   gcc_cv_as_machine_directive=no
15471   if test x$gcc_cv_as != x; then
15472     echo '      .machine ppc7400' > conftest.s
15473     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475   (eval $ac_try) 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); }; }
15479     then
15480         gcc_cv_as_machine_directive=yes
15481     else
15482       echo "configure: failed program was" >&5
15483       cat conftest.s >&5
15484     fi
15485     rm -f conftest.o conftest.s
15486   fi
15487 fi
15488 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15489 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15490
15491         if test x$gcc_cv_as_machine_directive != xyes; then
15492           echo "*** This target requires an assembler supporting \".machine\"" >&2
15493           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15494           test x$build = x$target && exit 1
15495         fi
15496         conftest_s='    .text
15497         mfcr r3,128';;
15498       *) conftest_s='   .machine power4
15499         .text
15500         mfcr 3,128';;
15501     esac
15502
15503     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15504 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15505 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15506   echo $ECHO_N "(cached) $ECHO_C" >&6
15507 else
15508   gcc_cv_as_powerpc_mfcrf=no
15509     if test $in_tree_gas = yes; then
15510     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15511   then gcc_cv_as_powerpc_mfcrf=yes
15512 fi
15513   elif test x$gcc_cv_as != x; then
15514     echo "$conftest_s" > conftest.s
15515     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517   (eval $ac_try) 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; }
15521     then
15522         gcc_cv_as_powerpc_mfcrf=yes
15523     else
15524       echo "configure: failed program was" >&5
15525       cat conftest.s >&5
15526     fi
15527     rm -f conftest.o conftest.s
15528   fi
15529 fi
15530 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15531 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15532 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15533
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE_AS_MFCRF 1
15536 _ACEOF
15537
15538 fi
15539
15540     case $target in
15541       *-*-aix*) conftest_s='    .machine "pwr5"
15542         .csect .text[PR]
15543         popcntb 3,3';;
15544       *) conftest_s='   .machine power5
15545         .text
15546         popcntb 3,3';;
15547     esac
15548
15549     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15550 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15551 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15552   echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554   gcc_cv_as_powerpc_popcntb=no
15555     if test $in_tree_gas = yes; then
15556     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15557   then gcc_cv_as_powerpc_popcntb=yes
15558 fi
15559   elif test x$gcc_cv_as != x; then
15560     echo "$conftest_s" > conftest.s
15561     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563   (eval $ac_try) 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; }
15567     then
15568         gcc_cv_as_powerpc_popcntb=yes
15569     else
15570       echo "configure: failed program was" >&5
15571       cat conftest.s >&5
15572     fi
15573     rm -f conftest.o conftest.s
15574   fi
15575 fi
15576 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15577 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15578 if test $gcc_cv_as_powerpc_popcntb = yes; then
15579
15580 cat >>confdefs.h <<\_ACEOF
15581 #define HAVE_AS_POPCNTB 1
15582 _ACEOF
15583
15584 fi
15585
15586     case $target in
15587       *-*-aix*) conftest_s='    .machine "pwr5x"
15588         .csect .text[PR]
15589         frin 1,1';;
15590       *) conftest_s='   .machine power5
15591         .text
15592         frin 1,1';;
15593     esac
15594
15595     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15596 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15597 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15598   echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600   gcc_cv_as_powerpc_fprnd=no
15601     if test $in_tree_gas = yes; then
15602     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15603   then gcc_cv_as_powerpc_fprnd=yes
15604 fi
15605   elif test x$gcc_cv_as != x; then
15606     echo "$conftest_s" > conftest.s
15607     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }
15613     then
15614         gcc_cv_as_powerpc_fprnd=yes
15615     else
15616       echo "configure: failed program was" >&5
15617       cat conftest.s >&5
15618     fi
15619     rm -f conftest.o conftest.s
15620   fi
15621 fi
15622 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15623 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15624 if test $gcc_cv_as_powerpc_fprnd = yes; then
15625
15626 cat >>confdefs.h <<\_ACEOF
15627 #define HAVE_AS_FPRND 1
15628 _ACEOF
15629
15630 fi
15631
15632     case $target in
15633       *-*-aix*) conftest_s='    .machine "pwr6"
15634         .csect .text[PR]
15635         mffgpr 1,3';;
15636       *) conftest_s='   .machine power6
15637         .text
15638         mffgpr 1,3';;
15639     esac
15640
15641     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15642 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15643 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15644   echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646   gcc_cv_as_powerpc_mfpgpr=no
15647     if test $in_tree_gas = yes; then
15648     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15649   then gcc_cv_as_powerpc_mfpgpr=yes
15650 fi
15651   elif test x$gcc_cv_as != x; then
15652     echo "$conftest_s" > conftest.s
15653     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655   (eval $ac_try) 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; }
15659     then
15660         gcc_cv_as_powerpc_mfpgpr=yes
15661     else
15662       echo "configure: failed program was" >&5
15663       cat conftest.s >&5
15664     fi
15665     rm -f conftest.o conftest.s
15666   fi
15667 fi
15668 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15669 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15670 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15671
15672 cat >>confdefs.h <<\_ACEOF
15673 #define HAVE_AS_MFPGPR 1
15674 _ACEOF
15675
15676 fi
15677
15678     case $target in
15679       *-*-aix*) conftest_s='    .csect .text[PR]
15680 LCF..0:
15681         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15682       *-*-darwin*)
15683         conftest_s='    .text
15684 LCF0:
15685         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15686       *) conftest_s='   .text
15687 .LCF0:
15688         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15689     esac
15690
15691     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15692 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15693 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15694   echo $ECHO_N "(cached) $ECHO_C" >&6
15695 else
15696   gcc_cv_as_powerpc_rel16=no
15697     if test $in_tree_gas = yes; then
15698     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15699   then gcc_cv_as_powerpc_rel16=yes
15700 fi
15701   elif test x$gcc_cv_as != x; then
15702     echo "$conftest_s" > conftest.s
15703     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705   (eval $ac_try) 2>&5
15706   ac_status=$?
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); }; }
15709     then
15710         gcc_cv_as_powerpc_rel16=yes
15711     else
15712       echo "configure: failed program was" >&5
15713       cat conftest.s >&5
15714     fi
15715     rm -f conftest.o conftest.s
15716   fi
15717 fi
15718 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15719 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15720 if test $gcc_cv_as_powerpc_rel16 = yes; then
15721
15722 cat >>confdefs.h <<\_ACEOF
15723 #define HAVE_AS_REL16 1
15724 _ACEOF
15725
15726 fi
15727
15728     case $target in
15729       *-*-aix*) conftest_s='    .machine "pwr6"
15730         .csect .text[PR]
15731         cmpb 3,4,5';;
15732       *) conftest_s='   .machine power6
15733         .text
15734         cmpb 3,4,5';;
15735     esac
15736
15737     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15738 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15739 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15740   echo $ECHO_N "(cached) $ECHO_C" >&6
15741 else
15742   gcc_cv_as_powerpc_cmpb=no
15743     if test $in_tree_gas = yes; then
15744     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15745   then gcc_cv_as_powerpc_cmpb=yes
15746 fi
15747   elif test x$gcc_cv_as != x; then
15748     echo "$conftest_s" > conftest.s
15749     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751   (eval $ac_try) 2>&5
15752   ac_status=$?
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); }; }
15755     then
15756         gcc_cv_as_powerpc_cmpb=yes
15757     else
15758       echo "configure: failed program was" >&5
15759       cat conftest.s >&5
15760     fi
15761     rm -f conftest.o conftest.s
15762   fi
15763 fi
15764 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15765 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15766 if test $gcc_cv_as_powerpc_cmpb = yes; then
15767
15768 cat >>confdefs.h <<\_ACEOF
15769 #define HAVE_AS_CMPB 1
15770 _ACEOF
15771
15772 fi
15773
15774     case $target in
15775       *-*-aix*) conftest_s='    .machine "pwr6"
15776         .csect .text[PR]
15777         dadd 1,2,3';;
15778       *) conftest_s='   .machine power6
15779         .text
15780         dadd 1,2,3';;
15781     esac
15782
15783     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15784 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15785 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15786   echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788   gcc_cv_as_powerpc_dfp=no
15789     if test $in_tree_gas = yes; then
15790     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15791   then gcc_cv_as_powerpc_dfp=yes
15792 fi
15793   elif test x$gcc_cv_as != x; then
15794     echo "$conftest_s" > conftest.s
15795     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797   (eval $ac_try) 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; }
15801     then
15802         gcc_cv_as_powerpc_dfp=yes
15803     else
15804       echo "configure: failed program was" >&5
15805       cat conftest.s >&5
15806     fi
15807     rm -f conftest.o conftest.s
15808   fi
15809 fi
15810 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15811 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15812 if test $gcc_cv_as_powerpc_dfp = yes; then
15813
15814 cat >>confdefs.h <<\_ACEOF
15815 #define HAVE_AS_DFP 1
15816 _ACEOF
15817
15818 fi
15819     ;;
15820
15821   mips*-*-*)
15822     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15823 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15824 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827   gcc_cv_as_mips_explicit_relocs=no
15828     if test $in_tree_gas = yes; then
15829     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15830   then gcc_cv_as_mips_explicit_relocs=yes
15831 fi
15832   elif test x$gcc_cv_as != x; then
15833     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15834     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836   (eval $ac_try) 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; }
15840     then
15841         gcc_cv_as_mips_explicit_relocs=yes
15842     else
15843       echo "configure: failed program was" >&5
15844       cat conftest.s >&5
15845     fi
15846     rm -f conftest.o conftest.s
15847   fi
15848 fi
15849 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15850 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15851 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15852   if test x$target_cpu_default = x
15853        then target_cpu_default=MASK_EXPLICIT_RELOCS
15854        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15855        fi
15856 fi
15857     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15858 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15859 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15860   echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862   gcc_cv_as_mips_no_shared=no
15863     if test $in_tree_gas = yes; then
15864     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15865   then gcc_cv_as_mips_no_shared=yes
15866 fi
15867   elif test x$gcc_cv_as != x; then
15868     echo 'nop' > conftest.s
15869     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871   (eval $ac_try) 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; }
15875     then
15876         gcc_cv_as_mips_no_shared=yes
15877     else
15878       echo "configure: failed program was" >&5
15879       cat conftest.s >&5
15880     fi
15881     rm -f conftest.o conftest.s
15882   fi
15883 fi
15884 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15885 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15886 if test $gcc_cv_as_mips_no_shared = yes; then
15887
15888 cat >>confdefs.h <<\_ACEOF
15889 #define HAVE_AS_NO_SHARED 1
15890 _ACEOF
15891
15892 fi
15893     ;;
15894 esac
15895
15896 # Mips and HP-UX need the GNU assembler.
15897 # Linux on IA64 might be able to use the Intel assembler.
15898
15899 case "$target" in
15900   mips*-*-* | *-*-hpux* )
15901     if test x$gas_flag = xyes \
15902        || test x"$host" != x"$build" \
15903        || test ! -x "$gcc_cv_as" \
15904        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15905       :
15906     else
15907       echo "*** This configuration requires the GNU assembler" >&2
15908       exit 1
15909     fi
15910     ;;
15911 esac
15912
15913 # ??? Not all targets support dwarf2 debug_line, even within a version
15914 # of gas.  Moreover, we need to emit a valid instruction to trigger any
15915 # info to the output file.  So, as supported targets are added to gas 2.11,
15916 # add some instruction here to (also) show we expect this might work.
15917 # ??? Once 2.11 is released, probably need to add first known working
15918 # version to the per-target configury.
15919 case "$target" in
15920   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15921   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15922   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
15923     insn="nop"
15924     ;;
15925   ia64*-*-* | s390*-*-*)
15926     insn="nop 0"
15927     ;;
15928   mmix-*-*)
15929     insn="swym 0"
15930     ;;
15931 esac
15932 if test x"$insn" != x; then
15933  conftest_s="\
15934         .file 1 \"conftest.s\"
15935         .loc 1 3 0
15936         $insn"
15937  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15938 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15939 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15940   echo $ECHO_N "(cached) $ECHO_C" >&6
15941 else
15942   gcc_cv_as_dwarf2_debug_line=no
15943     if test $in_tree_gas = yes; then
15944     if test $in_tree_gas_is_elf = yes \
15945   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15946   then gcc_cv_as_dwarf2_debug_line=yes
15947 fi
15948   elif test x$gcc_cv_as != x; then
15949     echo "$conftest_s" > conftest.s
15950     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952   (eval $ac_try) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; }
15956     then
15957         if test x$gcc_cv_objdump != x \
15958    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15959       | grep debug_line > /dev/null 2>&1; then
15960      gcc_cv_as_dwarf2_debug_line=yes
15961    fi
15962     else
15963       echo "configure: failed program was" >&5
15964       cat conftest.s >&5
15965     fi
15966     rm -f conftest.o conftest.s
15967   fi
15968 fi
15969 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15970 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15971
15972
15973 # The .debug_line file table must be in the exact order that
15974 # we specified the files, since these indices are also used
15975 # by DW_AT_decl_file.  Approximate this test by testing if
15976 # the assembler bitches if the same index is assigned twice.
15977  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15978 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15979 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15980   echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982   gcc_cv_as_dwarf2_file_buggy=no
15983   if test x$gcc_cv_as != x; then
15984     echo '      .file 1 "foo.s"
15985         .file 1 "bar.s"' > conftest.s
15986     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988   (eval $ac_try) 2>&5
15989   ac_status=$?
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); }; }
15992     then
15993         gcc_cv_as_dwarf2_file_buggy=yes
15994     else
15995       echo "configure: failed program was" >&5
15996       cat conftest.s >&5
15997     fi
15998     rm -f conftest.o conftest.s
15999   fi
16000 fi
16001 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16002 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16003
16004
16005  if test $gcc_cv_as_dwarf2_debug_line = yes \
16006  && test $gcc_cv_as_dwarf2_file_buggy = no; then
16007
16008 cat >>confdefs.h <<\_ACEOF
16009 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16010 _ACEOF
16011
16012  fi
16013
16014  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16015 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16016 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16017   echo $ECHO_N "(cached) $ECHO_C" >&6
16018 else
16019   gcc_cv_as_gdwarf2_flag=no
16020     if test $in_tree_gas = yes; then
16021     if test $in_tree_gas_is_elf = yes \
16022   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16023   then gcc_cv_as_gdwarf2_flag=yes
16024 fi
16025   elif test x$gcc_cv_as != x; then
16026     echo "$insn" > conftest.s
16027     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029   (eval $ac_try) 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); }; }
16033     then
16034         gcc_cv_as_gdwarf2_flag=yes
16035     else
16036       echo "configure: failed program was" >&5
16037       cat conftest.s >&5
16038     fi
16039     rm -f conftest.o conftest.s
16040   fi
16041 fi
16042 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16043 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16044 if test $gcc_cv_as_gdwarf2_flag = yes; then
16045
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16048 _ACEOF
16049
16050 fi
16051
16052  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16053 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16054 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16055   echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057   gcc_cv_as_gstabs_flag=no
16058     if test $in_tree_gas = yes; then
16059     if test $in_tree_gas_is_elf = yes \
16060   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16061   then gcc_cv_as_gstabs_flag=yes
16062 fi
16063   elif test x$gcc_cv_as != x; then
16064     echo "$insn" > conftest.s
16065     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067   (eval $ac_try) 2>&5
16068   ac_status=$?
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); }; }
16071     then
16072         # The native Solaris 9/Intel assembler doesn't understand --gstabs
16073    # and warns about it, but still exits successfully.  So check for
16074    # this.
16075    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077   (eval $ac_try) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; }
16081    then :
16082    else gcc_cv_as_gstabs_flag=yes
16083    fi
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_gstabs_flag" >&5
16092 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16093 if test $gcc_cv_as_gstabs_flag = yes; then
16094
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16097 _ACEOF
16098
16099 fi
16100 fi
16101
16102 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16103 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16104 if test "${gcc_cv_as_line_zero+set}" = set; then
16105   echo $ECHO_N "(cached) $ECHO_C" >&6
16106 else
16107   gcc_cv_as_line_zero=no
16108   if test $in_tree_gas = yes; then
16109     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16110   then gcc_cv_as_line_zero=yes
16111 fi
16112   elif test "x$gcc_cv_as" != x; then
16113     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16114     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116   (eval $ac_try) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; } &&
16120        test "x`cat conftest.out`" = x
16121     then
16122       gcc_cv_as_line_zero=yes
16123     else
16124       echo "configure: failed program was" >&5
16125       cat conftest.s >&5
16126       echo "configure: error output was" >&5
16127       cat conftest.out >&5
16128     fi
16129     rm -f conftest.o conftest.s conftest.out
16130   fi
16131 fi
16132 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16133 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16134 if test "x$gcc_cv_as_line_zero" = xyes; then
16135
16136 cat >>confdefs.h <<\_ACEOF
16137 #define HAVE_AS_LINE_ZERO 1
16138 _ACEOF
16139
16140 fi
16141
16142 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16143 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16144 gcc_cv_ld_ro_rw_mix=unknown
16145 if test $in_tree_ld = yes ; then
16146   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 \
16147      && test $in_tree_ld_is_elf = yes; then
16148     gcc_cv_ld_ro_rw_mix=read-write
16149   fi
16150 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16151   echo '.section myfoosect, "a"' > conftest1.s
16152   echo '.section myfoosect, "aw"' > conftest2.s
16153   echo '.byte 1' >> conftest2.s
16154   echo '.section myfoosect, "a"' > conftest3.s
16155   echo '.byte 0' >> conftest3.s
16156   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16157      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16158      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16159      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16160         conftest2.o conftest3.o > /dev/null 2>&1; then
16161     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16162                          | sed -e '/myfoosect/!d' -e N`
16163     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16164       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16165         gcc_cv_ld_ro_rw_mix=read-only
16166       else
16167         gcc_cv_ld_ro_rw_mix=read-write
16168       fi
16169     fi
16170   fi
16171   rm -f conftest.* conftest[123].*
16172 fi
16173 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16174
16175 cat >>confdefs.h <<\_ACEOF
16176 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16177 _ACEOF
16178
16179 fi
16180 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16181 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16182
16183 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16184 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16185 gcc_cv_ld_eh_frame_hdr=no
16186 if test $in_tree_ld = yes ; then
16187   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 \
16188      && test $in_tree_ld_is_elf = yes; then
16189     gcc_cv_ld_eh_frame_hdr=yes
16190   fi
16191 elif test x$gcc_cv_ld != x; then
16192         # Check if linker supports --eh-frame-hdr option
16193         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16194                 gcc_cv_ld_eh_frame_hdr=yes
16195         fi
16196 fi
16197
16198 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16199
16200 cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_LD_EH_FRAME_HDR 1
16202 _ACEOF
16203
16204 fi
16205 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16206 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16207
16208 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16209 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16210 gcc_cv_ld_pie=no
16211 if test $in_tree_ld = yes ; then
16212   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 \
16213      && test $in_tree_ld_is_elf = yes; then
16214     gcc_cv_ld_pie=yes
16215   fi
16216 elif test x$gcc_cv_ld != x; then
16217         # Check if linker supports -pie option
16218         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16219                 gcc_cv_ld_pie=yes
16220         fi
16221 fi
16222 if test x"$gcc_cv_ld_pie" = xyes; then
16223
16224 cat >>confdefs.h <<\_ACEOF
16225 #define HAVE_LD_PIE 1
16226 _ACEOF
16227
16228 fi
16229 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16230 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16231
16232 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16233 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16234 gcc_cv_ld_eh_gc_sections=no
16235 if test $in_tree_ld = yes ; then
16236   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 \
16237      && test $in_tree_ld_is_elf = yes; then
16238     gcc_cv_ld_eh_gc_sections=yes
16239   fi
16240 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16241   cat > conftest.s <<EOF
16242         .section        .text
16243 .globl _start
16244         .type _start, @function
16245 _start:
16246         .long foo
16247         .size _start, .-_start
16248         .section        .text.foo,"ax",@progbits
16249         .type foo, @function
16250 foo:
16251         .long 0
16252         .size foo, .-foo
16253         .section        .gcc_except_table.foo,"a",@progbits
16254 .L0:
16255         .long 0
16256         .section        .eh_frame,"a",@progbits
16257         .long .L0
16258 EOF
16259   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16260     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16261          | grep "gc-sections option ignored" > /dev/null; then
16262       gcc_cv_ld_eh_gc_sections=no
16263     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16264       gcc_cv_ld_eh_gc_sections=yes
16265       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16266       if test x$gcc_cv_as_comdat_group != xyes; then
16267         gcc_cv_ld_eh_gc_sections=no
16268         cat > conftest.s <<EOF
16269         .section        .text
16270 .globl _start
16271         .type _start, @function
16272 _start:
16273         .long foo
16274         .size _start, .-_start
16275         .section        .gnu.linkonce.t.foo,"ax",@progbits
16276         .type foo, @function
16277 foo:
16278         .long 0
16279         .size foo, .-foo
16280         .section        .gcc_except_table.foo,"a",@progbits
16281 .L0:
16282         .long 0
16283         .section        .eh_frame,"a",@progbits
16284         .long .L0
16285 EOF
16286         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16287           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16288                | grep "gc-sections option ignored" > /dev/null; then
16289             gcc_cv_ld_eh_gc_sections=no
16290           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16291             gcc_cv_ld_eh_gc_sections=yes
16292           fi
16293         fi
16294       fi
16295     fi
16296   fi
16297   rm -f conftest.s conftest.o conftest
16298 fi
16299 case "$target" in
16300   hppa*-*-linux*)
16301     # ??? This apparently exposes a binutils bug with PC-relative relocations.
16302     gcc_cv_ld_eh_gc_sections=no
16303     ;;
16304 esac
16305 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16306
16307 cat >>confdefs.h <<\_ACEOF
16308 #define HAVE_LD_EH_GC_SECTIONS 1
16309 _ACEOF
16310
16311 fi
16312 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16313 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16314
16315 # --------
16316 # UNSORTED
16317 # --------
16318
16319 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16320 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16321 if test "${gcc_cv_ld_as_needed+set}" = set; then
16322   echo $ECHO_N "(cached) $ECHO_C" >&6
16323 else
16324   gcc_cv_ld_as_needed=no
16325 if test $in_tree_ld = yes ; then
16326   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 \
16327      && test $in_tree_ld_is_elf = yes; then
16328     gcc_cv_ld_as_needed=yes
16329   fi
16330 elif test x$gcc_cv_ld != x; then
16331         # Check if linker supports --as-needed and --no-as-needed options
16332         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16333                 gcc_cv_ld_as_needed=yes
16334         fi
16335 fi
16336
16337 fi
16338 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16339 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16340 if test x"$gcc_cv_ld_as_needed" = xyes; then
16341
16342 cat >>confdefs.h <<\_ACEOF
16343 #define HAVE_LD_AS_NEEDED 1
16344 _ACEOF
16345
16346 fi
16347
16348 case "$target:$tm_file" in
16349   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16350     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16351 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16352 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16353   echo $ECHO_N "(cached) $ECHO_C" >&6
16354 else
16355   gcc_cv_ld_no_dot_syms=no
16356     if test $in_tree_ld = yes ; then
16357       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
16358         gcc_cv_ld_no_dot_syms=yes
16359       fi
16360     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16361       cat > conftest1.s <<EOF
16362         .text
16363         bl .foo
16364 EOF
16365       cat > conftest2.s <<EOF
16366         .section ".opd","aw"
16367         .align 3
16368         .globl foo
16369         .type foo,@function
16370 foo:
16371         .quad .LEfoo,.TOC.@tocbase,0
16372         .text
16373 .LEfoo:
16374         blr
16375         .size foo,.-.LEfoo
16376 EOF
16377       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16378          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16379          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16380         gcc_cv_ld_no_dot_syms=yes
16381       fi
16382       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16383     fi
16384
16385 fi
16386 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16387 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16388     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16389
16390 cat >>confdefs.h <<\_ACEOF
16391 #define HAVE_LD_NO_DOT_SYMS 1
16392 _ACEOF
16393
16394     fi
16395     ;;
16396 esac
16397
16398 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16399 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16400 if test "${gcc_cv_ld_sysroot+set}" = set; then
16401   echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403   gcc_cv_ld_sysroot=no
16404   if test $in_tree_ld = yes ; then
16405       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
16406         gcc_cv_ld_sysroot=yes
16407       fi
16408   elif test x$gcc_cv_ld != x; then
16409     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16410       gcc_cv_ld_sysroot=yes
16411     fi
16412   fi
16413 fi
16414 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16415 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16416 if test x"$gcc_cv_ld_sysroot" = xyes; then
16417
16418 cat >>confdefs.h <<\_ACEOF
16419 #define HAVE_LD_SYSROOT 1
16420 _ACEOF
16421
16422 fi
16423
16424 if test x$with_sysroot = x && test x$host = x$target \
16425    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16426    && test "$prefix" != "NONE"; then
16427
16428 cat >>confdefs.h <<_ACEOF
16429 #define PREFIX_INCLUDE_DIR "$prefix/include"
16430 _ACEOF
16431
16432 fi
16433
16434 # Test for stack protector support in target C library.
16435 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16436 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16437 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16438   echo $ECHO_N "(cached) $ECHO_C" >&6
16439 else
16440   gcc_cv_libc_provides_ssp=no
16441     case "$target" in
16442        *-*-linux*)
16443       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16444         if test "x$with_sysroot" = x; then
16445           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16446         elif test "x$with_build_sysroot" != "x"; then
16447           glibc_header_dir="${with_build_sysroot}/usr/include"
16448         elif test "x$with_sysroot" = xyes; then
16449           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16450         else
16451           glibc_header_dir="${with_sysroot}/usr/include"
16452         fi
16453       else
16454         glibc_header_dir=/usr/include
16455       fi
16456       # glibc 2.4 and later provides __stack_chk_fail and
16457       # either __stack_chk_guard, or TLS access to stack guard canary.
16458       if test -f $glibc_header_dir/features.h \
16459          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
16460             $glibc_header_dir/features.h > /dev/null; then
16461         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
16462            $glibc_header_dir/features.h > /dev/null; then
16463           gcc_cv_libc_provides_ssp=yes
16464         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
16465              $glibc_header_dir/features.h > /dev/null \
16466              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
16467              $glibc_header_dir/features.h > /dev/null; then
16468           gcc_cv_libc_provides_ssp=yes
16469         fi
16470         fi
16471         ;;
16472        *-*-darwin*)
16473          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16474 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16475 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16476   echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478   cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h.  */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h.  */
16484 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16486 #define __stack_chk_fail innocuous___stack_chk_fail
16487
16488 /* System header to define __stub macros and hopefully few prototypes,
16489     which can conflict with char __stack_chk_fail (); below.
16490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16491     <limits.h> exists even on freestanding compilers.  */
16492
16493 #ifdef __STDC__
16494 # include <limits.h>
16495 #else
16496 # include <assert.h>
16497 #endif
16498
16499 #undef __stack_chk_fail
16500
16501 /* Override any gcc2 internal prototype to avoid an error.  */
16502 #ifdef __cplusplus
16503 extern "C"
16504 {
16505 #endif
16506 /* We use char because int might match the return type of a gcc2
16507    builtin and then its argument prototype would still apply.  */
16508 char __stack_chk_fail ();
16509 /* The GNU C library defines this for functions which it implements
16510     to always fail with ENOSYS.  Some functions are actually named
16511     something starting with __ and the normal name is an alias.  */
16512 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16513 choke me
16514 #else
16515 char (*f) () = __stack_chk_fail;
16516 #endif
16517 #ifdef __cplusplus
16518 }
16519 #endif
16520
16521 int
16522 main ()
16523 {
16524 return f != __stack_chk_fail;
16525   ;
16526   return 0;
16527 }
16528 _ACEOF
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531   (eval $ac_link) 2>conftest.er1
16532   ac_status=$?
16533   grep -v '^ *+' conftest.er1 >conftest.err
16534   rm -f conftest.er1
16535   cat conftest.err >&5
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); } &&
16538          { ac_try='test -z "$ac_c_werror_flag"
16539                          || test ! -s conftest.err'
16540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541   (eval $ac_try) 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; } &&
16545          { ac_try='test -s conftest$ac_exeext'
16546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547   (eval $ac_try) 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); }; }; then
16551   ac_cv_func___stack_chk_fail=yes
16552 else
16553   echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16555
16556 ac_cv_func___stack_chk_fail=no
16557 fi
16558 rm -f conftest.err conftest.$ac_objext \
16559       conftest$ac_exeext conftest.$ac_ext
16560 fi
16561 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16562 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16563 if test $ac_cv_func___stack_chk_fail = yes; then
16564   gcc_cv_libc_provides_ssp=yes
16565 else
16566   echo "no __stack_chk_fail on this target"
16567 fi
16568
16569         ;;
16570   *) gcc_cv_libc_provides_ssp=no ;;
16571     esac
16572 fi
16573 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16574 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16575
16576 if test x$gcc_cv_libc_provides_ssp = xyes; then
16577
16578 cat >>confdefs.h <<\_ACEOF
16579 #define TARGET_LIBC_PROVIDES_SSP 1
16580 _ACEOF
16581
16582 fi
16583
16584 # Check if TFmode long double should be used by default or not.
16585 # Some glibc targets used DFmode long double, but with glibc 2.4
16586 # and later they can use TFmode.
16587 case "$target" in
16588   powerpc*-*-linux* | \
16589   powerpc*-*-gnu* | \
16590   sparc*-*-linux* | \
16591   s390*-*-linux* | \
16592   alpha*-*-linux*)
16593
16594 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16595 if test "${with_long_double_128+set}" = set; then
16596   withval="$with_long_double_128"
16597   gcc_cv_target_ldbl128="$with_long_double_128"
16598 else
16599   gcc_cv_target_ldbl128=no
16600       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16601         if test "x$with_sysroot" = x; then
16602           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16603         elif test "x$with_build_sysroot" != "x"; then
16604           glibc_header_dir="${with_build_sysroot}/usr/include"
16605         elif test "x$with_sysroot" = xyes; then
16606           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16607         else
16608           glibc_header_dir="${with_sysroot}/usr/include"
16609         fi
16610       else
16611         glibc_header_dir=/usr/include
16612       fi
16613       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16614         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16615       && gcc_cv_target_ldbl128=yes
16616
16617 fi;
16618     ;;
16619 esac
16620 if test x$gcc_cv_target_ldbl128 = xyes; then
16621
16622 cat >>confdefs.h <<\_ACEOF
16623 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16624 _ACEOF
16625
16626 fi
16627
16628 # Find out what GC implementation we want, or may, use.
16629
16630 # Check whether --with-gc or --without-gc was given.
16631 if test "${with_gc+set}" = set; then
16632   withval="$with_gc"
16633   case "$withval" in
16634   page)
16635     GGC=ggc-$withval
16636     ;;
16637   zone)
16638     GGC=ggc-$withval
16639
16640 cat >>confdefs.h <<\_ACEOF
16641 #define GGC_ZONE 1
16642 _ACEOF
16643
16644     ;;
16645   *)
16646     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16647 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16648    { (exit 1); exit 1; }; }
16649     ;;
16650 esac
16651 else
16652   GGC=ggc-page
16653 fi;
16654
16655 echo "Using $GGC for garbage collection."
16656
16657 # Use the system's zlib library.
16658 zlibdir=-L../zlib
16659 zlibinc="-I\$(srcdir)/../zlib"
16660
16661 # Check whether --with-system-zlib or --without-system-zlib was given.
16662 if test "${with_system_zlib+set}" = set; then
16663   withval="$with_system_zlib"
16664   zlibdir=
16665 zlibinc=
16666
16667 fi;
16668
16669
16670
16671
16672 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16673 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16674     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16675 if test "${enable_maintainer_mode+set}" = set; then
16676   enableval="$enable_maintainer_mode"
16677   maintainer_mode=$enableval
16678 else
16679   maintainer_mode=no
16680 fi;
16681
16682 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16683 echo "${ECHO_T}$maintainer_mode" >&6
16684
16685 if test "$maintainer_mode" = "yes"; then
16686   MAINT=''
16687 else
16688   MAINT='#'
16689 fi
16690
16691 # --------------
16692 # Language hooks
16693 # --------------
16694
16695 # Make empty files to contain the specs and options for each language.
16696 # Then add #include lines to for a compiler that has specs and/or options.
16697
16698 subdirs=
16699 lang_opt_files=
16700 lang_specs_files=
16701 lang_tree_files=
16702 # These (without "all_") are set in each config-lang.in.
16703 # `language' must be a single word so is spelled singularly.
16704 all_languages=
16705 all_compilers=
16706 all_outputs='Makefile gccbug libada-mk'
16707 # List of language makefile fragments.
16708 all_lang_makefrags=
16709 # List of language subdirectory makefiles.  Deprecated.
16710 all_lang_makefiles=
16711 # Additional files for gengtype
16712 all_gtfiles="$target_gtfiles"
16713
16714 # These are the languages that are set in --enable-languages,
16715 # and are available in the GCC tree.
16716 all_selected_languages=
16717
16718 # Add the language fragments.
16719 # Languages are added via two mechanisms.  Some information must be
16720 # recorded in makefile variables, these are defined in config-lang.in.
16721 # We accumulate them and plug them into the main Makefile.
16722 # The other mechanism is a set of hooks for each of the main targets
16723 # like `clean', `install', etc.
16724
16725 language_hooks="Make-hooks"
16726
16727 for lang in ${srcdir}/*/config-lang.in
16728 do
16729         test "$lang" = "${srcdir}/*/config-lang.in" && continue
16730
16731         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
16732         if test "x$lang_alias" = x
16733         then
16734               echo "$lang doesn't set \$language." 1>&2
16735               exit 1
16736         fi
16737         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16738         subdirs="$subdirs $subdir"
16739         case ",$enable_languages," in
16740         *,$lang_alias,*)
16741             all_selected_languages="$all_selected_languages $lang_alias"
16742             if test -f $srcdir/$subdir/lang-specs.h; then
16743                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16744             fi
16745             ;;
16746         esac
16747
16748         language=
16749         boot_language=
16750         compilers=
16751         outputs=
16752         gtfiles=
16753         subdir_requires=
16754         . ${srcdir}/$subdir/config-lang.in
16755         if test "x$language" = x
16756         then
16757                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16758                 exit 1
16759         fi
16760
16761         ok=:
16762         case ",$enable_languages," in
16763                 *,$lang_alias,*) ;;
16764                 *)
16765                         for i in $subdir_requires; do
16766                                 test -f "${srcdir}/$i/config-lang.in" && continue
16767                                 ok=false
16768                                 break
16769                         done
16770                 ;;
16771         esac
16772         $ok || continue
16773
16774         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16775         if test -f $srcdir/$subdir/lang.opt; then
16776             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16777         fi
16778         if test -f $srcdir/$subdir/$subdir-tree.def; then
16779             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16780         fi
16781         if test -f ${srcdir}/$subdir/Makefile.in
16782                 then all_lang_makefiles="$subdir/Makefile"
16783         fi
16784         all_languages="$all_languages $language"
16785         all_compilers="$all_compilers $compilers"
16786         all_outputs="$all_outputs $outputs"
16787         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
16788 done
16789
16790 # Pick up gtfiles for c
16791 gtfiles=
16792 . ${srcdir}/c-config-lang.in
16793 all_gtfiles="$all_gtfiles [c] $gtfiles"
16794
16795 check_languages=
16796 for language in $all_selected_languages
16797 do
16798         check_languages="$check_languages check-$language"
16799 done
16800
16801 # We link each language in with a set of hooks, reached indirectly via
16802 # lang.${target}.  Only do so for selected languages.
16803
16804 rm -f Make-hooks
16805 touch Make-hooks
16806 target_list="all.cross start.encap rest.encap tags \
16807         install-common install-man install-info install-pdf dvi pdf \
16808         html uninstall info man srcextra srcman srcinfo \
16809         mostlyclean clean distclean maintainer-clean"
16810
16811 for t in $target_list
16812 do
16813         x=
16814         for lang in $all_selected_languages
16815         do
16816                 x="$x $lang.$t"
16817         done
16818         echo "lang.$t: $x" >> Make-hooks
16819 done
16820
16821 # --------
16822 # UNSORTED
16823 # --------
16824
16825 # Create .gdbinit.
16826
16827 echo "dir ." > .gdbinit
16828 echo "dir ${srcdir}" >> .gdbinit
16829 if test x$gdb_needs_out_file_path = xyes
16830 then
16831         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16832 fi
16833 if test "x$subdirs" != x; then
16834         for s in $subdirs
16835         do
16836                 echo "dir ${srcdir}/$s" >> .gdbinit
16837         done
16838 fi
16839 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16840
16841 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16842 # absolute path for gcc_tooldir based on inserting the number of up-directory
16843 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16844 # $(libsubdir)/@(unlibsubdir) based path.
16845 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16846 # make and thus we'd get different behavior depending on where we built the
16847 # sources.
16848 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16849     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16850 else
16851 # An explanation of the sed strings:
16852 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
16853 #  -e 's|/$||'            match a trailing forward slash and eliminates it
16854 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
16855 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
16856 #
16857 # (*) Note this pattern overwrites the first character of the string
16858 # with a forward slash if one is not already present.  This is not a
16859 # problem because the exact names of the sub-directories concerned is
16860 # unimportant, just the number of them matters.
16861 #
16862 # The practical upshot of these patterns is like this:
16863 #
16864 #  prefix     exec_prefix        result
16865 #  ------     -----------        ------
16866 #   /foo        /foo/bar          ../
16867 #   /foo/       /foo/bar          ../
16868 #   /foo        /foo/bar/         ../
16869 #   /foo/       /foo/bar/         ../
16870 #   /foo        /foo/bar/ugg      ../../
16871 #
16872     dollar='$$'
16873     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16874 fi
16875
16876
16877
16878 # Find a directory in which to install a shared libgcc.
16879
16880 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16881 if test "${enable_version_specific_runtime_libs+set}" = set; then
16882   enableval="$enable_version_specific_runtime_libs"
16883
16884 fi;
16885
16886
16887 # Check whether --with-slibdir or --without-slibdir was given.
16888 if test "${with_slibdir+set}" = set; then
16889   withval="$with_slibdir"
16890   slibdir="$with_slibdir"
16891 else
16892   if test "${enable_version_specific_runtime_libs+set}" = set; then
16893   slibdir='$(libsubdir)'
16894 elif test "$host" != "$target"; then
16895   slibdir='$(build_tooldir)/lib'
16896 else
16897   slibdir='$(libdir)'
16898 fi
16899 fi;
16900
16901
16902 objdir=`${PWDCMD-pwd}`
16903
16904
16905
16906 # Check whether --with-datarootdir or --without-datarootdir was given.
16907 if test "${with_datarootdir+set}" = set; then
16908   withval="$with_datarootdir"
16909   datarootdir="\${prefix}/$with_datarootdir"
16910 else
16911   datarootdir='$(prefix)/share'
16912 fi;
16913
16914
16915
16916 # Check whether --with-docdir or --without-docdir was given.
16917 if test "${with_docdir+set}" = set; then
16918   withval="$with_docdir"
16919   docdir="\${prefix}/$with_docdir"
16920 else
16921   docdir='$(datarootdir)'
16922 fi;
16923
16924
16925
16926 # Check whether --with-htmldir or --without-htmldir was given.
16927 if test "${with_htmldir+set}" = set; then
16928   withval="$with_htmldir"
16929   htmldir="\${prefix}/$with_htmldir"
16930 else
16931   htmldir='$(docdir)'
16932 fi;
16933
16934
16935 # Substitute configuration variables
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991 # Echo link setup.
16992 if test x${build} = x${host} ; then
16993   if test x${host} = x${target} ; then
16994     echo "Links are now set up to build a native compiler for ${target}." 1>&2
16995   else
16996     echo "Links are now set up to build a cross-compiler" 1>&2
16997     echo " from ${host} to ${target}." 1>&2
16998   fi
16999 else
17000   if test x${host} = x${target} ; then
17001     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17002     echo " for ${target}." 1>&2
17003   else
17004     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17005     echo " from ${host} to ${target}." 1>&2
17006   fi
17007 fi
17008
17009
17010
17011
17012 # Configure the subdirectories
17013 # AC_CONFIG_SUBDIRS($subdirs)
17014
17015 # Create the Makefile
17016 # and configure language subdirectories
17017           ac_config_files="$ac_config_files $all_outputs"
17018
17019
17020           ac_config_commands="$ac_config_commands default"
17021
17022 cat >confcache <<\_ACEOF
17023 # This file is a shell script that caches the results of configure
17024 # tests run on this system so they can be shared between configure
17025 # scripts and configure runs, see configure's option --config-cache.
17026 # It is not useful on other systems.  If it contains results you don't
17027 # want to keep, you may remove or edit it.
17028 #
17029 # config.status only pays attention to the cache file if you give it
17030 # the --recheck option to rerun configure.
17031 #
17032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17034 # following values.
17035
17036 _ACEOF
17037
17038 # The following way of writing the cache mishandles newlines in values,
17039 # but we know of no workaround that is simple, portable, and efficient.
17040 # So, don't put newlines in cache variables' values.
17041 # Ultrix sh set writes to stderr and can't be redirected directly,
17042 # and sets the high bit in the cache file unless we assign to the vars.
17043 {
17044   (set) 2>&1 |
17045     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17046     *ac_space=\ *)
17047       # `set' does not quote correctly, so add quotes (double-quote
17048       # substitution turns \\\\ into \\, and sed turns \\ into \).
17049       sed -n \
17050         "s/'/'\\\\''/g;
17051           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17052       ;;
17053     *)
17054       # `set' quotes correctly as required by POSIX, so do not add quotes.
17055       sed -n \
17056         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17057       ;;
17058     esac;
17059 } |
17060   sed '
17061      t clear
17062      : clear
17063      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17064      t end
17065      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17066      : end' >>confcache
17067 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17068   if test -w $cache_file; then
17069     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17070     cat confcache >$cache_file
17071   else
17072     echo "not updating unwritable cache $cache_file"
17073   fi
17074 fi
17075 rm -f confcache
17076
17077 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17078 # Let make expand exec_prefix.
17079 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17080
17081 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17082 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17083 # trailing colons and then remove the whole line if VPATH becomes empty
17084 # (actually we leave an empty line to preserve line numbers).
17085 if test "x$srcdir" = x.; then
17086   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17087 s/:*\$(srcdir):*/:/;
17088 s/:*\${srcdir}:*/:/;
17089 s/:*@srcdir@:*/:/;
17090 s/^\([^=]*=[     ]*\):*/\1/;
17091 s/:*$//;
17092 s/^[^=]*=[       ]*$//;
17093 }'
17094 fi
17095
17096 DEFS=-DHAVE_CONFIG_H
17097
17098 ac_libobjs=
17099 ac_ltlibobjs=
17100 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17101   # 1. Remove the extension, and $U if already installed.
17102   ac_i=`echo "$ac_i" |
17103          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17104   # 2. Add them.
17105   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17106   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17107 done
17108 LIBOBJS=$ac_libobjs
17109
17110 LTLIBOBJS=$ac_ltlibobjs
17111
17112
17113
17114 : ${CONFIG_STATUS=./config.status}
17115 ac_clean_files_save=$ac_clean_files
17116 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17117 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17118 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17119 cat >$CONFIG_STATUS <<_ACEOF
17120 #! $SHELL
17121 # Generated by $as_me.
17122 # Run this file to recreate the current configuration.
17123 # Compiler output produced by configure, useful for debugging
17124 # configure, is in config.log if it exists.
17125
17126 debug=false
17127 ac_cs_recheck=false
17128 ac_cs_silent=false
17129 SHELL=\${CONFIG_SHELL-$SHELL}
17130 _ACEOF
17131
17132 cat >>$CONFIG_STATUS <<\_ACEOF
17133 ## --------------------- ##
17134 ## M4sh Initialization.  ##
17135 ## --------------------- ##
17136
17137 # Be Bourne compatible
17138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17139   emulate sh
17140   NULLCMD=:
17141   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17142   # is contrary to our usage.  Disable this feature.
17143   alias -g '${1+"$@"}'='"$@"'
17144 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17145   set -o posix
17146 fi
17147 DUALCASE=1; export DUALCASE # for MKS sh
17148
17149 # Support unset when possible.
17150 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17151   as_unset=unset
17152 else
17153   as_unset=false
17154 fi
17155
17156
17157 # Work around bugs in pre-3.0 UWIN ksh.
17158 $as_unset ENV MAIL MAILPATH
17159 PS1='$ '
17160 PS2='> '
17161 PS4='+ '
17162
17163 # NLS nuisances.
17164 for as_var in \
17165   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17166   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17167   LC_TELEPHONE LC_TIME
17168 do
17169   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17170     eval $as_var=C; export $as_var
17171   else
17172     $as_unset $as_var
17173   fi
17174 done
17175
17176 # Required to use basename.
17177 if expr a : '\(a\)' >/dev/null 2>&1; then
17178   as_expr=expr
17179 else
17180   as_expr=false
17181 fi
17182
17183 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17184   as_basename=basename
17185 else
17186   as_basename=false
17187 fi
17188
17189
17190 # Name of the executable.
17191 as_me=`$as_basename "$0" ||
17192 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17193          X"$0" : 'X\(//\)$' \| \
17194          X"$0" : 'X\(/\)$' \| \
17195          .     : '\(.\)' 2>/dev/null ||
17196 echo X/"$0" |
17197     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17198           /^X\/\(\/\/\)$/{ s//\1/; q; }
17199           /^X\/\(\/\).*/{ s//\1/; q; }
17200           s/.*/./; q'`
17201
17202
17203 # PATH needs CR, and LINENO needs CR and PATH.
17204 # Avoid depending upon Character Ranges.
17205 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17206 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17207 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17208 as_cr_digits='0123456789'
17209 as_cr_alnum=$as_cr_Letters$as_cr_digits
17210
17211 # The user is always right.
17212 if test "${PATH_SEPARATOR+set}" != set; then
17213   echo "#! /bin/sh" >conf$$.sh
17214   echo  "exit 0"   >>conf$$.sh
17215   chmod +x conf$$.sh
17216   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17217     PATH_SEPARATOR=';'
17218   else
17219     PATH_SEPARATOR=:
17220   fi
17221   rm -f conf$$.sh
17222 fi
17223
17224
17225   as_lineno_1=$LINENO
17226   as_lineno_2=$LINENO
17227   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17228   test "x$as_lineno_1" != "x$as_lineno_2" &&
17229   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17230   # Find who we are.  Look in the path if we contain no path at all
17231   # relative or not.
17232   case $0 in
17233     *[\\/]* ) as_myself=$0 ;;
17234     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17235 for as_dir in $PATH
17236 do
17237   IFS=$as_save_IFS
17238   test -z "$as_dir" && as_dir=.
17239   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17240 done
17241
17242        ;;
17243   esac
17244   # We did not find ourselves, most probably we were run as `sh COMMAND'
17245   # in which case we are not to be found in the path.
17246   if test "x$as_myself" = x; then
17247     as_myself=$0
17248   fi
17249   if test ! -f "$as_myself"; then
17250     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17251 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17252    { (exit 1); exit 1; }; }
17253   fi
17254   case $CONFIG_SHELL in
17255   '')
17256     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17257 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17258 do
17259   IFS=$as_save_IFS
17260   test -z "$as_dir" && as_dir=.
17261   for as_base in sh bash ksh sh5; do
17262          case $as_dir in
17263          /*)
17264            if ("$as_dir/$as_base" -c '
17265   as_lineno_1=$LINENO
17266   as_lineno_2=$LINENO
17267   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17268   test "x$as_lineno_1" != "x$as_lineno_2" &&
17269   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17270              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17271              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17272              CONFIG_SHELL=$as_dir/$as_base
17273              export CONFIG_SHELL
17274              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17275            fi;;
17276          esac
17277        done
17278 done
17279 ;;
17280   esac
17281
17282   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17283   # uniformly replaced by the line number.  The first 'sed' inserts a
17284   # line-number line before each line; the second 'sed' does the real
17285   # work.  The second script uses 'N' to pair each line-number line
17286   # with the numbered line, and appends trailing '-' during
17287   # substitution so that $LINENO is not a special case at line end.
17288   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17289   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17290   sed '=' <$as_myself |
17291     sed '
17292       N
17293       s,$,-,
17294       : loop
17295       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17296       t loop
17297       s,-$,,
17298       s,^['$as_cr_digits']*\n,,
17299     ' >$as_me.lineno &&
17300   chmod +x $as_me.lineno ||
17301     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17302 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17303    { (exit 1); exit 1; }; }
17304
17305   # Don't try to exec as it changes $[0], causing all sort of problems
17306   # (the dirname of $[0] is not the place where we might find the
17307   # original and so on.  Autoconf is especially sensible to this).
17308   . ./$as_me.lineno
17309   # Exit status is that of the last command.
17310   exit
17311 }
17312
17313
17314 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17315   *c*,-n*) ECHO_N= ECHO_C='
17316 ' ECHO_T='      ' ;;
17317   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17318   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17319 esac
17320
17321 if expr a : '\(a\)' >/dev/null 2>&1; then
17322   as_expr=expr
17323 else
17324   as_expr=false
17325 fi
17326
17327 rm -f conf$$ conf$$.exe conf$$.file
17328 echo >conf$$.file
17329 if ln -s conf$$.file conf$$ 2>/dev/null; then
17330   # We could just check for DJGPP; but this test a) works b) is more generic
17331   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17332   if test -f conf$$.exe; then
17333     # Don't use ln at all; we don't have any links
17334     as_ln_s='cp -p'
17335   else
17336     as_ln_s='ln -s'
17337   fi
17338 elif ln conf$$.file conf$$ 2>/dev/null; then
17339   as_ln_s=ln
17340 else
17341   as_ln_s='cp -p'
17342 fi
17343 rm -f conf$$ conf$$.exe conf$$.file
17344
17345 if mkdir -p . 2>/dev/null; then
17346   as_mkdir_p=:
17347 else
17348   test -d ./-p && rmdir ./-p
17349   as_mkdir_p=false
17350 fi
17351
17352 as_executable_p="test -f"
17353
17354 # Sed expression to map a string onto a valid CPP name.
17355 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17356
17357 # Sed expression to map a string onto a valid variable name.
17358 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17359
17360
17361 # IFS
17362 # We need space, tab and new line, in precisely that order.
17363 as_nl='
17364 '
17365 IFS="   $as_nl"
17366
17367 # CDPATH.
17368 $as_unset CDPATH
17369
17370 exec 6>&1
17371
17372 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17373 # report actual input values of CONFIG_FILES etc. instead of their
17374 # values after options handling.  Logging --version etc. is OK.
17375 exec 5>>config.log
17376 {
17377   echo
17378   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17379 ## Running $as_me. ##
17380 _ASBOX
17381 } >&5
17382 cat >&5 <<_CSEOF
17383
17384 This file was extended by $as_me, which was
17385 generated by GNU Autoconf 2.59.  Invocation command line was
17386
17387   CONFIG_FILES    = $CONFIG_FILES
17388   CONFIG_HEADERS  = $CONFIG_HEADERS
17389   CONFIG_LINKS    = $CONFIG_LINKS
17390   CONFIG_COMMANDS = $CONFIG_COMMANDS
17391   $ $0 $@
17392
17393 _CSEOF
17394 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17395 echo >&5
17396 _ACEOF
17397
17398 # Files that config.status was made for.
17399 if test -n "$ac_config_files"; then
17400   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17401 fi
17402
17403 if test -n "$ac_config_headers"; then
17404   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17405 fi
17406
17407 if test -n "$ac_config_links"; then
17408   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17409 fi
17410
17411 if test -n "$ac_config_commands"; then
17412   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17413 fi
17414
17415 cat >>$CONFIG_STATUS <<\_ACEOF
17416
17417 ac_cs_usage="\
17418 \`$as_me' instantiates files from templates according to the
17419 current configuration.
17420
17421 Usage: $0 [OPTIONS] [FILE]...
17422
17423   -h, --help       print this help, then exit
17424   -V, --version    print version number, then exit
17425   -q, --quiet      do not print progress messages
17426   -d, --debug      don't remove temporary files
17427       --recheck    update $as_me by reconfiguring in the same conditions
17428   --file=FILE[:TEMPLATE]
17429                    instantiate the configuration file FILE
17430   --header=FILE[:TEMPLATE]
17431                    instantiate the configuration header FILE
17432
17433 Configuration files:
17434 $config_files
17435
17436 Configuration headers:
17437 $config_headers
17438
17439 Configuration commands:
17440 $config_commands
17441
17442 Report bugs to <bug-autoconf@gnu.org>."
17443 _ACEOF
17444
17445 cat >>$CONFIG_STATUS <<_ACEOF
17446 ac_cs_version="\\
17447 config.status
17448 configured by $0, generated by GNU Autoconf 2.59,
17449   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17450
17451 Copyright (C) 2003 Free Software Foundation, Inc.
17452 This config.status script is free software; the Free Software Foundation
17453 gives unlimited permission to copy, distribute and modify it."
17454 srcdir=$srcdir
17455 _ACEOF
17456
17457 cat >>$CONFIG_STATUS <<\_ACEOF
17458 # If no file are specified by the user, then we need to provide default
17459 # value.  By we need to know if files were specified by the user.
17460 ac_need_defaults=:
17461 while test $# != 0
17462 do
17463   case $1 in
17464   --*=*)
17465     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17466     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17467     ac_shift=:
17468     ;;
17469   -*)
17470     ac_option=$1
17471     ac_optarg=$2
17472     ac_shift=shift
17473     ;;
17474   *) # This is not an option, so the user has probably given explicit
17475      # arguments.
17476      ac_option=$1
17477      ac_need_defaults=false;;
17478   esac
17479
17480   case $ac_option in
17481   # Handling of the options.
17482 _ACEOF
17483 cat >>$CONFIG_STATUS <<\_ACEOF
17484   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17485     ac_cs_recheck=: ;;
17486   --version | --vers* | -V )
17487     echo "$ac_cs_version"; exit 0 ;;
17488   --he | --h)
17489     # Conflict between --help and --header
17490     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17491 Try \`$0 --help' for more information." >&5
17492 echo "$as_me: error: ambiguous option: $1
17493 Try \`$0 --help' for more information." >&2;}
17494    { (exit 1); exit 1; }; };;
17495   --help | --hel | -h )
17496     echo "$ac_cs_usage"; exit 0 ;;
17497   --debug | --d* | -d )
17498     debug=: ;;
17499   --file | --fil | --fi | --f )
17500     $ac_shift
17501     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17502     ac_need_defaults=false;;
17503   --header | --heade | --head | --hea )
17504     $ac_shift
17505     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17506     ac_need_defaults=false;;
17507   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17508   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17509     ac_cs_silent=: ;;
17510
17511   # This is an error.
17512   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17513 Try \`$0 --help' for more information." >&5
17514 echo "$as_me: error: unrecognized option: $1
17515 Try \`$0 --help' for more information." >&2;}
17516    { (exit 1); exit 1; }; } ;;
17517
17518   *) ac_config_targets="$ac_config_targets $1" ;;
17519
17520   esac
17521   shift
17522 done
17523
17524 ac_configure_extra_args=
17525
17526 if $ac_cs_silent; then
17527   exec 6>/dev/null
17528   ac_configure_extra_args="$ac_configure_extra_args --silent"
17529 fi
17530
17531 _ACEOF
17532 cat >>$CONFIG_STATUS <<_ACEOF
17533 if \$ac_cs_recheck; then
17534   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17535   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17536 fi
17537
17538 _ACEOF
17539
17540 cat >>$CONFIG_STATUS <<_ACEOF
17541 #
17542 # INIT-COMMANDS section.
17543 #
17544
17545 subdirs='$subdirs'
17546
17547 _ACEOF
17548
17549
17550
17551 cat >>$CONFIG_STATUS <<\_ACEOF
17552 for ac_config_target in $ac_config_targets
17553 do
17554   case "$ac_config_target" in
17555   # Handling of arguments.
17556   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
17557   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17558   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
17559   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17560   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17561   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17562   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17563 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17564    { (exit 1); exit 1; }; };;
17565   esac
17566 done
17567
17568 # If the user did not use the arguments to specify the items to instantiate,
17569 # then the envvar interface is used.  Set only those that are not.
17570 # We use the long form for the default assignment because of an extremely
17571 # bizarre bug on SunOS 4.1.3.
17572 if $ac_need_defaults; then
17573   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17574   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17575   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17576 fi
17577
17578 # Have a temporary directory for convenience.  Make it in the build tree
17579 # simply because there is no reason to put it here, and in addition,
17580 # creating and moving files from /tmp can sometimes cause problems.
17581 # Create a temporary directory, and hook for its removal unless debugging.
17582 $debug ||
17583 {
17584   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17585   trap '{ (exit 1); exit 1; }' 1 2 13 15
17586 }
17587
17588 # Create a (secure) tmp directory for tmp files.
17589
17590 {
17591   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17592   test -n "$tmp" && test -d "$tmp"
17593 }  ||
17594 {
17595   tmp=./confstat$$-$RANDOM
17596   (umask 077 && mkdir $tmp)
17597 } ||
17598 {
17599    echo "$me: cannot create a temporary directory in ." >&2
17600    { (exit 1); exit 1; }
17601 }
17602
17603 _ACEOF
17604
17605 cat >>$CONFIG_STATUS <<_ACEOF
17606
17607 #
17608 # CONFIG_FILES section.
17609 #
17610
17611 # No need to generate the scripts if there are no CONFIG_FILES.
17612 # This happens for instance when ./config.status config.h
17613 if test -n "\$CONFIG_FILES"; then
17614   # Protect against being on the right side of a sed subst in config.status.
17615   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17616    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17617 s,@SHELL@,$SHELL,;t t
17618 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17619 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17620 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17621 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17622 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17623 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17624 s,@exec_prefix@,$exec_prefix,;t t
17625 s,@prefix@,$prefix,;t t
17626 s,@program_transform_name@,$program_transform_name,;t t
17627 s,@bindir@,$bindir,;t t
17628 s,@sbindir@,$sbindir,;t t
17629 s,@libexecdir@,$libexecdir,;t t
17630 s,@datadir@,$datadir,;t t
17631 s,@sysconfdir@,$sysconfdir,;t t
17632 s,@sharedstatedir@,$sharedstatedir,;t t
17633 s,@localstatedir@,$localstatedir,;t t
17634 s,@libdir@,$libdir,;t t
17635 s,@includedir@,$includedir,;t t
17636 s,@oldincludedir@,$oldincludedir,;t t
17637 s,@infodir@,$infodir,;t t
17638 s,@mandir@,$mandir,;t t
17639 s,@build_alias@,$build_alias,;t t
17640 s,@host_alias@,$host_alias,;t t
17641 s,@target_alias@,$target_alias,;t t
17642 s,@DEFS@,$DEFS,;t t
17643 s,@ECHO_C@,$ECHO_C,;t t
17644 s,@ECHO_N@,$ECHO_N,;t t
17645 s,@ECHO_T@,$ECHO_T,;t t
17646 s,@LIBS@,$LIBS,;t t
17647 s,@build@,$build,;t t
17648 s,@build_cpu@,$build_cpu,;t t
17649 s,@build_vendor@,$build_vendor,;t t
17650 s,@build_os@,$build_os,;t t
17651 s,@host@,$host,;t t
17652 s,@host_cpu@,$host_cpu,;t t
17653 s,@host_vendor@,$host_vendor,;t t
17654 s,@host_os@,$host_os,;t t
17655 s,@target@,$target,;t t
17656 s,@target_cpu@,$target_cpu,;t t
17657 s,@target_vendor@,$target_vendor,;t t
17658 s,@target_os@,$target_os,;t t
17659 s,@target_noncanonical@,$target_noncanonical,;t t
17660 s,@build_libsubdir@,$build_libsubdir,;t t
17661 s,@build_subdir@,$build_subdir,;t t
17662 s,@host_subdir@,$host_subdir,;t t
17663 s,@target_subdir@,$target_subdir,;t t
17664 s,@GENINSRC@,$GENINSRC,;t t
17665 s,@CC@,$CC,;t t
17666 s,@CFLAGS@,$CFLAGS,;t t
17667 s,@LDFLAGS@,$LDFLAGS,;t t
17668 s,@CPPFLAGS@,$CPPFLAGS,;t t
17669 s,@ac_ct_CC@,$ac_ct_CC,;t t
17670 s,@EXEEXT@,$EXEEXT,;t t
17671 s,@OBJEXT@,$OBJEXT,;t t
17672 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17673 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17674 s,@CPP@,$CPP,;t t
17675 s,@EGREP@,$EGREP,;t t
17676 s,@strict_warn@,$strict_warn,;t t
17677 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17678 s,@warn_cflags@,$warn_cflags,;t t
17679 s,@nocommon_flag@,$nocommon_flag,;t t
17680 s,@TREEBROWSER@,$TREEBROWSER,;t t
17681 s,@valgrind_path@,$valgrind_path,;t t
17682 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17683 s,@valgrind_command@,$valgrind_command,;t t
17684 s,@coverage_flags@,$coverage_flags,;t t
17685 s,@enable_multilib@,$enable_multilib,;t t
17686 s,@enable_decimal_float@,$enable_decimal_float,;t t
17687 s,@enable_shared@,$enable_shared,;t t
17688 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17689 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17690 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17691 s,@onestep@,$onestep,;t t
17692 s,@datarootdir@,$datarootdir,;t t
17693 s,@docdir@,$docdir,;t t
17694 s,@htmldir@,$htmldir,;t t
17695 s,@SET_MAKE@,$SET_MAKE,;t t
17696 s,@AWK@,$AWK,;t t
17697 s,@LN_S@,$LN_S,;t t
17698 s,@LN@,$LN,;t t
17699 s,@RANLIB@,$RANLIB,;t t
17700 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17701 s,@ranlib_flags@,$ranlib_flags,;t t
17702 s,@INSTALL@,$INSTALL,;t t
17703 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17704 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17705 s,@make_compare_target@,$make_compare_target,;t t
17706 s,@have_mktemp_command@,$have_mktemp_command,;t t
17707 s,@MAKEINFO@,$MAKEINFO,;t t
17708 s,@BUILD_INFO@,$BUILD_INFO,;t t
17709 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17710 s,@FLEX@,$FLEX,;t t
17711 s,@BISON@,$BISON,;t t
17712 s,@NM@,$NM,;t t
17713 s,@AR@,$AR,;t t
17714 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17715 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17716 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17717 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17718 s,@LIBICONV@,$LIBICONV,;t t
17719 s,@LTLIBICONV@,$LTLIBICONV,;t t
17720 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17721 s,@manext@,$manext,;t t
17722 s,@objext@,$objext,;t t
17723 s,@gthread_flags@,$gthread_flags,;t t
17724 s,@extra_modes_file@,$extra_modes_file,;t t
17725 s,@extra_opt_files@,$extra_opt_files,;t t
17726 s,@USE_NLS@,$USE_NLS,;t t
17727 s,@LIBINTL@,$LIBINTL,;t t
17728 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17729 s,@INCINTL@,$INCINTL,;t t
17730 s,@XGETTEXT@,$XGETTEXT,;t t
17731 s,@GMSGFMT@,$GMSGFMT,;t t
17732 s,@POSUB@,$POSUB,;t t
17733 s,@CATALOGS@,$CATALOGS,;t t
17734 s,@DATADIRNAME@,$DATADIRNAME,;t t
17735 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17736 s,@GENCAT@,$GENCAT,;t t
17737 s,@CATOBJEXT@,$CATOBJEXT,;t t
17738 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17739 s,@CROSS@,$CROSS,;t t
17740 s,@ALL@,$ALL,;t t
17741 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17742 s,@inhibit_libc@,$inhibit_libc,;t t
17743 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17744 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17745 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17746 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17747 s,@collect2@,$collect2,;t t
17748 s,@gcc_cv_as@,$gcc_cv_as,;t t
17749 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17750 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17751 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17752 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17753 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17754 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17755 s,@libgcc_visibility@,$libgcc_visibility,;t t
17756 s,@GGC@,$GGC,;t t
17757 s,@zlibdir@,$zlibdir,;t t
17758 s,@zlibinc@,$zlibinc,;t t
17759 s,@MAINT@,$MAINT,;t t
17760 s,@gcc_tooldir@,$gcc_tooldir,;t t
17761 s,@dollar@,$dollar,;t t
17762 s,@slibdir@,$slibdir,;t t
17763 s,@objdir@,$objdir,;t t
17764 s,@subdirs@,$subdirs,;t t
17765 s,@srcdir@,$srcdir,;t t
17766 s,@all_compilers@,$all_compilers,;t t
17767 s,@all_gtfiles@,$all_gtfiles,;t t
17768 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17769 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17770 s,@all_languages@,$all_languages,;t t
17771 s,@all_selected_languages@,$all_selected_languages,;t t
17772 s,@build_exeext@,$build_exeext,;t t
17773 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17774 s,@build_xm_file_list@,$build_xm_file_list,;t t
17775 s,@build_xm_include_list@,$build_xm_include_list,;t t
17776 s,@build_xm_defines@,$build_xm_defines,;t t
17777 s,@check_languages@,$check_languages,;t t
17778 s,@cpp_install_dir@,$cpp_install_dir,;t t
17779 s,@xmake_file@,$xmake_file,;t t
17780 s,@tmake_file@,$tmake_file,;t t
17781 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17782 s,@extra_headers_list@,$extra_headers_list,;t t
17783 s,@extra_objs@,$extra_objs,;t t
17784 s,@extra_parts@,$extra_parts,;t t
17785 s,@extra_passes@,$extra_passes,;t t
17786 s,@extra_programs@,$extra_programs,;t t
17787 s,@float_h_file@,$float_h_file,;t t
17788 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17789 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17790 s,@host_exeext@,$host_exeext,;t t
17791 s,@host_xm_file_list@,$host_xm_file_list,;t t
17792 s,@host_xm_include_list@,$host_xm_include_list,;t t
17793 s,@host_xm_defines@,$host_xm_defines,;t t
17794 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17795 s,@install@,$install,;t t
17796 s,@lang_opt_files@,$lang_opt_files,;t t
17797 s,@lang_specs_files@,$lang_specs_files,;t t
17798 s,@lang_tree_files@,$lang_tree_files,;t t
17799 s,@local_prefix@,$local_prefix,;t t
17800 s,@md_file@,$md_file,;t t
17801 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17802 s,@out_file@,$out_file,;t t
17803 s,@out_object_file@,$out_object_file,;t t
17804 s,@thread_file@,$thread_file,;t t
17805 s,@tm_file_list@,$tm_file_list,;t t
17806 s,@tm_include_list@,$tm_include_list,;t t
17807 s,@tm_defines@,$tm_defines,;t t
17808 s,@tm_p_file_list@,$tm_p_file_list,;t t
17809 s,@tm_p_include_list@,$tm_p_include_list,;t t
17810 s,@xm_file_list@,$xm_file_list,;t t
17811 s,@xm_include_list@,$xm_include_list,;t t
17812 s,@xm_defines@,$xm_defines,;t t
17813 s,@c_target_objs@,$c_target_objs,;t t
17814 s,@cxx_target_objs@,$cxx_target_objs,;t t
17815 s,@target_cpu_default@,$target_cpu_default,;t t
17816 s,@GMPLIBS@,$GMPLIBS,;t t
17817 s,@GMPINC@,$GMPINC,;t t
17818 s,@LIBOBJS@,$LIBOBJS,;t t
17819 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17820 /@language_hooks@/r $language_hooks
17821 s,@language_hooks@,,;t t
17822 CEOF
17823
17824 _ACEOF
17825
17826   cat >>$CONFIG_STATUS <<\_ACEOF
17827   # Split the substitutions into bite-sized pieces for seds with
17828   # small command number limits, like on Digital OSF/1 and HP-UX.
17829   ac_max_sed_lines=48
17830   ac_sed_frag=1 # Number of current file.
17831   ac_beg=1 # First line for current file.
17832   ac_end=$ac_max_sed_lines # Line after last line for current file.
17833   ac_more_lines=:
17834   ac_sed_cmds=
17835   while $ac_more_lines; do
17836     if test $ac_beg -gt 1; then
17837       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17838     else
17839       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17840     fi
17841     if test ! -s $tmp/subs.frag; then
17842       ac_more_lines=false
17843     else
17844       # The purpose of the label and of the branching condition is to
17845       # speed up the sed processing (if there are no `@' at all, there
17846       # is no need to browse any of the substitutions).
17847       # These are the two extra sed commands mentioned above.
17848       (echo ':t
17849   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17850       if test -z "$ac_sed_cmds"; then
17851         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17852       else
17853         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17854       fi
17855       ac_sed_frag=`expr $ac_sed_frag + 1`
17856       ac_beg=$ac_end
17857       ac_end=`expr $ac_end + $ac_max_sed_lines`
17858     fi
17859   done
17860   if test -z "$ac_sed_cmds"; then
17861     ac_sed_cmds=cat
17862   fi
17863 fi # test -n "$CONFIG_FILES"
17864
17865 _ACEOF
17866 cat >>$CONFIG_STATUS <<\_ACEOF
17867 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17868   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17869   case $ac_file in
17870   - | *:- | *:-:* ) # input from stdin
17871         cat >$tmp/stdin
17872         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17873         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17874   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17875         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17876   * )   ac_file_in=$ac_file.in ;;
17877   esac
17878
17879   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17880   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17882          X"$ac_file" : 'X\(//\)[^/]' \| \
17883          X"$ac_file" : 'X\(//\)$' \| \
17884          X"$ac_file" : 'X\(/\)' \| \
17885          .     : '\(.\)' 2>/dev/null ||
17886 echo X"$ac_file" |
17887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17888           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17889           /^X\(\/\/\)$/{ s//\1/; q; }
17890           /^X\(\/\).*/{ s//\1/; q; }
17891           s/.*/./; q'`
17892   { if $as_mkdir_p; then
17893     mkdir -p "$ac_dir"
17894   else
17895     as_dir="$ac_dir"
17896     as_dirs=
17897     while test ! -d "$as_dir"; do
17898       as_dirs="$as_dir $as_dirs"
17899       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17901          X"$as_dir" : 'X\(//\)[^/]' \| \
17902          X"$as_dir" : 'X\(//\)$' \| \
17903          X"$as_dir" : 'X\(/\)' \| \
17904          .     : '\(.\)' 2>/dev/null ||
17905 echo X"$as_dir" |
17906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17907           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17908           /^X\(\/\/\)$/{ s//\1/; q; }
17909           /^X\(\/\).*/{ s//\1/; q; }
17910           s/.*/./; q'`
17911     done
17912     test ! -n "$as_dirs" || mkdir $as_dirs
17913   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17914 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17915    { (exit 1); exit 1; }; }; }
17916
17917   ac_builddir=.
17918
17919 if test "$ac_dir" != .; then
17920   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17921   # A "../" for each directory in $ac_dir_suffix.
17922   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17923 else
17924   ac_dir_suffix= ac_top_builddir=
17925 fi
17926
17927 case $srcdir in
17928   .)  # No --srcdir option.  We are building in place.
17929     ac_srcdir=.
17930     if test -z "$ac_top_builddir"; then
17931        ac_top_srcdir=.
17932     else
17933        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17934     fi ;;
17935   [\\/]* | ?:[\\/]* )  # Absolute path.
17936     ac_srcdir=$srcdir$ac_dir_suffix;
17937     ac_top_srcdir=$srcdir ;;
17938   *) # Relative path.
17939     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17940     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17941 esac
17942
17943 # Do not use `cd foo && pwd` to compute absolute paths, because
17944 # the directories may not exist.
17945 case `pwd` in
17946 .) ac_abs_builddir="$ac_dir";;
17947 *)
17948   case "$ac_dir" in
17949   .) ac_abs_builddir=`pwd`;;
17950   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17951   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17952   esac;;
17953 esac
17954 case $ac_abs_builddir in
17955 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17956 *)
17957   case ${ac_top_builddir}. in
17958   .) ac_abs_top_builddir=$ac_abs_builddir;;
17959   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17960   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17961   esac;;
17962 esac
17963 case $ac_abs_builddir in
17964 .) ac_abs_srcdir=$ac_srcdir;;
17965 *)
17966   case $ac_srcdir in
17967   .) ac_abs_srcdir=$ac_abs_builddir;;
17968   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17969   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17970   esac;;
17971 esac
17972 case $ac_abs_builddir in
17973 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17974 *)
17975   case $ac_top_srcdir in
17976   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17977   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17978   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17979   esac;;
17980 esac
17981
17982
17983
17984   if test x"$ac_file" != x-; then
17985     { echo "$as_me:$LINENO: creating $ac_file" >&5
17986 echo "$as_me: creating $ac_file" >&6;}
17987     rm -f "$ac_file"
17988   fi
17989   # Let's still pretend it is `configure' which instantiates (i.e., don't
17990   # use $as_me), people would be surprised to read:
17991   #    /* config.h.  Generated by config.status.  */
17992   if test x"$ac_file" = x-; then
17993     configure_input=
17994   else
17995     configure_input="$ac_file.  "
17996   fi
17997   configure_input=$configure_input"Generated from `echo $ac_file_in |
17998                                      sed 's,.*/,,'` by configure."
17999
18000   # First look for the input files in the build tree, otherwise in the
18001   # src tree.
18002   ac_file_inputs=`IFS=:
18003     for f in $ac_file_in; do
18004       case $f in
18005       -) echo $tmp/stdin ;;
18006       [\\/$]*)
18007          # Absolute (can't be DOS-style, as IFS=:)
18008          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18009 echo "$as_me: error: cannot find input file: $f" >&2;}
18010    { (exit 1); exit 1; }; }
18011          echo "$f";;
18012       *) # Relative
18013          if test -f "$f"; then
18014            # Build tree
18015            echo "$f"
18016          elif test -f "$srcdir/$f"; then
18017            # Source tree
18018            echo "$srcdir/$f"
18019          else
18020            # /dev/null tree
18021            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18022 echo "$as_me: error: cannot find input file: $f" >&2;}
18023    { (exit 1); exit 1; }; }
18024          fi;;
18025       esac
18026     done` || { (exit 1); exit 1; }
18027 _ACEOF
18028 cat >>$CONFIG_STATUS <<_ACEOF
18029   sed "$ac_vpsub
18030 $extrasub
18031 _ACEOF
18032 cat >>$CONFIG_STATUS <<\_ACEOF
18033 :t
18034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18035 s,@configure_input@,$configure_input,;t t
18036 s,@srcdir@,$ac_srcdir,;t t
18037 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18038 s,@top_srcdir@,$ac_top_srcdir,;t t
18039 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18040 s,@builddir@,$ac_builddir,;t t
18041 s,@abs_builddir@,$ac_abs_builddir,;t t
18042 s,@top_builddir@,$ac_top_builddir,;t t
18043 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18044 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18045   rm -f $tmp/stdin
18046   if test x"$ac_file" != x-; then
18047     mv $tmp/out $ac_file
18048   else
18049     cat $tmp/out
18050     rm -f $tmp/out
18051   fi
18052
18053   # Run the commands associated with the file.
18054   case $ac_file in
18055     as ) chmod +x as ;;
18056     collect-ld ) chmod +x collect-ld ;;
18057     nm ) chmod +x nm ;;
18058   esac
18059 done
18060 _ACEOF
18061 cat >>$CONFIG_STATUS <<\_ACEOF
18062
18063 #
18064 # CONFIG_HEADER section.
18065 #
18066
18067 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18068 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18069 #
18070 # ac_d sets the value in "#define NAME VALUE" lines.
18071 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18072 ac_dB='[         ].*$,\1#\2'
18073 ac_dC=' '
18074 ac_dD=',;t'
18075 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18076 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18077 ac_uB='$,\1#\2define\3'
18078 ac_uC=' '
18079 ac_uD=',;t'
18080
18081 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18082   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18083   case $ac_file in
18084   - | *:- | *:-:* ) # input from stdin
18085         cat >$tmp/stdin
18086         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18087         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18088   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18089         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18090   * )   ac_file_in=$ac_file.in ;;
18091   esac
18092
18093   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18094 echo "$as_me: creating $ac_file" >&6;}
18095
18096   # First look for the input files in the build tree, otherwise in the
18097   # src tree.
18098   ac_file_inputs=`IFS=:
18099     for f in $ac_file_in; do
18100       case $f in
18101       -) echo $tmp/stdin ;;
18102       [\\/$]*)
18103          # Absolute (can't be DOS-style, as IFS=:)
18104          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18105 echo "$as_me: error: cannot find input file: $f" >&2;}
18106    { (exit 1); exit 1; }; }
18107          # Do quote $f, to prevent DOS paths from being IFS'd.
18108          echo "$f";;
18109       *) # Relative
18110          if test -f "$f"; then
18111            # Build tree
18112            echo "$f"
18113          elif test -f "$srcdir/$f"; then
18114            # Source tree
18115            echo "$srcdir/$f"
18116          else
18117            # /dev/null tree
18118            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18119 echo "$as_me: error: cannot find input file: $f" >&2;}
18120    { (exit 1); exit 1; }; }
18121          fi;;
18122       esac
18123     done` || { (exit 1); exit 1; }
18124   # Remove the trailing spaces.
18125   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18126
18127 _ACEOF
18128
18129 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18130 # `conftest.undefs', that substitutes the proper values into
18131 # config.h.in to produce config.h.  The first handles `#define'
18132 # templates, and the second `#undef' templates.
18133 # And first: Protect against being on the right side of a sed subst in
18134 # config.status.  Protect against being in an unquoted here document
18135 # in config.status.
18136 rm -f conftest.defines conftest.undefs
18137 # Using a here document instead of a string reduces the quoting nightmare.
18138 # Putting comments in sed scripts is not portable.
18139 #
18140 # `end' is used to avoid that the second main sed command (meant for
18141 # 0-ary CPP macros) applies to n-ary macro definitions.
18142 # See the Autoconf documentation for `clear'.
18143 cat >confdef2sed.sed <<\_ACEOF
18144 s/[\\&,]/\\&/g
18145 s,[\\$`],\\&,g
18146 t clear
18147 : clear
18148 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18149 t end
18150 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18151 : end
18152 _ACEOF
18153 # If some macros were called several times there might be several times
18154 # the same #defines, which is useless.  Nevertheless, we may not want to
18155 # sort them, since we want the *last* AC-DEFINE to be honored.
18156 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18157 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18158 rm -f confdef2sed.sed
18159
18160 # This sed command replaces #undef with comments.  This is necessary, for
18161 # example, in the case of _POSIX_SOURCE, which is predefined and required
18162 # on some systems where configure will not decide to define it.
18163 cat >>conftest.undefs <<\_ACEOF
18164 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18165 _ACEOF
18166
18167 # Break up conftest.defines because some shells have a limit on the size
18168 # of here documents, and old seds have small limits too (100 cmds).
18169 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18170 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18171 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18172 echo '  :' >>$CONFIG_STATUS
18173 rm -f conftest.tail
18174 while grep . conftest.defines >/dev/null
18175 do
18176   # Write a limited-size here document to $tmp/defines.sed.
18177   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18178   # Speed up: don't consider the non `#define' lines.
18179   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18180   # Work around the forget-to-reset-the-flag bug.
18181   echo 't clr' >>$CONFIG_STATUS
18182   echo ': clr' >>$CONFIG_STATUS
18183   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18184   echo 'CEOF
18185   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18186   rm -f $tmp/in
18187   mv $tmp/out $tmp/in
18188 ' >>$CONFIG_STATUS
18189   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18190   rm -f conftest.defines
18191   mv conftest.tail conftest.defines
18192 done
18193 rm -f conftest.defines
18194 echo '  fi # grep' >>$CONFIG_STATUS
18195 echo >>$CONFIG_STATUS
18196
18197 # Break up conftest.undefs because some shells have a limit on the size
18198 # of here documents, and old seds have small limits too (100 cmds).
18199 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18200 rm -f conftest.tail
18201 while grep . conftest.undefs >/dev/null
18202 do
18203   # Write a limited-size here document to $tmp/undefs.sed.
18204   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18205   # Speed up: don't consider the non `#undef'
18206   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18207   # Work around the forget-to-reset-the-flag bug.
18208   echo 't clr' >>$CONFIG_STATUS
18209   echo ': clr' >>$CONFIG_STATUS
18210   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18211   echo 'CEOF
18212   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18213   rm -f $tmp/in
18214   mv $tmp/out $tmp/in
18215 ' >>$CONFIG_STATUS
18216   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18217   rm -f conftest.undefs
18218   mv conftest.tail conftest.undefs
18219 done
18220 rm -f conftest.undefs
18221
18222 cat >>$CONFIG_STATUS <<\_ACEOF
18223   # Let's still pretend it is `configure' which instantiates (i.e., don't
18224   # use $as_me), people would be surprised to read:
18225   #    /* config.h.  Generated by config.status.  */
18226   if test x"$ac_file" = x-; then
18227     echo "/* Generated by configure.  */" >$tmp/config.h
18228   else
18229     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18230   fi
18231   cat $tmp/in >>$tmp/config.h
18232   rm -f $tmp/in
18233   if test x"$ac_file" != x-; then
18234     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18235       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18236 echo "$as_me: $ac_file is unchanged" >&6;}
18237     else
18238       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18240          X"$ac_file" : 'X\(//\)[^/]' \| \
18241          X"$ac_file" : 'X\(//\)$' \| \
18242          X"$ac_file" : 'X\(/\)' \| \
18243          .     : '\(.\)' 2>/dev/null ||
18244 echo X"$ac_file" |
18245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18246           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18247           /^X\(\/\/\)$/{ s//\1/; q; }
18248           /^X\(\/\).*/{ s//\1/; q; }
18249           s/.*/./; q'`
18250       { if $as_mkdir_p; then
18251     mkdir -p "$ac_dir"
18252   else
18253     as_dir="$ac_dir"
18254     as_dirs=
18255     while test ! -d "$as_dir"; do
18256       as_dirs="$as_dir $as_dirs"
18257       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18259          X"$as_dir" : 'X\(//\)[^/]' \| \
18260          X"$as_dir" : 'X\(//\)$' \| \
18261          X"$as_dir" : 'X\(/\)' \| \
18262          .     : '\(.\)' 2>/dev/null ||
18263 echo X"$as_dir" |
18264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18265           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18266           /^X\(\/\/\)$/{ s//\1/; q; }
18267           /^X\(\/\).*/{ s//\1/; q; }
18268           s/.*/./; q'`
18269     done
18270     test ! -n "$as_dirs" || mkdir $as_dirs
18271   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18272 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18273    { (exit 1); exit 1; }; }; }
18274
18275       rm -f $ac_file
18276       mv $tmp/config.h $ac_file
18277     fi
18278   else
18279     cat $tmp/config.h
18280     rm -f $tmp/config.h
18281   fi
18282 done
18283 _ACEOF
18284 cat >>$CONFIG_STATUS <<\_ACEOF
18285
18286 #
18287 # CONFIG_COMMANDS section.
18288 #
18289 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18290   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18291   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18292   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18293 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18294          X"$ac_dest" : 'X\(//\)[^/]' \| \
18295          X"$ac_dest" : 'X\(//\)$' \| \
18296          X"$ac_dest" : 'X\(/\)' \| \
18297          .     : '\(.\)' 2>/dev/null ||
18298 echo X"$ac_dest" |
18299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18300           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18301           /^X\(\/\/\)$/{ s//\1/; q; }
18302           /^X\(\/\).*/{ s//\1/; q; }
18303           s/.*/./; q'`
18304   { if $as_mkdir_p; then
18305     mkdir -p "$ac_dir"
18306   else
18307     as_dir="$ac_dir"
18308     as_dirs=
18309     while test ! -d "$as_dir"; do
18310       as_dirs="$as_dir $as_dirs"
18311       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18313          X"$as_dir" : 'X\(//\)[^/]' \| \
18314          X"$as_dir" : 'X\(//\)$' \| \
18315          X"$as_dir" : 'X\(/\)' \| \
18316          .     : '\(.\)' 2>/dev/null ||
18317 echo X"$as_dir" |
18318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18319           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18320           /^X\(\/\/\)$/{ s//\1/; q; }
18321           /^X\(\/\).*/{ s//\1/; q; }
18322           s/.*/./; q'`
18323     done
18324     test ! -n "$as_dirs" || mkdir $as_dirs
18325   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18326 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18327    { (exit 1); exit 1; }; }; }
18328
18329   ac_builddir=.
18330
18331 if test "$ac_dir" != .; then
18332   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18333   # A "../" for each directory in $ac_dir_suffix.
18334   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18335 else
18336   ac_dir_suffix= ac_top_builddir=
18337 fi
18338
18339 case $srcdir in
18340   .)  # No --srcdir option.  We are building in place.
18341     ac_srcdir=.
18342     if test -z "$ac_top_builddir"; then
18343        ac_top_srcdir=.
18344     else
18345        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18346     fi ;;
18347   [\\/]* | ?:[\\/]* )  # Absolute path.
18348     ac_srcdir=$srcdir$ac_dir_suffix;
18349     ac_top_srcdir=$srcdir ;;
18350   *) # Relative path.
18351     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18352     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18353 esac
18354
18355 # Do not use `cd foo && pwd` to compute absolute paths, because
18356 # the directories may not exist.
18357 case `pwd` in
18358 .) ac_abs_builddir="$ac_dir";;
18359 *)
18360   case "$ac_dir" in
18361   .) ac_abs_builddir=`pwd`;;
18362   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18363   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18364   esac;;
18365 esac
18366 case $ac_abs_builddir in
18367 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18368 *)
18369   case ${ac_top_builddir}. in
18370   .) ac_abs_top_builddir=$ac_abs_builddir;;
18371   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18372   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18373   esac;;
18374 esac
18375 case $ac_abs_builddir in
18376 .) ac_abs_srcdir=$ac_srcdir;;
18377 *)
18378   case $ac_srcdir in
18379   .) ac_abs_srcdir=$ac_abs_builddir;;
18380   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18381   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18382   esac;;
18383 esac
18384 case $ac_abs_builddir in
18385 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18386 *)
18387   case $ac_top_srcdir in
18388   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18389   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18390   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18391   esac;;
18392 esac
18393
18394
18395   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18396 echo "$as_me: executing $ac_dest commands" >&6;}
18397   case $ac_dest in
18398     default )
18399 case ${CONFIG_HEADERS} in
18400   *auto-host.h:config.in*)
18401   echo > cstamp-h ;;
18402 esac
18403 # Make sure all the subdirs exist.
18404 for d in $subdirs doc build
18405 do
18406     test -d $d || mkdir $d
18407 done
18408  ;;
18409   esac
18410 done
18411 _ACEOF
18412
18413 cat >>$CONFIG_STATUS <<\_ACEOF
18414
18415 { (exit 0); exit 0; }
18416 _ACEOF
18417 chmod +x $CONFIG_STATUS
18418 ac_clean_files=$ac_clean_files_save
18419
18420
18421 # configure is writing to config.log, and then calls config.status.
18422 # config.status does its own redirection, appending to config.log.
18423 # Unfortunately, on DOS this fails, as config.log is still kept open
18424 # by configure, so config.status won't be able to write to it; its
18425 # output is simply discarded.  So we exec the FD to /dev/null,
18426 # effectively closing config.log, so it can be properly (re)opened and
18427 # appended to by config.status.  When coming back to configure, we
18428 # need to make the FD available again.
18429 if test "$no_create" != yes; then
18430   ac_cs_success=:
18431   ac_config_status_args=
18432   test "$silent" = yes &&
18433     ac_config_status_args="$ac_config_status_args --quiet"
18434   exec 5>/dev/null
18435   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18436   exec 5>>config.log
18437   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18438   # would make configure fail if this is the last instruction.
18439   $ac_cs_success || { (exit 1); exit 1; }
18440 fi
18441