OSDN Git Service

2006-02-08 Paolo Bonzini <bonzini@gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always         enable -Werror always
866   --enable-werror         enable -Werror in bootstrap stage2 and later
867   --enable-checking=LIST
868                           enable expensive run-time checks.  With LIST,
869                           enable only specific categories of checks.
870                           Categories are: yes,no,all,none,release.
871                           Flags are: assert,fold,gc,gcac,misc,
872                           rtlflag,rtl,runtime,tree,valgrind.
873   --enable-mapped-location   location_t is fileline integer cookie
874   --enable-coverage=LEVEL
875                           enable compiler's code coverage collection.
876                           Use to measure compiler performance and locate
877                           unused parts of the compiler. With LEVEL, specify
878                           optimization. Values are opt, noopt,
879                           default is noopt
880   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
881   --enable-multilib       enable library support for multiple ABIs
882   --enable-__cxa_atexit   enable __cxa_atexit for C++
883   --enable-decimal-float  enable decimal float extension to C
884   --enable-threads        enable thread usage for target GCC
885   --enable-threads=LIB    use LIB thread package for target GCC
886   --enable-tls            enable or disable generation of tls code
887                           overriding the assembler check for tls support
888   --enable-objc-gc        enable the use of Boehm's garbage collector with
889                           the GNU Objective-C runtime
890   --disable-shared        don't provide a shared libgcc
891   --enable-intermodule    build the compiler in one step
892   --enable-languages=LIST specify which front-ends to build
893   --disable-rpath         do not hardcode runtime library paths
894   --enable-initfini-array       use .init_array/.fini_array sections
895   --enable-sjlj-exceptions
896                           arrange to use setjmp/longjmp exception handling
897   --enable-secureplt      enable -msecure-plt by default for PowerPC
898   --disable-win32-registry
899                           disable lookup of installation paths in the
900                           Registry on Windows hosts
901   --enable-win32-registry enable registry lookup (default)
902   --enable-win32-registry=KEY
903                           use KEY instead of GCC version as the last portion
904                           of the registry key
905   --enable-maintainer-mode
906                           enable make rules and dependencies not useful
907                           (and sometimes confusing) to the casual installer
908   --enable-version-specific-runtime-libs
909                           specify that runtime libraries should be
910                           installed in a compiler-specific directory
911
912 Optional Packages:
913   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
914   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
915   --with-local-prefix=DIR specifies directory to put local include
916   --with-gxx-include-dir=DIR
917                           specifies directory to put g++ header files
918   --with-cpp-install-dir=DIR
919                           install the user visible C preprocessor in DIR
920                           (relative to PREFIX) as well as PREFIX/bin
921   --with-gnu-ld           arrange to work with GNU ld.
922   --with-ld               arrange to use the specified ld (full pathname)
923   --with-demangler-in-ld  try to use demangler in GNU ld.
924   --with-gnu-as           arrange to work with GNU as
925   --with-as               arrange to use the specified as (full pathname)
926   --with-stabs            arrange to use stabs instead of host debug format
927   --with-dwarf2           force the default debug format to be DWARF 2
928   --with-build-sysroot=sysroot
929                           use sysroot as the system root during the build
930   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931   --with-gnu-ld           assume the C compiler uses GNU ld default=no
932   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
933   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
934   --with-system-libunwind use installed libunwind
935   --with-gc={page,zone}   choose the garbage collection mechanism to use
936                           with the compiler
937   --with-system-zlib      use installed libz
938   --with-slibdir=DIR      shared libraries in DIR LIBDIR
939
940 Some influential environment variables:
941   CC          C compiler command
942   CFLAGS      C compiler flags
943   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
944               nonstandard directory <lib dir>
945   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
946               headers in a nonstandard directory <include dir>
947   CPP         C preprocessor
948   GMPLIBS     How to link GMP
949   GMPINC      How to find GMP include files
950
951 Use these variables to override the choices made by `configure' or to help
952 it to find libraries and programs with nonstandard names/locations.
953
954 _ACEOF
955 fi
956
957 if test "$ac_init_help" = "recursive"; then
958   # If there are subdirs, report their specific --help.
959   ac_popdir=`pwd`
960   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
961     test -d $ac_dir || continue
962     ac_builddir=.
963
964 if test "$ac_dir" != .; then
965   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
966   # A "../" for each directory in $ac_dir_suffix.
967   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
968 else
969   ac_dir_suffix= ac_top_builddir=
970 fi
971
972 case $srcdir in
973   .)  # No --srcdir option.  We are building in place.
974     ac_srcdir=.
975     if test -z "$ac_top_builddir"; then
976        ac_top_srcdir=.
977     else
978        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
979     fi ;;
980   [\\/]* | ?:[\\/]* )  # Absolute path.
981     ac_srcdir=$srcdir$ac_dir_suffix;
982     ac_top_srcdir=$srcdir ;;
983   *) # Relative path.
984     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
985     ac_top_srcdir=$ac_top_builddir$srcdir ;;
986 esac
987
988 # Do not use `cd foo && pwd` to compute absolute paths, because
989 # the directories may not exist.
990 case `pwd` in
991 .) ac_abs_builddir="$ac_dir";;
992 *)
993   case "$ac_dir" in
994   .) ac_abs_builddir=`pwd`;;
995   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
996   *) ac_abs_builddir=`pwd`/"$ac_dir";;
997   esac;;
998 esac
999 case $ac_abs_builddir in
1000 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1001 *)
1002   case ${ac_top_builddir}. in
1003   .) ac_abs_top_builddir=$ac_abs_builddir;;
1004   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1005   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1006   esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_srcdir=$ac_srcdir;;
1010 *)
1011   case $ac_srcdir in
1012   .) ac_abs_srcdir=$ac_abs_builddir;;
1013   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1014   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1015   esac;;
1016 esac
1017 case $ac_abs_builddir in
1018 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1019 *)
1020   case $ac_top_srcdir in
1021   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1022   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1023   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1024   esac;;
1025 esac
1026
1027     cd $ac_dir
1028     # Check for guested configure; otherwise get Cygnus style configure.
1029     if test -f $ac_srcdir/configure.gnu; then
1030       echo
1031       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1032     elif test -f $ac_srcdir/configure; then
1033       echo
1034       $SHELL $ac_srcdir/configure  --help=recursive
1035     elif test -f $ac_srcdir/configure.ac ||
1036            test -f $ac_srcdir/configure.in; then
1037       echo
1038       $ac_configure --help
1039     else
1040       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1041     fi
1042     cd "$ac_popdir"
1043   done
1044 fi
1045
1046 test -n "$ac_init_help" && exit 0
1047 if $ac_init_version; then
1048   cat <<\_ACEOF
1049
1050 Copyright (C) 2003 Free Software Foundation, Inc.
1051 This configure script is free software; the Free Software Foundation
1052 gives unlimited permission to copy, distribute and modify it.
1053 _ACEOF
1054   exit 0
1055 fi
1056 exec 5>config.log
1057 cat >&5 <<_ACEOF
1058 This file contains any messages produced by compilers while
1059 running configure, to aid debugging if configure makes a mistake.
1060
1061 It was created by $as_me, which was
1062 generated by GNU Autoconf 2.59.  Invocation command line was
1063
1064   $ $0 $@
1065
1066 _ACEOF
1067 {
1068 cat <<_ASUNAME
1069 ## --------- ##
1070 ## Platform. ##
1071 ## --------- ##
1072
1073 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1074 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1075 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1076 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1077 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1078
1079 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1080 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1081
1082 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1083 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1084 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1085 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1086 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1087 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1088 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1089
1090 _ASUNAME
1091
1092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1093 for as_dir in $PATH
1094 do
1095   IFS=$as_save_IFS
1096   test -z "$as_dir" && as_dir=.
1097   echo "PATH: $as_dir"
1098 done
1099
1100 } >&5
1101
1102 cat >&5 <<_ACEOF
1103
1104
1105 ## ----------- ##
1106 ## Core tests. ##
1107 ## ----------- ##
1108
1109 _ACEOF
1110
1111
1112 # Keep a trace of the command line.
1113 # Strip out --no-create and --no-recursion so they do not pile up.
1114 # Strip out --silent because we don't want to record it for future runs.
1115 # Also quote any args containing shell meta-characters.
1116 # Make two passes to allow for proper duplicate-argument suppression.
1117 ac_configure_args=
1118 ac_configure_args0=
1119 ac_configure_args1=
1120 ac_sep=
1121 ac_must_keep_next=false
1122 for ac_pass in 1 2
1123 do
1124   for ac_arg
1125   do
1126     case $ac_arg in
1127     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1128     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129     | -silent | --silent | --silen | --sile | --sil)
1130       continue ;;
1131     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1132       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1133     esac
1134     case $ac_pass in
1135     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1136     2)
1137       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1138       if test $ac_must_keep_next = true; then
1139         ac_must_keep_next=false # Got value, back to normal.
1140       else
1141         case $ac_arg in
1142           *=* | --config-cache | -C | -disable-* | --disable-* \
1143           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1144           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1145           | -with-* | --with-* | -without-* | --without-* | --x)
1146             case "$ac_configure_args0 " in
1147               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1148             esac
1149             ;;
1150           -* ) ac_must_keep_next=true ;;
1151         esac
1152       fi
1153       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1154       # Get rid of the leading space.
1155       ac_sep=" "
1156       ;;
1157     esac
1158   done
1159 done
1160 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1161 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1162
1163 # When interrupted or exit'd, cleanup temporary files, and complete
1164 # config.log.  We remove comments because anyway the quotes in there
1165 # would cause problems or look ugly.
1166 # WARNING: Be sure not to use single quotes in there, as some shells,
1167 # such as our DU 5.0 friend, will then `close' the trap.
1168 trap 'exit_status=$?
1169   # Save into config.log some information that might help in debugging.
1170   {
1171     echo
1172
1173     cat <<\_ASBOX
1174 ## ---------------- ##
1175 ## Cache variables. ##
1176 ## ---------------- ##
1177 _ASBOX
1178     echo
1179     # The following way of writing the cache mishandles newlines in values,
1180 {
1181   (set) 2>&1 |
1182     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1183     *ac_space=\ *)
1184       sed -n \
1185         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1186           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1187       ;;
1188     *)
1189       sed -n \
1190         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1191       ;;
1192     esac;
1193 }
1194     echo
1195
1196     cat <<\_ASBOX
1197 ## ----------------- ##
1198 ## Output variables. ##
1199 ## ----------------- ##
1200 _ASBOX
1201     echo
1202     for ac_var in $ac_subst_vars
1203     do
1204       eval ac_val=$`echo $ac_var`
1205       echo "$ac_var='"'"'$ac_val'"'"'"
1206     done | sort
1207     echo
1208
1209     if test -n "$ac_subst_files"; then
1210       cat <<\_ASBOX
1211 ## ------------- ##
1212 ## Output files. ##
1213 ## ------------- ##
1214 _ASBOX
1215       echo
1216       for ac_var in $ac_subst_files
1217       do
1218         eval ac_val=$`echo $ac_var`
1219         echo "$ac_var='"'"'$ac_val'"'"'"
1220       done | sort
1221       echo
1222     fi
1223
1224     if test -s confdefs.h; then
1225       cat <<\_ASBOX
1226 ## ----------- ##
1227 ## confdefs.h. ##
1228 ## ----------- ##
1229 _ASBOX
1230       echo
1231       sed "/^$/d" confdefs.h | sort
1232       echo
1233     fi
1234     test "$ac_signal" != 0 &&
1235       echo "$as_me: caught signal $ac_signal"
1236     echo "$as_me: exit $exit_status"
1237   } >&5
1238   rm -f core *.core &&
1239   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1240     exit $exit_status
1241      ' 0
1242 for ac_signal in 1 2 13 15; do
1243   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1244 done
1245 ac_signal=0
1246
1247 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1248 rm -rf conftest* confdefs.h
1249 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250 echo >confdefs.h
1251
1252 # Predefined preprocessor variables.
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_NAME "$PACKAGE_NAME"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_STRING "$PACKAGE_STRING"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1276 _ACEOF
1277
1278
1279 # Let the site file select an alternate cache file if it wants to.
1280 # Prefer explicitly selected file to automatically selected ones.
1281 if test -z "$CONFIG_SITE"; then
1282   if test "x$prefix" != xNONE; then
1283     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1284   else
1285     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1286   fi
1287 fi
1288 for ac_site_file in $CONFIG_SITE; do
1289   if test -r "$ac_site_file"; then
1290     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1291 echo "$as_me: loading site script $ac_site_file" >&6;}
1292     sed 's/^/| /' "$ac_site_file" >&5
1293     . "$ac_site_file"
1294   fi
1295 done
1296
1297 if test -r "$cache_file"; then
1298   # Some versions of bash will fail to source /dev/null (special
1299   # files actually), so we avoid doing that.
1300   if test -f "$cache_file"; then
1301     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1302 echo "$as_me: loading cache $cache_file" >&6;}
1303     case $cache_file in
1304       [\\/]* | ?:[\\/]* ) . $cache_file;;
1305       *)                      . ./$cache_file;;
1306     esac
1307   fi
1308 else
1309   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1310 echo "$as_me: creating cache $cache_file" >&6;}
1311   >$cache_file
1312 fi
1313
1314 # Check that the precious variables saved in the cache have kept the same
1315 # value.
1316 ac_cache_corrupted=false
1317 for ac_var in `(set) 2>&1 |
1318                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1319   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1320   eval ac_new_set=\$ac_env_${ac_var}_set
1321   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1322   eval ac_new_val="\$ac_env_${ac_var}_value"
1323   case $ac_old_set,$ac_new_set in
1324     set,)
1325       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1327       ac_cache_corrupted=: ;;
1328     ,set)
1329       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1331       ac_cache_corrupted=: ;;
1332     ,);;
1333     *)
1334       if test "x$ac_old_val" != "x$ac_new_val"; then
1335         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1336 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1337         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1338 echo "$as_me:   former value:  $ac_old_val" >&2;}
1339         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1340 echo "$as_me:   current value: $ac_new_val" >&2;}
1341         ac_cache_corrupted=:
1342       fi;;
1343   esac
1344   # Pass precious variables to config.status.
1345   if test "$ac_new_set" = set; then
1346     case $ac_new_val in
1347     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1348       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1349     *) ac_arg=$ac_var=$ac_new_val ;;
1350     esac
1351     case " $ac_configure_args " in
1352       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1353       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1354     esac
1355   fi
1356 done
1357 if $ac_cache_corrupted; then
1358   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1359 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1360   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1361 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1362    { (exit 1); exit 1; }; }
1363 fi
1364
1365 ac_ext=c
1366 ac_cpp='$CPP $CPPFLAGS'
1367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1391
1392
1393 gcc_version=`cat $srcdir/BASE-VER`
1394
1395 # Determine the host, build, and target systems
1396 ac_aux_dir=
1397 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1398   if test -f $ac_dir/install-sh; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/install-sh -c"
1401     break
1402   elif test -f $ac_dir/install.sh; then
1403     ac_aux_dir=$ac_dir
1404     ac_install_sh="$ac_aux_dir/install.sh -c"
1405     break
1406   elif test -f $ac_dir/shtool; then
1407     ac_aux_dir=$ac_dir
1408     ac_install_sh="$ac_aux_dir/shtool install -c"
1409     break
1410   fi
1411 done
1412 if test -z "$ac_aux_dir"; then
1413   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1414 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1415    { (exit 1); exit 1; }; }
1416 fi
1417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1420
1421 # Make sure we can run config.sub.
1422 $ac_config_sub sun4 >/dev/null 2>&1 ||
1423   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1424 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1425    { (exit 1); exit 1; }; }
1426
1427 echo "$as_me:$LINENO: checking build system type" >&5
1428 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1429 if test "${ac_cv_build+set}" = set; then
1430   echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432   ac_cv_build_alias=$build_alias
1433 test -z "$ac_cv_build_alias" &&
1434   ac_cv_build_alias=`$ac_config_guess`
1435 test -z "$ac_cv_build_alias" &&
1436   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1438    { (exit 1); exit 1; }; }
1439 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1440   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1442    { (exit 1); exit 1; }; }
1443
1444 fi
1445 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1446 echo "${ECHO_T}$ac_cv_build" >&6
1447 build=$ac_cv_build
1448 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451
1452
1453 echo "$as_me:$LINENO: checking host system type" >&5
1454 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1455 if test "${ac_cv_host+set}" = set; then
1456   echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458   ac_cv_host_alias=$host_alias
1459 test -z "$ac_cv_host_alias" &&
1460   ac_cv_host_alias=$ac_cv_build_alias
1461 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1462   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1463 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1464    { (exit 1); exit 1; }; }
1465
1466 fi
1467 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1468 echo "${ECHO_T}$ac_cv_host" >&6
1469 host=$ac_cv_host
1470 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1473
1474
1475 echo "$as_me:$LINENO: checking target system type" >&5
1476 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1477 if test "${ac_cv_target+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   ac_cv_target_alias=$target_alias
1481 test "x$ac_cv_target_alias" = "x" &&
1482   ac_cv_target_alias=$ac_cv_host_alias
1483 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1484   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1485 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1486    { (exit 1); exit 1; }; }
1487
1488 fi
1489 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1490 echo "${ECHO_T}$ac_cv_target" >&6
1491 target=$ac_cv_target
1492 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1493 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1494 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1495
1496
1497 # The aliases save the names the user supplied, while $host etc.
1498 # will get canonicalized.
1499 test -n "$target_alias" &&
1500   test "$program_prefix$program_suffix$program_transform_name" = \
1501     NONENONEs,x,x, &&
1502   program_prefix=${target_alias}-
1503
1504 # Determine the noncanonical target name, for directory use.
1505  case ${build_alias} in
1506   "") build_noncanonical=${build} ;;
1507   *) build_noncanonical=${build_alias} ;;
1508 esac
1509
1510  case ${host_alias} in
1511   "") host_noncanonical=${build_noncanonical} ;;
1512   *) host_noncanonical=${host_alias} ;;
1513 esac
1514
1515  case ${target_alias} in
1516   "") target_noncanonical=${host_noncanonical} ;;
1517   *) target_noncanonical=${target_alias} ;;
1518 esac
1519
1520
1521
1522
1523 # Determine the target- and build-specific subdirectories
1524   # Prefix 'build-' so this never conflicts with target_subdir.
1525 build_subdir="build-${build_noncanonical}"
1526 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1527 if ( test $srcdir = . && test -d gcc ) \
1528    || test -d $srcdir/../host-${host_noncanonical}; then
1529   host_subdir="host-${host_noncanonical}"
1530 else
1531   host_subdir=.
1532 fi
1533 # No prefix.
1534 target_subdir=${target_noncanonical}
1535
1536
1537 # Set program_transform_name
1538 test "$program_prefix" != NONE &&
1539   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1540 # Use a double $ so make ignores it.
1541 test "$program_suffix" != NONE &&
1542   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1543 # Double any \ or $.  echo might interpret backslashes.
1544 # By default was `s,x,x', remove it if useless.
1545 cat <<\_ACEOF >conftest.sed
1546 s/[\\$]/&&/g;s/;s,x,x,$//
1547 _ACEOF
1548 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1549 rm conftest.sed
1550
1551
1552 # Check for bogus environment variables.
1553 # Test if LIBRARY_PATH contains the notation for the current directory
1554 # since this would lead to problems installing/building glibc.
1555 # LIBRARY_PATH contains the current directory if one of the following
1556 # is true:
1557 # - one of the terminals (":" and ";") is the first or last sign
1558 # - two terminals occur directly after each other
1559 # - the path contains an element with a dot in it
1560 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1561 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1562 case ${LIBRARY_PATH} in
1563   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1564     library_path_setting="contains current directory"
1565     ;;
1566   *)
1567     library_path_setting="ok"
1568     ;;
1569 esac
1570 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1571 echo "${ECHO_T}$library_path_setting" >&6
1572 if test "$library_path_setting" != "ok"; then
1573 { { echo "$as_me:$LINENO: error:
1574 *** LIBRARY_PATH shouldn't contain the current directory when
1575 *** building gcc. Please change the environment variable
1576 *** and run configure again." >&5
1577 echo "$as_me: error:
1578 *** LIBRARY_PATH shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&2;}
1581    { (exit 1); exit 1; }; }
1582 fi
1583
1584 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1585 # since this would lead to problems installing/building glibc.
1586 # GCC_EXEC_PREFIX contains the current directory if one of the following
1587 # is true:
1588 # - one of the terminals (":" and ";") is the first or last sign
1589 # - two terminals occur directly after each other
1590 # - the path contains an element with a dot in it
1591 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1592 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1593 case ${GCC_EXEC_PREFIX} in
1594   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1595     gcc_exec_prefix_setting="contains current directory"
1596     ;;
1597   *)
1598     gcc_exec_prefix_setting="ok"
1599     ;;
1600 esac
1601 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1602 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1603 if test "$gcc_exec_prefix_setting" != "ok"; then
1604 { { echo "$as_me:$LINENO: error:
1605 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&5
1608 echo "$as_me: error:
1609 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1610 *** building gcc. Please change the environment variable
1611 *** and run configure again." >&2;}
1612    { (exit 1); exit 1; }; }
1613 fi
1614
1615 # -----------
1616 # Directories
1617 # -----------
1618
1619 # Specify the local prefix
1620 local_prefix=
1621
1622 # Check whether --with-local-prefix or --without-local-prefix was given.
1623 if test "${with_local_prefix+set}" = set; then
1624   withval="$with_local_prefix"
1625   case "${withval}" in
1626 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1627 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1628    { (exit 1); exit 1; }; } ;;
1629 no)     ;;
1630 *)      local_prefix=$with_local_prefix ;;
1631 esac
1632 fi;
1633
1634 # Default local prefix if it is empty
1635 if test x$local_prefix = x; then
1636         local_prefix=/usr/local
1637 fi
1638
1639 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1640 # passed in by the toplevel make and thus we'd get different behavior
1641 # depending on where we built the sources.
1642 gcc_gxx_include_dir=
1643 # Specify the g++ header file directory
1644
1645 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1646 if test "${with_gxx_include_dir+set}" = set; then
1647   withval="$with_gxx_include_dir"
1648   case "${withval}" in
1649 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1650 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1651    { (exit 1); exit 1; }; } ;;
1652 no)     ;;
1653 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1654 esac
1655 fi;
1656
1657 if test x${gcc_gxx_include_dir} = x; then
1658   if test x${enable_version_specific_runtime_libs} = xyes; then
1659     gcc_gxx_include_dir='${libsubdir}/include/c++'
1660   else
1661     libstdcxx_incdir='c++/$(version)'
1662     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1663   fi
1664 fi
1665
1666
1667 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1668 if test "${with_cpp_install_dir+set}" = set; then
1669   withval="$with_cpp_install_dir"
1670   if test x$withval = xyes; then
1671   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1672 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1673    { (exit 1); exit 1; }; }
1674 elif test x$withval != xno; then
1675   cpp_install_dir=$withval
1676 fi
1677 fi;
1678
1679 # We would like to our source tree to be readonly.  However when releases or
1680 # pre-releases are generated, the flex/bison generated files as well as the
1681 # various formats of manuals need to be included along with the rest of the
1682 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1683 # just that.
1684
1685 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1686 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1687     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1688 if test "${enable_generated_files_in_srcdir+set}" = set; then
1689   enableval="$enable_generated_files_in_srcdir"
1690   generated_files_in_srcdir=$enableval
1691 else
1692   generated_files_in_srcdir=no
1693 fi;
1694
1695 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1696 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1697
1698 if test "$generated_files_in_srcdir" = "yes"; then
1699   GENINSRC=''
1700 else
1701   GENINSRC='#'
1702 fi
1703
1704
1705 # -------------------
1706 # Find default linker
1707 # -------------------
1708
1709 # With GNU ld
1710
1711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1712 if test "${with_gnu_ld+set}" = set; then
1713   withval="$with_gnu_ld"
1714   gnu_ld_flag="$with_gnu_ld"
1715 else
1716   gnu_ld_flag=no
1717 fi;
1718
1719 # With pre-defined ld
1720
1721 # Check whether --with-ld or --without-ld was given.
1722 if test "${with_ld+set}" = set; then
1723   withval="$with_ld"
1724   DEFAULT_LINKER="$with_ld"
1725 fi;
1726 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1727   if test ! -x "$DEFAULT_LINKER"; then
1728     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1729 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1730    { (exit 1); exit 1; }; }
1731   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1732     gnu_ld_flag=yes
1733   fi
1734
1735 cat >>confdefs.h <<_ACEOF
1736 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1737 _ACEOF
1738
1739 fi
1740
1741 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1742 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1743 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1744   if test x"$gnu_ld_flag" = x"no"; then
1745     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1746 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1747   else
1748     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1749 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1750   fi
1751 else
1752   echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1754 fi
1755
1756 # With demangler in GNU ld
1757
1758 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1759 if test "${with_demangler_in_ld+set}" = set; then
1760   withval="$with_demangler_in_ld"
1761   demangler_in_ld="$with_demangler_in_ld"
1762 else
1763   demangler_in_ld=no
1764 fi;
1765
1766 # ----------------------
1767 # Find default assembler
1768 # ----------------------
1769
1770 # With GNU as
1771
1772 # Check whether --with-gnu-as or --without-gnu-as was given.
1773 if test "${with_gnu_as+set}" = set; then
1774   withval="$with_gnu_as"
1775   gas_flag="$with_gnu_as"
1776 else
1777   gas_flag=no
1778 fi;
1779
1780
1781 # Check whether --with-as or --without-as was given.
1782 if test "${with_as+set}" = set; then
1783   withval="$with_as"
1784   DEFAULT_ASSEMBLER="$with_as"
1785 fi;
1786 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1787   if test ! -x "$DEFAULT_ASSEMBLER"; then
1788     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1789 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1790    { (exit 1); exit 1; }; }
1791   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1792     gas_flag=yes
1793   fi
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1797 _ACEOF
1798
1799 fi
1800
1801 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1802 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1803 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1804   if test x"$gas_flag" = x"no"; then
1805     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1806 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1807   else
1808     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1809 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1810   fi
1811 else
1812   echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 fi
1815
1816 # ---------------
1817 # Find C compiler
1818 # ---------------
1819
1820 # If a non-executable a.out is present (e.g. created by GNU as above even if
1821 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1822 # file, even when creating an executable, so an execution test fails.
1823 # Remove possible default executable files to avoid this.
1824 #
1825 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1826 # Autoconf includes it.
1827 rm -f a.out a.exe b.out
1828
1829 # Find the native compiler
1830 ac_ext=c
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 if test -n "$ac_tool_prefix"; then
1836   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841   echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843   if test -n "$CC"; then
1844   ac_cv_prog_CC="$CC" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849   IFS=$as_save_IFS
1850   test -z "$as_dir" && as_dir=.
1851   for ac_exec_ext in '' $ac_executable_extensions; do
1852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855     break 2
1856   fi
1857 done
1858 done
1859
1860 fi
1861 fi
1862 CC=$ac_cv_prog_CC
1863 if test -n "$CC"; then
1864   echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6
1866 else
1867   echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1869 fi
1870
1871 fi
1872 if test -z "$ac_cv_prog_CC"; then
1873   ac_ct_CC=$CC
1874   # Extract the first word of "gcc", so it can be a program name with args.
1875 set dummy gcc; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$ac_ct_CC"; then
1882   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_ac_ct_CC="gcc"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909   CC=$ac_ct_CC
1910 else
1911   CC="$ac_cv_prog_CC"
1912 fi
1913
1914 if test -z "$CC"; then
1915   if test -n "$ac_tool_prefix"; then
1916   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}cc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   if test -n "$CC"; then
1924   ac_cv_prog_CC="$CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933     ac_cv_prog_CC="${ac_tool_prefix}cc"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939
1940 fi
1941 fi
1942 CC=$ac_cv_prog_CC
1943 if test -n "$CC"; then
1944   echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951 fi
1952 if test -z "$ac_cv_prog_CC"; then
1953   ac_ct_CC=$CC
1954   # Extract the first word of "cc", so it can be a program name with args.
1955 set dummy cc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$ac_ct_CC"; then
1962   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_ac_ct_CC="cc"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989   CC=$ac_ct_CC
1990 else
1991   CC="$ac_cv_prog_CC"
1992 fi
1993
1994 fi
1995 if test -z "$CC"; then
1996   # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   if test -n "$CC"; then
2004   ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006   ac_prog_rejected=no
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010   IFS=$as_save_IFS
2011   test -z "$as_dir" && as_dir=.
2012   for ac_exec_ext in '' $ac_executable_extensions; do
2013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015        ac_prog_rejected=yes
2016        continue
2017      fi
2018     ac_cv_prog_CC="cc"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025 if test $ac_prog_rejected = yes; then
2026   # We found a bogon in the path, so make sure we never use it.
2027   set dummy $ac_cv_prog_CC
2028   shift
2029   if test $# != 0; then
2030     # We chose a different compiler from the bogus one.
2031     # However, it has the same basename, so the bogon will be chosen
2032     # first if we set CC to just the basename; use the full file name.
2033     shift
2034     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2035   fi
2036 fi
2037 fi
2038 fi
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041   echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044   echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048 fi
2049 if test -z "$CC"; then
2050   if test -n "$ac_tool_prefix"; then
2051   for ac_prog in cl
2052   do
2053     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   if test -n "$CC"; then
2061   ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2065 do
2066   IFS=$as_save_IFS
2067   test -z "$as_dir" && as_dir=.
2068   for ac_exec_ext in '' $ac_executable_extensions; do
2069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072     break 2
2073   fi
2074 done
2075 done
2076
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081   echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2083 else
2084   echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2086 fi
2087
2088     test -n "$CC" && break
2089   done
2090 fi
2091 if test -z "$CC"; then
2092   ac_ct_CC=$CC
2093   for ac_prog in cl
2094 do
2095   # Extract the first word of "$ac_prog", so it can be a program name with args.
2096 set dummy $ac_prog; ac_word=$2
2097 echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   if test -n "$ac_ct_CC"; then
2103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   for ac_exec_ext in '' $ac_executable_extensions; do
2111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112     ac_cv_prog_ac_ct_CC="$ac_prog"
2113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114     break 2
2115   fi
2116 done
2117 done
2118
2119 fi
2120 fi
2121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2122 if test -n "$ac_ct_CC"; then
2123   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2124 echo "${ECHO_T}$ac_ct_CC" >&6
2125 else
2126   echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6
2128 fi
2129
2130   test -n "$ac_ct_CC" && break
2131 done
2132
2133   CC=$ac_ct_CC
2134 fi
2135
2136 fi
2137
2138
2139 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: no acceptable C compiler found in \$PATH
2142 See \`config.log' for more details." >&2;}
2143    { (exit 1); exit 1; }; }
2144
2145 # Provide some information about the compiler.
2146 echo "$as_me:$LINENO:" \
2147      "checking for C compiler version" >&5
2148 ac_compiler=`set X $ac_compile; echo $2`
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150   (eval $ac_compiler --version </dev/null >&5) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155   (eval $ac_compiler -v </dev/null >&5) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }
2159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160   (eval $ac_compiler -V </dev/null >&5) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }
2164
2165 cat >conftest.$ac_ext <<_ACEOF
2166 /* confdefs.h.  */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h.  */
2171
2172 int
2173 main ()
2174 {
2175
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2184 # of exeext.
2185 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189   (eval $ac_link_default) 2>&5
2190   ac_status=$?
2191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192   (exit $ac_status); }; then
2193   # Find the output, starting from the most likely.  This scheme is
2194 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2195 # resort.
2196
2197 # Be careful to initialize this variable, since it used to be cached.
2198 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2199 ac_cv_exeext=
2200 # b.out is created by i960 compilers.
2201 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2202 do
2203   test -f "$ac_file" || continue
2204   case $ac_file in
2205     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2206         ;;
2207     conftest.$ac_ext )
2208         # This is the source file.
2209         ;;
2210     [ab].out )
2211         # We found the default executable, but exeext='' is most
2212         # certainly right.
2213         break;;
2214     *.* )
2215         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216         # FIXME: I believe we export ac_cv_exeext for Libtool,
2217         # but it would be cool to find out if it's true.  Does anybody
2218         # maintain Libtool? --akim.
2219         export ac_cv_exeext
2220         break;;
2221     * )
2222         break;;
2223   esac
2224 done
2225 else
2226   echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2228
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233    { (exit 77); exit 77; }; }
2234 fi
2235
2236 ac_exeext=$ac_cv_exeext
2237 echo "$as_me:$LINENO: result: $ac_file" >&5
2238 echo "${ECHO_T}$ac_file" >&6
2239
2240 # Check the compiler produces executables we can run.  If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245 # If not cross compiling, check that we can run a simple program.
2246 if test "$cross_compiling" != yes; then
2247   if { ac_try='./$ac_file'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; }; then
2253     cross_compiling=no
2254   else
2255     if test "$cross_compiling" = maybe; then
2256         cross_compiling=yes
2257     else
2258         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&2;}
2264    { (exit 1); exit 1; }; }
2265     fi
2266   fi
2267 fi
2268 echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6
2270
2271 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272 ac_clean_files=$ac_clean_files_save
2273 # Check the compiler produces executables we can run.  If not, either
2274 # the compiler is broken, or we cross compile.
2275 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278 echo "${ECHO_T}$cross_compiling" >&6
2279
2280 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283   (eval $ac_link) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; then
2287   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2289 # work properly (i.e., refer to `conftest.exe'), while it won't with
2290 # `rm'.
2291 for ac_file in conftest.exe conftest conftest.*; do
2292   test -f "$ac_file" || continue
2293   case $ac_file in
2294     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2295     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296           export ac_cv_exeext
2297           break;;
2298     * ) break;;
2299   esac
2300 done
2301 else
2302   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306    { (exit 1); exit 1; }; }
2307 fi
2308
2309 rm -f conftest$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6
2312
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2315 ac_exeext=$EXEEXT
2316 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318 if test "${ac_cv_objext+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h.  */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h.  */
2327
2328 int
2329 main ()
2330 {
2331
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.o conftest.obj
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338   (eval $ac_compile) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; then
2342   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2343   case $ac_file in
2344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2345     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346        break;;
2347   esac
2348 done
2349 else
2350   echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356 See \`config.log' for more details." >&2;}
2357    { (exit 1); exit 1; }; }
2358 fi
2359
2360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361 fi
2362 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363 echo "${ECHO_T}$ac_cv_objext" >&6
2364 OBJEXT=$ac_cv_objext
2365 ac_objext=$OBJEXT
2366 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371   cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377
2378 int
2379 main ()
2380 {
2381 #ifndef __GNUC__
2382        choke me
2383 #endif
2384
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391   (eval $ac_compile) 2>conftest.er1
2392   ac_status=$?
2393   grep -v '^ *+' conftest.er1 >conftest.err
2394   rm -f conftest.er1
2395   cat conftest.err >&5
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); } &&
2398          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400   (eval $ac_try) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }; } &&
2404          { ac_try='test -s conftest.$ac_objext'
2405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406   (eval $ac_try) 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; }; then
2410   ac_compiler_gnu=yes
2411 else
2412   echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 ac_compiler_gnu=no
2416 fi
2417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419
2420 fi
2421 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2423 GCC=`test $ac_compiler_gnu = yes && echo yes`
2424 ac_test_CFLAGS=${CFLAGS+set}
2425 ac_save_CFLAGS=$CFLAGS
2426 CFLAGS="-g"
2427 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2429 if test "${ac_cv_prog_cc_g+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h.  */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h.  */
2438
2439 int
2440 main ()
2441 {
2442
2443   ;
2444   return 0;
2445 }
2446 _ACEOF
2447 rm -f conftest.$ac_objext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449   (eval $ac_compile) 2>conftest.er1
2450   ac_status=$?
2451   grep -v '^ *+' conftest.er1 >conftest.err
2452   rm -f conftest.er1
2453   cat conftest.err >&5
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); } &&
2456          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458   (eval $ac_try) 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }; } &&
2462          { ac_try='test -s conftest.$ac_objext'
2463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464   (eval $ac_try) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }; }; then
2468   ac_cv_prog_cc_g=yes
2469 else
2470   echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 ac_cv_prog_cc_g=no
2474 fi
2475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 fi
2477 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2478 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2479 if test "$ac_test_CFLAGS" = set; then
2480   CFLAGS=$ac_save_CFLAGS
2481 elif test $ac_cv_prog_cc_g = yes; then
2482   if test "$GCC" = yes; then
2483     CFLAGS="-g -O2"
2484   else
2485     CFLAGS="-g"
2486   fi
2487 else
2488   if test "$GCC" = yes; then
2489     CFLAGS="-O2"
2490   else
2491     CFLAGS=
2492   fi
2493 fi
2494 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2495 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2496 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2497   echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499   ac_cv_prog_cc_stdc=no
2500 ac_save_CC=$CC
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h.  */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h.  */
2507 #include <stdarg.h>
2508 #include <stdio.h>
2509 #include <sys/types.h>
2510 #include <sys/stat.h>
2511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2512 struct buf { int x; };
2513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2514 static char *e (p, i)
2515      char **p;
2516      int i;
2517 {
2518   return p[i];
2519 }
2520 static char *f (char * (*g) (char **, int), char **p, ...)
2521 {
2522   char *s;
2523   va_list v;
2524   va_start (v,p);
2525   s = g (p, va_arg (v,int));
2526   va_end (v);
2527   return s;
2528 }
2529
2530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2531    function prototypes and stuff, but not '\xHH' hex character constants.
2532    These don't provoke an error unfortunately, instead are silently treated
2533    as 'x'.  The following induces an error, until -std1 is added to get
2534    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2535    array size at least.  It's necessary to write '\x00'==0 to get something
2536    that's true only with -std1.  */
2537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2538
2539 int test (int i, double x);
2540 struct s1 {int (*f) (int a);};
2541 struct s2 {int (*f) (double a);};
2542 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2543 int argc;
2544 char **argv;
2545 int
2546 main ()
2547 {
2548 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 # Don't try gcc -ansi; that turns off useful extensions and
2554 # breaks some systems' header files.
2555 # AIX                   -qlanglvl=ansi
2556 # Ultrix and OSF/1      -std1
2557 # HP-UX 10.20 and later -Ae
2558 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2559 # SVR4                  -Xc -D__EXTENSIONS__
2560 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2561 do
2562   CC="$ac_save_CC $ac_arg"
2563   rm -f conftest.$ac_objext
2564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565   (eval $ac_compile) 2>conftest.er1
2566   ac_status=$?
2567   grep -v '^ *+' conftest.er1 >conftest.err
2568   rm -f conftest.er1
2569   cat conftest.err >&5
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); } &&
2572          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574   (eval $ac_try) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; } &&
2578          { ac_try='test -s conftest.$ac_objext'
2579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580   (eval $ac_try) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; }; then
2584   ac_cv_prog_cc_stdc=$ac_arg
2585 break
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 fi
2591 rm -f conftest.err conftest.$ac_objext
2592 done
2593 rm -f conftest.$ac_ext conftest.$ac_objext
2594 CC=$ac_save_CC
2595
2596 fi
2597
2598 case "x$ac_cv_prog_cc_stdc" in
2599   x|xno)
2600     echo "$as_me:$LINENO: result: none needed" >&5
2601 echo "${ECHO_T}none needed" >&6 ;;
2602   *)
2603     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2605     CC="$CC $ac_cv_prog_cc_stdc" ;;
2606 esac
2607
2608 # Some people use a C++ compiler to compile C.  Since we use `exit',
2609 # in C++ we need to declare it.  In case someone uses the same compiler
2610 # for both compiling C and C++ we need to have the C++ compiler decide
2611 # the declaration of exit, since it's the most demanding environment.
2612 cat >conftest.$ac_ext <<_ACEOF
2613 #ifndef __cplusplus
2614   choke me
2615 #endif
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>conftest.er1
2620   ac_status=$?
2621   grep -v '^ *+' conftest.er1 >conftest.err
2622   rm -f conftest.er1
2623   cat conftest.err >&5
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } &&
2626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; } &&
2632          { ac_try='test -s conftest.$ac_objext'
2633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; }; then
2638   for ac_declaration in \
2639    '' \
2640    'extern "C" void std::exit (int) throw (); using std::exit;' \
2641    'extern "C" void std::exit (int); using std::exit;' \
2642    'extern "C" void exit (int) throw ();' \
2643    'extern "C" void exit (int);' \
2644    'void exit (int);'
2645 do
2646   cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h.  */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h.  */
2652 $ac_declaration
2653 #include <stdlib.h>
2654 int
2655 main ()
2656 {
2657 exit (42);
2658   ;
2659   return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664   (eval $ac_compile) 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; } &&
2677          { ac_try='test -s conftest.$ac_objext'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; }; then
2683   :
2684 else
2685   echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688 continue
2689 fi
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691   cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h.  */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h.  */
2697 $ac_declaration
2698 int
2699 main ()
2700 {
2701 exit (42);
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708   (eval $ac_compile) 2>conftest.er1
2709   ac_status=$?
2710   grep -v '^ *+' conftest.er1 >conftest.err
2711   rm -f conftest.er1
2712   cat conftest.err >&5
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717   (eval $ac_try) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; } &&
2721          { ac_try='test -s conftest.$ac_objext'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727   break
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 fi
2733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734 done
2735 rm -f conftest*
2736 if test -n "$ac_declaration"; then
2737   echo '#ifdef __cplusplus' >>confdefs.h
2738   echo $ac_declaration      >>confdefs.h
2739   echo '#endif'             >>confdefs.h
2740 fi
2741
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 fi
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754 if test "x$CC" != xcc; then
2755   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2756 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2757 else
2758   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2759 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2760 fi
2761 set dummy $CC; ac_cc=`echo $2 |
2762                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2763 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766   cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h.  */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h.  */
2772
2773 int
2774 main ()
2775 {
2776
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 # Make sure it works both with $CC and with simple cc.
2782 # We do the test twice because some compilers refuse to overwrite an
2783 # existing .o file with -o, though they will create one.
2784 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2785 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); } &&
2790    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791   (eval $ac_try) 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); };
2795 then
2796   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2797   if test "x$CC" != xcc; then
2798     # Test first that cc exists at all.
2799     if { ac_try='cc -c conftest.$ac_ext >&5'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; }; then
2805       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2806       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); } &&
2811          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812   (eval $ac_try) 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); };
2816       then
2817         # cc works too.
2818         :
2819       else
2820         # cc exists but doesn't like -o.
2821         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2822       fi
2823     fi
2824   fi
2825 else
2826   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2827 fi
2828 rm -f conftest*
2829
2830 fi
2831 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2832   echo "$as_me:$LINENO: result: yes" >&5
2833 echo "${ECHO_T}yes" >&6
2834 else
2835   echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2837
2838 cat >>confdefs.h <<\_ACEOF
2839 #define NO_MINUS_C_MINUS_O 1
2840 _ACEOF
2841
2842 fi
2843
2844 # expand $ac_aux_dir to an absolute path
2845 am_aux_dir=`cd $ac_aux_dir && pwd`
2846
2847 # FIXME: we rely on the cache variable name because
2848 # there is no other way.
2849 set dummy $CC
2850 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2851 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2852    # Losing compiler, so override with the script.
2853    # FIXME: It is wrong to rewrite CC.
2854    # But if we don't then we get into trouble of one sort or another.
2855    # A longer-term fix would be to have automake use am__CC in this case,
2856    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2857    CC="$am_aux_dir/compile $CC"
2858 fi
2859
2860 # autoconf is lame and doesn't give us any substitution variable for this.
2861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2862   NO_MINUS_C_MINUS_O=yes
2863 else
2864   OUTPUT_OPTION='-o $@'
2865 fi
2866
2867
2868
2869 # -------------------------
2870 # Check C compiler features
2871 # -------------------------
2872
2873 ac_ext=c
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2879 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2880 # On Suns, sometimes $CPP names a directory.
2881 if test -n "$CPP" && test -d "$CPP"; then
2882   CPP=
2883 fi
2884 if test -z "$CPP"; then
2885   if test "${ac_cv_prog_CPP+set}" = set; then
2886   echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888       # Double quotes because CPP needs to be expanded
2889     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2890     do
2891       ac_preproc_ok=false
2892 for ac_c_preproc_warn_flag in '' yes
2893 do
2894   # Use a header file that comes with gcc, so configuring glibc
2895   # with a fresh cross-compiler works.
2896   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2897   # <limits.h> exists even on freestanding compilers.
2898   # On the NeXT, cc -E runs the code through the compiler's parser,
2899   # not just through cpp. "Syntax error" is here to catch this case.
2900   cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h.  */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h.  */
2906 #ifdef __STDC__
2907 # include <limits.h>
2908 #else
2909 # include <assert.h>
2910 #endif
2911                      Syntax error
2912 _ACEOF
2913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2915   ac_status=$?
2916   grep -v '^ *+' conftest.er1 >conftest.err
2917   rm -f conftest.er1
2918   cat conftest.err >&5
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); } >/dev/null; then
2921   if test -s conftest.err; then
2922     ac_cpp_err=$ac_c_preproc_warn_flag
2923     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2924   else
2925     ac_cpp_err=
2926   fi
2927 else
2928   ac_cpp_err=yes
2929 fi
2930 if test -z "$ac_cpp_err"; then
2931   :
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936   # Broken: fails on valid input.
2937 continue
2938 fi
2939 rm -f conftest.err conftest.$ac_ext
2940
2941   # OK, works on sane cases.  Now check whether non-existent headers
2942   # can be detected and how.
2943   cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h.  */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h.  */
2949 #include <ac_nonexistent.h>
2950 _ACEOF
2951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2953   ac_status=$?
2954   grep -v '^ *+' conftest.er1 >conftest.err
2955   rm -f conftest.er1
2956   cat conftest.err >&5
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } >/dev/null; then
2959   if test -s conftest.err; then
2960     ac_cpp_err=$ac_c_preproc_warn_flag
2961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2962   else
2963     ac_cpp_err=
2964   fi
2965 else
2966   ac_cpp_err=yes
2967 fi
2968 if test -z "$ac_cpp_err"; then
2969   # Broken: success on invalid input.
2970 continue
2971 else
2972   echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975   # Passes both tests.
2976 ac_preproc_ok=:
2977 break
2978 fi
2979 rm -f conftest.err conftest.$ac_ext
2980
2981 done
2982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2983 rm -f conftest.err conftest.$ac_ext
2984 if $ac_preproc_ok; then
2985   break
2986 fi
2987
2988     done
2989     ac_cv_prog_CPP=$CPP
2990
2991 fi
2992   CPP=$ac_cv_prog_CPP
2993 else
2994   ac_cv_prog_CPP=$CPP
2995 fi
2996 echo "$as_me:$LINENO: result: $CPP" >&5
2997 echo "${ECHO_T}$CPP" >&6
2998 ac_preproc_ok=false
2999 for ac_c_preproc_warn_flag in '' yes
3000 do
3001   # Use a header file that comes with gcc, so configuring glibc
3002   # with a fresh cross-compiler works.
3003   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3004   # <limits.h> exists even on freestanding compilers.
3005   # On the NeXT, cc -E runs the code through the compiler's parser,
3006   # not just through cpp. "Syntax error" is here to catch this case.
3007   cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h.  */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h.  */
3013 #ifdef __STDC__
3014 # include <limits.h>
3015 #else
3016 # include <assert.h>
3017 #endif
3018                      Syntax error
3019 _ACEOF
3020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3022   ac_status=$?
3023   grep -v '^ *+' conftest.er1 >conftest.err
3024   rm -f conftest.er1
3025   cat conftest.err >&5
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); } >/dev/null; then
3028   if test -s conftest.err; then
3029     ac_cpp_err=$ac_c_preproc_warn_flag
3030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3031   else
3032     ac_cpp_err=
3033   fi
3034 else
3035   ac_cpp_err=yes
3036 fi
3037 if test -z "$ac_cpp_err"; then
3038   :
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043   # Broken: fails on valid input.
3044 continue
3045 fi
3046 rm -f conftest.err conftest.$ac_ext
3047
3048   # OK, works on sane cases.  Now check whether non-existent headers
3049   # can be detected and how.
3050   cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056 #include <ac_nonexistent.h>
3057 _ACEOF
3058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3060   ac_status=$?
3061   grep -v '^ *+' conftest.er1 >conftest.err
3062   rm -f conftest.er1
3063   cat conftest.err >&5
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); } >/dev/null; then
3066   if test -s conftest.err; then
3067     ac_cpp_err=$ac_c_preproc_warn_flag
3068     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3069   else
3070     ac_cpp_err=
3071   fi
3072 else
3073   ac_cpp_err=yes
3074 fi
3075 if test -z "$ac_cpp_err"; then
3076   # Broken: success on invalid input.
3077 continue
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082   # Passes both tests.
3083 ac_preproc_ok=:
3084 break
3085 fi
3086 rm -f conftest.err conftest.$ac_ext
3087
3088 done
3089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3090 rm -f conftest.err conftest.$ac_ext
3091 if $ac_preproc_ok; then
3092   :
3093 else
3094   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&5
3096 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3097 See \`config.log' for more details." >&2;}
3098    { (exit 1); exit 1; }; }
3099 fi
3100
3101 ac_ext=c
3102 ac_cpp='$CPP $CPPFLAGS'
3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106
3107
3108 echo "$as_me:$LINENO: checking for inline" >&5
3109 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3110 if test "${ac_cv_c_inline+set}" = set; then
3111   echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113   ac_cv_c_inline=no
3114 for ac_kw in inline __inline__ __inline; do
3115   cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121 #ifndef __cplusplus
3122 typedef int foo_t;
3123 static $ac_kw foo_t static_foo () {return 0; }
3124 $ac_kw foo_t foo () {return 0; }
3125 #endif
3126
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3130   (eval $ac_compile) 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
3134   cat conftest.err >&5
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } &&
3137          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139   (eval $ac_try) 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }; } &&
3143          { ac_try='test -s conftest.$ac_objext'
3144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145   (eval $ac_try) 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; }; then
3149   ac_cv_c_inline=$ac_kw; break
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 fi
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156 done
3157
3158 fi
3159 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3160 echo "${ECHO_T}$ac_cv_c_inline" >&6
3161
3162
3163 case $ac_cv_c_inline in
3164   inline | yes) ;;
3165   *)
3166     case $ac_cv_c_inline in
3167       no) ac_val=;;
3168       *) ac_val=$ac_cv_c_inline;;
3169     esac
3170     cat >>confdefs.h <<_ACEOF
3171 #ifndef __cplusplus
3172 #define inline $ac_val
3173 #endif
3174 _ACEOF
3175     ;;
3176 esac
3177
3178
3179 # sizeof(char) is 1 by definition.
3180
3181 echo "$as_me:$LINENO: checking for egrep" >&5
3182 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3183 if test "${ac_cv_prog_egrep+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3187     then ac_cv_prog_egrep='grep -E'
3188     else ac_cv_prog_egrep='egrep'
3189     fi
3190 fi
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3192 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3193  EGREP=$ac_cv_prog_egrep
3194
3195
3196 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3198 if test "${ac_cv_header_stdc+set}" = set; then
3199   echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201   cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h.  */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h.  */
3207 #include <stdlib.h>
3208 #include <stdarg.h>
3209 #include <string.h>
3210 #include <float.h>
3211
3212 int
3213 main ()
3214 {
3215
3216   ;
3217   return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222   (eval $ac_compile) 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } &&
3229          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231   (eval $ac_try) 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }; } &&
3235          { ac_try='test -s conftest.$ac_objext'
3236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237   (eval $ac_try) 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; }; then
3241   ac_cv_header_stdc=yes
3242 else
3243   echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 ac_cv_header_stdc=no
3247 fi
3248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3249
3250 if test $ac_cv_header_stdc = yes; then
3251   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
3259
3260 _ACEOF
3261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262   $EGREP "memchr" >/dev/null 2>&1; then
3263   :
3264 else
3265   ac_cv_header_stdc=no
3266 fi
3267 rm -f conftest*
3268
3269 fi
3270
3271 if test $ac_cv_header_stdc = yes; then
3272   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3273   cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h.  */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h.  */
3279 #include <stdlib.h>
3280
3281 _ACEOF
3282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3283   $EGREP "free" >/dev/null 2>&1; then
3284   :
3285 else
3286   ac_cv_header_stdc=no
3287 fi
3288 rm -f conftest*
3289
3290 fi
3291
3292 if test $ac_cv_header_stdc = yes; then
3293   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3294   if test "$cross_compiling" = yes; then
3295   :
3296 else
3297   cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h.  */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h.  */
3303 #include <ctype.h>
3304 #if ((' ' & 0x0FF) == 0x020)
3305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3307 #else
3308 # define ISLOWER(c) \
3309                    (('a' <= (c) && (c) <= 'i') \
3310                      || ('j' <= (c) && (c) <= 'r') \
3311                      || ('s' <= (c) && (c) <= 'z'))
3312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3313 #endif
3314
3315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3316 int
3317 main ()
3318 {
3319   int i;
3320   for (i = 0; i < 256; i++)
3321     if (XOR (islower (i), ISLOWER (i))
3322         || toupper (i) != TOUPPER (i))
3323       exit(2);
3324   exit (0);
3325 }
3326 _ACEOF
3327 rm -f conftest$ac_exeext
3328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3329   (eval $ac_link) 2>&5
3330   ac_status=$?
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334   (eval $ac_try) 2>&5
3335   ac_status=$?
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); }; }; then
3338   :
3339 else
3340   echo "$as_me: program exited with status $ac_status" >&5
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 ( exit $ac_status )
3345 ac_cv_header_stdc=no
3346 fi
3347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3348 fi
3349 fi
3350 fi
3351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3353 if test $ac_cv_header_stdc = yes; then
3354
3355 cat >>confdefs.h <<\_ACEOF
3356 #define STDC_HEADERS 1
3357 _ACEOF
3358
3359 fi
3360
3361 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3372                   inttypes.h stdint.h unistd.h
3373 do
3374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3375 echo "$as_me:$LINENO: checking for $ac_header" >&5
3376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h.  */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h.  */
3386 $ac_includes_default
3387
3388 #include <$ac_header>
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392   (eval $ac_compile) 2>conftest.er1
3393   ac_status=$?
3394   grep -v '^ *+' conftest.er1 >conftest.err
3395   rm -f conftest.er1
3396   cat conftest.err >&5
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); } &&
3399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401   (eval $ac_try) 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }; } &&
3405          { ac_try='test -s conftest.$ac_objext'
3406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407   (eval $ac_try) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }; }; then
3411   eval "$as_ac_Header=yes"
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 eval "$as_ac_Header=no"
3417 fi
3418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3419 fi
3420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3423   cat >>confdefs.h <<_ACEOF
3424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3425 _ACEOF
3426
3427 fi
3428
3429 done
3430
3431
3432 echo "$as_me:$LINENO: checking for void *" >&5
3433 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3434 if test "${ac_cv_type_void_p+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443 $ac_includes_default
3444 int
3445 main ()
3446 {
3447 if ((void * *) 0)
3448   return 0;
3449 if (sizeof (void *))
3450   return 0;
3451   ;
3452   return 0;
3453 }
3454 _ACEOF
3455 rm -f conftest.$ac_objext
3456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3457   (eval $ac_compile) 2>conftest.er1
3458   ac_status=$?
3459   grep -v '^ *+' conftest.er1 >conftest.err
3460   rm -f conftest.er1
3461   cat conftest.err >&5
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); } &&
3464          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466   (eval $ac_try) 2>&5
3467   ac_status=$?
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); }; } &&
3470          { ac_try='test -s conftest.$ac_objext'
3471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472   (eval $ac_try) 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; }; then
3476   ac_cv_type_void_p=yes
3477 else
3478   echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 ac_cv_type_void_p=no
3482 fi
3483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3484 fi
3485 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3486 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3487
3488 echo "$as_me:$LINENO: checking size of void *" >&5
3489 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3490 if test "${ac_cv_sizeof_void_p+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493   if test "$ac_cv_type_void_p" = yes; then
3494   # The cast to unsigned long works around a bug in the HP C Compiler
3495   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3496   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3497   # This bug is HP SR number 8606223364.
3498   if test "$cross_compiling" = yes; then
3499   # Depending upon the size, compute the lo and hi bounds.
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 $ac_includes_default
3507 int
3508 main ()
3509 {
3510 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3511 test_array [0] = 0
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519   (eval $ac_compile) 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } &&
3526          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528   (eval $ac_try) 2>&5
3529   ac_status=$?
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); }; } &&
3532          { ac_try='test -s conftest.$ac_objext'
3533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534   (eval $ac_try) 2>&5
3535   ac_status=$?
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); }; }; then
3538   ac_lo=0 ac_mid=0
3539   while :; do
3540     cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546 $ac_includes_default
3547 int
3548 main ()
3549 {
3550 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3551 test_array [0] = 0
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 rm -f conftest.$ac_objext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559   (eval $ac_compile) 2>conftest.er1
3560   ac_status=$?
3561   grep -v '^ *+' conftest.er1 >conftest.err
3562   rm -f conftest.er1
3563   cat conftest.err >&5
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); } &&
3566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568   (eval $ac_try) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; } &&
3572          { ac_try='test -s conftest.$ac_objext'
3573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574   (eval $ac_try) 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }; }; then
3578   ac_hi=$ac_mid; break
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 ac_lo=`expr $ac_mid + 1`
3584                     if test $ac_lo -le $ac_mid; then
3585                       ac_lo= ac_hi=
3586                       break
3587                     fi
3588                     ac_mid=`expr 2 '*' $ac_mid + 1`
3589 fi
3590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3591   done
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h.  */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h.  */
3602 $ac_includes_default
3603 int
3604 main ()
3605 {
3606 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3607 test_array [0] = 0
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615   (eval $ac_compile) 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } &&
3622          { ac_try='test -z "$ac_c_werror_flag"                   || 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=-1 ac_mid=-1
3635   while :; do
3636     cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h.  */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h.  */
3642 $ac_includes_default
3643 int
3644 main ()
3645 {
3646 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3647 test_array [0] = 0
3648
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655   (eval $ac_compile) 2>conftest.er1
3656   ac_status=$?
3657   grep -v '^ *+' conftest.er1 >conftest.err
3658   rm -f conftest.er1
3659   cat conftest.err >&5
3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); } &&
3662          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664   (eval $ac_try) 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); }; } &&
3668          { ac_try='test -s conftest.$ac_objext'
3669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670   (eval $ac_try) 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; }; then
3674   ac_lo=$ac_mid; break
3675 else
3676   echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 ac_hi=`expr '(' $ac_mid ')' - 1`
3680                        if test $ac_mid -le $ac_hi; then
3681                          ac_lo= ac_hi=
3682                          break
3683                        fi
3684                        ac_mid=`expr 2 '*' $ac_mid`
3685 fi
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687   done
3688 else
3689   echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692 ac_lo= ac_hi=
3693 fi
3694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695 fi
3696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3697 # Binary search between lo and hi bounds.
3698 while test "x$ac_lo" != "x$ac_hi"; do
3699   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3700   cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h.  */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h.  */
3706 $ac_includes_default
3707 int
3708 main ()
3709 {
3710 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3711 test_array [0] = 0
3712
3713   ;
3714   return 0;
3715 }
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719   (eval $ac_compile) 2>conftest.er1
3720   ac_status=$?
3721   grep -v '^ *+' conftest.er1 >conftest.err
3722   rm -f conftest.er1
3723   cat conftest.err >&5
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); } &&
3726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
3732          { ac_try='test -s conftest.$ac_objext'
3733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734   (eval $ac_try) 2>&5
3735   ac_status=$?
3736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737   (exit $ac_status); }; }; then
3738   ac_hi=$ac_mid
3739 else
3740   echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3742
3743 ac_lo=`expr '(' $ac_mid ')' + 1`
3744 fi
3745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3746 done
3747 case $ac_lo in
3748 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3749 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3750 See \`config.log' for more details." >&5
3751 echo "$as_me: error: cannot compute sizeof (void *), 77
3752 See \`config.log' for more details." >&2;}
3753    { (exit 1); exit 1; }; } ;;
3754 esac
3755 else
3756   if test "$cross_compiling" = yes; then
3757   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3758 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3759    { (exit 1); exit 1; }; }
3760 else
3761   cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h.  */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h.  */
3767 $ac_includes_default
3768 long longval () { return (long) (sizeof (void *)); }
3769 unsigned long ulongval () { return (long) (sizeof (void *)); }
3770 #include <stdio.h>
3771 #include <stdlib.h>
3772 int
3773 main ()
3774 {
3775
3776   FILE *f = fopen ("conftest.val", "w");
3777   if (! f)
3778     exit (1);
3779   if (((long) (sizeof (void *))) < 0)
3780     {
3781       long i = longval ();
3782       if (i != ((long) (sizeof (void *))))
3783         exit (1);
3784       fprintf (f, "%ld\n", i);
3785     }
3786   else
3787     {
3788       unsigned long i = ulongval ();
3789       if (i != ((long) (sizeof (void *))))
3790         exit (1);
3791       fprintf (f, "%lu\n", i);
3792     }
3793   exit (ferror (f) || fclose (f) != 0);
3794
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801   (eval $ac_link) 2>&5
3802   ac_status=$?
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806   (eval $ac_try) 2>&5
3807   ac_status=$?
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); }; }; then
3810   ac_cv_sizeof_void_p=`cat conftest.val`
3811 else
3812   echo "$as_me: program exited with status $ac_status" >&5
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816 ( exit $ac_status )
3817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3818 See \`config.log' for more details." >&5
3819 echo "$as_me: error: cannot compute sizeof (void *), 77
3820 See \`config.log' for more details." >&2;}
3821    { (exit 1); exit 1; }; }
3822 fi
3823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 fi
3826 rm -f conftest.val
3827 else
3828   ac_cv_sizeof_void_p=0
3829 fi
3830 fi
3831 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3832 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3833 cat >>confdefs.h <<_ACEOF
3834 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3835 _ACEOF
3836
3837
3838 echo "$as_me:$LINENO: checking for short" >&5
3839 echo $ECHO_N "checking for short... $ECHO_C" >&6
3840 if test "${ac_cv_type_short+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849 $ac_includes_default
3850 int
3851 main ()
3852 {
3853 if ((short *) 0)
3854   return 0;
3855 if (sizeof (short))
3856   return 0;
3857   ;
3858   return 0;
3859 }
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863   (eval $ac_compile) 2>conftest.er1
3864   ac_status=$?
3865   grep -v '^ *+' conftest.er1 >conftest.err
3866   rm -f conftest.er1
3867   cat conftest.err >&5
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } &&
3870          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872   (eval $ac_try) 2>&5
3873   ac_status=$?
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); }; } &&
3876          { ac_try='test -s conftest.$ac_objext'
3877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878   (eval $ac_try) 2>&5
3879   ac_status=$?
3880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); }; }; then
3882   ac_cv_type_short=yes
3883 else
3884   echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3886
3887 ac_cv_type_short=no
3888 fi
3889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3890 fi
3891 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3892 echo "${ECHO_T}$ac_cv_type_short" >&6
3893
3894 echo "$as_me:$LINENO: checking size of short" >&5
3895 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3896 if test "${ac_cv_sizeof_short+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   if test "$ac_cv_type_short" = yes; then
3900   # The cast to unsigned long works around a bug in the HP C Compiler
3901   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3902   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3903   # This bug is HP SR number 8606223364.
3904   if test "$cross_compiling" = yes; then
3905   # Depending upon the size, compute the lo and hi bounds.
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h.  */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h.  */
3912 $ac_includes_default
3913 int
3914 main ()
3915 {
3916 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3917 test_array [0] = 0
3918
3919   ;
3920   return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925   (eval $ac_compile) 2>conftest.er1
3926   ac_status=$?
3927   grep -v '^ *+' conftest.er1 >conftest.err
3928   rm -f conftest.er1
3929   cat conftest.err >&5
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } &&
3932          { ac_try='test -z "$ac_c_werror_flag"                   || 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_lo=0 ac_mid=0
3945   while :; do
3946     cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h.  */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h.  */
3952 $ac_includes_default
3953 int
3954 main ()
3955 {
3956 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3957 test_array [0] = 0
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 rm -f conftest.$ac_objext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965   (eval $ac_compile) 2>conftest.er1
3966   ac_status=$?
3967   grep -v '^ *+' conftest.er1 >conftest.err
3968   rm -f conftest.er1
3969   cat conftest.err >&5
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } &&
3972          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974   (eval $ac_try) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; } &&
3978          { ac_try='test -s conftest.$ac_objext'
3979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980   (eval $ac_try) 2>&5
3981   ac_status=$?
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); }; }; then
3984   ac_hi=$ac_mid; break
3985 else
3986   echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3988
3989 ac_lo=`expr $ac_mid + 1`
3990                     if test $ac_lo -le $ac_mid; then
3991                       ac_lo= ac_hi=
3992                       break
3993                     fi
3994                     ac_mid=`expr 2 '*' $ac_mid + 1`
3995 fi
3996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3997   done
3998 else
3999   echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002 cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008 $ac_includes_default
4009 int
4010 main ()
4011 {
4012 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4013 test_array [0] = 0
4014
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 rm -f conftest.$ac_objext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021   (eval $ac_compile) 2>conftest.er1
4022   ac_status=$?
4023   grep -v '^ *+' conftest.er1 >conftest.err
4024   rm -f conftest.er1
4025   cat conftest.err >&5
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); } &&
4028          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030   (eval $ac_try) 2>&5
4031   ac_status=$?
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); }; } &&
4034          { ac_try='test -s conftest.$ac_objext'
4035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036   (eval $ac_try) 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); }; }; then
4040   ac_hi=-1 ac_mid=-1
4041   while :; do
4042     cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h.  */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h.  */
4048 $ac_includes_default
4049 int
4050 main ()
4051 {
4052 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4053 test_array [0] = 0
4054
4055   ;
4056   return 0;
4057 }
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061   (eval $ac_compile) 2>conftest.er1
4062   ac_status=$?
4063   grep -v '^ *+' conftest.er1 >conftest.err
4064   rm -f conftest.er1
4065   cat conftest.err >&5
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); } &&
4068          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070   (eval $ac_try) 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); }; } &&
4074          { ac_try='test -s conftest.$ac_objext'
4075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076   (eval $ac_try) 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); }; }; then
4080   ac_lo=$ac_mid; break
4081 else
4082   echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4084
4085 ac_hi=`expr '(' $ac_mid ')' - 1`
4086                        if test $ac_mid -le $ac_hi; then
4087                          ac_lo= ac_hi=
4088                          break
4089                        fi
4090                        ac_mid=`expr 2 '*' $ac_mid`
4091 fi
4092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093   done
4094 else
4095   echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098 ac_lo= ac_hi=
4099 fi
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101 fi
4102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4103 # Binary search between lo and hi bounds.
4104 while test "x$ac_lo" != "x$ac_hi"; do
4105   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4106   cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h.  */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h.  */
4112 $ac_includes_default
4113 int
4114 main ()
4115 {
4116 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4117 test_array [0] = 0
4118
4119   ;
4120   return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.$ac_objext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125   (eval $ac_compile) 2>conftest.er1
4126   ac_status=$?
4127   grep -v '^ *+' conftest.er1 >conftest.err
4128   rm -f conftest.er1
4129   cat conftest.err >&5
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); } &&
4132          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134   (eval $ac_try) 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; } &&
4138          { ac_try='test -s conftest.$ac_objext'
4139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140   (eval $ac_try) 2>&5
4141   ac_status=$?
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); }; }; then
4144   ac_hi=$ac_mid
4145 else
4146   echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4148
4149 ac_lo=`expr '(' $ac_mid ')' + 1`
4150 fi
4151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152 done
4153 case $ac_lo in
4154 ?*) ac_cv_sizeof_short=$ac_lo;;
4155 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4156 See \`config.log' for more details." >&5
4157 echo "$as_me: error: cannot compute sizeof (short), 77
4158 See \`config.log' for more details." >&2;}
4159    { (exit 1); exit 1; }; } ;;
4160 esac
4161 else
4162   if test "$cross_compiling" = yes; then
4163   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4164 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4165    { (exit 1); exit 1; }; }
4166 else
4167   cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 $ac_includes_default
4174 long longval () { return (long) (sizeof (short)); }
4175 unsigned long ulongval () { return (long) (sizeof (short)); }
4176 #include <stdio.h>
4177 #include <stdlib.h>
4178 int
4179 main ()
4180 {
4181
4182   FILE *f = fopen ("conftest.val", "w");
4183   if (! f)
4184     exit (1);
4185   if (((long) (sizeof (short))) < 0)
4186     {
4187       long i = longval ();
4188       if (i != ((long) (sizeof (short))))
4189         exit (1);
4190       fprintf (f, "%ld\n", i);
4191     }
4192   else
4193     {
4194       unsigned long i = ulongval ();
4195       if (i != ((long) (sizeof (short))))
4196         exit (1);
4197       fprintf (f, "%lu\n", i);
4198     }
4199   exit (ferror (f) || fclose (f) != 0);
4200
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 rm -f conftest$ac_exeext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4207   (eval $ac_link) 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212   (eval $ac_try) 2>&5
4213   ac_status=$?
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); }; }; then
4216   ac_cv_sizeof_short=`cat conftest.val`
4217 else
4218   echo "$as_me: program exited with status $ac_status" >&5
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 ( exit $ac_status )
4223 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4224 See \`config.log' for more details." >&5
4225 echo "$as_me: error: cannot compute sizeof (short), 77
4226 See \`config.log' for more details." >&2;}
4227    { (exit 1); exit 1; }; }
4228 fi
4229 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4230 fi
4231 fi
4232 rm -f conftest.val
4233 else
4234   ac_cv_sizeof_short=0
4235 fi
4236 fi
4237 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4238 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4239 cat >>confdefs.h <<_ACEOF
4240 #define SIZEOF_SHORT $ac_cv_sizeof_short
4241 _ACEOF
4242
4243
4244 echo "$as_me:$LINENO: checking for int" >&5
4245 echo $ECHO_N "checking for int... $ECHO_C" >&6
4246 if test "${ac_cv_type_int+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255 $ac_includes_default
4256 int
4257 main ()
4258 {
4259 if ((int *) 0)
4260   return 0;
4261 if (sizeof (int))
4262   return 0;
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.$ac_objext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4269   (eval $ac_compile) 2>conftest.er1
4270   ac_status=$?
4271   grep -v '^ *+' conftest.er1 >conftest.err
4272   rm -f conftest.er1
4273   cat conftest.err >&5
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); } &&
4276          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278   (eval $ac_try) 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; } &&
4282          { ac_try='test -s conftest.$ac_objext'
4283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284   (eval $ac_try) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; }; then
4288   ac_cv_type_int=yes
4289 else
4290   echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293 ac_cv_type_int=no
4294 fi
4295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4296 fi
4297 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4298 echo "${ECHO_T}$ac_cv_type_int" >&6
4299
4300 echo "$as_me:$LINENO: checking size of int" >&5
4301 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4302 if test "${ac_cv_sizeof_int+set}" = set; then
4303   echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305   if test "$ac_cv_type_int" = yes; then
4306   # The cast to unsigned long works around a bug in the HP C Compiler
4307   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4308   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4309   # This bug is HP SR number 8606223364.
4310   if test "$cross_compiling" = yes; then
4311   # Depending upon the size, compute the lo and hi bounds.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318 $ac_includes_default
4319 int
4320 main ()
4321 {
4322 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4323 test_array [0] = 0
4324
4325   ;
4326   return 0;
4327 }
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331   (eval $ac_compile) 2>conftest.er1
4332   ac_status=$?
4333   grep -v '^ *+' conftest.er1 >conftest.err
4334   rm -f conftest.er1
4335   cat conftest.err >&5
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); } &&
4338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340   (eval $ac_try) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; } &&
4344          { ac_try='test -s conftest.$ac_objext'
4345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346   (eval $ac_try) 2>&5
4347   ac_status=$?
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); }; }; then
4350   ac_lo=0 ac_mid=0
4351   while :; do
4352     cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358 $ac_includes_default
4359 int
4360 main ()
4361 {
4362 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4363 test_array [0] = 0
4364
4365   ;
4366   return 0;
4367 }
4368 _ACEOF
4369 rm -f conftest.$ac_objext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371   (eval $ac_compile) 2>conftest.er1
4372   ac_status=$?
4373   grep -v '^ *+' conftest.er1 >conftest.err
4374   rm -f conftest.er1
4375   cat conftest.err >&5
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } &&
4378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380   (eval $ac_try) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); }; } &&
4384          { ac_try='test -s conftest.$ac_objext'
4385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386   (eval $ac_try) 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); }; }; then
4390   ac_hi=$ac_mid; break
4391 else
4392   echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4394
4395 ac_lo=`expr $ac_mid + 1`
4396                     if test $ac_lo -le $ac_mid; then
4397                       ac_lo= ac_hi=
4398                       break
4399                     fi
4400                     ac_mid=`expr 2 '*' $ac_mid + 1`
4401 fi
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403   done
4404 else
4405   echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h.  */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h.  */
4414 $ac_includes_default
4415 int
4416 main ()
4417 {
4418 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4419 test_array [0] = 0
4420
4421   ;
4422   return 0;
4423 }
4424 _ACEOF
4425 rm -f conftest.$ac_objext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427   (eval $ac_compile) 2>conftest.er1
4428   ac_status=$?
4429   grep -v '^ *+' conftest.er1 >conftest.err
4430   rm -f conftest.er1
4431   cat conftest.err >&5
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); } &&
4434          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436   (eval $ac_try) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }; } &&
4440          { ac_try='test -s conftest.$ac_objext'
4441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442   (eval $ac_try) 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; }; then
4446   ac_hi=-1 ac_mid=-1
4447   while :; do
4448     cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 $ac_includes_default
4455 int
4456 main ()
4457 {
4458 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4459 test_array [0] = 0
4460
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467   (eval $ac_compile) 2>conftest.er1
4468   ac_status=$?
4469   grep -v '^ *+' conftest.er1 >conftest.err
4470   rm -f conftest.er1
4471   cat conftest.err >&5
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } &&
4474          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476   (eval $ac_try) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); }; } &&
4480          { ac_try='test -s conftest.$ac_objext'
4481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482   (eval $ac_try) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); }; }; then
4486   ac_lo=$ac_mid; break
4487 else
4488   echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 ac_hi=`expr '(' $ac_mid ')' - 1`
4492                        if test $ac_mid -le $ac_hi; then
4493                          ac_lo= ac_hi=
4494                          break
4495                        fi
4496                        ac_mid=`expr 2 '*' $ac_mid`
4497 fi
4498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4499   done
4500 else
4501   echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 ac_lo= ac_hi=
4505 fi
4506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4507 fi
4508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4509 # Binary search between lo and hi bounds.
4510 while test "x$ac_lo" != "x$ac_hi"; do
4511   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4512   cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h.  */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h.  */
4518 $ac_includes_default
4519 int
4520 main ()
4521 {
4522 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4523 test_array [0] = 0
4524
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531   (eval $ac_compile) 2>conftest.er1
4532   ac_status=$?
4533   grep -v '^ *+' conftest.er1 >conftest.err
4534   rm -f conftest.er1
4535   cat conftest.err >&5
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); } &&
4538          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540   (eval $ac_try) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }; } &&
4544          { ac_try='test -s conftest.$ac_objext'
4545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546   (eval $ac_try) 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; }; then
4550   ac_hi=$ac_mid
4551 else
4552   echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 ac_lo=`expr '(' $ac_mid ')' + 1`
4556 fi
4557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558 done
4559 case $ac_lo in
4560 ?*) ac_cv_sizeof_int=$ac_lo;;
4561 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4562 See \`config.log' for more details." >&5
4563 echo "$as_me: error: cannot compute sizeof (int), 77
4564 See \`config.log' for more details." >&2;}
4565    { (exit 1); exit 1; }; } ;;
4566 esac
4567 else
4568   if test "$cross_compiling" = yes; then
4569   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4570 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4571    { (exit 1); exit 1; }; }
4572 else
4573   cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579 $ac_includes_default
4580 long longval () { return (long) (sizeof (int)); }
4581 unsigned long ulongval () { return (long) (sizeof (int)); }
4582 #include <stdio.h>
4583 #include <stdlib.h>
4584 int
4585 main ()
4586 {
4587
4588   FILE *f = fopen ("conftest.val", "w");
4589   if (! f)
4590     exit (1);
4591   if (((long) (sizeof (int))) < 0)
4592     {
4593       long i = longval ();
4594       if (i != ((long) (sizeof (int))))
4595         exit (1);
4596       fprintf (f, "%ld\n", i);
4597     }
4598   else
4599     {
4600       unsigned long i = ulongval ();
4601       if (i != ((long) (sizeof (int))))
4602         exit (1);
4603       fprintf (f, "%lu\n", i);
4604     }
4605   exit (ferror (f) || fclose (f) != 0);
4606
4607   ;
4608   return 0;
4609 }
4610 _ACEOF
4611 rm -f conftest$ac_exeext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613   (eval $ac_link) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618   (eval $ac_try) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; }; then
4622   ac_cv_sizeof_int=`cat conftest.val`
4623 else
4624   echo "$as_me: program exited with status $ac_status" >&5
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4627
4628 ( exit $ac_status )
4629 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4630 See \`config.log' for more details." >&5
4631 echo "$as_me: error: cannot compute sizeof (int), 77
4632 See \`config.log' for more details." >&2;}
4633    { (exit 1); exit 1; }; }
4634 fi
4635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 fi
4638 rm -f conftest.val
4639 else
4640   ac_cv_sizeof_int=0
4641 fi
4642 fi
4643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4644 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4645 cat >>confdefs.h <<_ACEOF
4646 #define SIZEOF_INT $ac_cv_sizeof_int
4647 _ACEOF
4648
4649
4650 echo "$as_me:$LINENO: checking for long" >&5
4651 echo $ECHO_N "checking for long... $ECHO_C" >&6
4652 if test "${ac_cv_type_long+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h.  */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h.  */
4661 $ac_includes_default
4662 int
4663 main ()
4664 {
4665 if ((long *) 0)
4666   return 0;
4667 if (sizeof (long))
4668   return 0;
4669   ;
4670   return 0;
4671 }
4672 _ACEOF
4673 rm -f conftest.$ac_objext
4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675   (eval $ac_compile) 2>conftest.er1
4676   ac_status=$?
4677   grep -v '^ *+' conftest.er1 >conftest.err
4678   rm -f conftest.er1
4679   cat conftest.err >&5
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); } &&
4682          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684   (eval $ac_try) 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; } &&
4688          { ac_try='test -s conftest.$ac_objext'
4689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690   (eval $ac_try) 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); }; }; then
4694   ac_cv_type_long=yes
4695 else
4696   echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 ac_cv_type_long=no
4700 fi
4701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4704 echo "${ECHO_T}$ac_cv_type_long" >&6
4705
4706 echo "$as_me:$LINENO: checking size of long" >&5
4707 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4708 if test "${ac_cv_sizeof_long+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   if test "$ac_cv_type_long" = yes; then
4712   # The cast to unsigned long works around a bug in the HP C Compiler
4713   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4714   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4715   # This bug is HP SR number 8606223364.
4716   if test "$cross_compiling" = yes; then
4717   # Depending upon the size, compute the lo and hi bounds.
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h.  */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h.  */
4724 $ac_includes_default
4725 int
4726 main ()
4727 {
4728 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4729 test_array [0] = 0
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737   (eval $ac_compile) 2>conftest.er1
4738   ac_status=$?
4739   grep -v '^ *+' conftest.er1 >conftest.err
4740   rm -f conftest.er1
4741   cat conftest.err >&5
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); } &&
4744          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746   (eval $ac_try) 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); }; } &&
4750          { ac_try='test -s conftest.$ac_objext'
4751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752   (eval $ac_try) 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); }; }; then
4756   ac_lo=0 ac_mid=0
4757   while :; do
4758     cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764 $ac_includes_default
4765 int
4766 main ()
4767 {
4768 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4769 test_array [0] = 0
4770
4771   ;
4772   return 0;
4773 }
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777   (eval $ac_compile) 2>conftest.er1
4778   ac_status=$?
4779   grep -v '^ *+' conftest.er1 >conftest.err
4780   rm -f conftest.er1
4781   cat conftest.err >&5
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); } &&
4784          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; } &&
4790          { ac_try='test -s conftest.$ac_objext'
4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792   (eval $ac_try) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; }; then
4796   ac_hi=$ac_mid; break
4797 else
4798   echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801 ac_lo=`expr $ac_mid + 1`
4802                     if test $ac_lo -le $ac_mid; then
4803                       ac_lo= ac_hi=
4804                       break
4805                     fi
4806                     ac_mid=`expr 2 '*' $ac_mid + 1`
4807 fi
4808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4809   done
4810 else
4811   echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h.  */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h.  */
4820 $ac_includes_default
4821 int
4822 main ()
4823 {
4824 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4825 test_array [0] = 0
4826
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833   (eval $ac_compile) 2>conftest.er1
4834   ac_status=$?
4835   grep -v '^ *+' conftest.er1 >conftest.err
4836   rm -f conftest.er1
4837   cat conftest.err >&5
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); } &&
4840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842   (eval $ac_try) 2>&5
4843   ac_status=$?
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); }; } &&
4846          { ac_try='test -s conftest.$ac_objext'
4847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848   (eval $ac_try) 2>&5
4849   ac_status=$?
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); }; }; then
4852   ac_hi=-1 ac_mid=-1
4853   while :; do
4854     cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h.  */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h.  */
4860 $ac_includes_default
4861 int
4862 main ()
4863 {
4864 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4865 test_array [0] = 0
4866
4867   ;
4868   return 0;
4869 }
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873   (eval $ac_compile) 2>conftest.er1
4874   ac_status=$?
4875   grep -v '^ *+' conftest.er1 >conftest.err
4876   rm -f conftest.er1
4877   cat conftest.err >&5
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); } &&
4880          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882   (eval $ac_try) 2>&5
4883   ac_status=$?
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); }; } &&
4886          { ac_try='test -s conftest.$ac_objext'
4887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888   (eval $ac_try) 2>&5
4889   ac_status=$?
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); }; }; then
4892   ac_lo=$ac_mid; break
4893 else
4894   echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4896
4897 ac_hi=`expr '(' $ac_mid ')' - 1`
4898                        if test $ac_mid -le $ac_hi; then
4899                          ac_lo= ac_hi=
4900                          break
4901                        fi
4902                        ac_mid=`expr 2 '*' $ac_mid`
4903 fi
4904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4905   done
4906 else
4907   echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4909
4910 ac_lo= ac_hi=
4911 fi
4912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913 fi
4914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4915 # Binary search between lo and hi bounds.
4916 while test "x$ac_lo" != "x$ac_hi"; do
4917   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4918   cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h.  */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h.  */
4924 $ac_includes_default
4925 int
4926 main ()
4927 {
4928 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4929 test_array [0] = 0
4930
4931   ;
4932   return 0;
4933 }
4934 _ACEOF
4935 rm -f conftest.$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937   (eval $ac_compile) 2>conftest.er1
4938   ac_status=$?
4939   grep -v '^ *+' conftest.er1 >conftest.err
4940   rm -f conftest.er1
4941   cat conftest.err >&5
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); } &&
4944          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946   (eval $ac_try) 2>&5
4947   ac_status=$?
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); }; } &&
4950          { ac_try='test -s conftest.$ac_objext'
4951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952   (eval $ac_try) 2>&5
4953   ac_status=$?
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); }; }; then
4956   ac_hi=$ac_mid
4957 else
4958   echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 ac_lo=`expr '(' $ac_mid ')' + 1`
4962 fi
4963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964 done
4965 case $ac_lo in
4966 ?*) ac_cv_sizeof_long=$ac_lo;;
4967 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4968 See \`config.log' for more details." >&5
4969 echo "$as_me: error: cannot compute sizeof (long), 77
4970 See \`config.log' for more details." >&2;}
4971    { (exit 1); exit 1; }; } ;;
4972 esac
4973 else
4974   if test "$cross_compiling" = yes; then
4975   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4976 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4977    { (exit 1); exit 1; }; }
4978 else
4979   cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h.  */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h.  */
4985 $ac_includes_default
4986 long longval () { return (long) (sizeof (long)); }
4987 unsigned long ulongval () { return (long) (sizeof (long)); }
4988 #include <stdio.h>
4989 #include <stdlib.h>
4990 int
4991 main ()
4992 {
4993
4994   FILE *f = fopen ("conftest.val", "w");
4995   if (! f)
4996     exit (1);
4997   if (((long) (sizeof (long))) < 0)
4998     {
4999       long i = longval ();
5000       if (i != ((long) (sizeof (long))))
5001         exit (1);
5002       fprintf (f, "%ld\n", i);
5003     }
5004   else
5005     {
5006       unsigned long i = ulongval ();
5007       if (i != ((long) (sizeof (long))))
5008         exit (1);
5009       fprintf (f, "%lu\n", i);
5010     }
5011   exit (ferror (f) || fclose (f) != 0);
5012
5013   ;
5014   return 0;
5015 }
5016 _ACEOF
5017 rm -f conftest$ac_exeext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5019   (eval $ac_link) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   ac_cv_sizeof_long=`cat conftest.val`
5029 else
5030   echo "$as_me: program exited with status $ac_status" >&5
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5033
5034 ( exit $ac_status )
5035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5036 See \`config.log' for more details." >&5
5037 echo "$as_me: error: cannot compute sizeof (long), 77
5038 See \`config.log' for more details." >&2;}
5039    { (exit 1); exit 1; }; }
5040 fi
5041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5042 fi
5043 fi
5044 rm -f conftest.val
5045 else
5046   ac_cv_sizeof_long=0
5047 fi
5048 fi
5049 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5050 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5051 cat >>confdefs.h <<_ACEOF
5052 #define SIZEOF_LONG $ac_cv_sizeof_long
5053 _ACEOF
5054
5055
5056 echo "$as_me:$LINENO: checking for long long" >&5
5057 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5058 if test "${ac_cv_type_long_long+set}" = set; then
5059   echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
5061   cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h.  */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h.  */
5067 $ac_includes_default
5068 int
5069 main ()
5070 {
5071 if ((long long *) 0)
5072   return 0;
5073 if (sizeof (long long))
5074   return 0;
5075   ;
5076   return 0;
5077 }
5078 _ACEOF
5079 rm -f conftest.$ac_objext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081   (eval $ac_compile) 2>conftest.er1
5082   ac_status=$?
5083   grep -v '^ *+' conftest.er1 >conftest.err
5084   rm -f conftest.er1
5085   cat conftest.err >&5
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); } &&
5088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090   (eval $ac_try) 2>&5
5091   ac_status=$?
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); }; } &&
5094          { ac_try='test -s conftest.$ac_objext'
5095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096   (eval $ac_try) 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }; }; then
5100   ac_cv_type_long_long=yes
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 ac_cv_type_long_long=no
5106 fi
5107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 fi
5109 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5110 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5111 if test $ac_cv_type_long_long = yes; then
5112
5113 cat >>confdefs.h <<_ACEOF
5114 #define HAVE_LONG_LONG 1
5115 _ACEOF
5116
5117 echo "$as_me:$LINENO: checking for long long" >&5
5118 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5119 if test "${ac_cv_type_long_long+set}" = set; then
5120   echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122   cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 $ac_includes_default
5129 int
5130 main ()
5131 {
5132 if ((long long *) 0)
5133   return 0;
5134 if (sizeof (long long))
5135   return 0;
5136   ;
5137   return 0;
5138 }
5139 _ACEOF
5140 rm -f conftest.$ac_objext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5142   (eval $ac_compile) 2>conftest.er1
5143   ac_status=$?
5144   grep -v '^ *+' conftest.er1 >conftest.err
5145   rm -f conftest.er1
5146   cat conftest.err >&5
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); } &&
5149          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151   (eval $ac_try) 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }; } &&
5155          { ac_try='test -s conftest.$ac_objext'
5156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157   (eval $ac_try) 2>&5
5158   ac_status=$?
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); }; }; then
5161   ac_cv_type_long_long=yes
5162 else
5163   echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166 ac_cv_type_long_long=no
5167 fi
5168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5169 fi
5170 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5171 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5172
5173 echo "$as_me:$LINENO: checking size of long long" >&5
5174 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5175 if test "${ac_cv_sizeof_long_long+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   if test "$ac_cv_type_long_long" = yes; then
5179   # The cast to unsigned long works around a bug in the HP C Compiler
5180   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5181   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5182   # This bug is HP SR number 8606223364.
5183   if test "$cross_compiling" = yes; then
5184   # Depending upon the size, compute the lo and hi bounds.
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h.  */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h.  */
5191 $ac_includes_default
5192 int
5193 main ()
5194 {
5195 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5196 test_array [0] = 0
5197
5198   ;
5199   return 0;
5200 }
5201 _ACEOF
5202 rm -f conftest.$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204   (eval $ac_compile) 2>conftest.er1
5205   ac_status=$?
5206   grep -v '^ *+' conftest.er1 >conftest.err
5207   rm -f conftest.er1
5208   cat conftest.err >&5
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); } &&
5211          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213   (eval $ac_try) 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; } &&
5217          { ac_try='test -s conftest.$ac_objext'
5218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219   (eval $ac_try) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); }; }; then
5223   ac_lo=0 ac_mid=0
5224   while :; do
5225     cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h.  */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h.  */
5231 $ac_includes_default
5232 int
5233 main ()
5234 {
5235 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5236 test_array [0] = 0
5237
5238   ;
5239   return 0;
5240 }
5241 _ACEOF
5242 rm -f conftest.$ac_objext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244   (eval $ac_compile) 2>conftest.er1
5245   ac_status=$?
5246   grep -v '^ *+' conftest.er1 >conftest.err
5247   rm -f conftest.er1
5248   cat conftest.err >&5
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } &&
5251          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; } &&
5257          { ac_try='test -s conftest.$ac_objext'
5258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259   (eval $ac_try) 2>&5
5260   ac_status=$?
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); }; }; then
5263   ac_hi=$ac_mid; break
5264 else
5265   echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5267
5268 ac_lo=`expr $ac_mid + 1`
5269                     if test $ac_lo -le $ac_mid; then
5270                       ac_lo= ac_hi=
5271                       break
5272                     fi
5273                     ac_mid=`expr 2 '*' $ac_mid + 1`
5274 fi
5275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5276   done
5277 else
5278   echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h.  */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h.  */
5287 $ac_includes_default
5288 int
5289 main ()
5290 {
5291 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5292 test_array [0] = 0
5293
5294   ;
5295   return 0;
5296 }
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300   (eval $ac_compile) 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } &&
5307          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309   (eval $ac_try) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); }; } &&
5313          { ac_try='test -s conftest.$ac_objext'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   ac_hi=-1 ac_mid=-1
5320   while :; do
5321     cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h.  */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h.  */
5327 $ac_includes_default
5328 int
5329 main ()
5330 {
5331 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5332 test_array [0] = 0
5333
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340   (eval $ac_compile) 2>conftest.er1
5341   ac_status=$?
5342   grep -v '^ *+' conftest.er1 >conftest.err
5343   rm -f conftest.er1
5344   cat conftest.err >&5
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } &&
5347          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349   (eval $ac_try) 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); }; } &&
5353          { ac_try='test -s conftest.$ac_objext'
5354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355   (eval $ac_try) 2>&5
5356   ac_status=$?
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); }; }; then
5359   ac_lo=$ac_mid; break
5360 else
5361   echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5363
5364 ac_hi=`expr '(' $ac_mid ')' - 1`
5365                        if test $ac_mid -le $ac_hi; then
5366                          ac_lo= ac_hi=
5367                          break
5368                        fi
5369                        ac_mid=`expr 2 '*' $ac_mid`
5370 fi
5371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5372   done
5373 else
5374   echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5376
5377 ac_lo= ac_hi=
5378 fi
5379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5380 fi
5381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5382 # Binary search between lo and hi bounds.
5383 while test "x$ac_lo" != "x$ac_hi"; do
5384   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5385   cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h.  */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h.  */
5391 $ac_includes_default
5392 int
5393 main ()
5394 {
5395 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5396 test_array [0] = 0
5397
5398   ;
5399   return 0;
5400 }
5401 _ACEOF
5402 rm -f conftest.$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404   (eval $ac_compile) 2>conftest.er1
5405   ac_status=$?
5406   grep -v '^ *+' conftest.er1 >conftest.err
5407   rm -f conftest.er1
5408   cat conftest.err >&5
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); } &&
5411          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413   (eval $ac_try) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); }; } &&
5417          { ac_try='test -s conftest.$ac_objext'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   ac_hi=$ac_mid
5424 else
5425   echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_lo=`expr '(' $ac_mid ')' + 1`
5429 fi
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 done
5432 case $ac_lo in
5433 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5434 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5435 See \`config.log' for more details." >&5
5436 echo "$as_me: error: cannot compute sizeof (long long), 77
5437 See \`config.log' for more details." >&2;}
5438    { (exit 1); exit 1; }; } ;;
5439 esac
5440 else
5441   if test "$cross_compiling" = yes; then
5442   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5443 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5444    { (exit 1); exit 1; }; }
5445 else
5446   cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h.  */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h.  */
5452 $ac_includes_default
5453 long longval () { return (long) (sizeof (long long)); }
5454 unsigned long ulongval () { return (long) (sizeof (long long)); }
5455 #include <stdio.h>
5456 #include <stdlib.h>
5457 int
5458 main ()
5459 {
5460
5461   FILE *f = fopen ("conftest.val", "w");
5462   if (! f)
5463     exit (1);
5464   if (((long) (sizeof (long long))) < 0)
5465     {
5466       long i = longval ();
5467       if (i != ((long) (sizeof (long long))))
5468         exit (1);
5469       fprintf (f, "%ld\n", i);
5470     }
5471   else
5472     {
5473       unsigned long i = ulongval ();
5474       if (i != ((long) (sizeof (long long))))
5475         exit (1);
5476       fprintf (f, "%lu\n", i);
5477     }
5478   exit (ferror (f) || fclose (f) != 0);
5479
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest$ac_exeext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5486   (eval $ac_link) 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491   (eval $ac_try) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); }; }; then
5495   ac_cv_sizeof_long_long=`cat conftest.val`
5496 else
5497   echo "$as_me: program exited with status $ac_status" >&5
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 ( exit $ac_status )
5502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5503 See \`config.log' for more details." >&5
5504 echo "$as_me: error: cannot compute sizeof (long long), 77
5505 See \`config.log' for more details." >&2;}
5506    { (exit 1); exit 1; }; }
5507 fi
5508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5509 fi
5510 fi
5511 rm -f conftest.val
5512 else
5513   ac_cv_sizeof_long_long=0
5514 fi
5515 fi
5516 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5517 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5518 cat >>confdefs.h <<_ACEOF
5519 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5520 _ACEOF
5521
5522
5523 fi
5524
5525 echo "$as_me:$LINENO: checking for __int64" >&5
5526 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5527 if test "${ac_cv_type___int64+set}" = set; then
5528   echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530   cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h.  */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h.  */
5536 $ac_includes_default
5537 int
5538 main ()
5539 {
5540 if ((__int64 *) 0)
5541   return 0;
5542 if (sizeof (__int64))
5543   return 0;
5544   ;
5545   return 0;
5546 }
5547 _ACEOF
5548 rm -f conftest.$ac_objext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5550   (eval $ac_compile) 2>conftest.er1
5551   ac_status=$?
5552   grep -v '^ *+' conftest.er1 >conftest.err
5553   rm -f conftest.er1
5554   cat conftest.err >&5
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); } &&
5557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559   (eval $ac_try) 2>&5
5560   ac_status=$?
5561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); }; } &&
5563          { ac_try='test -s conftest.$ac_objext'
5564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565   (eval $ac_try) 2>&5
5566   ac_status=$?
5567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568   (exit $ac_status); }; }; then
5569   ac_cv_type___int64=yes
5570 else
5571   echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574 ac_cv_type___int64=no
5575 fi
5576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5577 fi
5578 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5579 echo "${ECHO_T}$ac_cv_type___int64" >&6
5580 if test $ac_cv_type___int64 = yes; then
5581
5582 cat >>confdefs.h <<_ACEOF
5583 #define HAVE___INT64 1
5584 _ACEOF
5585
5586 echo "$as_me:$LINENO: checking for __int64" >&5
5587 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5588 if test "${ac_cv_type___int64+set}" = set; then
5589   echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591   cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597 $ac_includes_default
5598 int
5599 main ()
5600 {
5601 if ((__int64 *) 0)
5602   return 0;
5603 if (sizeof (__int64))
5604   return 0;
5605   ;
5606   return 0;
5607 }
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611   (eval $ac_compile) 2>conftest.er1
5612   ac_status=$?
5613   grep -v '^ *+' conftest.er1 >conftest.err
5614   rm -f conftest.er1
5615   cat conftest.err >&5
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); } &&
5618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620   (eval $ac_try) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); }; } &&
5624          { ac_try='test -s conftest.$ac_objext'
5625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626   (eval $ac_try) 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }; }; then
5630   ac_cv_type___int64=yes
5631 else
5632   echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5634
5635 ac_cv_type___int64=no
5636 fi
5637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5638 fi
5639 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5640 echo "${ECHO_T}$ac_cv_type___int64" >&6
5641
5642 echo "$as_me:$LINENO: checking size of __int64" >&5
5643 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5644 if test "${ac_cv_sizeof___int64+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   if test "$ac_cv_type___int64" = yes; then
5648   # The cast to unsigned long works around a bug in the HP C Compiler
5649   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5650   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5651   # This bug is HP SR number 8606223364.
5652   if test "$cross_compiling" = yes; then
5653   # Depending upon the size, compute the lo and hi bounds.
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660 $ac_includes_default
5661 int
5662 main ()
5663 {
5664 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5665 test_array [0] = 0
5666
5667   ;
5668   return 0;
5669 }
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673   (eval $ac_compile) 2>conftest.er1
5674   ac_status=$?
5675   grep -v '^ *+' conftest.er1 >conftest.err
5676   rm -f conftest.er1
5677   cat conftest.err >&5
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); } &&
5680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682   (eval $ac_try) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); }; } &&
5686          { ac_try='test -s conftest.$ac_objext'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; }; then
5692   ac_lo=0 ac_mid=0
5693   while :; do
5694     cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h.  */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h.  */
5700 $ac_includes_default
5701 int
5702 main ()
5703 {
5704 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5705 test_array [0] = 0
5706
5707   ;
5708   return 0;
5709 }
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713   (eval $ac_compile) 2>conftest.er1
5714   ac_status=$?
5715   grep -v '^ *+' conftest.er1 >conftest.err
5716   rm -f conftest.er1
5717   cat conftest.err >&5
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); } &&
5720          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
5726          { ac_try='test -s conftest.$ac_objext'
5727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728   (eval $ac_try) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; }; then
5732   ac_hi=$ac_mid; break
5733 else
5734   echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 ac_lo=`expr $ac_mid + 1`
5738                     if test $ac_lo -le $ac_mid; then
5739                       ac_lo= ac_hi=
5740                       break
5741                     fi
5742                     ac_mid=`expr 2 '*' $ac_mid + 1`
5743 fi
5744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5745   done
5746 else
5747   echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
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"                   || test ! -s conftest.err'
5777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778   (eval $ac_try) 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; } &&
5782          { ac_try='test -s conftest.$ac_objext'
5783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784   (eval $ac_try) 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); }; }; then
5788   ac_hi=-1 ac_mid=-1
5789   while :; do
5790     cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h.  */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h.  */
5796 $ac_includes_default
5797 int
5798 main ()
5799 {
5800 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5801 test_array [0] = 0
5802
5803   ;
5804   return 0;
5805 }
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809   (eval $ac_compile) 2>conftest.er1
5810   ac_status=$?
5811   grep -v '^ *+' conftest.er1 >conftest.err
5812   rm -f conftest.er1
5813   cat conftest.err >&5
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); } &&
5816          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818   (eval $ac_try) 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; } &&
5822          { ac_try='test -s conftest.$ac_objext'
5823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824   (eval $ac_try) 2>&5
5825   ac_status=$?
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); }; }; then
5828   ac_lo=$ac_mid; break
5829 else
5830   echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 ac_hi=`expr '(' $ac_mid ')' - 1`
5834                        if test $ac_mid -le $ac_hi; then
5835                          ac_lo= ac_hi=
5836                          break
5837                        fi
5838                        ac_mid=`expr 2 '*' $ac_mid`
5839 fi
5840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5841   done
5842 else
5843   echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5845
5846 ac_lo= ac_hi=
5847 fi
5848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5849 fi
5850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5851 # Binary search between lo and hi bounds.
5852 while test "x$ac_lo" != "x$ac_hi"; do
5853   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5854   cat >conftest.$ac_ext <<_ACEOF
5855 /* confdefs.h.  */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h.  */
5860 $ac_includes_default
5861 int
5862 main ()
5863 {
5864 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5865 test_array [0] = 0
5866
5867   ;
5868   return 0;
5869 }
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5873   (eval $ac_compile) 2>conftest.er1
5874   ac_status=$?
5875   grep -v '^ *+' conftest.er1 >conftest.err
5876   rm -f conftest.er1
5877   cat conftest.err >&5
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); } &&
5880          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882   (eval $ac_try) 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; } &&
5886          { ac_try='test -s conftest.$ac_objext'
5887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888   (eval $ac_try) 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); }; }; then
5892   ac_hi=$ac_mid
5893 else
5894   echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 ac_lo=`expr '(' $ac_mid ')' + 1`
5898 fi
5899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5900 done
5901 case $ac_lo in
5902 ?*) ac_cv_sizeof___int64=$ac_lo;;
5903 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5904 See \`config.log' for more details." >&5
5905 echo "$as_me: error: cannot compute sizeof (__int64), 77
5906 See \`config.log' for more details." >&2;}
5907    { (exit 1); exit 1; }; } ;;
5908 esac
5909 else
5910   if test "$cross_compiling" = yes; then
5911   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5912 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5913    { (exit 1); exit 1; }; }
5914 else
5915   cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h.  */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h.  */
5921 $ac_includes_default
5922 long longval () { return (long) (sizeof (__int64)); }
5923 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5924 #include <stdio.h>
5925 #include <stdlib.h>
5926 int
5927 main ()
5928 {
5929
5930   FILE *f = fopen ("conftest.val", "w");
5931   if (! f)
5932     exit (1);
5933   if (((long) (sizeof (__int64))) < 0)
5934     {
5935       long i = longval ();
5936       if (i != ((long) (sizeof (__int64))))
5937         exit (1);
5938       fprintf (f, "%ld\n", i);
5939     }
5940   else
5941     {
5942       unsigned long i = ulongval ();
5943       if (i != ((long) (sizeof (__int64))))
5944         exit (1);
5945       fprintf (f, "%lu\n", i);
5946     }
5947   exit (ferror (f) || fclose (f) != 0);
5948
5949   ;
5950   return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest$ac_exeext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955   (eval $ac_link) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960   (eval $ac_try) 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); }; }; then
5964   ac_cv_sizeof___int64=`cat conftest.val`
5965 else
5966   echo "$as_me: program exited with status $ac_status" >&5
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5969
5970 ( exit $ac_status )
5971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5972 See \`config.log' for more details." >&5
5973 echo "$as_me: error: cannot compute sizeof (__int64), 77
5974 See \`config.log' for more details." >&2;}
5975    { (exit 1); exit 1; }; }
5976 fi
5977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5978 fi
5979 fi
5980 rm -f conftest.val
5981 else
5982   ac_cv_sizeof___int64=0
5983 fi
5984 fi
5985 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5986 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5987 cat >>confdefs.h <<_ACEOF
5988 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5989 _ACEOF
5990
5991
5992 fi
5993
5994
5995 # ---------------------
5996 # Warnings and checking
5997 # ---------------------
5998
5999 # Check $CC warning features (if it's GCC).
6000 # We want to use -pedantic, but we don't want warnings about
6001 # * 'long long'
6002 # * variadic macros
6003 # * overlong strings
6004 # So, we only use -pedantic if we can disable those warnings.
6005
6006 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6007 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6008 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6009   echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011   save_CFLAGS="$CFLAGS"
6012   CFLAGS="-Wno-long-long"
6013   cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h.  */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h.  */
6019
6020 _ACEOF
6021 rm -f conftest.$ac_objext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023   (eval $ac_compile) 2>conftest.er1
6024   ac_status=$?
6025   grep -v '^ *+' conftest.er1 >conftest.err
6026   rm -f conftest.er1
6027   cat conftest.err >&5
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); } &&
6030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032   (eval $ac_try) 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); }; } &&
6036          { ac_try='test -s conftest.$ac_objext'
6037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038   (eval $ac_try) 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); }; }; then
6042   ac_cv_prog_cc_w_no_long_long=yes
6043 else
6044   echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047 ac_cv_prog_cc_w_no_long_long=no
6048 fi
6049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6050   CFLAGS="$save_CFLAGS"
6051
6052 fi
6053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6054 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6055
6056 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6057 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6058 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   save_CFLAGS="$CFLAGS"
6062   CFLAGS="-Wno-variadic-macros"
6063   cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h.  */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h.  */
6069
6070 _ACEOF
6071 rm -f conftest.$ac_objext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073   (eval $ac_compile) 2>conftest.er1
6074   ac_status=$?
6075   grep -v '^ *+' conftest.er1 >conftest.err
6076   rm -f conftest.er1
6077   cat conftest.err >&5
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); } &&
6080          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082   (eval $ac_try) 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); }; } &&
6086          { ac_try='test -s conftest.$ac_objext'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; }; then
6092   ac_cv_prog_cc_w_no_variadic_macros=yes
6093 else
6094   echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6096
6097 ac_cv_prog_cc_w_no_variadic_macros=no
6098 fi
6099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6100   CFLAGS="$save_CFLAGS"
6101
6102 fi
6103 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6104 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6105
6106 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6107 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6108 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   save_CFLAGS="$CFLAGS"
6112   CFLAGS="-Wno-overlength-strings"
6113   cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h.  */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h.  */
6119
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123   (eval $ac_compile) 2>conftest.er1
6124   ac_status=$?
6125   grep -v '^ *+' conftest.er1 >conftest.err
6126   rm -f conftest.er1
6127   cat conftest.err >&5
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); } &&
6130          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132   (eval $ac_try) 2>&5
6133   ac_status=$?
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); }; } &&
6136          { ac_try='test -s conftest.$ac_objext'
6137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138   (eval $ac_try) 2>&5
6139   ac_status=$?
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); }; }; then
6142   ac_cv_prog_cc_w_no_overlength_strings=yes
6143 else
6144   echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 ac_cv_prog_cc_w_no_overlength_strings=no
6148 fi
6149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150   CFLAGS="$save_CFLAGS"
6151
6152 fi
6153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6154 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6155
6156 strict1_warn=
6157 if test $ac_cv_prog_cc_w_no_long_long = yes \
6158    && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6159    && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6160   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6161 fi
6162
6163 # Add -Wold-style-definition if it's accepted
6164 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6165 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6166 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   save_CFLAGS="$CFLAGS"
6170   CFLAGS="-Wold-style-definition"
6171   cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h.  */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h.  */
6177
6178 _ACEOF
6179 rm -f conftest.$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181   (eval $ac_compile) 2>conftest.er1
6182   ac_status=$?
6183   grep -v '^ *+' conftest.er1 >conftest.err
6184   rm -f conftest.er1
6185   cat conftest.err >&5
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); } &&
6188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190   (eval $ac_try) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; } &&
6194          { ac_try='test -s conftest.$ac_objext'
6195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196   (eval $ac_try) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; }; then
6200   ac_cv_prog_cc_w_old_style_definition=yes
6201 else
6202   echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6204
6205 ac_cv_prog_cc_w_old_style_definition=no
6206 fi
6207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6208   CFLAGS="$save_CFLAGS"
6209
6210 fi
6211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6212 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6213 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6214   strict1_warn="${strict1_warn} -Wold-style-definition"
6215 fi
6216
6217 # Add -Wmissing-format-attribute if it's accepted
6218 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6219 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6220 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   save_CFLAGS="$CFLAGS"
6224   CFLAGS="-Wmissing-format-attribute"
6225   cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h.  */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h.  */
6231
6232 _ACEOF
6233 rm -f conftest.$ac_objext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235   (eval $ac_compile) 2>conftest.er1
6236   ac_status=$?
6237   grep -v '^ *+' conftest.er1 >conftest.err
6238   rm -f conftest.er1
6239   cat conftest.err >&5
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); } &&
6242          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6248          { ac_try='test -s conftest.$ac_objext'
6249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250   (eval $ac_try) 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); }; }; then
6254   ac_cv_prog_cc_w_missing_format_attribute=yes
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 ac_cv_prog_cc_w_missing_format_attribute=no
6260 fi
6261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6262   CFLAGS="$save_CFLAGS"
6263
6264 fi
6265 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6266 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6267 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6268   strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6269 fi
6270
6271 # Enable -Werror, period.
6272 # Check whether --enable-werror_always or --disable-werror_always was given.
6273 if test "${enable_werror_always+set}" = set; then
6274   enableval="$enable_werror_always"
6275
6276 else
6277   enable_werror_always=no
6278 fi;
6279 if test x${enable_werror_always} = xyes ; then
6280   strict1_warn="${strict1_warn} -Werror"
6281   WERROR=-Werror
6282 fi
6283
6284
6285
6286 # Get C++ compatibility warning flag, if supported.
6287 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6288 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6289 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   save_CFLAGS="$CFLAGS"
6293   CFLAGS="-Wc++-compat"
6294   cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h.  */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h.  */
6300
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304   (eval $ac_compile) 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } &&
6311          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313   (eval $ac_try) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; } &&
6317          { ac_try='test -s conftest.$ac_objext'
6318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319   (eval $ac_try) 2>&5
6320   ac_status=$?
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); }; }; then
6323   ac_cv_prog_cc_w_cxx_compat=yes
6324 else
6325   echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6327
6328 ac_cv_prog_cc_w_cxx_compat=no
6329 fi
6330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6331   CFLAGS="$save_CFLAGS"
6332
6333 fi
6334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6335 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6336 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6337   cxx_compat_warn="-Wc++-compat"
6338 fi
6339
6340
6341
6342 # If the native compiler is GCC, we can enable warnings even in stage1.
6343 # That's useful for people building cross-compilers, or just running a
6344 # quick `make'.
6345 warn_cflags=
6346 if test "x$GCC" = "xyes"; then
6347   warn_cflags='$(GCC_WARN_CFLAGS)'
6348 fi
6349
6350
6351 # Enable -Werror in bootstrap stage2 and later.
6352 is_release=
6353 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6354   is_release=yes
6355 fi
6356 # Check whether --enable-werror or --disable-werror was given.
6357 if test "${enable_werror+set}" = set; then
6358   enableval="$enable_werror"
6359
6360 else
6361   if test x$is_release = x ; then
6362   # Default to "yes" on development branches.
6363   enable_werror=yes
6364 else
6365   # Default to "no" on release branches.
6366   enable_werror=no
6367 fi
6368 fi;
6369 if test x$enable_werror = xyes ; then
6370   WERROR=-Werror
6371 fi
6372
6373
6374 # Enable expensive internal checks
6375 # Check whether --enable-checking or --disable-checking was given.
6376 if test "${enable_checking+set}" = set; then
6377   enableval="$enable_checking"
6378   ac_checking_flags="${enableval}"
6379 else
6380
6381 # Determine the default checks.
6382 if test x$is_release = x ; then
6383   ac_checking_flags=yes
6384 else
6385   ac_checking_flags=release
6386 fi
6387 fi;
6388 ac_assert_checking=1
6389 ac_checking=
6390 ac_fold_checking=
6391 ac_gc_checking=
6392 ac_gc_always_collect=
6393 ac_rtl_checking=
6394 ac_rtlflag_checking=
6395 ac_runtime_checking=1
6396 ac_tree_checking=
6397 ac_valgrind_checking=
6398 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6399 for check in $ac_checking_flags
6400 do
6401         case $check in
6402         # these set all the flags to specific states
6403         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6404                         ac_fold_checking= ; ac_gc_checking=1 ;
6405                         ac_gc_always_collect= ; ac_rtl_checking= ;
6406                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6407                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6408         no|none)        ac_assert_checking= ; ac_checking= ;
6409                         ac_fold_checking= ; ac_gc_checking= ;
6410                         ac_gc_always_collect= ; ac_rtl_checking= ;
6411                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6412                         ac_tree_checking= ; ac_valgrind_checking= ;;
6413         all)            ac_assert_checking=1 ; ac_checking=1 ;
6414                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6415                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6416                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6417                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6418         release)        ac_assert_checking=1 ; ac_checking= ;
6419                         ac_fold_checking= ; ac_gc_checking= ;
6420                         ac_gc_always_collect= ; ac_rtl_checking= ;
6421                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6422                         ac_tree_checking= ; ac_valgrind_checking= ;;
6423         # these enable particular checks
6424         assert)         ac_assert_checking=1 ;;
6425         fold)           ac_fold_checking=1 ;;
6426         gc)             ac_gc_checking=1 ;;
6427         gcac)           ac_gc_always_collect=1 ;;
6428         misc)           ac_checking=1 ;;
6429         rtl)            ac_rtl_checking=1 ;;
6430         rtlflag)        ac_rtlflag_checking=1 ;;
6431         runtime)        ac_runtime_checking=1 ;;
6432         tree)           ac_tree_checking=1 ;;
6433         valgrind)       ac_valgrind_checking=1 ;;
6434         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6435 echo "$as_me: error: unknown check category $check" >&2;}
6436    { (exit 1); exit 1; }; } ;;
6437         esac
6438 done
6439 IFS="$ac_save_IFS"
6440
6441 nocommon_flag=""
6442 if test x$ac_checking != x ; then
6443
6444 cat >>confdefs.h <<\_ACEOF
6445 #define ENABLE_CHECKING 1
6446 _ACEOF
6447
6448   nocommon_flag=-fno-common
6449 fi
6450
6451 if test x$ac_assert_checking != x ; then
6452
6453 cat >>confdefs.h <<\_ACEOF
6454 #define ENABLE_ASSERT_CHECKING 1
6455 _ACEOF
6456
6457 fi
6458
6459 if test x$ac_runtime_checking != x ; then
6460
6461 cat >>confdefs.h <<\_ACEOF
6462 #define ENABLE_RUNTIME_CHECKING 1
6463 _ACEOF
6464
6465 fi
6466 if test x$ac_tree_checking != x ; then
6467
6468 cat >>confdefs.h <<\_ACEOF
6469 #define ENABLE_TREE_CHECKING 1
6470 _ACEOF
6471
6472   TREEBROWSER=tree-browser.o
6473 fi
6474
6475 if test x$ac_rtl_checking != x ; then
6476
6477 cat >>confdefs.h <<\_ACEOF
6478 #define ENABLE_RTL_CHECKING 1
6479 _ACEOF
6480
6481 fi
6482 if test x$ac_rtlflag_checking != x ; then
6483
6484 cat >>confdefs.h <<\_ACEOF
6485 #define ENABLE_RTL_FLAG_CHECKING 1
6486 _ACEOF
6487
6488 fi
6489 if test x$ac_gc_checking != x ; then
6490
6491 cat >>confdefs.h <<\_ACEOF
6492 #define ENABLE_GC_CHECKING 1
6493 _ACEOF
6494
6495 fi
6496 if test x$ac_gc_always_collect != x ; then
6497
6498 cat >>confdefs.h <<\_ACEOF
6499 #define ENABLE_GC_ALWAYS_COLLECT 1
6500 _ACEOF
6501
6502 fi
6503 if test x$ac_fold_checking != x ; then
6504
6505 cat >>confdefs.h <<\_ACEOF
6506 #define ENABLE_FOLD_CHECKING 1
6507 _ACEOF
6508
6509 fi
6510 valgrind_path_defines=
6511 valgrind_command=
6512
6513 if test "${ac_cv_header_valgrind_h+set}" = set; then
6514   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6515 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6516 if test "${ac_cv_header_valgrind_h+set}" = set; then
6517   echo $ECHO_N "(cached) $ECHO_C" >&6
6518 fi
6519 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6520 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6521 else
6522   # Is the header compilable?
6523 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6524 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h.  */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h.  */
6531 $ac_includes_default
6532 #include <valgrind.h>
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536   (eval $ac_compile) 2>conftest.er1
6537   ac_status=$?
6538   grep -v '^ *+' conftest.er1 >conftest.err
6539   rm -f conftest.er1
6540   cat conftest.err >&5
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); } &&
6543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545   (eval $ac_try) 2>&5
6546   ac_status=$?
6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); }; } &&
6549          { ac_try='test -s conftest.$ac_objext'
6550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551   (eval $ac_try) 2>&5
6552   ac_status=$?
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); }; }; then
6555   ac_header_compiler=yes
6556 else
6557   echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6559
6560 ac_header_compiler=no
6561 fi
6562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6564 echo "${ECHO_T}$ac_header_compiler" >&6
6565
6566 # Is the header present?
6567 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6568 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h.  */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h.  */
6575 #include <valgrind.h>
6576 _ACEOF
6577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6578   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6579   ac_status=$?
6580   grep -v '^ *+' conftest.er1 >conftest.err
6581   rm -f conftest.er1
6582   cat conftest.err >&5
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); } >/dev/null; then
6585   if test -s conftest.err; then
6586     ac_cpp_err=$ac_c_preproc_warn_flag
6587     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6588   else
6589     ac_cpp_err=
6590   fi
6591 else
6592   ac_cpp_err=yes
6593 fi
6594 if test -z "$ac_cpp_err"; then
6595   ac_header_preproc=yes
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600   ac_header_preproc=no
6601 fi
6602 rm -f conftest.err conftest.$ac_ext
6603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6604 echo "${ECHO_T}$ac_header_preproc" >&6
6605
6606 # So?  What about this header?
6607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6608   yes:no: )
6609     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6610 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6611     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6612 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6613     ac_header_preproc=yes
6614     ;;
6615   no:yes:* )
6616     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6617 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6618     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6619 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6620     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6621 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6622     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6623 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6624     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6625 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6626     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6627 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6628     (
6629       cat <<\_ASBOX
6630 ## ------------------------------------------ ##
6631 ## Report this to the AC_PACKAGE_NAME lists.  ##
6632 ## ------------------------------------------ ##
6633 _ASBOX
6634     ) |
6635       sed "s/^/$as_me: WARNING:     /" >&2
6636     ;;
6637 esac
6638 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6639 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6640 if test "${ac_cv_header_valgrind_h+set}" = set; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643   ac_cv_header_valgrind_h=$ac_header_preproc
6644 fi
6645 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6646 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6647
6648 fi
6649 if test $ac_cv_header_valgrind_h = yes; then
6650   have_valgrind_h=yes
6651 else
6652   have_valgrind_h=no
6653 fi
6654
6655
6656
6657 if test x$ac_valgrind_checking != x ; then
6658   # It is certainly possible that there's valgrind but no valgrind.h.
6659   # GCC relies on making annotations so we must have both.
6660   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6661 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6662   cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h.  */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h.  */
6668 #include <valgrind/memcheck.h>
6669 #ifndef VALGRIND_DISCARD
6670 #error VALGRIND_DISCARD not defined
6671 #endif
6672 _ACEOF
6673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6675   ac_status=$?
6676   grep -v '^ *+' conftest.er1 >conftest.err
6677   rm -f conftest.er1
6678   cat conftest.err >&5
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); } >/dev/null; then
6681   if test -s conftest.err; then
6682     ac_cpp_err=$ac_c_preproc_warn_flag
6683     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6684   else
6685     ac_cpp_err=
6686   fi
6687 else
6688   ac_cpp_err=yes
6689 fi
6690 if test -z "$ac_cpp_err"; then
6691   gcc_cv_header_valgrind_memcheck_h=yes
6692 else
6693   echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6695
6696   gcc_cv_header_valgrind_memcheck_h=no
6697 fi
6698 rm -f conftest.err conftest.$ac_ext
6699   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6700 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6701   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6702 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6703   cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h.  */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h.  */
6709 #include <memcheck.h>
6710 #ifndef VALGRIND_DISCARD
6711 #error VALGRIND_DISCARD not defined
6712 #endif
6713 _ACEOF
6714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6716   ac_status=$?
6717   grep -v '^ *+' conftest.er1 >conftest.err
6718   rm -f conftest.er1
6719   cat conftest.err >&5
6720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721   (exit $ac_status); } >/dev/null; then
6722   if test -s conftest.err; then
6723     ac_cpp_err=$ac_c_preproc_warn_flag
6724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6725   else
6726     ac_cpp_err=
6727   fi
6728 else
6729   ac_cpp_err=yes
6730 fi
6731 if test -z "$ac_cpp_err"; then
6732   gcc_cv_header_memcheck_h=yes
6733 else
6734   echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6736
6737   gcc_cv_header_memcheck_h=no
6738 fi
6739 rm -f conftest.err conftest.$ac_ext
6740   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6741 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6742
6743 # Prepare PATH_SEPARATOR.
6744 # The user is always right.
6745 if test "${PATH_SEPARATOR+set}" != set; then
6746   echo "#! /bin/sh" >conf$$.sh
6747   echo  "exit 0"   >>conf$$.sh
6748   chmod +x conf$$.sh
6749   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6750     PATH_SEPARATOR=';'
6751   else
6752     PATH_SEPARATOR=:
6753   fi
6754   rm -f conf$$.sh
6755 fi
6756
6757 # Find out how to test for executable files. Don't use a zero-byte file,
6758 # as systems may use methods other than mode bits to determine executability.
6759 cat >conf$$.file <<_ASEOF
6760 #! /bin/sh
6761 exit 0
6762 _ASEOF
6763 chmod +x conf$$.file
6764 if test -x conf$$.file >/dev/null 2>&1; then
6765   ac_executable_p="test -x"
6766 else
6767   ac_executable_p="test -f"
6768 fi
6769 rm -f conf$$.file
6770
6771 # Extract the first word of "valgrind", so it can be a program name with args.
6772 set dummy valgrind; ac_word=$2
6773 echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6775 if test "${ac_cv_path_valgrind_path+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   case "$valgrind_path" in
6779   [\\/]* | ?:[\\/]*)
6780     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6781     ;;
6782   *)
6783     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6784     for ac_dir in $PATH; do
6785       IFS="$ac_save_IFS"
6786       test -z "$ac_dir" && ac_dir=.
6787       for ac_exec_ext in '' $ac_executable_extensions; do
6788         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6789           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6790             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6791             break 2
6792           fi
6793         fi
6794       done
6795     done
6796     IFS="$ac_save_IFS"
6797     ;;
6798 esac
6799 fi
6800 valgrind_path="$ac_cv_path_valgrind_path"
6801 if test -n "$valgrind_path"; then
6802   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6803 echo "${ECHO_T}$valgrind_path" >&6
6804 else
6805   echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6
6807 fi
6808
6809   if test "x$valgrind_path" = "x" \
6810     || (test $have_valgrind_h = no \
6811         && test $gcc_cv_header_memcheck_h = no \
6812         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6813         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6814 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6815    { (exit 1); exit 1; }; }
6816   fi
6817   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6818   valgrind_command="$valgrind_path -q"
6819
6820 cat >>confdefs.h <<\_ACEOF
6821 #define ENABLE_VALGRIND_CHECKING 1
6822 _ACEOF
6823
6824   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6825
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_VALGRIND_MEMCHECK_H 1
6828 _ACEOF
6829
6830   fi
6831   if test $gcc_cv_header_memcheck_h = yes; then
6832
6833 cat >>confdefs.h <<\_ACEOF
6834 #define HAVE_MEMCHECK_H 1
6835 _ACEOF
6836
6837   fi
6838 fi
6839
6840
6841
6842 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6843 if test "${enable_mapped_location+set}" = set; then
6844   enableval="$enable_mapped_location"
6845
6846 else
6847   enable_mapped_location=no
6848 fi;
6849
6850 if test "$enable_mapped_location" = yes ; then
6851
6852 cat >>confdefs.h <<\_ACEOF
6853 #define USE_MAPPED_LOCATION 1
6854 _ACEOF
6855
6856 fi
6857
6858 # Enable code coverage collection
6859 # Check whether --enable-coverage or --disable-coverage was given.
6860 if test "${enable_coverage+set}" = set; then
6861   enableval="$enable_coverage"
6862   case "${enableval}" in
6863   yes|noopt)
6864     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6865     ;;
6866   opt)
6867     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6868     ;;
6869   no)
6870     # a.k.a. --disable-coverage
6871     coverage_flags=""
6872     ;;
6873   *)
6874     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6875 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6876    { (exit 1); exit 1; }; }
6877     ;;
6878 esac
6879 else
6880   coverage_flags=""
6881 fi;
6882
6883
6884 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6885 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6886   enableval="$enable_gather_detailed_mem_stats"
6887
6888 else
6889   enable_gather_detailed_mem_stats=no
6890 fi;
6891 if test x$enable_gather_detailed_mem_stats = xyes ; then
6892
6893 cat >>confdefs.h <<\_ACEOF
6894 #define GATHER_STATISTICS 1
6895 _ACEOF
6896
6897 fi
6898
6899 # -------------------------------
6900 # Miscenalleous configure options
6901 # -------------------------------
6902
6903 # With stabs
6904
6905 # Check whether --with-stabs or --without-stabs was given.
6906 if test "${with_stabs+set}" = set; then
6907   withval="$with_stabs"
6908   stabs="$with_stabs"
6909 else
6910   stabs=no
6911 fi;
6912
6913 # Determine whether or not multilibs are enabled.
6914 # Check whether --enable-multilib or --disable-multilib was given.
6915 if test "${enable_multilib+set}" = set; then
6916   enableval="$enable_multilib"
6917
6918 else
6919   enable_multilib=yes
6920 fi;
6921
6922
6923 # Enable __cxa_atexit for C++.
6924 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6925 if test "${enable___cxa_atexit+set}" = set; then
6926   enableval="$enable___cxa_atexit"
6927
6928 fi;
6929
6930 # Enable C extension for decimal float if target supports it.
6931 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6932 if test "${enable_decimal_float+set}" = set; then
6933   enableval="$enable_decimal_float"
6934
6935   if test x$enablevar = xyes ; then
6936     case $target in
6937     powerpc*-*-linux* | i?86*-*-linux*)
6938       enable_decimal_float=yes
6939       ;;
6940     *)
6941       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6942 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6943       enable_decimal_float=no
6944       ;;
6945     esac
6946   fi
6947
6948 else
6949   enable_decimal_float=no
6950 fi;
6951
6952
6953
6954 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
6955
6956 cat >>confdefs.h <<_ACEOF
6957 #define ENABLE_DECIMAL_FLOAT $dfp
6958 _ACEOF
6959
6960
6961 # Enable threads
6962 # Pass with no value to take the default
6963 # Pass with a value to specify a thread package
6964 # Check whether --enable-threads or --disable-threads was given.
6965 if test "${enable_threads+set}" = set; then
6966   enableval="$enable_threads"
6967
6968 else
6969   enable_threads=''
6970 fi;
6971
6972 # Check whether --enable-tls or --disable-tls was given.
6973 if test "${enable_tls+set}" = set; then
6974   enableval="$enable_tls"
6975
6976   case $enable_tls in
6977     yes | no) ;;
6978     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
6979 Valid choices are 'yes' and 'no'." >&5
6980 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
6981 Valid choices are 'yes' and 'no'." >&2;}
6982    { (exit 1); exit 1; }; } ;;
6983   esac
6984
6985 else
6986   enable_tls=''
6987 fi;
6988
6989 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6990 if test "${enable_objc_gc+set}" = set; then
6991   enableval="$enable_objc_gc"
6992   if test x$enable_objc_gc = xno; then
6993         objc_boehm_gc=''
6994 else
6995         objc_boehm_gc=1
6996 fi
6997 else
6998   objc_boehm_gc=''
6999 fi;
7000
7001
7002 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7003 if test "${with_dwarf2+set}" = set; then
7004   withval="$with_dwarf2"
7005   dwarf2="$with_dwarf2"
7006 else
7007   dwarf2=no
7008 fi;
7009
7010 # Check whether --enable-shared or --disable-shared was given.
7011 if test "${enable_shared+set}" = set; then
7012   enableval="$enable_shared"
7013
7014   case $enable_shared in
7015   yes | no) ;;
7016   *)
7017     enable_shared=no
7018     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7019     for pkg in $enableval; do
7020       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7021         enable_shared=yes
7022       fi
7023     done
7024     IFS="$ac_save_ifs"
7025     ;;
7026   esac
7027
7028 else
7029   enable_shared=yes
7030 fi;
7031
7032
7033
7034 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7035 if test "${with_build_sysroot+set}" = set; then
7036   withval="$with_build_sysroot"
7037
7038 fi;
7039
7040
7041 # Check whether --with-sysroot or --without-sysroot was given.
7042 if test "${with_sysroot+set}" = set; then
7043   withval="$with_sysroot"
7044
7045  case ${with_sysroot} in
7046  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7047  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7048  esac
7049
7050  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7051  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7052
7053  if test "x$exec_prefix" = xNONE; then
7054   if test "x$prefix" = xNONE; then
7055    test_prefix=/usr/local
7056   else
7057    test_prefix=$prefix
7058   fi
7059  else
7060   test_prefix=$exec_prefix
7061  fi
7062  case ${TARGET_SYSTEM_ROOT} in
7063  "${test_prefix}"|"${test_prefix}/"*|\
7064  '${exec_prefix}'|'${exec_prefix}/'*)
7065    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7066    TARGET_SYSTEM_ROOT_DEFINE="$t"
7067    ;;
7068  esac
7069
7070 else
7071
7072  TARGET_SYSTEM_ROOT=
7073  TARGET_SYSTEM_ROOT_DEFINE=
7074  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7075
7076 fi;
7077
7078
7079
7080
7081 # Build with intermodule optimisations
7082 # Check whether --enable-intermodule or --disable-intermodule was given.
7083 if test "${enable_intermodule+set}" = set; then
7084   enableval="$enable_intermodule"
7085   case ${enable_intermodule} in
7086   yes) onestep="-onestep";;
7087   *) onestep="";;
7088 esac
7089 else
7090   onestep=""
7091 fi;
7092
7093
7094 # Sanity check enable_languages in case someone does not run the toplevel
7095 # configure # script.
7096 # Check whether --enable-languages or --disable-languages was given.
7097 if test "${enable_languages+set}" = set; then
7098   enableval="$enable_languages"
7099   case ,${enable_languages}, in
7100        ,,|,yes,)
7101                 # go safe -- we cannot be much sure without the toplevel
7102                 # configure's
7103                 # analysis of which target libs are present and usable
7104                 enable_languages=c
7105                 ;;
7106          *,all,*)
7107                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7108 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7109    { (exit 1); exit 1; }; }
7110                 ;;
7111         *,c,*)
7112                 ;;
7113         *)
7114                 enable_languages=c,${enable_languages}
7115                 ;;
7116 esac
7117 else
7118   enable_languages=c
7119 fi;
7120
7121 subdirs=
7122 for lang in ${srcdir}/*/config-lang.in
7123 do
7124         case $lang in
7125         # The odd quoting in the next line works around
7126         # an apparent bug in bash 1.12 on linux.
7127         ${srcdir}/[*]/config-lang.in) ;;
7128         *)
7129           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
7130           if test "x$lang_alias" = x
7131           then
7132                 echo "$lang doesn't set \$language." 1>&2
7133                 exit 1
7134           fi
7135           case ",$enable_languages," in
7136           *,$lang_alias,*)
7137             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7138           esac
7139           ;;
7140         esac
7141 done
7142
7143
7144 # -------------------------
7145 # Checks for other programs
7146 # -------------------------
7147
7148 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7149 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7150 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7151 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7152   echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154   cat >conftest.make <<\_ACEOF
7155 all:
7156         @echo 'ac_maketemp="$(MAKE)"'
7157 _ACEOF
7158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7159 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7160 if test -n "$ac_maketemp"; then
7161   eval ac_cv_prog_make_${ac_make}_set=yes
7162 else
7163   eval ac_cv_prog_make_${ac_make}_set=no
7164 fi
7165 rm -f conftest.make
7166 fi
7167 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7168   echo "$as_me:$LINENO: result: yes" >&5
7169 echo "${ECHO_T}yes" >&6
7170   SET_MAKE=
7171 else
7172   echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6
7174   SET_MAKE="MAKE=${MAKE-make}"
7175 fi
7176
7177
7178 # Find some useful tools
7179 for ac_prog in gawk mawk nawk awk
7180 do
7181   # Extract the first word of "$ac_prog", so it can be a program name with args.
7182 set dummy $ac_prog; ac_word=$2
7183 echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7185 if test "${ac_cv_prog_AWK+set}" = set; then
7186   echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188   if test -n "$AWK"; then
7189   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196   for ac_exec_ext in '' $ac_executable_extensions; do
7197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198     ac_cv_prog_AWK="$ac_prog"
7199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203 done
7204
7205 fi
7206 fi
7207 AWK=$ac_cv_prog_AWK
7208 if test -n "$AWK"; then
7209   echo "$as_me:$LINENO: result: $AWK" >&5
7210 echo "${ECHO_T}$AWK" >&6
7211 else
7212   echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7214 fi
7215
7216   test -n "$AWK" && break
7217 done
7218
7219 # We need awk to create options.c and options.h.
7220 # Bail out if it's missing.
7221 case ${AWK} in
7222   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7223 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7224    { (exit 1); exit 1; }; } ;;
7225 esac
7226
7227 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7228 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7229 if test "${gcc_cv_prog_LN_S+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   rm -f conftestdata_t
7233 echo >conftestdata_f
7234 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7235 then
7236   gcc_cv_prog_LN_S="ln -s"
7237 else
7238   if ln conftestdata_f conftestdata_t 2>/dev/null
7239   then
7240     gcc_cv_prog_LN_S=ln
7241   else
7242     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7243     then
7244       gcc_cv_prog_LN_S="cp -p"
7245     else
7246       gcc_cv_prog_LN_S=cp
7247     fi
7248   fi
7249 fi
7250 rm -f conftestdata_f conftestdata_t
7251
7252 fi
7253 LN_S="$gcc_cv_prog_LN_S"
7254 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7255   echo "$as_me:$LINENO: result: yes" >&5
7256 echo "${ECHO_T}yes" >&6
7257 else
7258   if test "$gcc_cv_prog_LN_S" = "ln"; then
7259     echo "$as_me:$LINENO: result: no, using ln" >&5
7260 echo "${ECHO_T}no, using ln" >&6
7261   else
7262     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7263 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7264   fi
7265 fi
7266
7267 echo "$as_me:$LINENO: checking whether ln works" >&5
7268 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7269 if test "${acx_cv_prog_LN+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   rm -f conftestdata_t
7273 echo >conftestdata_f
7274 if ln conftestdata_f conftestdata_t 2>/dev/null
7275 then
7276   acx_cv_prog_LN=ln
7277 else
7278   acx_cv_prog_LN=no
7279 fi
7280 rm -f conftestdata_f conftestdata_t
7281
7282 fi
7283 if test $acx_cv_prog_LN = no; then
7284   LN="$LN_S"
7285   echo "$as_me:$LINENO: result: no, using $LN" >&5
7286 echo "${ECHO_T}no, using $LN" >&6
7287 else
7288   LN="$acx_cv_prog_LN"
7289   echo "$as_me:$LINENO: result: yes" >&5
7290 echo "${ECHO_T}yes" >&6
7291 fi
7292
7293 if test -n "$ac_tool_prefix"; then
7294   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7296 echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7298 if test "${ac_cv_prog_RANLIB+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   if test -n "$RANLIB"; then
7302   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309   for ac_exec_ext in '' $ac_executable_extensions; do
7310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316 done
7317
7318 fi
7319 fi
7320 RANLIB=$ac_cv_prog_RANLIB
7321 if test -n "$RANLIB"; then
7322   echo "$as_me:$LINENO: result: $RANLIB" >&5
7323 echo "${ECHO_T}$RANLIB" >&6
7324 else
7325   echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6
7327 fi
7328
7329 fi
7330 if test -z "$ac_cv_prog_RANLIB"; then
7331   ac_ct_RANLIB=$RANLIB
7332   # Extract the first word of "ranlib", so it can be a program name with args.
7333 set dummy ranlib; ac_word=$2
7334 echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   if test -n "$ac_ct_RANLIB"; then
7340   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347   for ac_exec_ext in '' $ac_executable_extensions; do
7348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349     ac_cv_prog_ac_ct_RANLIB="ranlib"
7350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351     break 2
7352   fi
7353 done
7354 done
7355
7356   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7357 fi
7358 fi
7359 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7360 if test -n "$ac_ct_RANLIB"; then
7361   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7362 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7363 else
7364   echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366 fi
7367
7368   RANLIB=$ac_ct_RANLIB
7369 else
7370   RANLIB="$ac_cv_prog_RANLIB"
7371 fi
7372
7373 case "${host}" in
7374 *-*-darwin*)
7375   # By default, the Darwin ranlib will not treat common symbols as
7376   # definitions when  building the archive table of contents.  Other
7377   # ranlibs do that; pass an option to the Darwin ranlib that makes
7378   # it behave similarly.
7379   ranlib_flags="-c"
7380   ;;
7381 *)
7382   ranlib_flags=""
7383 esac
7384
7385
7386 # Find a good install program.  We prefer a C program (faster),
7387 # so one script is as good as another.  But avoid the broken or
7388 # incompatible versions:
7389 # SysV /etc/install, /usr/sbin/install
7390 # SunOS /usr/etc/install
7391 # IRIX /sbin/install
7392 # AIX /bin/install
7393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7395 # ./install, which can be erroneously created by make from ./install.sh.
7396 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7397 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7398 if test -z "$INSTALL"; then
7399 if test "${ac_cv_path_install+set}" = set; then
7400   echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7403   for ac_dir in $PATH; do
7404     # Account for people who put trailing slashes in PATH elements.
7405     case "$ac_dir/" in
7406     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7407     *)
7408       # OSF1 and SCO ODT 3.0 have their own names for install.
7409       for ac_prog in ginstall scoinst install; do
7410         if test -f $ac_dir/$ac_prog; then
7411           if test $ac_prog = install &&
7412             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7413             # AIX install.  It has an incompatible calling convention.
7414             # OSF/1 installbsd also uses dspmsg, but is usable.
7415             :
7416           else
7417             ac_cv_path_install="$ac_dir/$ac_prog -c"
7418             break 2
7419           fi
7420         fi
7421       done
7422       ;;
7423     esac
7424   done
7425   IFS="$ac_save_IFS"
7426
7427 fi
7428   if test "${ac_cv_path_install+set}" = set; then
7429     INSTALL="$ac_cv_path_install"
7430   else
7431     # As a last resort, use the slow shell script.  We don't cache a
7432     # path for INSTALL within a source directory, because that will
7433     # break other packages using the cache if that directory is
7434     # removed, or if the path is relative.
7435     INSTALL="$ac_install_sh"
7436   fi
7437 fi
7438 echo "$as_me:$LINENO: result: $INSTALL" >&5
7439 echo "${ECHO_T}$INSTALL" >&6
7440
7441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7442 # It thinks the first close brace ends the variable substitution.
7443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7444
7445 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7446
7447
7448 # See if cmp has --ignore-initial.
7449 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7450 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7451 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454    echo abfoo >t1
7455   echo cdfoo >t2
7456   gcc_cv_prog_cmp_skip=slowcompare
7457   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7458     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7459       :
7460     else
7461       gcc_cv_prog_cmp_skip=gnucompare
7462     fi
7463   fi
7464   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7465     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7466       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7467         :
7468       else
7469         gcc_cv_prog_cmp_skip=fastcompare
7470       fi
7471     fi
7472   fi
7473   rm t1 t2
7474
7475 fi
7476 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7477 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7478 make_compare_target=$gcc_cv_prog_cmp_skip
7479
7480
7481
7482 # See if we have the mktemp command.
7483 # Extract the first word of "mktemp", so it can be a program name with args.
7484 set dummy mktemp; ac_word=$2
7485 echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7487 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7488   echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490   if test -n "$have_mktemp_command"; then
7491   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496   IFS=$as_save_IFS
7497   test -z "$as_dir" && as_dir=.
7498   for ac_exec_ext in '' $ac_executable_extensions; do
7499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500     ac_cv_prog_have_mktemp_command="yes"
7501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502     break 2
7503   fi
7504 done
7505 done
7506
7507   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7508 fi
7509 fi
7510 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7511 if test -n "$have_mktemp_command"; then
7512   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7513 echo "${ECHO_T}$have_mktemp_command" >&6
7514 else
7515   echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6
7517 fi
7518
7519
7520 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7521
7522 # See if makeinfo has been installed and is modern enough
7523 # that we can use it.
7524
7525 ac_executable_extensions="$build_exeext"
7526
7527 # Extract the first word of "makeinfo", so it can be a program name with args.
7528 set dummy makeinfo; ac_word=$2
7529 echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7531 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   if test -n "$MAKEINFO"; then
7535   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540   IFS=$as_save_IFS
7541   test -z "$as_dir" && as_dir=.
7542   for ac_exec_ext in '' $ac_executable_extensions; do
7543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544     ac_cv_prog_MAKEINFO="makeinfo"
7545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549 done
7550
7551 fi
7552 fi
7553 MAKEINFO=$ac_cv_prog_MAKEINFO
7554 if test -n "$MAKEINFO"; then
7555   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7556 echo "${ECHO_T}$MAKEINFO" >&6
7557 else
7558   echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6
7560 fi
7561
7562 if test -n "$MAKEINFO"; then
7563   # Found it, now check the version.
7564   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7565 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7566 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7567   echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569     ac_prog_version=`$MAKEINFO --version 2>&1 |
7570                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7571   echo "configure:7571: version of makeinfo is $ac_prog_version" >&5
7572   case $ac_prog_version in
7573     '')     gcc_cv_prog_makeinfo_modern=no;;
7574     4.[4-9]*)
7575             gcc_cv_prog_makeinfo_modern=yes;;
7576     *)      gcc_cv_prog_makeinfo_modern=no;;
7577   esac
7578
7579 fi
7580 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7581 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7582 else
7583   gcc_cv_prog_makeinfo_modern=no
7584 fi
7585
7586 if test $gcc_cv_prog_makeinfo_modern = no; then
7587   MAKEINFO="$MISSING makeinfo"
7588   { echo "$as_me:$LINENO: WARNING:
7589 *** Makeinfo is missing or too old.
7590 *** Info documentation will not be built." >&5
7591 echo "$as_me: WARNING:
7592 *** Makeinfo is missing or too old.
7593 *** Info documentation will not be built." >&2;}
7594   BUILD_INFO=
7595 else
7596   BUILD_INFO=info
7597 fi
7598
7599
7600 # Is pod2man recent enough to regenerate manpages?
7601 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7602 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7603 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7604   echo "$as_me:$LINENO: result: yes" >&5
7605 echo "${ECHO_T}yes" >&6
7606   GENERATED_MANPAGES=generated-manpages
7607 else
7608   echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6
7610   GENERATED_MANPAGES=
7611 fi
7612
7613
7614 # How about lex?
7615 for ac_prog in flex
7616 do
7617   # Extract the first word of "$ac_prog", so it can be a program name with args.
7618 set dummy $ac_prog; ac_word=$2
7619 echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7621 if test "${ac_cv_prog_FLEX+set}" = set; then
7622   echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624   if test -n "$FLEX"; then
7625   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630   IFS=$as_save_IFS
7631   test -z "$as_dir" && as_dir=.
7632   for ac_exec_ext in '' $ac_executable_extensions; do
7633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634     ac_cv_prog_FLEX="$ac_prog"
7635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636     break 2
7637   fi
7638 done
7639 done
7640
7641 fi
7642 fi
7643 FLEX=$ac_cv_prog_FLEX
7644 if test -n "$FLEX"; then
7645   echo "$as_me:$LINENO: result: $FLEX" >&5
7646 echo "${ECHO_T}$FLEX" >&6
7647 else
7648   echo "$as_me:$LINENO: result: no" >&5
7649 echo "${ECHO_T}no" >&6
7650 fi
7651
7652   test -n "$FLEX" && break
7653 done
7654 test -n "$FLEX" || FLEX="$MISSING flex"
7655
7656
7657 # Bison?
7658 for ac_prog in bison
7659 do
7660   # Extract the first word of "$ac_prog", so it can be a program name with args.
7661 set dummy $ac_prog; ac_word=$2
7662 echo "$as_me:$LINENO: checking for $ac_word" >&5
7663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7664 if test "${ac_cv_prog_BISON+set}" = set; then
7665   echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667   if test -n "$BISON"; then
7668   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673   IFS=$as_save_IFS
7674   test -z "$as_dir" && as_dir=.
7675   for ac_exec_ext in '' $ac_executable_extensions; do
7676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677     ac_cv_prog_BISON="$ac_prog"
7678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7679     break 2
7680   fi
7681 done
7682 done
7683
7684 fi
7685 fi
7686 BISON=$ac_cv_prog_BISON
7687 if test -n "$BISON"; then
7688   echo "$as_me:$LINENO: result: $BISON" >&5
7689 echo "${ECHO_T}$BISON" >&6
7690 else
7691   echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6
7693 fi
7694
7695   test -n "$BISON" && break
7696 done
7697 test -n "$BISON" || BISON="$MISSING bison"
7698
7699
7700 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7701 # check for build == host before using them.
7702
7703 # NM
7704 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7705   && test -d ../binutils ; then
7706   NM='$(objdir)/../binutils/nm-new'
7707 else
7708   # Extract the first word of "nm", so it can be a program name with args.
7709 set dummy nm; ac_word=$2
7710 echo "$as_me:$LINENO: checking for $ac_word" >&5
7711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7712 if test "${ac_cv_prog_NM+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   if test -n "$NM"; then
7716   ac_cv_prog_NM="$NM" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723   for ac_exec_ext in '' $ac_executable_extensions; do
7724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725     ac_cv_prog_NM="nm"
7726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730 done
7731
7732   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7733 fi
7734 fi
7735 NM=$ac_cv_prog_NM
7736 if test -n "$NM"; then
7737   echo "$as_me:$LINENO: result: $NM" >&5
7738 echo "${ECHO_T}$NM" >&6
7739 else
7740   echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6
7742 fi
7743
7744 fi
7745
7746 # AR
7747 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7748   && test -d ../binutils ; then
7749   AR='$(objdir)/../binutils/ar'
7750 else
7751   # Extract the first word of "ar", so it can be a program name with args.
7752 set dummy ar; ac_word=$2
7753 echo "$as_me:$LINENO: checking for $ac_word" >&5
7754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7755 if test "${ac_cv_prog_AR+set}" = set; then
7756   echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758   if test -n "$AR"; then
7759   ac_cv_prog_AR="$AR" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764   IFS=$as_save_IFS
7765   test -z "$as_dir" && as_dir=.
7766   for ac_exec_ext in '' $ac_executable_extensions; do
7767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768     ac_cv_prog_AR="ar"
7769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770     break 2
7771   fi
7772 done
7773 done
7774
7775   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7776 fi
7777 fi
7778 AR=$ac_cv_prog_AR
7779 if test -n "$AR"; then
7780   echo "$as_me:$LINENO: result: $AR" >&5
7781 echo "${ECHO_T}$AR" >&6
7782 else
7783   echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6
7785 fi
7786
7787 fi
7788
7789
7790 # --------------------
7791 # Checks for C headers
7792 # --------------------
7793
7794 echo "$as_me:$LINENO: checking for GNU C library" >&5
7795 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7796 if test "${gcc_cv_glibc+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h.  */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h.  */
7805 #include <features.h>
7806 int
7807 main ()
7808 {
7809
7810 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7811 #error Not a GNU C library system
7812 #endif
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 rm -f conftest.$ac_objext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7819   (eval $ac_compile) 2>conftest.er1
7820   ac_status=$?
7821   grep -v '^ *+' conftest.er1 >conftest.err
7822   rm -f conftest.er1
7823   cat conftest.err >&5
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); } &&
7826          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828   (eval $ac_try) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; } &&
7832          { ac_try='test -s conftest.$ac_objext'
7833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834   (eval $ac_try) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); }; }; then
7838   gcc_cv_glibc=yes
7839 else
7840   echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7842
7843 gcc_cv_glibc=no
7844 fi
7845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7846 fi
7847
7848 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7849 echo "${ECHO_T}$gcc_cv_glibc" >&6
7850 if test $gcc_cv_glibc = yes; then
7851
7852 cat >>confdefs.h <<\_ACEOF
7853 #define _GNU_SOURCE 1
7854 _ACEOF
7855
7856 fi
7857
7858 # Need to reject headers which give warnings, so that the -Werror bootstrap
7859 # works later. *sigh*  This needs to come before all header checks.
7860
7861 ac_c_preproc_warn_flag=yes
7862
7863 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7864 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7865 if test "${ac_cv_header_stdc+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874 #include <stdlib.h>
7875 #include <stdarg.h>
7876 #include <string.h>
7877 #include <float.h>
7878
7879 int
7880 main ()
7881 {
7882
7883   ;
7884   return 0;
7885 }
7886 _ACEOF
7887 rm -f conftest.$ac_objext
7888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7889   (eval $ac_compile) 2>conftest.er1
7890   ac_status=$?
7891   grep -v '^ *+' conftest.er1 >conftest.err
7892   rm -f conftest.er1
7893   cat conftest.err >&5
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); } &&
7896          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; } &&
7902          { ac_try='test -s conftest.$ac_objext'
7903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904   (eval $ac_try) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; }; then
7908   ac_cv_header_stdc=yes
7909 else
7910   echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 ac_cv_header_stdc=no
7914 fi
7915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7916
7917 if test $ac_cv_header_stdc = yes; then
7918   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7919   cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7925 #include <string.h>
7926
7927 _ACEOF
7928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7929   $EGREP "memchr" >/dev/null 2>&1; then
7930   :
7931 else
7932   ac_cv_header_stdc=no
7933 fi
7934 rm -f conftest*
7935
7936 fi
7937
7938 if test $ac_cv_header_stdc = yes; then
7939   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7940   cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h.  */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h.  */
7946 #include <stdlib.h>
7947
7948 _ACEOF
7949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7950   $EGREP "free" >/dev/null 2>&1; then
7951   :
7952 else
7953   ac_cv_header_stdc=no
7954 fi
7955 rm -f conftest*
7956
7957 fi
7958
7959 if test $ac_cv_header_stdc = yes; then
7960   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7961   if test "$cross_compiling" = yes; then
7962   :
7963 else
7964   cat >conftest.$ac_ext <<_ACEOF
7965 /* confdefs.h.  */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h.  */
7970 #include <ctype.h>
7971 #if ((' ' & 0x0FF) == 0x020)
7972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7974 #else
7975 # define ISLOWER(c) \
7976                    (('a' <= (c) && (c) <= 'i') \
7977                      || ('j' <= (c) && (c) <= 'r') \
7978                      || ('s' <= (c) && (c) <= 'z'))
7979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7980 #endif
7981
7982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7983 int
7984 main ()
7985 {
7986   int i;
7987   for (i = 0; i < 256; i++)
7988     if (XOR (islower (i), ISLOWER (i))
7989         || toupper (i) != TOUPPER (i))
7990       exit(2);
7991   exit (0);
7992 }
7993 _ACEOF
7994 rm -f conftest$ac_exeext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7996   (eval $ac_link) 2>&5
7997   ac_status=$?
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001   (eval $ac_try) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); }; }; then
8005   :
8006 else
8007   echo "$as_me: program exited with status $ac_status" >&5
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8010
8011 ( exit $ac_status )
8012 ac_cv_header_stdc=no
8013 fi
8014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8015 fi
8016 fi
8017 fi
8018 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8019 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8020 if test $ac_cv_header_stdc = yes; then
8021
8022 cat >>confdefs.h <<\_ACEOF
8023 #define STDC_HEADERS 1
8024 _ACEOF
8025
8026 fi
8027
8028 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8029 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8030 if test "${ac_cv_header_time+set}" = set; then
8031   echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033   cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h.  */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h.  */
8039 #include <sys/types.h>
8040 #include <sys/time.h>
8041 #include <time.h>
8042
8043 int
8044 main ()
8045 {
8046 if ((struct tm *) 0)
8047 return 0;
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054   (eval $ac_compile) 2>conftest.er1
8055   ac_status=$?
8056   grep -v '^ *+' conftest.er1 >conftest.err
8057   rm -f conftest.er1
8058   cat conftest.err >&5
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } &&
8061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063   (eval $ac_try) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; } &&
8067          { ac_try='test -s conftest.$ac_objext'
8068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069   (eval $ac_try) 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); }; }; then
8073   ac_cv_header_time=yes
8074 else
8075   echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078 ac_cv_header_time=no
8079 fi
8080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8081 fi
8082 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8083 echo "${ECHO_T}$ac_cv_header_time" >&6
8084 if test $ac_cv_header_time = yes; then
8085
8086 cat >>confdefs.h <<\_ACEOF
8087 #define TIME_WITH_SYS_TIME 1
8088 _ACEOF
8089
8090 fi
8091
8092 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8093 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8094 if test "${gcc_cv_header_string+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103 #include <string.h>
8104 #include <strings.h>
8105 int
8106 main ()
8107 {
8108
8109   ;
8110   return 0;
8111 }
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115   (eval $ac_compile) 2>conftest.er1
8116   ac_status=$?
8117   grep -v '^ *+' conftest.er1 >conftest.err
8118   rm -f conftest.er1
8119   cat conftest.err >&5
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; } &&
8128          { ac_try='test -s conftest.$ac_objext'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   gcc_cv_header_string=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 gcc_cv_header_string=no
8140 fi
8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8142 fi
8143 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8144 echo "${ECHO_T}$gcc_cv_header_string" >&6
8145 if test $gcc_cv_header_string = yes; then
8146
8147 cat >>confdefs.h <<\_ACEOF
8148 #define STRING_WITH_STRINGS 1
8149 _ACEOF
8150
8151 fi
8152
8153 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8154 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8155 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8156   echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158   cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h.  */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h.  */
8164 #include <sys/types.h>
8165 #include <sys/wait.h>
8166 #ifndef WEXITSTATUS
8167 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8168 #endif
8169 #ifndef WIFEXITED
8170 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8171 #endif
8172
8173 int
8174 main ()
8175 {
8176   int s;
8177   wait (&s);
8178   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8179   ;
8180   return 0;
8181 }
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185   (eval $ac_compile) 2>conftest.er1
8186   ac_status=$?
8187   grep -v '^ *+' conftest.er1 >conftest.err
8188   rm -f conftest.er1
8189   cat conftest.err >&5
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); } &&
8192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194   (eval $ac_try) 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; } &&
8198          { ac_try='test -s conftest.$ac_objext'
8199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200   (eval $ac_try) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); }; }; then
8204   ac_cv_header_sys_wait_h=yes
8205 else
8206   echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209 ac_cv_header_sys_wait_h=no
8210 fi
8211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8212 fi
8213 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8214 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8215 if test $ac_cv_header_sys_wait_h = yes; then
8216
8217 cat >>confdefs.h <<\_ACEOF
8218 #define HAVE_SYS_WAIT_H 1
8219 _ACEOF
8220
8221 fi
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8246                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8247                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8248                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8249 do
8250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8251 echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254   echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256   cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h.  */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h.  */
8262 #include <$ac_header>
8263 _ACEOF
8264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8266   ac_status=$?
8267   grep -v '^ *+' conftest.er1 >conftest.err
8268   rm -f conftest.er1
8269   cat conftest.err >&5
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); } >/dev/null; then
8272   if test -s conftest.err; then
8273     ac_cpp_err=$ac_c_preproc_warn_flag
8274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8275   else
8276     ac_cpp_err=
8277   fi
8278 else
8279   ac_cpp_err=yes
8280 fi
8281 if test -z "$ac_cpp_err"; then
8282   eval "$as_ac_Header=yes"
8283 else
8284   echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8286
8287   eval "$as_ac_Header=no"
8288 fi
8289 rm -f conftest.err conftest.$ac_ext
8290 fi
8291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8294   cat >>confdefs.h <<_ACEOF
8295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8296 _ACEOF
8297
8298 fi
8299 done
8300
8301
8302 # Check for thread headers.
8303 echo "$as_me:$LINENO: checking for thread.h" >&5
8304 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8305 if test "${ac_cv_header_thread_h+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314 #include <thread.h>
8315 _ACEOF
8316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8318   ac_status=$?
8319   grep -v '^ *+' conftest.er1 >conftest.err
8320   rm -f conftest.er1
8321   cat conftest.err >&5
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); } >/dev/null; then
8324   if test -s conftest.err; then
8325     ac_cpp_err=$ac_c_preproc_warn_flag
8326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8327   else
8328     ac_cpp_err=
8329   fi
8330 else
8331   ac_cpp_err=yes
8332 fi
8333 if test -z "$ac_cpp_err"; then
8334   ac_cv_header_thread_h=yes
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339   ac_cv_header_thread_h=no
8340 fi
8341 rm -f conftest.err conftest.$ac_ext
8342 fi
8343 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8344 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8345 if test $ac_cv_header_thread_h = yes; then
8346   have_thread_h=yes
8347 else
8348   have_thread_h=
8349 fi
8350
8351 echo "$as_me:$LINENO: checking for pthread.h" >&5
8352 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8353 if test "${ac_cv_header_pthread_h+set}" = set; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356   cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362 #include <pthread.h>
8363 _ACEOF
8364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8366   ac_status=$?
8367   grep -v '^ *+' conftest.er1 >conftest.err
8368   rm -f conftest.er1
8369   cat conftest.err >&5
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } >/dev/null; then
8372   if test -s conftest.err; then
8373     ac_cpp_err=$ac_c_preproc_warn_flag
8374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8375   else
8376     ac_cpp_err=
8377   fi
8378 else
8379   ac_cpp_err=yes
8380 fi
8381 if test -z "$ac_cpp_err"; then
8382   ac_cv_header_pthread_h=yes
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387   ac_cv_header_pthread_h=no
8388 fi
8389 rm -f conftest.err conftest.$ac_ext
8390 fi
8391 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8392 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8393 if test $ac_cv_header_pthread_h = yes; then
8394   have_pthread_h=yes
8395 else
8396   have_pthread_h=
8397 fi
8398
8399
8400 # These tests can't be done till we know if we have limits.h.
8401 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8402 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8403 if test "${gcc_cv_decl_char_bit+set}" = set; then
8404   echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406   cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412 #ifdef HAVE_LIMITS_H
8413 #include <limits.h>
8414 #endif
8415 #ifdef CHAR_BIT
8416 found
8417 #endif
8418 _ACEOF
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420   $EGREP "found" >/dev/null 2>&1; then
8421   gcc_cv_decl_char_bit=yes
8422 else
8423   gcc_cv_decl_char_bit=no
8424 fi
8425 rm -f conftest*
8426
8427
8428 fi
8429 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8430 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8431 if test $gcc_cv_decl_char_bit = no; then
8432   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8433 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8434 if test "${gcc_cv_c_nbby+set}" = set; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437   i=8
8438  gcc_cv_c_nbby=
8439  while test $i -lt 65; do
8440    cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446
8447 int
8448 main ()
8449 {
8450 switch(0) {
8451   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8452   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8453   ; }
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460   (eval $ac_compile) 2>conftest.er1
8461   ac_status=$?
8462   grep -v '^ *+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } &&
8467          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469   (eval $ac_try) 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); }; } &&
8473          { ac_try='test -s conftest.$ac_objext'
8474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475   (eval $ac_try) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }; }; then
8479   gcc_cv_c_nbby=$i; break
8480 else
8481   echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 fi
8485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8486    i=`expr $i + 1`
8487  done
8488  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8489
8490 fi
8491 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8492 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8493 if test $gcc_cv_c_nbby = failed; then
8494   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8495 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8496    { (exit 1); exit 1; }; }
8497 else
8498
8499 cat >>confdefs.h <<_ACEOF
8500 #define CHAR_BIT $gcc_cv_c_nbby
8501 _ACEOF
8502
8503 fi
8504 fi
8505 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8506 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8507 if test "${ac_cv_c_bigendian+set}" = set; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   # See if sys/param.h defines the BYTE_ORDER macro.
8511 cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h.  */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h.  */
8517 #include <sys/types.h>
8518 #include <sys/param.h>
8519
8520 int
8521 main ()
8522 {
8523 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8524  bogus endian macros
8525 #endif
8526
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8533   (eval $ac_compile) 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } &&
8540          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; } &&
8546          { ac_try='test -s conftest.$ac_objext'
8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548   (eval $ac_try) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; }; then
8552   # It does; now see whether it defined to BIG_ENDIAN or not.
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559 #include <sys/types.h>
8560 #include <sys/param.h>
8561
8562 int
8563 main ()
8564 {
8565 #if BYTE_ORDER != BIG_ENDIAN
8566  not big endian
8567 #endif
8568
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8575   (eval $ac_compile) 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } &&
8582          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584   (eval $ac_try) 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; } &&
8588          { ac_try='test -s conftest.$ac_objext'
8589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590   (eval $ac_try) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; }; then
8594   ac_cv_c_bigendian=yes
8595 else
8596   echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_cv_c_bigendian=no
8600 fi
8601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 # It does not; compile a test program.
8607 if test "$cross_compiling" = yes; then
8608   # try to guess the endianness by grepping values into an object file
8609   ac_cv_c_bigendian=unknown
8610   cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h.  */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h.  */
8616 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8617 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8618 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8619 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8620 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8621 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8622 int
8623 main ()
8624 {
8625  _ascii (); _ebcdic ();
8626   ;
8627   return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632   (eval $ac_compile) 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } &&
8639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641   (eval $ac_try) 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; } &&
8645          { ac_try='test -s conftest.$ac_objext'
8646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647   (eval $ac_try) 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); }; }; then
8651   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8652   ac_cv_c_bigendian=yes
8653 fi
8654 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8655   if test "$ac_cv_c_bigendian" = unknown; then
8656     ac_cv_c_bigendian=no
8657   else
8658     # finding both strings is unlikely to happen, but who knows?
8659     ac_cv_c_bigendian=unknown
8660   fi
8661 fi
8662 else
8663   echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 fi
8667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8668 else
8669   cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h.  */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h.  */
8675 int
8676 main ()
8677 {
8678   /* Are we little or big endian?  From Harbison&Steele.  */
8679   union
8680   {
8681     long l;
8682     char c[sizeof (long)];
8683   } u;
8684   u.l = 1;
8685   exit (u.c[sizeof (long) - 1] == 1);
8686 }
8687 _ACEOF
8688 rm -f conftest$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690   (eval $ac_link) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695   (eval $ac_try) 2>&5
8696   ac_status=$?
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); }; }; then
8699   ac_cv_c_bigendian=no
8700 else
8701   echo "$as_me: program exited with status $ac_status" >&5
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ( exit $ac_status )
8706 ac_cv_c_bigendian=yes
8707 fi
8708 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8709 fi
8710 fi
8711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8712 fi
8713 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8714 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8715 case $ac_cv_c_bigendian in
8716   yes)
8717
8718 cat >>confdefs.h <<\_ACEOF
8719 #define WORDS_BIGENDIAN 1
8720 _ACEOF
8721  ;;
8722   no)
8723      ;;
8724   *)
8725     { { echo "$as_me:$LINENO: error: unknown endianness
8726 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8727 echo "$as_me: error: unknown endianness
8728 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8729    { (exit 1); exit 1; }; } ;;
8730 esac
8731
8732
8733 # --------
8734 # UNSORTED
8735 # --------
8736
8737 # Stage specific cflags for build.
8738 stage1_cflags=
8739 case $build in
8740 vax-*-*)
8741   if test x$GCC = xyes
8742   then
8743     stage1_cflags="-Wa,-J"
8744   else
8745     stage1_cflags="-J"
8746   fi
8747   ;;
8748 powerpc-*-darwin*)
8749   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8750   # sources; use -no-cpp-precomp to get to GNU cpp.
8751   # Apple's GCC has bugs in designated initializer handling, so disable
8752   # that too.
8753   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8754   ;;
8755 esac
8756
8757
8758 # These libraries may be used by collect2.
8759 # We may need a special search path to get them linked.
8760 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8761 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8762 if test "${gcc_cv_collect2_libs+set}" = set; then
8763   echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765   save_LIBS="$LIBS"
8766 for libs in '' -lld -lmld \
8767                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8768                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8769 do
8770         LIBS="$libs"
8771         cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h.  */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h.  */
8777
8778 /* Override any gcc2 internal prototype to avoid an error.  */
8779 #ifdef __cplusplus
8780 extern "C"
8781 #endif
8782 /* We use char because int might match the return type of a gcc2
8783    builtin and then its argument prototype would still apply.  */
8784 char ldopen ();
8785 int
8786 main ()
8787 {
8788 ldopen ();
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext conftest$ac_exeext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795   (eval $ac_link) 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } &&
8802          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804   (eval $ac_try) 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; } &&
8808          { ac_try='test -s conftest$ac_exeext'
8809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810   (eval $ac_try) 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); }; }; then
8814   gcc_cv_collect2_libs="$libs"; break
8815 else
8816   echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8818
8819 fi
8820 rm -f conftest.err conftest.$ac_objext \
8821       conftest$ac_exeext conftest.$ac_ext
8822 done
8823 LIBS="$save_LIBS"
8824 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8825 fi
8826 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8827 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8828 case $gcc_cv_collect2_libs in
8829         "none required")        ;;
8830         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8831 esac
8832
8833
8834 # When building Ada code on Alpha, we need exc_resume which is usually in
8835 # -lexc.  So test for it.
8836 save_LIBS="$LIBS"
8837 LIBS=
8838 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8839 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8840 if test "${ac_cv_search_exc_resume+set}" = set; then
8841   echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843   ac_func_search_save_LIBS=$LIBS
8844 ac_cv_search_exc_resume=no
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h.  */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h.  */
8851
8852 /* Override any gcc2 internal prototype to avoid an error.  */
8853 #ifdef __cplusplus
8854 extern "C"
8855 #endif
8856 /* We use char because int might match the return type of a gcc2
8857    builtin and then its argument prototype would still apply.  */
8858 char exc_resume ();
8859 int
8860 main ()
8861 {
8862 exc_resume ();
8863   ;
8864   return 0;
8865 }
8866 _ACEOF
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869   (eval $ac_link) 2>conftest.er1
8870   ac_status=$?
8871   grep -v '^ *+' conftest.er1 >conftest.err
8872   rm -f conftest.er1
8873   cat conftest.err >&5
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); } &&
8876          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; } &&
8882          { ac_try='test -s conftest$ac_exeext'
8883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884   (eval $ac_try) 2>&5
8885   ac_status=$?
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); }; }; then
8888   ac_cv_search_exc_resume="none required"
8889 else
8890   echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8892
8893 fi
8894 rm -f conftest.err conftest.$ac_objext \
8895       conftest$ac_exeext conftest.$ac_ext
8896 if test "$ac_cv_search_exc_resume" = no; then
8897   for ac_lib in exc; do
8898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8899     cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905
8906 /* Override any gcc2 internal prototype to avoid an error.  */
8907 #ifdef __cplusplus
8908 extern "C"
8909 #endif
8910 /* We use char because int might match the return type of a gcc2
8911    builtin and then its argument prototype would still apply.  */
8912 char exc_resume ();
8913 int
8914 main ()
8915 {
8916 exc_resume ();
8917   ;
8918   return 0;
8919 }
8920 _ACEOF
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923   (eval $ac_link) 2>conftest.er1
8924   ac_status=$?
8925   grep -v '^ *+' conftest.er1 >conftest.err
8926   rm -f conftest.er1
8927   cat conftest.err >&5
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; } &&
8936          { ac_try='test -s conftest$ac_exeext'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; }; then
8942   ac_cv_search_exc_resume="-l$ac_lib"
8943 break
8944 else
8945   echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948 fi
8949 rm -f conftest.err conftest.$ac_objext \
8950       conftest$ac_exeext conftest.$ac_ext
8951   done
8952 fi
8953 LIBS=$ac_func_search_save_LIBS
8954 fi
8955 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8956 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8957 if test "$ac_cv_search_exc_resume" != no; then
8958   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8959
8960 fi
8961
8962 GNAT_LIBEXC="$LIBS"
8963 LIBS="$save_LIBS"
8964
8965
8966 # Some systems put ldexp and frexp in libm instead of libc; assume
8967 # they're both in the same place.  jcf-dump needs them.
8968 save_LIBS="$LIBS"
8969 LIBS=
8970 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8971 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8972 if test "${ac_cv_search_ldexp+set}" = set; then
8973   echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975   ac_func_search_save_LIBS=$LIBS
8976 ac_cv_search_ldexp=no
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h.  */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h.  */
8983
8984 /* Override any gcc2 internal prototype to avoid an error.  */
8985 #ifdef __cplusplus
8986 extern "C"
8987 #endif
8988 /* We use char because int might match the return type of a gcc2
8989    builtin and then its argument prototype would still apply.  */
8990 char ldexp ();
8991 int
8992 main ()
8993 {
8994 ldexp ();
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001   (eval $ac_link) 2>conftest.er1
9002   ac_status=$?
9003   grep -v '^ *+' conftest.er1 >conftest.err
9004   rm -f conftest.er1
9005   cat conftest.err >&5
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); } &&
9008          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010   (eval $ac_try) 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); }; } &&
9014          { ac_try='test -s conftest$ac_exeext'
9015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016   (eval $ac_try) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; }; then
9020   ac_cv_search_ldexp="none required"
9021 else
9022   echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025 fi
9026 rm -f conftest.err conftest.$ac_objext \
9027       conftest$ac_exeext conftest.$ac_ext
9028 if test "$ac_cv_search_ldexp" = no; then
9029   for ac_lib in m; do
9030     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9031     cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h.  */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h.  */
9037
9038 /* Override any gcc2 internal prototype to avoid an error.  */
9039 #ifdef __cplusplus
9040 extern "C"
9041 #endif
9042 /* We use char because int might match the return type of a gcc2
9043    builtin and then its argument prototype would still apply.  */
9044 char ldexp ();
9045 int
9046 main ()
9047 {
9048 ldexp ();
9049   ;
9050   return 0;
9051 }
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055   (eval $ac_link) 2>conftest.er1
9056   ac_status=$?
9057   grep -v '^ *+' conftest.er1 >conftest.err
9058   rm -f conftest.er1
9059   cat conftest.err >&5
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); } &&
9062          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064   (eval $ac_try) 2>&5
9065   ac_status=$?
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); }; } &&
9068          { ac_try='test -s conftest$ac_exeext'
9069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070   (eval $ac_try) 2>&5
9071   ac_status=$?
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); }; }; then
9074   ac_cv_search_ldexp="-l$ac_lib"
9075 break
9076 else
9077   echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080 fi
9081 rm -f conftest.err conftest.$ac_objext \
9082       conftest$ac_exeext conftest.$ac_ext
9083   done
9084 fi
9085 LIBS=$ac_func_search_save_LIBS
9086 fi
9087 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9088 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9089 if test "$ac_cv_search_ldexp" != no; then
9090   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9091
9092 fi
9093
9094 LDEXP_LIB="$LIBS"
9095 LIBS="$save_LIBS"
9096
9097
9098 # Use <inttypes.h> only if it exists,
9099 # doesn't clash with <sys/types.h>, and declares intmax_t.
9100 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9101 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9102 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9103   echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105   cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h.  */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h.  */
9111 #include <sys/types.h>
9112 #include <inttypes.h>
9113 int
9114 main ()
9115 {
9116 intmax_t i = -1;
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest.$ac_objext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123   (eval $ac_compile) 2>conftest.er1
9124   ac_status=$?
9125   grep -v '^ *+' conftest.er1 >conftest.err
9126   rm -f conftest.er1
9127   cat conftest.err >&5
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } &&
9130          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132   (eval $ac_try) 2>&5
9133   ac_status=$?
9134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135   (exit $ac_status); }; } &&
9136          { ac_try='test -s conftest.$ac_objext'
9137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138   (eval $ac_try) 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); }; }; then
9142   gcc_cv_header_inttypes_h=yes
9143 else
9144   echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9146
9147 gcc_cv_header_inttypes_h=no
9148 fi
9149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9150 fi
9151
9152 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9153 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9154 if test $gcc_cv_header_inttypes_h = yes; then
9155
9156 cat >>confdefs.h <<\_ACEOF
9157 #define HAVE_INTTYPES_H 1
9158 _ACEOF
9159
9160 fi
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9200         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9201         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9202         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
9203 do
9204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9205 echo "$as_me:$LINENO: checking for $ac_func" >&5
9206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9207 if eval "test \"\${$as_ac_var+set}\" = set"; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210   cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9218 #define $ac_func innocuous_$ac_func
9219
9220 /* System header to define __stub macros and hopefully few prototypes,
9221     which can conflict with char $ac_func (); below.
9222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9223     <limits.h> exists even on freestanding compilers.  */
9224
9225 #ifdef __STDC__
9226 # include <limits.h>
9227 #else
9228 # include <assert.h>
9229 #endif
9230
9231 #undef $ac_func
9232
9233 /* Override any gcc2 internal prototype to avoid an error.  */
9234 #ifdef __cplusplus
9235 extern "C"
9236 {
9237 #endif
9238 /* We use char because int might match the return type of a gcc2
9239    builtin and then its argument prototype would still apply.  */
9240 char $ac_func ();
9241 /* The GNU C library defines this for functions which it implements
9242     to always fail with ENOSYS.  Some functions are actually named
9243     something starting with __ and the normal name is an alias.  */
9244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9245 choke me
9246 #else
9247 char (*f) () = $ac_func;
9248 #endif
9249 #ifdef __cplusplus
9250 }
9251 #endif
9252
9253 int
9254 main ()
9255 {
9256 return f != $ac_func;
9257   ;
9258   return 0;
9259 }
9260 _ACEOF
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263   (eval $ac_link) 2>conftest.er1
9264   ac_status=$?
9265   grep -v '^ *+' conftest.er1 >conftest.err
9266   rm -f conftest.er1
9267   cat conftest.err >&5
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); } &&
9270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272   (eval $ac_try) 2>&5
9273   ac_status=$?
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); }; } &&
9276          { ac_try='test -s conftest$ac_exeext'
9277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278   (eval $ac_try) 2>&5
9279   ac_status=$?
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); }; }; then
9282   eval "$as_ac_var=yes"
9283 else
9284   echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9286
9287 eval "$as_ac_var=no"
9288 fi
9289 rm -f conftest.err conftest.$ac_objext \
9290       conftest$ac_exeext conftest.$ac_ext
9291 fi
9292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9294 if test `eval echo '${'$as_ac_var'}'` = yes; then
9295   cat >>confdefs.h <<_ACEOF
9296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9297 _ACEOF
9298
9299 fi
9300 done
9301
9302
9303 if test x$ac_cv_func_mbstowcs = xyes; then
9304   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9305 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9306 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9307   echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309       if test "$cross_compiling" = yes; then
9310   gcc_cv_func_mbstowcs_works=yes
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 #include <stdlib.h>
9319 int main()
9320 {
9321   mbstowcs(0, "", 0);
9322   return 0;
9323 }
9324 _ACEOF
9325 rm -f conftest$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327   (eval $ac_link) 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332   (eval $ac_try) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); }; }; then
9336   gcc_cv_func_mbstowcs_works=yes
9337 else
9338   echo "$as_me: program exited with status $ac_status" >&5
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9341
9342 ( exit $ac_status )
9343 gcc_cv_func_mbstowcs_works=no
9344 fi
9345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9346 fi
9347 fi
9348 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9349 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9350   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9351
9352 cat >>confdefs.h <<\_ACEOF
9353 #define HAVE_WORKING_MBSTOWCS 1
9354 _ACEOF
9355
9356   fi
9357 fi
9358
9359 echo "$as_me:$LINENO: checking for ssize_t" >&5
9360 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9361 if test "${ac_cv_type_ssize_t+set}" = set; then
9362   echo $ECHO_N "(cached) $ECHO_C" >&6
9363 else
9364   cat >conftest.$ac_ext <<_ACEOF
9365 /* confdefs.h.  */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h.  */
9370 $ac_includes_default
9371 int
9372 main ()
9373 {
9374 if ((ssize_t *) 0)
9375   return 0;
9376 if (sizeof (ssize_t))
9377   return 0;
9378   ;
9379   return 0;
9380 }
9381 _ACEOF
9382 rm -f conftest.$ac_objext
9383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9384   (eval $ac_compile) 2>conftest.er1
9385   ac_status=$?
9386   grep -v '^ *+' conftest.er1 >conftest.err
9387   rm -f conftest.er1
9388   cat conftest.err >&5
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); } &&
9391          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393   (eval $ac_try) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); }; } &&
9397          { ac_try='test -s conftest.$ac_objext'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; }; then
9403   ac_cv_type_ssize_t=yes
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_cv_type_ssize_t=no
9409 fi
9410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9411 fi
9412 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9413 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9414 if test $ac_cv_type_ssize_t = yes; then
9415   :
9416 else
9417
9418 cat >>confdefs.h <<_ACEOF
9419 #define ssize_t int
9420 _ACEOF
9421
9422 fi
9423
9424
9425 # Try to determine the array type of the second argument of getgroups
9426 # for the target system (int or gid_t).
9427 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9428 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9429 if test "${ac_cv_type_uid_t+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h.  */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h.  */
9438 #include <sys/types.h>
9439
9440 _ACEOF
9441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9442   $EGREP "uid_t" >/dev/null 2>&1; then
9443   ac_cv_type_uid_t=yes
9444 else
9445   ac_cv_type_uid_t=no
9446 fi
9447 rm -f conftest*
9448
9449 fi
9450 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9451 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9452 if test $ac_cv_type_uid_t = no; then
9453
9454 cat >>confdefs.h <<\_ACEOF
9455 #define uid_t int
9456 _ACEOF
9457
9458
9459 cat >>confdefs.h <<\_ACEOF
9460 #define gid_t int
9461 _ACEOF
9462
9463 fi
9464
9465 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9466 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9467 if test "${ac_cv_type_getgroups+set}" = set; then
9468   echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470   if test "$cross_compiling" = yes; then
9471   ac_cv_type_getgroups=cross
9472 else
9473   cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h.  */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h.  */
9479 /* Thanks to Mike Rendell for this test.  */
9480 #include <sys/types.h>
9481 #define NGID 256
9482 #undef MAX
9483 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9484
9485 int
9486 main ()
9487 {
9488   gid_t gidset[NGID];
9489   int i, n;
9490   union { gid_t gval; long lval; }  val;
9491
9492   val.lval = -1;
9493   for (i = 0; i < NGID; i++)
9494     gidset[i] = val.gval;
9495   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9496                  gidset);
9497   /* Exit non-zero if getgroups seems to require an array of ints.  This
9498      happens when gid_t is short but getgroups modifies an array of ints.  */
9499   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9500 }
9501 _ACEOF
9502 rm -f conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504   (eval $ac_link) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509   (eval $ac_try) 2>&5
9510   ac_status=$?
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); }; }; then
9513   ac_cv_type_getgroups=gid_t
9514 else
9515   echo "$as_me: program exited with status $ac_status" >&5
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 ( exit $ac_status )
9520 ac_cv_type_getgroups=int
9521 fi
9522 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9523 fi
9524 if test $ac_cv_type_getgroups = cross; then
9525         cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h.  */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h.  */
9531 #include <unistd.h>
9532
9533 _ACEOF
9534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9535   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9536   ac_cv_type_getgroups=gid_t
9537 else
9538   ac_cv_type_getgroups=int
9539 fi
9540 rm -f conftest*
9541
9542 fi
9543 fi
9544 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9545 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9546
9547 cat >>confdefs.h <<_ACEOF
9548 #define GETGROUPS_T $ac_cv_type_getgroups
9549 _ACEOF
9550
9551
9552 if test "${target}" = "${build}"; then
9553   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9554 else
9555   case "${target}" in
9556         # This condition may need some tweaking.  It should include all
9557         # targets where the array type of the second argument of getgroups
9558         # is int and the type of gid_t is not equivalent to int.
9559         *-*-sunos* | *-*-ultrix*)
9560                 TARGET_GETGROUPS_T=int
9561                 ;;
9562         *)
9563                 TARGET_GETGROUPS_T=gid_t
9564                 ;;
9565   esac
9566 fi
9567
9568
9569
9570 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9571 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9572 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9573   echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575   cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 #include <sys/mman.h>
9582 _ACEOF
9583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9585   ac_status=$?
9586   grep -v '^ *+' conftest.er1 >conftest.err
9587   rm -f conftest.er1
9588   cat conftest.err >&5
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); } >/dev/null; then
9591   if test -s conftest.err; then
9592     ac_cpp_err=$ac_c_preproc_warn_flag
9593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9594   else
9595     ac_cpp_err=
9596   fi
9597 else
9598   ac_cpp_err=yes
9599 fi
9600 if test -z "$ac_cpp_err"; then
9601   ac_cv_header_sys_mman_h=yes
9602 else
9603   echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606   ac_cv_header_sys_mman_h=no
9607 fi
9608 rm -f conftest.err conftest.$ac_ext
9609 fi
9610 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9611 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9612 if test $ac_cv_header_sys_mman_h = yes; then
9613   gcc_header_sys_mman_h=yes
9614 else
9615   gcc_header_sys_mman_h=no
9616 fi
9617
9618 echo "$as_me:$LINENO: checking for mmap" >&5
9619 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9620 if test "${ac_cv_func_mmap+set}" = set; then
9621   echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623   cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h.  */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h.  */
9629 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9631 #define mmap innocuous_mmap
9632
9633 /* System header to define __stub macros and hopefully few prototypes,
9634     which can conflict with char mmap (); below.
9635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9636     <limits.h> exists even on freestanding compilers.  */
9637
9638 #ifdef __STDC__
9639 # include <limits.h>
9640 #else
9641 # include <assert.h>
9642 #endif
9643
9644 #undef mmap
9645
9646 /* Override any gcc2 internal prototype to avoid an error.  */
9647 #ifdef __cplusplus
9648 extern "C"
9649 {
9650 #endif
9651 /* We use char because int might match the return type of a gcc2
9652    builtin and then its argument prototype would still apply.  */
9653 char mmap ();
9654 /* The GNU C library defines this for functions which it implements
9655     to always fail with ENOSYS.  Some functions are actually named
9656     something starting with __ and the normal name is an alias.  */
9657 #if defined (__stub_mmap) || defined (__stub___mmap)
9658 choke me
9659 #else
9660 char (*f) () = mmap;
9661 #endif
9662 #ifdef __cplusplus
9663 }
9664 #endif
9665
9666 int
9667 main ()
9668 {
9669 return f != mmap;
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676   (eval $ac_link) 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } &&
9683          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685   (eval $ac_try) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); }; } &&
9689          { ac_try='test -s conftest$ac_exeext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_func_mmap=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_cv_func_mmap=no
9701 fi
9702 rm -f conftest.err conftest.$ac_objext \
9703       conftest$ac_exeext conftest.$ac_ext
9704 fi
9705 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9706 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9707 if test $ac_cv_func_mmap = yes; then
9708   gcc_func_mmap=yes
9709 else
9710   gcc_func_mmap=no
9711 fi
9712
9713 if test "$gcc_header_sys_mman_h" != yes \
9714  || test "$gcc_func_mmap" != yes; then
9715    gcc_cv_func_mmap_file=no
9716    gcc_cv_func_mmap_dev_zero=no
9717    gcc_cv_func_mmap_anon=no
9718 else
9719    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9720 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9721 if test "${gcc_cv_func_mmap_file+set}" = set; then
9722   echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724   # Add a system to this blacklist if
9725    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9726    # memory area containing the same data that you'd get if you applied
9727    # read() to the same fd.  The only system known to have a problem here
9728    # is VMS, where text files have record structure.
9729    case "$host_os" in
9730      vms* | ultrix*)
9731         gcc_cv_func_mmap_file=no ;;
9732      *)
9733         gcc_cv_func_mmap_file=yes;;
9734    esac
9735 fi
9736 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9737 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9738    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9739 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9740 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743   # Add a system to this blacklist if it has mmap() but /dev/zero
9744    # does not exist, or if mmapping /dev/zero does not give anonymous
9745    # zeroed pages with both the following properties:
9746    # 1. If you map N consecutive pages in with one call, and then
9747    #    unmap any subset of those pages, the pages that were not
9748    #    explicitly unmapped remain accessible.
9749    # 2. If you map two adjacent blocks of memory and then unmap them
9750    #    both at once, they must both go away.
9751    # Systems known to be in this category are Windows (all variants),
9752    # VMS, and Darwin.
9753    case "$host_os" in
9754      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9755         gcc_cv_func_mmap_dev_zero=no ;;
9756      *)
9757         gcc_cv_func_mmap_dev_zero=yes;;
9758    esac
9759 fi
9760 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9761 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9762
9763    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9764    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9765 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9766 if test "${gcc_cv_decl_map_anon+set}" = set; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769   cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h.  */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h.  */
9775 #include <sys/types.h>
9776 #include <sys/mman.h>
9777 #include <unistd.h>
9778
9779 #ifndef MAP_ANONYMOUS
9780 #define MAP_ANONYMOUS MAP_ANON
9781 #endif
9782
9783 int
9784 main ()
9785 {
9786 int n = MAP_ANONYMOUS;
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 rm -f conftest.$ac_objext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9793   (eval $ac_compile) 2>conftest.er1
9794   ac_status=$?
9795   grep -v '^ *+' conftest.er1 >conftest.err
9796   rm -f conftest.er1
9797   cat conftest.err >&5
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); } &&
9800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802   (eval $ac_try) 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; } &&
9806          { ac_try='test -s conftest.$ac_objext'
9807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808   (eval $ac_try) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); }; }; then
9812   gcc_cv_decl_map_anon=yes
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817 gcc_cv_decl_map_anon=no
9818 fi
9819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9820 fi
9821 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9822 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9823
9824    if test $gcc_cv_decl_map_anon = no; then
9825      gcc_cv_func_mmap_anon=no
9826    else
9827      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9828 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9829 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9830   echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9833    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9834    # doesn't give anonymous zeroed pages with the same properties listed
9835    # above for use of /dev/zero.
9836    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9837    case "$host_os" in
9838      vms* | cygwin* | pe | mingw* | sco* | udk* )
9839         gcc_cv_func_mmap_anon=no ;;
9840      *)
9841         gcc_cv_func_mmap_anon=yes;;
9842    esac
9843 fi
9844 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9845 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9846    fi
9847 fi
9848
9849 if test $gcc_cv_func_mmap_file = yes; then
9850
9851 cat >>confdefs.h <<\_ACEOF
9852 #define HAVE_MMAP_FILE 1
9853 _ACEOF
9854
9855 fi
9856 if test $gcc_cv_func_mmap_dev_zero = yes; then
9857
9858 cat >>confdefs.h <<\_ACEOF
9859 #define HAVE_MMAP_DEV_ZERO 1
9860 _ACEOF
9861
9862 fi
9863 if test $gcc_cv_func_mmap_anon = yes; then
9864
9865 cat >>confdefs.h <<\_ACEOF
9866 #define HAVE_MMAP_ANON 1
9867 _ACEOF
9868
9869 fi
9870
9871
9872 case "${host}" in
9873 *-*-*vms*)
9874   # Under VMS, vfork works very differently than on Unix. The standard test
9875   # won't work, and it isn't easily adaptable. It makes more sense to
9876   # just force it.
9877   ac_cv_func_vfork_works=yes
9878   ;;
9879 esac
9880 echo "$as_me:$LINENO: checking for pid_t" >&5
9881 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9882 if test "${ac_cv_type_pid_t+set}" = set; then
9883   echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885   cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h.  */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h.  */
9891 $ac_includes_default
9892 int
9893 main ()
9894 {
9895 if ((pid_t *) 0)
9896   return 0;
9897 if (sizeof (pid_t))
9898   return 0;
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9905   (eval $ac_compile) 2>conftest.er1
9906   ac_status=$?
9907   grep -v '^ *+' conftest.er1 >conftest.err
9908   rm -f conftest.er1
9909   cat conftest.err >&5
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); } &&
9912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
9918          { ac_try='test -s conftest.$ac_objext'
9919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920   (eval $ac_try) 2>&5
9921   ac_status=$?
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); }; }; then
9924   ac_cv_type_pid_t=yes
9925 else
9926   echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929 ac_cv_type_pid_t=no
9930 fi
9931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9932 fi
9933 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9934 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9935 if test $ac_cv_type_pid_t = yes; then
9936   :
9937 else
9938
9939 cat >>confdefs.h <<_ACEOF
9940 #define pid_t int
9941 _ACEOF
9942
9943 fi
9944
9945
9946
9947 for ac_header in unistd.h vfork.h
9948 do
9949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9950 echo "$as_me:$LINENO: checking for $ac_header" >&5
9951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9953   echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955   cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h.  */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h.  */
9961 #include <$ac_header>
9962 _ACEOF
9963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9965   ac_status=$?
9966   grep -v '^ *+' conftest.er1 >conftest.err
9967   rm -f conftest.er1
9968   cat conftest.err >&5
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); } >/dev/null; then
9971   if test -s conftest.err; then
9972     ac_cpp_err=$ac_c_preproc_warn_flag
9973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9974   else
9975     ac_cpp_err=
9976   fi
9977 else
9978   ac_cpp_err=yes
9979 fi
9980 if test -z "$ac_cpp_err"; then
9981   eval "$as_ac_Header=yes"
9982 else
9983   echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9985
9986   eval "$as_ac_Header=no"
9987 fi
9988 rm -f conftest.err conftest.$ac_ext
9989 fi
9990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9993   cat >>confdefs.h <<_ACEOF
9994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9995 _ACEOF
9996
9997 fi
9998 done
9999
10000
10001
10002 for ac_func in fork vfork
10003 do
10004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10005 echo "$as_me:$LINENO: checking for $ac_func" >&5
10006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10007 if eval "test \"\${$as_ac_var+set}\" = set"; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10018 #define $ac_func innocuous_$ac_func
10019
10020 /* System header to define __stub macros and hopefully few prototypes,
10021     which can conflict with char $ac_func (); below.
10022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023     <limits.h> exists even on freestanding compilers.  */
10024
10025 #ifdef __STDC__
10026 # include <limits.h>
10027 #else
10028 # include <assert.h>
10029 #endif
10030
10031 #undef $ac_func
10032
10033 /* Override any gcc2 internal prototype to avoid an error.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 {
10037 #endif
10038 /* We use char because int might match the return type of a gcc2
10039    builtin and then its argument prototype would still apply.  */
10040 char $ac_func ();
10041 /* The GNU C library defines this for functions which it implements
10042     to always fail with ENOSYS.  Some functions are actually named
10043     something starting with __ and the normal name is an alias.  */
10044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10045 choke me
10046 #else
10047 char (*f) () = $ac_func;
10048 #endif
10049 #ifdef __cplusplus
10050 }
10051 #endif
10052
10053 int
10054 main ()
10055 {
10056 return f != $ac_func;
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063   (eval $ac_link) 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } &&
10070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072   (eval $ac_try) 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); }; } &&
10076          { ac_try='test -s conftest$ac_exeext'
10077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078   (eval $ac_try) 2>&5
10079   ac_status=$?
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); }; }; then
10082   eval "$as_ac_var=yes"
10083 else
10084   echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087 eval "$as_ac_var=no"
10088 fi
10089 rm -f conftest.err conftest.$ac_objext \
10090       conftest$ac_exeext conftest.$ac_ext
10091 fi
10092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10094 if test `eval echo '${'$as_ac_var'}'` = yes; then
10095   cat >>confdefs.h <<_ACEOF
10096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10097 _ACEOF
10098
10099 fi
10100 done
10101
10102 if test "x$ac_cv_func_fork" = xyes; then
10103   echo "$as_me:$LINENO: checking for working fork" >&5
10104 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10105 if test "${ac_cv_func_fork_works+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   if test "$cross_compiling" = yes; then
10109   ac_cv_func_fork_works=cross
10110 else
10111   cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h.  */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h.  */
10117 $ac_includes_default
10118 int
10119 main ()
10120 {
10121
10122           /* By Ruediger Kuhlmann. */
10123           if (fork() < 0)
10124             exit (1);
10125           exit (0);
10126
10127   ;
10128   return 0;
10129 }
10130 _ACEOF
10131 rm -f conftest$ac_exeext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10133   (eval $ac_link) 2>&5
10134   ac_status=$?
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138   (eval $ac_try) 2>&5
10139   ac_status=$?
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); }; }; then
10142   ac_cv_func_fork_works=yes
10143 else
10144   echo "$as_me: program exited with status $ac_status" >&5
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148 ( exit $ac_status )
10149 ac_cv_func_fork_works=no
10150 fi
10151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10152 fi
10153 fi
10154 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10155 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10156
10157 else
10158   ac_cv_func_fork_works=$ac_cv_func_fork
10159 fi
10160 if test "x$ac_cv_func_fork_works" = xcross; then
10161   case $host in
10162     *-*-amigaos* | *-*-msdosdjgpp*)
10163       # Override, as these systems have only a dummy fork() stub
10164       ac_cv_func_fork_works=no
10165       ;;
10166     *)
10167       ac_cv_func_fork_works=yes
10168       ;;
10169   esac
10170   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10171 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10172 fi
10173 ac_cv_func_vfork_works=$ac_cv_func_vfork
10174 if test "x$ac_cv_func_vfork" = xyes; then
10175   echo "$as_me:$LINENO: checking for working vfork" >&5
10176 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10177 if test "${ac_cv_func_vfork_works+set}" = set; then
10178   echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180   if test "$cross_compiling" = yes; then
10181   ac_cv_func_vfork_works=cross
10182 else
10183   cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h.  */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h.  */
10189 /* Thanks to Paul Eggert for this test.  */
10190 #include <stdio.h>
10191 #include <stdlib.h>
10192 #include <sys/types.h>
10193 #include <sys/stat.h>
10194 #include <sys/wait.h>
10195 #if HAVE_UNISTD_H
10196 # include <unistd.h>
10197 #endif
10198 #if HAVE_VFORK_H
10199 # include <vfork.h>
10200 #endif
10201 /* On some sparc systems, changes by the child to local and incoming
10202    argument registers are propagated back to the parent.  The compiler
10203    is told about this with #include <vfork.h>, but some compilers
10204    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10205    static variable whose address is put into a register that is
10206    clobbered by the vfork.  */
10207 static void
10208 #ifdef __cplusplus
10209 sparc_address_test (int arg)
10210 # else
10211 sparc_address_test (arg) int arg;
10212 #endif
10213 {
10214   static pid_t child;
10215   if (!child) {
10216     child = vfork ();
10217     if (child < 0) {
10218       perror ("vfork");
10219       _exit(2);
10220     }
10221     if (!child) {
10222       arg = getpid();
10223       write(-1, "", 0);
10224       _exit (arg);
10225     }
10226   }
10227 }
10228
10229 int
10230 main ()
10231 {
10232   pid_t parent = getpid ();
10233   pid_t child;
10234
10235   sparc_address_test (0);
10236
10237   child = vfork ();
10238
10239   if (child == 0) {
10240     /* Here is another test for sparc vfork register problems.  This
10241        test uses lots of local variables, at least as many local
10242        variables as main has allocated so far including compiler
10243        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10244        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10245        reuse the register of parent for one of the local variables,
10246        since it will think that parent can't possibly be used any more
10247        in this routine.  Assigning to the local variable will thus
10248        munge parent in the parent process.  */
10249     pid_t
10250       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10251       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10252     /* Convince the compiler that p..p7 are live; otherwise, it might
10253        use the same hardware register for all 8 local variables.  */
10254     if (p != p1 || p != p2 || p != p3 || p != p4
10255         || p != p5 || p != p6 || p != p7)
10256       _exit(1);
10257
10258     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10259        from child file descriptors.  If the child closes a descriptor
10260        before it execs or exits, this munges the parent's descriptor
10261        as well.  Test for this by closing stdout in the child.  */
10262     _exit(close(fileno(stdout)) != 0);
10263   } else {
10264     int status;
10265     struct stat st;
10266
10267     while (wait(&status) != child)
10268       ;
10269     exit(
10270          /* Was there some problem with vforking?  */
10271          child < 0
10272
10273          /* Did the child fail?  (This shouldn't happen.)  */
10274          || status
10275
10276          /* Did the vfork/compiler bug occur?  */
10277          || parent != getpid()
10278
10279          /* Did the file descriptor bug occur?  */
10280          || fstat(fileno(stdout), &st) != 0
10281          );
10282   }
10283 }
10284 _ACEOF
10285 rm -f conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287   (eval $ac_link) 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; }; then
10296   ac_cv_func_vfork_works=yes
10297 else
10298   echo "$as_me: program exited with status $ac_status" >&5
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302 ( exit $ac_status )
10303 ac_cv_func_vfork_works=no
10304 fi
10305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10306 fi
10307 fi
10308 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10309 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10310
10311 fi;
10312 if test "x$ac_cv_func_fork_works" = xcross; then
10313   ac_cv_func_vfork_works=$ac_cv_func_vfork
10314   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10315 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10316 fi
10317
10318 if test "x$ac_cv_func_vfork_works" = xyes; then
10319
10320 cat >>confdefs.h <<\_ACEOF
10321 #define HAVE_WORKING_VFORK 1
10322 _ACEOF
10323
10324 else
10325
10326 cat >>confdefs.h <<\_ACEOF
10327 #define vfork fork
10328 _ACEOF
10329
10330 fi
10331 if test "x$ac_cv_func_fork_works" = xyes; then
10332
10333 cat >>confdefs.h <<\_ACEOF
10334 #define HAVE_WORKING_FORK 1
10335 _ACEOF
10336
10337 fi
10338
10339
10340
10341       if test "X$prefix" = "XNONE"; then
10342     acl_final_prefix="$ac_default_prefix"
10343   else
10344     acl_final_prefix="$prefix"
10345   fi
10346   if test "X$exec_prefix" = "XNONE"; then
10347     acl_final_exec_prefix='${prefix}'
10348   else
10349     acl_final_exec_prefix="$exec_prefix"
10350   fi
10351   acl_save_prefix="$prefix"
10352   prefix="$acl_final_prefix"
10353   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10354   prefix="$acl_save_prefix"
10355
10356
10357 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10358 if test "${with_gnu_ld+set}" = set; then
10359   withval="$with_gnu_ld"
10360   test "$withval" = no || with_gnu_ld=yes
10361 else
10362   with_gnu_ld=no
10363 fi;
10364 # Prepare PATH_SEPARATOR.
10365 # The user is always right.
10366 if test "${PATH_SEPARATOR+set}" != set; then
10367   echo "#! /bin/sh" >conf$$.sh
10368   echo  "exit 0"   >>conf$$.sh
10369   chmod +x conf$$.sh
10370   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10371     PATH_SEPARATOR=';'
10372   else
10373     PATH_SEPARATOR=:
10374   fi
10375   rm -f conf$$.sh
10376 fi
10377 ac_prog=ld
10378 if test "$GCC" = yes; then
10379   # Check if gcc -print-prog-name=ld gives a path.
10380   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10381 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10382   case $host in
10383   *-*-mingw*)
10384     # gcc leaves a trailing carriage return which upsets mingw
10385     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10386   *)
10387     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10388   esac
10389   case $ac_prog in
10390     # Accept absolute paths.
10391     [\\/]* | [A-Za-z]:[\\/]*)
10392       re_direlt='/[^/][^/]*/\.\./'
10393       # Canonicalize the path of ld
10394       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10395       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10396         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10397       done
10398       test -z "$LD" && LD="$ac_prog"
10399       ;;
10400   "")
10401     # If it fails, then pretend we aren't using GCC.
10402     ac_prog=ld
10403     ;;
10404   *)
10405     # If it is relative, then search for the first ld in PATH.
10406     with_gnu_ld=unknown
10407     ;;
10408   esac
10409 elif test "$with_gnu_ld" = yes; then
10410   echo "$as_me:$LINENO: checking for GNU ld" >&5
10411 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10412 else
10413   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10414 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10415 fi
10416 if test "${acl_cv_path_LD+set}" = set; then
10417   echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419   if test -z "$LD"; then
10420   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10421   for ac_dir in $PATH; do
10422     test -z "$ac_dir" && ac_dir=.
10423     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10424       acl_cv_path_LD="$ac_dir/$ac_prog"
10425       # Check to see if the program is GNU ld.  I'd rather use --version,
10426       # but apparently some GNU ld's only accept -v.
10427       # Break only if it was the GNU/non-GNU ld that we prefer.
10428       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10429         test "$with_gnu_ld" != no && break
10430       else
10431         test "$with_gnu_ld" != yes && break
10432       fi
10433     fi
10434   done
10435   IFS="$ac_save_ifs"
10436 else
10437   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10438 fi
10439 fi
10440
10441 LD="$acl_cv_path_LD"
10442 if test -n "$LD"; then
10443   echo "$as_me:$LINENO: result: $LD" >&5
10444 echo "${ECHO_T}$LD" >&6
10445 else
10446   echo "$as_me:$LINENO: result: no" >&5
10447 echo "${ECHO_T}no" >&6
10448 fi
10449 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10450 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10451    { (exit 1); exit 1; }; }
10452 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10453 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10454 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10458 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10459   acl_cv_prog_gnu_ld=yes
10460 else
10461   acl_cv_prog_gnu_ld=no
10462 fi
10463 fi
10464 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10465 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10466 with_gnu_ld=$acl_cv_prog_gnu_ld
10467
10468
10469
10470                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10471 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10472 if test "${acl_cv_rpath+set}" = set; then
10473   echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475
10476     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10477     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10478     . ./conftest.sh
10479     rm -f ./conftest.sh
10480     acl_cv_rpath=done
10481
10482 fi
10483 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10484 echo "${ECHO_T}$acl_cv_rpath" >&6
10485   wl="$acl_cv_wl"
10486   libext="$acl_cv_libext"
10487   shlibext="$acl_cv_shlibext"
10488   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10489   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10490   hardcode_direct="$acl_cv_hardcode_direct"
10491   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10492     # Check whether --enable-rpath or --disable-rpath was given.
10493 if test "${enable_rpath+set}" = set; then
10494   enableval="$enable_rpath"
10495   :
10496 else
10497   enable_rpath=yes
10498 fi;
10499
10500
10501
10502
10503
10504
10505
10506     use_additional=yes
10507
10508   acl_save_prefix="$prefix"
10509   prefix="$acl_final_prefix"
10510   acl_save_exec_prefix="$exec_prefix"
10511   exec_prefix="$acl_final_exec_prefix"
10512
10513     eval additional_includedir=\"$includedir\"
10514     eval additional_libdir=\"$libdir\"
10515
10516   exec_prefix="$acl_save_exec_prefix"
10517   prefix="$acl_save_prefix"
10518
10519
10520 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10521 if test "${with_libiconv_prefix+set}" = set; then
10522   withval="$with_libiconv_prefix"
10523
10524     if test "X$withval" = "Xno"; then
10525       use_additional=no
10526     else
10527       if test "X$withval" = "X"; then
10528
10529   acl_save_prefix="$prefix"
10530   prefix="$acl_final_prefix"
10531   acl_save_exec_prefix="$exec_prefix"
10532   exec_prefix="$acl_final_exec_prefix"
10533
10534           eval additional_includedir=\"$includedir\"
10535           eval additional_libdir=\"$libdir\"
10536
10537   exec_prefix="$acl_save_exec_prefix"
10538   prefix="$acl_save_prefix"
10539
10540       else
10541         additional_includedir="$withval/include"
10542         additional_libdir="$withval/lib"
10543       fi
10544     fi
10545
10546 fi;
10547       LIBICONV=
10548   LTLIBICONV=
10549   INCICONV=
10550   rpathdirs=
10551   ltrpathdirs=
10552   names_already_handled=
10553   names_next_round='iconv '
10554   while test -n "$names_next_round"; do
10555     names_this_round="$names_next_round"
10556     names_next_round=
10557     for name in $names_this_round; do
10558       already_handled=
10559       for n in $names_already_handled; do
10560         if test "$n" = "$name"; then
10561           already_handled=yes
10562           break
10563         fi
10564       done
10565       if test -z "$already_handled"; then
10566         names_already_handled="$names_already_handled $name"
10567                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10568         eval value=\"\$HAVE_LIB$uppername\"
10569         if test -n "$value"; then
10570           if test "$value" = yes; then
10571             eval value=\"\$LIB$uppername\"
10572             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10573             eval value=\"\$LTLIB$uppername\"
10574             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10575           else
10576                                     :
10577           fi
10578         else
10579                               found_dir=
10580           found_la=
10581           found_so=
10582           found_a=
10583           if test $use_additional = yes; then
10584             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10585               found_dir="$additional_libdir"
10586               found_so="$additional_libdir/lib$name.$shlibext"
10587               if test -f "$additional_libdir/lib$name.la"; then
10588                 found_la="$additional_libdir/lib$name.la"
10589               fi
10590             else
10591               if test -f "$additional_libdir/lib$name.$libext"; then
10592                 found_dir="$additional_libdir"
10593                 found_a="$additional_libdir/lib$name.$libext"
10594                 if test -f "$additional_libdir/lib$name.la"; then
10595                   found_la="$additional_libdir/lib$name.la"
10596                 fi
10597               fi
10598             fi
10599           fi
10600           if test "X$found_dir" = "X"; then
10601             for x in $LDFLAGS $LTLIBICONV; do
10602
10603   acl_save_prefix="$prefix"
10604   prefix="$acl_final_prefix"
10605   acl_save_exec_prefix="$exec_prefix"
10606   exec_prefix="$acl_final_exec_prefix"
10607   eval x=\"$x\"
10608   exec_prefix="$acl_save_exec_prefix"
10609   prefix="$acl_save_prefix"
10610
10611               case "$x" in
10612                 -L*)
10613                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10614                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10615                     found_dir="$dir"
10616                     found_so="$dir/lib$name.$shlibext"
10617                     if test -f "$dir/lib$name.la"; then
10618                       found_la="$dir/lib$name.la"
10619                     fi
10620                   else
10621                     if test -f "$dir/lib$name.$libext"; then
10622                       found_dir="$dir"
10623                       found_a="$dir/lib$name.$libext"
10624                       if test -f "$dir/lib$name.la"; then
10625                         found_la="$dir/lib$name.la"
10626                       fi
10627                     fi
10628                   fi
10629                   ;;
10630               esac
10631               if test "X$found_dir" != "X"; then
10632                 break
10633               fi
10634             done
10635           fi
10636           if test "X$found_dir" != "X"; then
10637                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10638             if test "X$found_so" != "X"; then
10639                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10640                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10641               else
10642                                                                                 haveit=
10643                 for x in $ltrpathdirs; do
10644                   if test "X$x" = "X$found_dir"; then
10645                     haveit=yes
10646                     break
10647                   fi
10648                 done
10649                 if test -z "$haveit"; then
10650                   ltrpathdirs="$ltrpathdirs $found_dir"
10651                 fi
10652                                 if test "$hardcode_direct" = yes; then
10653                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10654                 else
10655                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10656                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10657                                                             haveit=
10658                     for x in $rpathdirs; do
10659                       if test "X$x" = "X$found_dir"; then
10660                         haveit=yes
10661                         break
10662                       fi
10663                     done
10664                     if test -z "$haveit"; then
10665                       rpathdirs="$rpathdirs $found_dir"
10666                     fi
10667                   else
10668                                                                                 haveit=
10669                     for x in $LDFLAGS $LIBICONV; do
10670
10671   acl_save_prefix="$prefix"
10672   prefix="$acl_final_prefix"
10673   acl_save_exec_prefix="$exec_prefix"
10674   exec_prefix="$acl_final_exec_prefix"
10675   eval x=\"$x\"
10676   exec_prefix="$acl_save_exec_prefix"
10677   prefix="$acl_save_prefix"
10678
10679                       if test "X$x" = "X-L$found_dir"; then
10680                         haveit=yes
10681                         break
10682                       fi
10683                     done
10684                     if test -z "$haveit"; then
10685                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10686                     fi
10687                     if test "$hardcode_minus_L" != no; then
10688                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10689                     else
10690                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10691                     fi
10692                   fi
10693                 fi
10694               fi
10695             else
10696               if test "X$found_a" != "X"; then
10697                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10698               else
10699                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10700               fi
10701             fi
10702                         additional_includedir=
10703             case "$found_dir" in
10704               */lib | */lib/)
10705                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10706                 additional_includedir="$basedir/include"
10707                 ;;
10708             esac
10709             if test "X$additional_includedir" != "X"; then
10710                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10711                 haveit=
10712                 if test "X$additional_includedir" = "X/usr/local/include"; then
10713                   if test -n "$GCC"; then
10714                     case $host_os in
10715                       linux*) haveit=yes;;
10716                     esac
10717                   fi
10718                 fi
10719                 if test -z "$haveit"; then
10720                   for x in $CPPFLAGS $INCICONV; do
10721
10722   acl_save_prefix="$prefix"
10723   prefix="$acl_final_prefix"
10724   acl_save_exec_prefix="$exec_prefix"
10725   exec_prefix="$acl_final_exec_prefix"
10726   eval x=\"$x\"
10727   exec_prefix="$acl_save_exec_prefix"
10728   prefix="$acl_save_prefix"
10729
10730                     if test "X$x" = "X-I$additional_includedir"; then
10731                       haveit=yes
10732                       break
10733                     fi
10734                   done
10735                   if test -z "$haveit"; then
10736                     if test -d "$additional_includedir"; then
10737                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10738                     fi
10739                   fi
10740                 fi
10741               fi
10742             fi
10743                         if test -n "$found_la"; then
10744                                                         save_libdir="$libdir"
10745               case "$found_la" in
10746                 */* | *\\*) . "$found_la" ;;
10747                 *) . "./$found_la" ;;
10748               esac
10749               libdir="$save_libdir"
10750                             for dep in $dependency_libs; do
10751                 case "$dep" in
10752                   -L*)
10753                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10754                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10755                       haveit=
10756                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10757                         if test -n "$GCC"; then
10758                           case $host_os in
10759                             linux*) haveit=yes;;
10760                           esac
10761                         fi
10762                       fi
10763                       if test -z "$haveit"; then
10764                         haveit=
10765                         for x in $LDFLAGS $LIBICONV; do
10766
10767   acl_save_prefix="$prefix"
10768   prefix="$acl_final_prefix"
10769   acl_save_exec_prefix="$exec_prefix"
10770   exec_prefix="$acl_final_exec_prefix"
10771   eval x=\"$x\"
10772   exec_prefix="$acl_save_exec_prefix"
10773   prefix="$acl_save_prefix"
10774
10775                           if test "X$x" = "X-L$additional_libdir"; then
10776                             haveit=yes
10777                             break
10778                           fi
10779                         done
10780                         if test -z "$haveit"; then
10781                           if test -d "$additional_libdir"; then
10782                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10783                           fi
10784                         fi
10785                         haveit=
10786                         for x in $LDFLAGS $LTLIBICONV; do
10787
10788   acl_save_prefix="$prefix"
10789   prefix="$acl_final_prefix"
10790   acl_save_exec_prefix="$exec_prefix"
10791   exec_prefix="$acl_final_exec_prefix"
10792   eval x=\"$x\"
10793   exec_prefix="$acl_save_exec_prefix"
10794   prefix="$acl_save_prefix"
10795
10796                           if test "X$x" = "X-L$additional_libdir"; then
10797                             haveit=yes
10798                             break
10799                           fi
10800                         done
10801                         if test -z "$haveit"; then
10802                           if test -d "$additional_libdir"; then
10803                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10804                           fi
10805                         fi
10806                       fi
10807                     fi
10808                     ;;
10809                   -R*)
10810                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10811                     if test "$enable_rpath" != no; then
10812                                                                   haveit=
10813                       for x in $rpathdirs; do
10814                         if test "X$x" = "X$dir"; then
10815                           haveit=yes
10816                           break
10817                         fi
10818                       done
10819                       if test -z "$haveit"; then
10820                         rpathdirs="$rpathdirs $dir"
10821                       fi
10822                                                                   haveit=
10823                       for x in $ltrpathdirs; do
10824                         if test "X$x" = "X$dir"; then
10825                           haveit=yes
10826                           break
10827                         fi
10828                       done
10829                       if test -z "$haveit"; then
10830                         ltrpathdirs="$ltrpathdirs $dir"
10831                       fi
10832                     fi
10833                     ;;
10834                   -l*)
10835                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10836                     ;;
10837                   *.la)
10838                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10839                     ;;
10840                   *)
10841                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10842                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10843                     ;;
10844                 esac
10845               done
10846             fi
10847           else
10848                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10849             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10850           fi
10851         fi
10852       fi
10853     done
10854   done
10855   if test "X$rpathdirs" != "X"; then
10856     if test -n "$hardcode_libdir_separator"; then
10857                         alldirs=
10858       for found_dir in $rpathdirs; do
10859         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10860       done
10861             acl_save_libdir="$libdir"
10862       libdir="$alldirs"
10863       eval flag=\"$hardcode_libdir_flag_spec\"
10864       libdir="$acl_save_libdir"
10865       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10866     else
10867             for found_dir in $rpathdirs; do
10868         acl_save_libdir="$libdir"
10869         libdir="$found_dir"
10870         eval flag=\"$hardcode_libdir_flag_spec\"
10871         libdir="$acl_save_libdir"
10872         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10873       done
10874     fi
10875   fi
10876   if test "X$ltrpathdirs" != "X"; then
10877             for found_dir in $ltrpathdirs; do
10878       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10879     done
10880   fi
10881
10882
10883
10884
10885
10886
10887
10888           am_save_CPPFLAGS="$CPPFLAGS"
10889
10890   for element in $INCICONV; do
10891     haveit=
10892     for x in $CPPFLAGS; do
10893
10894   acl_save_prefix="$prefix"
10895   prefix="$acl_final_prefix"
10896   acl_save_exec_prefix="$exec_prefix"
10897   exec_prefix="$acl_final_exec_prefix"
10898   eval x=\"$x\"
10899   exec_prefix="$acl_save_exec_prefix"
10900   prefix="$acl_save_prefix"
10901
10902       if test "X$x" = "X$element"; then
10903         haveit=yes
10904         break
10905       fi
10906     done
10907     if test -z "$haveit"; then
10908       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10909     fi
10910   done
10911
10912
10913   echo "$as_me:$LINENO: checking for iconv" >&5
10914 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10915 if test "${am_cv_func_iconv+set}" = set; then
10916   echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918
10919     am_cv_func_iconv="no, consider installing GNU libiconv"
10920     am_cv_lib_iconv=no
10921     cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h.  */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h.  */
10927 #include <stdlib.h>
10928 #include <iconv.h>
10929 int
10930 main ()
10931 {
10932 iconv_t cd = iconv_open("","");
10933        iconv(cd,NULL,NULL,NULL,NULL);
10934        iconv_close(cd);
10935   ;
10936   return 0;
10937 }
10938 _ACEOF
10939 rm -f conftest.$ac_objext conftest$ac_exeext
10940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10941   (eval $ac_link) 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } &&
10948          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; } &&
10954          { ac_try='test -s conftest$ac_exeext'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; }; then
10960   am_cv_func_iconv=yes
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965 fi
10966 rm -f conftest.err conftest.$ac_objext \
10967       conftest$ac_exeext conftest.$ac_ext
10968     if test "$am_cv_func_iconv" != yes; then
10969       am_save_LIBS="$LIBS"
10970       LIBS="$LIBS $LIBICONV"
10971       cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h.  */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h.  */
10977 #include <stdlib.h>
10978 #include <iconv.h>
10979 int
10980 main ()
10981 {
10982 iconv_t cd = iconv_open("","");
10983          iconv(cd,NULL,NULL,NULL,NULL);
10984          iconv_close(cd);
10985   ;
10986   return 0;
10987 }
10988 _ACEOF
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991   (eval $ac_link) 2>conftest.er1
10992   ac_status=$?
10993   grep -v '^ *+' conftest.er1 >conftest.err
10994   rm -f conftest.er1
10995   cat conftest.err >&5
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } &&
10998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000   (eval $ac_try) 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }; } &&
11004          { ac_try='test -s conftest$ac_exeext'
11005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006   (eval $ac_try) 2>&5
11007   ac_status=$?
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); }; }; then
11010   am_cv_lib_iconv=yes
11011         am_cv_func_iconv=yes
11012 else
11013   echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11015
11016 fi
11017 rm -f conftest.err conftest.$ac_objext \
11018       conftest$ac_exeext conftest.$ac_ext
11019       LIBS="$am_save_LIBS"
11020     fi
11021
11022 fi
11023 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11024 echo "${ECHO_T}$am_cv_func_iconv" >&6
11025   if test "$am_cv_func_iconv" = yes; then
11026
11027 cat >>confdefs.h <<\_ACEOF
11028 #define HAVE_ICONV 1
11029 _ACEOF
11030
11031   fi
11032   if test "$am_cv_lib_iconv" = yes; then
11033     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11034 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11035     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11036 echo "${ECHO_T}$LIBICONV" >&6
11037   else
11038             CPPFLAGS="$am_save_CPPFLAGS"
11039     LIBICONV=
11040     LTLIBICONV=
11041   fi
11042
11043
11044
11045   if test "$am_cv_func_iconv" = yes; then
11046     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11047 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11048     if test "${am_cv_proto_iconv+set}" = set; then
11049   echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051
11052       cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h.  */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h.  */
11058
11059 #include <stdlib.h>
11060 #include <iconv.h>
11061 extern
11062 #ifdef __cplusplus
11063 "C"
11064 #endif
11065 #if defined(__STDC__) || defined(__cplusplus)
11066 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11067 #else
11068 size_t iconv();
11069 #endif
11070
11071 int
11072 main ()
11073 {
11074
11075   ;
11076   return 0;
11077 }
11078 _ACEOF
11079 rm -f conftest.$ac_objext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11081   (eval $ac_compile) 2>conftest.er1
11082   ac_status=$?
11083   grep -v '^ *+' conftest.er1 >conftest.err
11084   rm -f conftest.er1
11085   cat conftest.err >&5
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); } &&
11088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090   (eval $ac_try) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; } &&
11094          { ac_try='test -s conftest.$ac_objext'
11095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096   (eval $ac_try) 2>&5
11097   ac_status=$?
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); }; }; then
11100   am_cv_proto_iconv_arg1=""
11101 else
11102   echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11104
11105 am_cv_proto_iconv_arg1="const"
11106 fi
11107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11108       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);"
11109 fi
11110
11111     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11112     echo "$as_me:$LINENO: result: ${ac_t:-
11113          }$am_cv_proto_iconv" >&5
11114 echo "${ECHO_T}${ac_t:-
11115          }$am_cv_proto_iconv" >&6
11116
11117 cat >>confdefs.h <<_ACEOF
11118 #define ICONV_CONST $am_cv_proto_iconv_arg1
11119 _ACEOF
11120
11121   fi
11122
11123 # Until we have in-tree GNU iconv:
11124 LIBICONV_DEP=
11125
11126
11127
11128   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11129 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11130 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11131   echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133   cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h.  */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h.  */
11139 #include <locale.h>
11140 int
11141 main ()
11142 {
11143 return LC_MESSAGES
11144   ;
11145   return 0;
11146 }
11147 _ACEOF
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150   (eval $ac_link) 2>conftest.er1
11151   ac_status=$?
11152   grep -v '^ *+' conftest.er1 >conftest.err
11153   rm -f conftest.er1
11154   cat conftest.err >&5
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); } &&
11157          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159   (eval $ac_try) 2>&5
11160   ac_status=$?
11161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); }; } &&
11163          { ac_try='test -s conftest$ac_exeext'
11164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165   (eval $ac_try) 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; }; then
11169   am_cv_val_LC_MESSAGES=yes
11170 else
11171   echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174 am_cv_val_LC_MESSAGES=no
11175 fi
11176 rm -f conftest.err conftest.$ac_objext \
11177       conftest$ac_exeext conftest.$ac_ext
11178 fi
11179 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11180 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11181   if test $am_cv_val_LC_MESSAGES = yes; then
11182
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_LC_MESSAGES 1
11185 _ACEOF
11186
11187   fi
11188
11189
11190
11191   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11192 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11193 if test "${am_cv_langinfo_codeset+set}" = set; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196   cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h.  */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h.  */
11202 #include <langinfo.h>
11203 int
11204 main ()
11205 {
11206 char* cs = nl_langinfo(CODESET);
11207   ;
11208   return 0;
11209 }
11210 _ACEOF
11211 rm -f conftest.$ac_objext conftest$ac_exeext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213   (eval $ac_link) 2>conftest.er1
11214   ac_status=$?
11215   grep -v '^ *+' conftest.er1 >conftest.err
11216   rm -f conftest.er1
11217   cat conftest.err >&5
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); } &&
11220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222   (eval $ac_try) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; } &&
11226          { ac_try='test -s conftest$ac_exeext'
11227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228   (eval $ac_try) 2>&5
11229   ac_status=$?
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); }; }; then
11232   am_cv_langinfo_codeset=yes
11233 else
11234   echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11236
11237 am_cv_langinfo_codeset=no
11238 fi
11239 rm -f conftest.err conftest.$ac_objext \
11240       conftest$ac_exeext conftest.$ac_ext
11241
11242 fi
11243 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11244 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11245   if test $am_cv_langinfo_codeset = yes; then
11246
11247 cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_LANGINFO_CODESET 1
11249 _ACEOF
11250
11251   fi
11252
11253
11254 # We will need to find libiberty.h and ansidecl.h
11255 saved_CFLAGS="$CFLAGS"
11256 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11297         strsignal strstr strverscmp \
11298         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11299         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
11300 do
11301   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11302 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11303 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11304 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11305   echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307   cat >conftest.$ac_ext <<_ACEOF
11308 /* confdefs.h.  */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h.  */
11313 #undef $ac_tr_decl
11314 #define $ac_tr_decl 1
11315
11316 #include "ansidecl.h"
11317 #include "system.h"
11318
11319 int
11320 main ()
11321 {
11322 #ifndef $ac_func
11323 char *(*pfn) = (char *(*)) $ac_func ;
11324 #endif
11325   ;
11326   return 0;
11327 }
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331   (eval $ac_compile) 2>conftest.er1
11332   ac_status=$?
11333   grep -v '^ *+' conftest.er1 >conftest.err
11334   rm -f conftest.er1
11335   cat conftest.err >&5
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); } &&
11338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340   (eval $ac_try) 2>&5
11341   ac_status=$?
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); }; } &&
11344          { ac_try='test -s conftest.$ac_objext'
11345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346   (eval $ac_try) 2>&5
11347   ac_status=$?
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); }; }; then
11350   eval "gcc_cv_have_decl_$ac_func=yes"
11351 else
11352   echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11354
11355 eval "gcc_cv_have_decl_$ac_func=no"
11356 fi
11357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11358 fi
11359
11360 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11361   echo "$as_me:$LINENO: result: yes" >&5
11362 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11363 #define $ac_tr_decl 1
11364 _ACEOF
11365
11366 else
11367   echo "$as_me:$LINENO: result: no" >&5
11368 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11369 #define $ac_tr_decl 0
11370 _ACEOF
11371
11372 fi
11373
11374 done
11375
11376
11377
11378
11379
11380 for ac_func in getrlimit setrlimit getrusage
11381 do
11382   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11383 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11384 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11385 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h.  */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h.  */
11394 #undef $ac_tr_decl
11395 #define $ac_tr_decl 1
11396
11397 #include "ansidecl.h"
11398 #include "system.h"
11399 #ifdef HAVE_SYS_RESOURCE_H
11400 #include <sys/resource.h>
11401 #endif
11402
11403
11404 int
11405 main ()
11406 {
11407 #ifndef $ac_func
11408 char *(*pfn) = (char *(*)) $ac_func ;
11409 #endif
11410   ;
11411   return 0;
11412 }
11413 _ACEOF
11414 rm -f conftest.$ac_objext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11416   (eval $ac_compile) 2>conftest.er1
11417   ac_status=$?
11418   grep -v '^ *+' conftest.er1 >conftest.err
11419   rm -f conftest.er1
11420   cat conftest.err >&5
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); } &&
11423          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425   (eval $ac_try) 2>&5
11426   ac_status=$?
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); }; } &&
11429          { ac_try='test -s conftest.$ac_objext'
11430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431   (eval $ac_try) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }; }; then
11435   eval "gcc_cv_have_decl_$ac_func=yes"
11436 else
11437   echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 eval "gcc_cv_have_decl_$ac_func=no"
11441 fi
11442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11443 fi
11444
11445 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11446   echo "$as_me:$LINENO: result: yes" >&5
11447 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11448 #define $ac_tr_decl 1
11449 _ACEOF
11450
11451 else
11452   echo "$as_me:$LINENO: result: no" >&5
11453 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11454 #define $ac_tr_decl 0
11455 _ACEOF
11456
11457 fi
11458
11459 done
11460
11461
11462 cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h.  */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h.  */
11468
11469 #include "ansidecl.h"
11470 #include "system.h"
11471 #ifdef HAVE_SYS_RESOURCE_H
11472 #include <sys/resource.h>
11473 #endif
11474
11475 int
11476 main ()
11477 {
11478 rlim_t l = 0;
11479   ;
11480   return 0;
11481 }
11482 _ACEOF
11483 rm -f conftest.$ac_objext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485   (eval $ac_compile) 2>conftest.er1
11486   ac_status=$?
11487   grep -v '^ *+' conftest.er1 >conftest.err
11488   rm -f conftest.er1
11489   cat conftest.err >&5
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); } &&
11492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; } &&
11498          { ac_try='test -s conftest.$ac_objext'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; }; then
11504   :
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509
11510 cat >>confdefs.h <<\_ACEOF
11511 #define rlim_t long
11512 _ACEOF
11513
11514 fi
11515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11516
11517 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11518 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11519 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11520 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11521
11522 for ac_func in ldgetname
11523 do
11524   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11525 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11526 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11527 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11528   echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530   cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h.  */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h.  */
11536 #undef $ac_tr_decl
11537 #define $ac_tr_decl 1
11538
11539 #include "ansidecl.h"
11540 #include "system.h"
11541 #ifdef HAVE_LDFCN_H
11542 #undef FREAD
11543 #undef FWRITE
11544 #include <ldfcn.h>
11545 #endif
11546
11547
11548 int
11549 main ()
11550 {
11551 #ifndef $ac_func
11552 char *(*pfn) = (char *(*)) $ac_func ;
11553 #endif
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560   (eval $ac_compile) 2>conftest.er1
11561   ac_status=$?
11562   grep -v '^ *+' conftest.er1 >conftest.err
11563   rm -f conftest.er1
11564   cat conftest.err >&5
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } &&
11567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569   (eval $ac_try) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; } &&
11573          { ac_try='test -s conftest.$ac_objext'
11574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575   (eval $ac_try) 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); }; }; then
11579   eval "gcc_cv_have_decl_$ac_func=yes"
11580 else
11581   echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11583
11584 eval "gcc_cv_have_decl_$ac_func=no"
11585 fi
11586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11587 fi
11588
11589 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11590   echo "$as_me:$LINENO: result: yes" >&5
11591 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11592 #define $ac_tr_decl 1
11593 _ACEOF
11594
11595 else
11596   echo "$as_me:$LINENO: result: no" >&5
11597 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11598 #define $ac_tr_decl 0
11599 _ACEOF
11600
11601 fi
11602
11603 done
11604
11605
11606
11607 for ac_func in times
11608 do
11609   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11610 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11611 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11612 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615   cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621 #undef $ac_tr_decl
11622 #define $ac_tr_decl 1
11623
11624 #include "ansidecl.h"
11625 #include "system.h"
11626 #ifdef HAVE_SYS_TIMES_H
11627 #include <sys/times.h>
11628 #endif
11629
11630
11631 int
11632 main ()
11633 {
11634 #ifndef $ac_func
11635 char *(*pfn) = (char *(*)) $ac_func ;
11636 #endif
11637   ;
11638   return 0;
11639 }
11640 _ACEOF
11641 rm -f conftest.$ac_objext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643   (eval $ac_compile) 2>conftest.er1
11644   ac_status=$?
11645   grep -v '^ *+' conftest.er1 >conftest.err
11646   rm -f conftest.er1
11647   cat conftest.err >&5
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); } &&
11650          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652   (eval $ac_try) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); }; } &&
11656          { ac_try='test -s conftest.$ac_objext'
11657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658   (eval $ac_try) 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); }; }; then
11662   eval "gcc_cv_have_decl_$ac_func=yes"
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667 eval "gcc_cv_have_decl_$ac_func=no"
11668 fi
11669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11670 fi
11671
11672 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11673   echo "$as_me:$LINENO: result: yes" >&5
11674 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11675 #define $ac_tr_decl 1
11676 _ACEOF
11677
11678 else
11679   echo "$as_me:$LINENO: result: no" >&5
11680 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11681 #define $ac_tr_decl 0
11682 _ACEOF
11683
11684 fi
11685
11686 done
11687
11688
11689 # More time-related stuff.
11690 echo "$as_me:$LINENO: checking for struct tms" >&5
11691 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11692 if test "${ac_cv_struct_tms+set}" = set; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695
11696 cat >conftest.$ac_ext <<_ACEOF
11697 /* confdefs.h.  */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h.  */
11702
11703 #include "ansidecl.h"
11704 #include "system.h"
11705 #ifdef HAVE_SYS_TIMES_H
11706 #include <sys/times.h>
11707 #endif
11708
11709 int
11710 main ()
11711 {
11712 struct tms tms;
11713   ;
11714   return 0;
11715 }
11716 _ACEOF
11717 rm -f conftest.$ac_objext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719   (eval $ac_compile) 2>conftest.er1
11720   ac_status=$?
11721   grep -v '^ *+' conftest.er1 >conftest.err
11722   rm -f conftest.er1
11723   cat conftest.err >&5
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } &&
11726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728   (eval $ac_try) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; } &&
11732          { ac_try='test -s conftest.$ac_objext'
11733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734   (eval $ac_try) 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); }; }; then
11738   ac_cv_struct_tms=yes
11739 else
11740   echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11742
11743 ac_cv_struct_tms=no
11744 fi
11745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11746 fi
11747 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11748 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11749 if test $ac_cv_struct_tms = yes; then
11750
11751 cat >>confdefs.h <<\_ACEOF
11752 #define HAVE_STRUCT_TMS 1
11753 _ACEOF
11754
11755 fi
11756
11757 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11758 # revisit after autoconf 2.50.
11759 echo "$as_me:$LINENO: checking for clock_t" >&5
11760 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11761 if test "${gcc_cv_type_clock_t+set}" = set; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771
11772 #include "ansidecl.h"
11773 #include "system.h"
11774
11775 int
11776 main ()
11777 {
11778 clock_t x;
11779   ;
11780   return 0;
11781 }
11782 _ACEOF
11783 rm -f conftest.$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785   (eval $ac_compile) 2>conftest.er1
11786   ac_status=$?
11787   grep -v '^ *+' conftest.er1 >conftest.err
11788   rm -f conftest.er1
11789   cat conftest.err >&5
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); } &&
11792          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794   (eval $ac_try) 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); }; } &&
11798          { ac_try='test -s conftest.$ac_objext'
11799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800   (eval $ac_try) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; }; then
11804   gcc_cv_type_clock_t=yes
11805 else
11806   echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11808
11809 gcc_cv_type_clock_t=no
11810 fi
11811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11812 fi
11813 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11814 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11815 if test $gcc_cv_type_clock_t = yes; then
11816
11817 cat >>confdefs.h <<\_ACEOF
11818 #define HAVE_CLOCK_T 1
11819 _ACEOF
11820
11821 fi
11822
11823 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11824 CFLAGS="$saved_CFLAGS"
11825
11826 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11827 if test "${enable_initfini_array+set}" = set; then
11828   enableval="$enable_initfini_array"
11829
11830 else
11831
11832 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11833 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11834 if test "${gcc_cv_initfini_array+set}" = set; then
11835   echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837     if test "$cross_compiling" = yes; then
11838   gcc_cv_initfini_array=no
11839 else
11840   cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h.  */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h.  */
11846
11847 static int x = -1;
11848 int main (void) { return x; }
11849 int foo (void) { x = 0; }
11850 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11851 _ACEOF
11852 rm -f conftest$ac_exeext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11854   (eval $ac_link) 2>&5
11855   ac_status=$?
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859   (eval $ac_try) 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); }; }; then
11863   gcc_cv_initfini_array=yes
11864 else
11865   echo "$as_me: program exited with status $ac_status" >&5
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11868
11869 ( exit $ac_status )
11870 gcc_cv_initfini_array=no
11871 fi
11872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11873 fi
11874 fi
11875 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11876 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11877   enable_initfini_array=$gcc_cv_initfini_array
11878
11879 fi;
11880 if test $enable_initfini_array = yes; then
11881
11882 cat >>confdefs.h <<\_ACEOF
11883 #define HAVE_INITFINI_ARRAY 1
11884 _ACEOF
11885
11886 fi
11887
11888 # mkdir takes a single argument on some systems.
11889 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11890 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11891 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h.  */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h.  */
11900
11901 #include <sys/types.h>
11902 #ifdef HAVE_SYS_STAT_H
11903 # include <sys/stat.h>
11904 #endif
11905 #ifdef HAVE_UNISTD_H
11906 # include <unistd.h>
11907 #endif
11908 #ifdef HAVE_DIRECT_H
11909 # include <direct.h>
11910 #endif
11911 int
11912 main ()
11913 {
11914 mkdir ("foo", 0);
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11921   (eval $ac_compile) 2>conftest.er1
11922   ac_status=$?
11923   grep -v '^ *+' conftest.er1 >conftest.err
11924   rm -f conftest.er1
11925   cat conftest.err >&5
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } &&
11928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930   (eval $ac_try) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; } &&
11934          { ac_try='test -s conftest.$ac_objext'
11935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936   (eval $ac_try) 2>&5
11937   ac_status=$?
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); }; }; then
11940   gcc_cv_mkdir_takes_one_arg=no
11941 else
11942   echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 gcc_cv_mkdir_takes_one_arg=yes
11946 fi
11947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11948 fi
11949 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11950 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11951 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11952
11953 cat >>confdefs.h <<\_ACEOF
11954 #define MKDIR_TAKES_ONE_ARG 1
11955 _ACEOF
11956
11957 fi
11958
11959
11960 # File extensions
11961 manext='.1'
11962 objext='.o'
11963
11964
11965
11966 # With Setjmp/Longjmp based exception handling.
11967 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11968 if test "${enable_sjlj_exceptions+set}" = set; then
11969   enableval="$enable_sjlj_exceptions"
11970   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11971
11972 cat >>confdefs.h <<_ACEOF
11973 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11974 _ACEOF
11975
11976 fi;
11977
11978 # For platforms with the unwind ABI which includes an unwind library,
11979 # libunwind, we can choose to use the system libunwind.
11980
11981 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11982 if test "${with_system_libunwind+set}" = set; then
11983   withval="$with_system_libunwind"
11984
11985 fi;
11986
11987 # --------------------------------------------------------
11988 # Build, host, and target specific configuration fragments
11989 # --------------------------------------------------------
11990
11991 # Collect build-machine-specific information.
11992 . ${srcdir}/config.build
11993
11994 # Collect host-machine-specific information.
11995 . ${srcdir}/config.host
11996
11997 target_gtfiles=
11998
11999 # Collect target-machine-specific information.
12000 . ${srcdir}/config.gcc
12001
12002 extra_objs="${host_extra_objs} ${extra_objs}"
12003 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12004
12005 # Default the target-machine variables that were not explicitly set.
12006 if test x"$tm_file" = x
12007 then tm_file=$cpu_type/$cpu_type.h; fi
12008
12009 if test x"$extra_headers" = x
12010 then extra_headers=; fi
12011
12012 if test x$md_file = x
12013 then md_file=$cpu_type/$cpu_type.md; fi
12014
12015 if test x$out_file = x
12016 then out_file=$cpu_type/$cpu_type.c; fi
12017
12018 if test x"$tmake_file" = x
12019 then tmake_file=$cpu_type/t-$cpu_type
12020 fi
12021
12022 if test x"$dwarf2" = xyes
12023 then tm_file="$tm_file tm-dwarf2.h"
12024 fi
12025
12026 # Say what files are being used for the output code and MD file.
12027 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12028 echo "Using \`$srcdir/config/$md_file' as machine description file."
12029
12030 # If any of the xm_file variables contain nonexistent files, warn
12031 # about them and drop them.
12032
12033 bx=
12034 for x in $build_xm_file; do
12035   if    test -f $srcdir/config/$x
12036   then      bx="$bx $x"
12037   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12038 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12039   fi
12040 done
12041 build_xm_file="$bx"
12042
12043 hx=
12044 for x in $host_xm_file; do
12045   if    test -f $srcdir/config/$x
12046   then      hx="$hx $x"
12047   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12048 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12049   fi
12050 done
12051 host_xm_file="$hx"
12052
12053 tx=
12054 for x in $xm_file; do
12055   if    test -f $srcdir/config/$x
12056   then      tx="$tx $x"
12057   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12058 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12059   fi
12060 done
12061 xm_file="$tx"
12062
12063 count=a
12064 for f in $tm_file; do
12065         count=${count}x
12066 done
12067 if test $count = ax; then
12068         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12069 else
12070         echo "Using the following target machine macro files:"
12071         for f in $tm_file; do
12072                 echo "  $srcdir/config/$f"
12073         done
12074 fi
12075
12076 if test x$need_64bit_hwint = xyes; then
12077
12078 cat >>confdefs.h <<\_ACEOF
12079 #define NEED_64BIT_HOST_WIDE_INT 1
12080 _ACEOF
12081
12082 fi
12083
12084 if test x$use_long_long_for_widest_fast_int = xyes; then
12085
12086 cat >>confdefs.h <<\_ACEOF
12087 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12088 _ACEOF
12089
12090 fi
12091
12092 count=a
12093 for f in $host_xm_file; do
12094         count=${count}x
12095 done
12096 if test $count = a; then
12097         :
12098 elif test $count = ax; then
12099         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12100 else
12101         echo "Using the following host machine macro files:"
12102         for f in $host_xm_file; do
12103                 echo "  $srcdir/config/$f"
12104         done
12105 fi
12106 echo "Using ${out_host_hook_obj} for host machine hooks."
12107
12108 if test "$host_xm_file" != "$build_xm_file"; then
12109         count=a
12110         for f in $build_xm_file; do
12111                 count=${count}x
12112         done
12113         if test $count = a; then
12114                 :
12115         elif test $count = ax; then
12116                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12117         else
12118                 echo "Using the following build machine macro files:"
12119                 for f in $build_xm_file; do
12120                         echo "  $srcdir/config/$f"
12121                 done
12122         fi
12123 fi
12124
12125 # ---------
12126 # Threading
12127 # ---------
12128
12129 # Check if a valid thread package
12130 case ${enable_threads} in
12131   "" | no)
12132     # No threads
12133     target_thread_file='single'
12134     ;;
12135   yes)
12136     # default
12137     target_thread_file='single'
12138     ;;
12139   aix | dce | gnat | irix | posix | posix95 | rtems | \
12140   single | solaris | vxworks | win32 )
12141     target_thread_file=${enable_threads}
12142     ;;
12143   *)
12144     echo "${enable_threads} is an unknown thread package" 1>&2
12145     exit 1
12146     ;;
12147 esac
12148
12149 if test x${thread_file} = x; then
12150   # No thread file set by target-specific clauses in config.gcc,
12151   # so use file chosen by default logic above
12152   thread_file=${target_thread_file}
12153 fi
12154
12155 # Make gthr-default.h if we have a thread file.
12156 gthread_flags=
12157 if test $thread_file != single; then
12158   rm -f gthr-default.h
12159   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12160   gthread_flags=-DHAVE_GTHR_DEFAULT
12161 fi
12162
12163
12164 # --------
12165 # UNSORTED
12166 # --------
12167
12168 use_cxa_atexit=no
12169 if test x$enable___cxa_atexit = xyes || \
12170    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12171   if test x$host = x$target; then
12172     echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12173 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12174 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177   cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12185 #define __cxa_atexit innocuous___cxa_atexit
12186
12187 /* System header to define __stub macros and hopefully few prototypes,
12188     which can conflict with char __cxa_atexit (); below.
12189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190     <limits.h> exists even on freestanding compilers.  */
12191
12192 #ifdef __STDC__
12193 # include <limits.h>
12194 #else
12195 # include <assert.h>
12196 #endif
12197
12198 #undef __cxa_atexit
12199
12200 /* Override any gcc2 internal prototype to avoid an error.  */
12201 #ifdef __cplusplus
12202 extern "C"
12203 {
12204 #endif
12205 /* We use char because int might match the return type of a gcc2
12206    builtin and then its argument prototype would still apply.  */
12207 char __cxa_atexit ();
12208 /* The GNU C library defines this for functions which it implements
12209     to always fail with ENOSYS.  Some functions are actually named
12210     something starting with __ and the normal name is an alias.  */
12211 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12212 choke me
12213 #else
12214 char (*f) () = __cxa_atexit;
12215 #endif
12216 #ifdef __cplusplus
12217 }
12218 #endif
12219
12220 int
12221 main ()
12222 {
12223 return f != __cxa_atexit;
12224   ;
12225   return 0;
12226 }
12227 _ACEOF
12228 rm -f conftest.$ac_objext conftest$ac_exeext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230   (eval $ac_link) 2>conftest.er1
12231   ac_status=$?
12232   grep -v '^ *+' conftest.er1 >conftest.err
12233   rm -f conftest.er1
12234   cat conftest.err >&5
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); } &&
12237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239   (eval $ac_try) 2>&5
12240   ac_status=$?
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); }; } &&
12243          { ac_try='test -s conftest$ac_exeext'
12244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245   (eval $ac_try) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); }; }; then
12249   ac_cv_func___cxa_atexit=yes
12250 else
12251   echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12253
12254 ac_cv_func___cxa_atexit=no
12255 fi
12256 rm -f conftest.err conftest.$ac_objext \
12257       conftest$ac_exeext conftest.$ac_ext
12258 fi
12259 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12260 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12261 if test $ac_cv_func___cxa_atexit = yes; then
12262   use_cxa_atexit=yes
12263 else
12264   echo "__cxa_atexit can't be enabled on this target"
12265 fi
12266
12267   else
12268     # We can't check for __cxa_atexit when building a cross, so assume
12269     # it is available
12270     use_cxa_atexit=yes
12271   fi
12272   if test x$use_cxa_atexit = xyes; then
12273
12274 cat >>confdefs.h <<\_ACEOF
12275 #define DEFAULT_USE_CXA_ATEXIT 1
12276 _ACEOF
12277
12278   fi
12279 fi
12280
12281 # Look for a file containing extra machine modes.
12282 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12283   extra_modes_file='$(srcdir)'/config/${extra_modes}
12284
12285
12286 cat >>confdefs.h <<_ACEOF
12287 #define EXTRA_MODES_FILE "config/$extra_modes"
12288 _ACEOF
12289
12290 fi
12291
12292 # Convert extra_options into a form suitable for Makefile use.
12293 extra_opt_files=
12294 for f in $extra_options; do
12295   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12296 done
12297
12298
12299 # auto-host.h is the file containing items generated by autoconf and is
12300 # the first file included by config.h.
12301 # If host=build, it is correct to have bconfig include auto-host.h
12302 # as well.  If host!=build, we are in error and need to do more
12303 # work to find out the build config parameters.
12304 if test x$host = x$build
12305 then
12306         build_auto=auto-host.h
12307 else
12308         # We create a subdir, then run autoconf in the subdir.
12309         # To prevent recursion we set host and build for the new
12310         # invocation of configure to the build for this invocation
12311         # of configure.
12312         tempdir=build.$$
12313         rm -rf $tempdir
12314         mkdir $tempdir
12315         cd $tempdir
12316         case ${srcdir} in
12317         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12318         *) realsrcdir=../${srcdir};;
12319         esac
12320         saved_CFLAGS="${CFLAGS}"
12321         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12322         ${realsrcdir}/configure \
12323                 --enable-languages=${enable_languages-all} \
12324                 --target=$target_alias --host=$build_alias --build=$build_alias
12325         CFLAGS="${saved_CFLAGS}"
12326
12327         # We just finished tests for the build machine, so rename
12328         # the file auto-build.h in the gcc directory.
12329         mv auto-host.h ../auto-build.h
12330         cd ..
12331         rm -rf $tempdir
12332         build_auto=auto-build.h
12333 fi
12334
12335
12336 tm_file="${tm_file} defaults.h"
12337 tm_p_file="${tm_p_file} tm-preds.h"
12338 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12339 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12340 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12341 # put this back in temporarily.
12342 xm_file="auto-host.h ansidecl.h ${xm_file}"
12343
12344 # --------
12345 # UNSORTED
12346 # --------
12347
12348 # Compile in configure arguments.
12349 if test -f configargs.h ; then
12350         # Being re-configured.
12351         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12352         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12353 else
12354         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12355 fi
12356
12357 # Double all backslashes and backslash all quotes to turn
12358 # gcc_config_arguments into a C string.
12359 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12360 $gcc_config_arguments
12361 EOF
12362 gcc_config_arguments_str=`cat conftest.out`
12363 rm -f conftest.out
12364
12365 cat > configargs.h <<EOF
12366 /* Generated automatically. */
12367 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12368 static const char thread_model[] = "$thread_file";
12369
12370 static const struct {
12371   const char *name, *value;
12372 } configure_default_options[] = $configure_default_options;
12373 EOF
12374
12375 # Internationalization
12376 # If we haven't got the data from the intl directory,
12377 # assume NLS is disabled.
12378 USE_NLS=no
12379 LIBINTL=
12380 LIBINTL_DEP=
12381 INCINTL=
12382 XGETTEXT=
12383 GMSGFMT=
12384 POSUB=
12385 if test -f ../intl/config.intl; then
12386   . ../intl/config.intl
12387 fi
12388 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12389 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12390 if test x"$USE_NLS" != xyes; then
12391   echo "$as_me:$LINENO: result: no" >&5
12392 echo "${ECHO_T}no" >&6
12393 else
12394   echo "$as_me:$LINENO: result: yes" >&5
12395 echo "${ECHO_T}yes" >&6
12396
12397 cat >>confdefs.h <<\_ACEOF
12398 #define ENABLE_NLS 1
12399 _ACEOF
12400
12401
12402   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12403 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12404   # Look for .po and .gmo files in the source directory.
12405   CATALOGS=
12406   XLINGUAS=
12407   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12408     # If there aren't any .gmo files the shell will give us the
12409     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12410     # weeded out.
12411     case "$cat" in *\**)
12412       continue;;
12413     esac
12414     # The quadruple backslash is collapsed to a double backslash
12415     # by the backticks, then collapsed again by the double quotes,
12416     # leaving us with one backslash in the sed expression (right
12417     # before the dot that mustn't act as a wildcard).
12418     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12419     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12420     # The user is allowed to set LINGUAS to a list of languages to
12421     # install catalogs for.  If it's empty that means "all of them."
12422     if test "x$LINGUAS" = x; then
12423       CATALOGS="$CATALOGS $cat"
12424       XLINGUAS="$XLINGUAS $lang"
12425     else
12426       case "$LINGUAS" in *$lang*)
12427         CATALOGS="$CATALOGS $cat"
12428         XLINGUAS="$XLINGUAS $lang"
12429         ;;
12430       esac
12431     fi
12432   done
12433   LINGUAS="$XLINGUAS"
12434   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12435 echo "${ECHO_T}$LINGUAS" >&6
12436 fi
12437
12438 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12439 # -liconv on the link line twice.
12440 case "$LIBINTL" in *$LIBICONV*)
12441         LIBICONV= ;;
12442 esac
12443
12444 # Check whether --enable-secureplt or --disable-secureplt was given.
12445 if test "${enable_secureplt+set}" = set; then
12446   enableval="$enable_secureplt"
12447
12448 fi;
12449
12450 # Windows32 Registry support for specifying GCC installation paths.
12451 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12452 if test "${enable_win32_registry+set}" = set; then
12453   enableval="$enable_win32_registry"
12454
12455 fi;
12456
12457 case $host_os in
12458   win32 | pe | cygwin* | mingw32* | uwin*)
12459     if test "x$enable_win32_registry" != xno; then
12460       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12461 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12462 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12463   echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465   ac_func_search_save_LIBS=$LIBS
12466 ac_cv_search_RegOpenKeyExA=no
12467 cat >conftest.$ac_ext <<_ACEOF
12468 /* confdefs.h.  */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h.  */
12473
12474 /* Override any gcc2 internal prototype to avoid an error.  */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 /* We use char because int might match the return type of a gcc2
12479    builtin and then its argument prototype would still apply.  */
12480 char RegOpenKeyExA ();
12481 int
12482 main ()
12483 {
12484 RegOpenKeyExA ();
12485   ;
12486   return 0;
12487 }
12488 _ACEOF
12489 rm -f conftest.$ac_objext conftest$ac_exeext
12490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12491   (eval $ac_link) 2>conftest.er1
12492   ac_status=$?
12493   grep -v '^ *+' conftest.er1 >conftest.err
12494   rm -f conftest.er1
12495   cat conftest.err >&5
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } &&
12498          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500   (eval $ac_try) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; } &&
12504          { ac_try='test -s conftest$ac_exeext'
12505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506   (eval $ac_try) 2>&5
12507   ac_status=$?
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); }; }; then
12510   ac_cv_search_RegOpenKeyExA="none required"
12511 else
12512   echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12514
12515 fi
12516 rm -f conftest.err conftest.$ac_objext \
12517       conftest$ac_exeext conftest.$ac_ext
12518 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12519   for ac_lib in advapi32; do
12520     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12521     cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h.  */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h.  */
12527
12528 /* Override any gcc2 internal prototype to avoid an error.  */
12529 #ifdef __cplusplus
12530 extern "C"
12531 #endif
12532 /* We use char because int might match the return type of a gcc2
12533    builtin and then its argument prototype would still apply.  */
12534 char RegOpenKeyExA ();
12535 int
12536 main ()
12537 {
12538 RegOpenKeyExA ();
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12545   (eval $ac_link) 2>conftest.er1
12546   ac_status=$?
12547   grep -v '^ *+' conftest.er1 >conftest.err
12548   rm -f conftest.er1
12549   cat conftest.err >&5
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); } &&
12552          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554   (eval $ac_try) 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); }; } &&
12558          { ac_try='test -s conftest$ac_exeext'
12559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560   (eval $ac_try) 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; }; then
12564   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12565 break
12566 else
12567   echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12569
12570 fi
12571 rm -f conftest.err conftest.$ac_objext \
12572       conftest$ac_exeext conftest.$ac_ext
12573   done
12574 fi
12575 LIBS=$ac_func_search_save_LIBS
12576 fi
12577 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12578 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12579 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12580   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12581
12582 else
12583   enable_win32_registry=no
12584 fi
12585
12586     fi
12587
12588     if test "x$enable_win32_registry" != xno; then
12589
12590 cat >>confdefs.h <<\_ACEOF
12591 #define ENABLE_WIN32_REGISTRY 1
12592 _ACEOF
12593
12594
12595       if test "x$enable_win32_registry" != xyes \
12596          && test "x$enable_win32_registry" != x; then
12597
12598 cat >>confdefs.h <<_ACEOF
12599 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12600 _ACEOF
12601
12602       fi
12603     fi
12604   ;;
12605 esac
12606
12607 # Get an absolute path to the GCC top-level source directory
12608 holddir=`${PWDCMD-pwd}`
12609 cd $srcdir
12610 topdir=`${PWDCMD-pwd}`
12611 cd $holddir
12612
12613 # Conditionalize the makefile for this host machine.
12614 xmake_file=
12615 for f in ${host_xmake_file}
12616 do
12617         if test -f ${srcdir}/config/$f
12618         then
12619                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12620         fi
12621 done
12622
12623 # Conditionalize the makefile for this target machine.
12624 tmake_file_=
12625 for f in ${tmake_file}
12626 do
12627         if test -f ${srcdir}/config/$f
12628         then
12629                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12630         fi
12631 done
12632 tmake_file="${tmake_file_}"
12633
12634 # If the host doesn't support symlinks, modify CC in
12635 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12636 # Otherwise, we can use "CC=$(CC)".
12637 rm -f symtest.tem
12638 case "$LN_S" in
12639         *-s*)
12640                 cc_set_by_configure="\$(CC)"
12641                 quoted_cc_set_by_configure="\$(CC)"
12642                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12643                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12644                 ;;
12645         *)
12646                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12647                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12648                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12649                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12650                 ;;
12651 esac
12652
12653 # This is a terrible hack which will go away some day.
12654 host_cc_for_libada=${CC}
12655
12656
12657 out_object_file=`basename $out_file .c`.o
12658
12659 tm_file_list="options.h"
12660 tm_include_list="options.h"
12661 for f in $tm_file; do
12662   case $f in
12663     defaults.h )
12664        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12665        tm_include_list="${tm_include_list} $f"
12666        ;;
12667     * )
12668        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12669        tm_include_list="${tm_include_list} config/$f"
12670        ;;
12671   esac
12672 done
12673
12674 tm_p_file_list=
12675 tm_p_include_list=
12676 for f in $tm_p_file; do
12677   case $f in
12678     tm-preds.h )
12679        tm_p_file_list="${tm_p_file_list} $f"
12680        tm_p_include_list="${tm_p_include_list} $f"
12681        ;;
12682     * )
12683        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12684        tm_p_include_list="${tm_p_include_list} config/$f"
12685   esac
12686 done
12687
12688 xm_file_list=
12689 xm_include_list=
12690 for f in $xm_file; do
12691   case $f in
12692     ansidecl.h )
12693        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12694        xm_include_list="${xm_include_list} $f"
12695        ;;
12696     auto-host.h )
12697        xm_file_list="${xm_file_list} $f"
12698        xm_include_list="${xm_include_list} $f"
12699        ;;
12700     * )
12701        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12702        xm_include_list="${xm_include_list} config/$f"
12703        ;;
12704   esac
12705 done
12706
12707 host_xm_file_list=
12708 host_xm_include_list=
12709 for f in $host_xm_file; do
12710   case $f in
12711     ansidecl.h )
12712        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12713        host_xm_include_list="${host_xm_include_list} $f"
12714        ;;
12715     auto-host.h )
12716        host_xm_file_list="${host_xm_file_list} $f"
12717        host_xm_include_list="${host_xm_include_list} $f"
12718        ;;
12719     * )
12720        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12721        host_xm_include_list="${host_xm_include_list} config/$f"
12722        ;;
12723   esac
12724 done
12725
12726 build_xm_file_list=
12727 for f in $build_xm_file; do
12728   case $f in
12729     ansidecl.h )
12730        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12731        build_xm_include_list="${build_xm_include_list} $f"
12732        ;;
12733     auto-build.h | auto-host.h )
12734        build_xm_file_list="${build_xm_file_list} $f"
12735        build_xm_include_list="${build_xm_include_list} $f"
12736        ;;
12737     * )
12738        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12739        build_xm_include_list="${build_xm_include_list} config/$f"
12740        ;;
12741   esac
12742 done
12743
12744 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12745 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12746 CROSS=
12747 ALL=all.internal
12748 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12749
12750 if test "x$with_build_sysroot" != x; then
12751   build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12752 else
12753   # This value is used, even on a native system, because
12754   # CROSS_SYSTEM_HEADER_DIR is just
12755   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12756   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12757 fi
12758
12759 if test x$host != x$target
12760 then
12761         CROSS="-DCROSS_COMPILE"
12762         ALL=all.cross
12763         SYSTEM_HEADER_DIR=$build_system_header_dir
12764         case "$host","$target" in
12765         # Darwin crosses can use the host system's libraries and headers,
12766         # because of the fat library support.  Of course, it must be the
12767         # same version of Darwin on both sides.  Allow the user to
12768         # just say --target=foo-darwin without a version number to mean
12769         # "the version on this system".
12770             *-*-darwin*,*-*-darwin*)
12771                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12772                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12773                 if test $hostos = $targetos -o $targetos = darwin ; then
12774                     CROSS=
12775                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12776                     with_headers=yes
12777                 fi
12778                 ;;
12779
12780             i?86-*-*,x86_64-*-* \
12781             | powerpc*-*-*,powerpc64*-*-*)
12782                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12783         esac
12784 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12785         SYSTEM_HEADER_DIR=$build_system_header_dir
12786 fi
12787
12788 # If this is a cross-compiler that does not
12789 # have its own set of headers then define
12790 # inhibit_libc
12791
12792 # If this is using newlib, without having the headers available now,
12793 # then define inhibit_libc in LIBGCC2_CFLAGS.
12794 # This prevents libgcc2 from containing any code which requires libc
12795 # support.
12796 inhibit_libc=false
12797 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12798        test x$with_newlib = xyes ; } &&
12799      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12800        inhibit_libc=true
12801 fi
12802
12803
12804 # When building gcc with a cross-compiler, we need to adjust things so
12805 # that the generator programs are still built with the native compiler.
12806 # Also, we cannot run fixincludes or fix-header.
12807
12808 # These are the normal (build=host) settings:
12809 CC_FOR_BUILD='$(CC)'
12810 BUILD_CFLAGS='$(ALL_CFLAGS)'
12811 STMP_FIXINC=stmp-fixinc
12812
12813 # Possibly disable fixproto, on a per-target basis.
12814 case ${use_fixproto} in
12815   no)
12816     STMP_FIXPROTO=
12817     ;;
12818   yes)
12819     STMP_FIXPROTO=stmp-fixproto
12820     ;;
12821 esac
12822
12823
12824 # And these apply if build != host, or we are generating coverage data
12825 if test x$build != x$host || test "x$coverage_flags" != x
12826 then
12827     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12828
12829     if test "x$TARGET_SYSTEM_ROOT" = x; then
12830         if test "x$STMP_FIXPROTO" != x; then
12831           STMP_FIXPROTO=stmp-install-fixproto
12832         fi
12833     fi
12834 fi
12835
12836 # Expand extra_headers to include complete path.
12837 # This substitutes for lots of t-* files.
12838 extra_headers_list=
12839 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12840 for file in ${extra_headers} ; do
12841   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12842 done
12843
12844 # Define collect2 in Makefile.
12845 case $host_can_use_collect2 in
12846   no) collect2= ;;
12847   *) collect2='collect2$(exeext)' ;;
12848 esac
12849
12850
12851 # Add a definition of USE_COLLECT2 if system wants one.
12852 case $use_collect2 in
12853   no) use_collect2= ;;
12854   "") ;;
12855   *)
12856     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12857     xm_defines="${xm_defines} USE_COLLECT2"
12858     case $host_can_use_collect2 in
12859       no)
12860         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12861 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12862    { (exit 1); exit 1; }; }
12863         ;;
12864     esac
12865     ;;
12866 esac
12867
12868 # ---------------------------
12869 # Assembler & linker features
12870 # ---------------------------
12871
12872 # Identify the assembler which will work hand-in-glove with the newly
12873 # built GCC, so that we can examine its features.  This is the assembler
12874 # which will be driven by the driver program.
12875 #
12876 # If build != host, and we aren't building gas in-tree, we identify a
12877 # build->target assembler and hope that it will have the same features
12878 # as the host->target assembler we'll be using.
12879 gcc_cv_gas_major_version=
12880 gcc_cv_gas_minor_version=
12881 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12882
12883 if test "${gcc_cv_as+set}" = set; then
12884   :
12885 else
12886
12887 if test -x "$DEFAULT_ASSEMBLER"; then
12888         gcc_cv_as="$DEFAULT_ASSEMBLER"
12889 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12890      && test -f ../gas/Makefile \
12891      && test x$build = x$host; then
12892         gcc_cv_as=../gas/as-new$build_exeext
12893 elif test -x as$build_exeext; then
12894         # Build using assembler in the current directory.
12895         gcc_cv_as=./as$build_exeext
12896 elif test -x $AS_FOR_TARGET; then
12897         gcc_cv_as="$AS_FOR_TARGET"
12898 else
12899         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12900 set dummy $AS_FOR_TARGET; ac_word=$2
12901 echo "$as_me:$LINENO: checking for $ac_word" >&5
12902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12903 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12904   echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906   case $gcc_cv_as in
12907   [\\/]* | ?:[\\/]*)
12908   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12909   ;;
12910   *)
12911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $PATH
12913 do
12914   IFS=$as_save_IFS
12915   test -z "$as_dir" && as_dir=.
12916   for ac_exec_ext in '' $ac_executable_extensions; do
12917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12918     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12920     break 2
12921   fi
12922 done
12923 done
12924
12925   ;;
12926 esac
12927 fi
12928 gcc_cv_as=$ac_cv_path_gcc_cv_as
12929
12930 if test -n "$gcc_cv_as"; then
12931   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12932 echo "${ECHO_T}$gcc_cv_as" >&6
12933 else
12934   echo "$as_me:$LINENO: result: no" >&5
12935 echo "${ECHO_T}no" >&6
12936 fi
12937
12938 fi
12939 fi
12940
12941
12942 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
12943
12944
12945 echo "$as_me:$LINENO: checking what assembler to use" >&5
12946 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12947 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
12948   # Single tree build which includes gas.  We want to prefer it
12949   # over whatever linker top-level may have detected, since
12950   # we'll use what we're building after installation anyway.
12951   echo "$as_me:$LINENO: result: newly built gas" >&5
12952 echo "${ECHO_T}newly built gas" >&6
12953   in_tree_gas=yes
12954   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12955 for f in $gcc_cv_as_bfd_srcdir/configure \
12956          $gcc_cv_as_gas_srcdir/configure \
12957          $gcc_cv_as_gas_srcdir/configure.in \
12958          $gcc_cv_as_gas_srcdir/Makefile.in ; do
12959   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12960   if test x$gcc_cv_gas_version != x; then
12961     break
12962   fi
12963 done
12964 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12965 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12966 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12967 case $gcc_cv_gas_patch_version in
12968   "") gcc_cv_gas_patch_version="0" ;;
12969 esac
12970 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12971                             + $gcc_cv_gas_minor_version \) \* 1000 \
12972                             + $gcc_cv_gas_patch_version`
12973
12974   in_tree_gas_is_elf=no
12975   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12976      || (grep 'obj_format = multi' ../gas/Makefile \
12977          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12978   then
12979     in_tree_gas_is_elf=yes
12980   fi
12981 else
12982   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12983 echo "${ECHO_T}$gcc_cv_as" >&6
12984   in_tree_gas=no
12985 fi
12986
12987 # Identify the linker which will work hand-in-glove with the newly
12988 # built GCC, so that we can examine its features.  This is the linker
12989 # which will be driven by the driver program.
12990 #
12991 # If build != host, and we aren't building gas in-tree, we identify a
12992 # build->target linker and hope that it will have the same features
12993 # as the host->target linker we'll be using.
12994 gcc_cv_gld_major_version=
12995 gcc_cv_gld_minor_version=
12996 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12997 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12998
12999 if test "${gcc_cv_ld+set}" = set; then
13000   :
13001 else
13002
13003 if test -x "$DEFAULT_LINKER"; then
13004         gcc_cv_ld="$DEFAULT_LINKER"
13005 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13006      && test -f ../ld/Makefile \
13007      && test x$build = x$host; then
13008         gcc_cv_ld=../ld/ld-new$build_exeext
13009 elif test -x collect-ld$build_exeext; then
13010         # Build using linker in the current directory.
13011         gcc_cv_ld=./collect-ld$build_exeext
13012 elif test -x $LD_FOR_TARGET; then
13013         gcc_cv_ld="$LD_FOR_TARGET"
13014 else
13015         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13016 set dummy $LD_FOR_TARGET; ac_word=$2
13017 echo "$as_me:$LINENO: checking for $ac_word" >&5
13018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13019 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   case $gcc_cv_ld in
13023   [\\/]* | ?:[\\/]*)
13024   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13025   ;;
13026   *)
13027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028 for as_dir in $PATH
13029 do
13030   IFS=$as_save_IFS
13031   test -z "$as_dir" && as_dir=.
13032   for ac_exec_ext in '' $ac_executable_extensions; do
13033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13034     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13036     break 2
13037   fi
13038 done
13039 done
13040
13041   ;;
13042 esac
13043 fi
13044 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13045
13046 if test -n "$gcc_cv_ld"; then
13047   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13048 echo "${ECHO_T}$gcc_cv_ld" >&6
13049 else
13050   echo "$as_me:$LINENO: result: no" >&5
13051 echo "${ECHO_T}no" >&6
13052 fi
13053
13054 fi
13055 fi
13056
13057
13058 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13059
13060
13061 echo "$as_me:$LINENO: checking what linker to use" >&5
13062 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13063 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13064         # Single tree build which includes ld.  We want to prefer it
13065         # over whatever linker top-level may have detected, since
13066         # we'll use what we're building after installation anyway.
13067         echo "$as_me:$LINENO: result: newly built ld" >&5
13068 echo "${ECHO_T}newly built ld" >&6
13069         in_tree_ld=yes
13070         in_tree_ld_is_elf=no
13071         if (grep 'EMUL = .*elf' ../ld/Makefile \
13072             || grep 'EMUL = .*linux' ../ld/Makefile \
13073             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13074           in_tree_ld_is_elf=yes
13075         fi
13076         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
13077         do
13078                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13079                 if test x$gcc_cv_gld_version != x; then
13080                         break
13081                 fi
13082         done
13083         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13084         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13085 else
13086         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13087 echo "${ECHO_T}$gcc_cv_ld" >&6
13088         in_tree_ld=no
13089 fi
13090
13091 # Figure out what nm we will be using.
13092 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13093 if test "${gcc_cv_nm+set}" = set; then
13094   :
13095 else
13096
13097 if test -f $gcc_cv_binutils_srcdir/configure.in \
13098      && test -f ../binutils/Makefile; then
13099         gcc_cv_nm=../binutils/nm-new$build_exeext
13100 elif test -x nm$build_exeext; then
13101         gcc_cv_nm=./nm$build_exeext
13102 elif test -x $NM_FOR_TARGET; then
13103         gcc_cv_nm="$NM_FOR_TARGET"
13104 else
13105         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13106 set dummy $NM_FOR_TARGET; ac_word=$2
13107 echo "$as_me:$LINENO: checking for $ac_word" >&5
13108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13109 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13110   echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112   case $gcc_cv_nm in
13113   [\\/]* | ?:[\\/]*)
13114   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13115   ;;
13116   *)
13117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118 for as_dir in $PATH
13119 do
13120   IFS=$as_save_IFS
13121   test -z "$as_dir" && as_dir=.
13122   for ac_exec_ext in '' $ac_executable_extensions; do
13123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13126     break 2
13127   fi
13128 done
13129 done
13130
13131   ;;
13132 esac
13133 fi
13134 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13135
13136 if test -n "$gcc_cv_nm"; then
13137   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13138 echo "${ECHO_T}$gcc_cv_nm" >&6
13139 else
13140   echo "$as_me:$LINENO: result: no" >&5
13141 echo "${ECHO_T}no" >&6
13142 fi
13143
13144 fi
13145 fi
13146
13147
13148 echo "$as_me:$LINENO: checking what nm to use" >&5
13149 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13150 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13151         # Single tree build which includes binutils.
13152         echo "$as_me:$LINENO: result: newly built nm" >&5
13153 echo "${ECHO_T}newly built nm" >&6
13154         in_tree_nm=yes
13155 else
13156         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13157 echo "${ECHO_T}$gcc_cv_nm" >&6
13158         in_tree_nm=no
13159 fi
13160
13161 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13162
13163
13164 # Figure out what objdump we will be using.
13165 if test "${gcc_cv_objdump+set}" = set; then
13166   :
13167 else
13168
13169 if test -f $gcc_cv_binutils_srcdir/configure.in \
13170      && test -f ../binutils/Makefile; then
13171         # Single tree build which includes binutils.
13172         gcc_cv_objdump=../binutils/objdump$build_exeext
13173 elif test -x objdump$build_exeext; then
13174         gcc_cv_objdump=./objdump$build_exeext
13175 elif test -x $OBJDUMP_FOR_TARGET; then
13176         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13177 else
13178         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13179 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13180 echo "$as_me:$LINENO: checking for $ac_word" >&5
13181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13182 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13183   echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185   case $gcc_cv_objdump in
13186   [\\/]* | ?:[\\/]*)
13187   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13188   ;;
13189   *)
13190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191 for as_dir in $PATH
13192 do
13193   IFS=$as_save_IFS
13194   test -z "$as_dir" && as_dir=.
13195   for ac_exec_ext in '' $ac_executable_extensions; do
13196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13199     break 2
13200   fi
13201 done
13202 done
13203
13204   ;;
13205 esac
13206 fi
13207 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13208
13209 if test -n "$gcc_cv_objdump"; then
13210   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13211 echo "${ECHO_T}$gcc_cv_objdump" >&6
13212 else
13213   echo "$as_me:$LINENO: result: no" >&5
13214 echo "${ECHO_T}no" >&6
13215 fi
13216
13217 fi
13218 fi
13219
13220
13221 echo "$as_me:$LINENO: checking what objdump to use" >&5
13222 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13223 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13224         # Single tree build which includes binutils.
13225         echo "$as_me:$LINENO: result: newly built objdump" >&5
13226 echo "${ECHO_T}newly built objdump" >&6
13227 elif test x$gcc_cv_objdump = x; then
13228         echo "$as_me:$LINENO: result: not found" >&5
13229 echo "${ECHO_T}not found" >&6
13230 else
13231         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13232 echo "${ECHO_T}$gcc_cv_objdump" >&6
13233 fi
13234
13235 # Figure out what assembler alignment features are present.
13236 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13237 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13238 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241   gcc_cv_as_balign_and_p2align=no
13242     if test $in_tree_gas = yes; then
13243     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13244   then gcc_cv_as_balign_and_p2align=yes
13245 fi
13246   elif test x$gcc_cv_as != x; then
13247     echo '.balign 4
13248 .p2align 2' > conftest.s
13249     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251   (eval $ac_try) 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; }
13255     then
13256         gcc_cv_as_balign_and_p2align=yes
13257     else
13258       echo "configure: failed program was" >&5
13259       cat conftest.s >&5
13260     fi
13261     rm -f conftest.o conftest.s
13262   fi
13263 fi
13264 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13265 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13266 if test $gcc_cv_as_balign_and_p2align = yes; then
13267
13268 cat >>confdefs.h <<\_ACEOF
13269 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13270 _ACEOF
13271
13272 fi
13273
13274 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13275 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13276 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13277   echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279   gcc_cv_as_max_skip_p2align=no
13280     if test $in_tree_gas = yes; then
13281     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13282   then gcc_cv_as_max_skip_p2align=yes
13283 fi
13284   elif test x$gcc_cv_as != x; then
13285     echo '.p2align 4,,7' > conftest.s
13286     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288   (eval $ac_try) 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); }; }
13292     then
13293         gcc_cv_as_max_skip_p2align=yes
13294     else
13295       echo "configure: failed program was" >&5
13296       cat conftest.s >&5
13297     fi
13298     rm -f conftest.o conftest.s
13299   fi
13300 fi
13301 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13302 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13303 if test $gcc_cv_as_max_skip_p2align = yes; then
13304
13305 cat >>confdefs.h <<\_ACEOF
13306 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13307 _ACEOF
13308
13309 fi
13310
13311 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13312 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13313 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13314   echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316   gcc_cv_as_subsection_m1=no
13317     if test $in_tree_gas = yes; then
13318     if test $in_tree_gas_is_elf = yes \
13319   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13320   then gcc_cv_as_subsection_m1=yes
13321 fi
13322   elif test x$gcc_cv_as != x; then
13323     echo 'conftest_label1: .word 0
13324 .subsection -1
13325 conftest_label2: .word 0
13326 .previous' > conftest.s
13327     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329   (eval $ac_try) 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); }; }
13333     then
13334         if test x$gcc_cv_nm != x; then
13335     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13336     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13337     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13338     then :
13339     else gcc_cv_as_subsection_m1=yes
13340     fi
13341     rm -f conftest.nm1 conftest.nm2
13342   fi
13343     else
13344       echo "configure: failed program was" >&5
13345       cat conftest.s >&5
13346     fi
13347     rm -f conftest.o conftest.s
13348   fi
13349 fi
13350 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13351 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13352 if test $gcc_cv_as_subsection_m1 = yes; then
13353
13354 cat >>confdefs.h <<\_ACEOF
13355 #define HAVE_GAS_SUBSECTION_ORDERING 1
13356 _ACEOF
13357
13358 fi
13359
13360 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13361 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13362 if test "${gcc_cv_as_weak+set}" = set; then
13363   echo $ECHO_N "(cached) $ECHO_C" >&6
13364 else
13365   gcc_cv_as_weak=no
13366     if test $in_tree_gas = yes; then
13367     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13368   then gcc_cv_as_weak=yes
13369 fi
13370   elif test x$gcc_cv_as != x; then
13371     echo '      .weak foobar' > conftest.s
13372     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374   (eval $ac_try) 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; }
13378     then
13379         gcc_cv_as_weak=yes
13380     else
13381       echo "configure: failed program was" >&5
13382       cat conftest.s >&5
13383     fi
13384     rm -f conftest.o conftest.s
13385   fi
13386 fi
13387 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13388 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13389 if test $gcc_cv_as_weak = yes; then
13390
13391 cat >>confdefs.h <<\_ACEOF
13392 #define HAVE_GAS_WEAK 1
13393 _ACEOF
13394
13395 fi
13396
13397 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13398 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13399 if test "${gcc_cv_as_weakref+set}" = set; then
13400   echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402   gcc_cv_as_weakref=no
13403     if test $in_tree_gas = yes; then
13404     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13405   then gcc_cv_as_weakref=yes
13406 fi
13407   elif test x$gcc_cv_as != x; then
13408     echo '      .weakref foobar, barfnot' > conftest.s
13409     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411   (eval $ac_try) 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); }; }
13415     then
13416         gcc_cv_as_weakref=yes
13417     else
13418       echo "configure: failed program was" >&5
13419       cat conftest.s >&5
13420     fi
13421     rm -f conftest.o conftest.s
13422   fi
13423 fi
13424 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13425 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13426 if test $gcc_cv_as_weakref = yes; then
13427
13428 cat >>confdefs.h <<\_ACEOF
13429 #define HAVE_GAS_WEAKREF 1
13430 _ACEOF
13431
13432 fi
13433
13434 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13435 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13436 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13437   echo $ECHO_N "(cached) $ECHO_C" >&6
13438 else
13439   gcc_cv_as_nsubspa_comdat=no
13440     if test $in_tree_gas = yes; then
13441     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13442   then gcc_cv_as_nsubspa_comdat=yes
13443 fi
13444   elif test x$gcc_cv_as != x; then
13445     echo '      .SPACE $TEXT$
13446         .NSUBSPA $CODE$,COMDAT' > conftest.s
13447     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449   (eval $ac_try) 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); }; }
13453     then
13454         gcc_cv_as_nsubspa_comdat=yes
13455     else
13456       echo "configure: failed program was" >&5
13457       cat conftest.s >&5
13458     fi
13459     rm -f conftest.o conftest.s
13460   fi
13461 fi
13462 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13463 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13464 if test $gcc_cv_as_nsubspa_comdat = yes; then
13465
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_GAS_NSUBSPA_COMDAT 1
13468 _ACEOF
13469
13470 fi
13471
13472 # .hidden needs to be supported in both the assembler and the linker,
13473 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13474 # This is irritatingly difficult to feature test for; we have to check the
13475 # date string after the version number.  If we've got an in-tree
13476 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13477 # to be safe.
13478 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13479 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13480 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13481 if test "${gcc_cv_as_hidden+set}" = set; then
13482   echo $ECHO_N "(cached) $ECHO_C" >&6
13483 else
13484   gcc_cv_as_hidden=no
13485     if test $in_tree_gas = yes; then
13486     if test $in_tree_gas_is_elf = yes \
13487   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13488   then gcc_cv_as_hidden=yes
13489 fi
13490   elif test x$gcc_cv_as != x; then
13491     echo '      .hidden foobar
13492 foobar:' > conftest.s
13493     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495   (eval $ac_try) 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); }; }
13499     then
13500         gcc_cv_as_hidden=yes
13501     else
13502       echo "configure: failed program was" >&5
13503       cat conftest.s >&5
13504     fi
13505     rm -f conftest.o conftest.s
13506   fi
13507 fi
13508 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13509 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13510
13511
13512 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13513 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13514 if test "${gcc_cv_ld_hidden+set}" = set; then
13515   echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517   if test $in_tree_ld = yes ; then
13518   gcc_cv_ld_hidden=no
13519   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 \
13520      && test $in_tree_ld_is_elf = yes; then
13521      gcc_cv_ld_hidden=yes
13522   fi
13523 else
13524   gcc_cv_ld_hidden=yes
13525   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13526   if echo "$ld_ver" | grep GNU > /dev/null; then
13527     ld_vers=`echo $ld_ver | sed -n \
13528         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13529         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13530         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13531         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13532         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13533         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
13534         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   ].*$,\1,p'`
13535     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'`
13536     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13537     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13538     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13539     if test 0"$ld_date" -lt 20020404; then
13540       if test -n "$ld_date"; then
13541         # If there was date string, but was earlier than 2002-04-04, fail
13542         gcc_cv_ld_hidden=no
13543       elif test -z "$ld_vers"; then
13544         # If there was no date string nor ld version number, something is wrong
13545         gcc_cv_ld_hidden=no
13546       else
13547         test -z "$ld_vers_patch" && ld_vers_patch=0
13548         if test "$ld_vers_major" -lt 2; then
13549           gcc_cv_ld_hidden=no
13550         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13551           gcc_cv_ld_hidden="no"
13552         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13553           gcc_cv_ld_hidden=no
13554         fi
13555       fi
13556     fi
13557   else
13558     case "${target}" in
13559       hppa64*-*-hpux* | ia64*-*-hpux*)
13560         gcc_cv_ld_hidden=yes
13561         ;;
13562       *)
13563         gcc_cv_ld_hidden=no
13564         ;;
13565     esac
13566   fi
13567 fi
13568 fi
13569 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13570 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13571 libgcc_visibility=no
13572
13573
13574 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13575   libgcc_visibility=yes
13576
13577 cat >>confdefs.h <<\_ACEOF
13578 #define HAVE_GAS_HIDDEN 1
13579 _ACEOF
13580
13581 fi
13582
13583 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13584 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13585 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13586 if test "${gcc_cv_as_leb128+set}" = set; then
13587   echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589   gcc_cv_as_leb128=no
13590     if test $in_tree_gas = yes; then
13591     if test $in_tree_gas_is_elf = yes \
13592   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13593   then gcc_cv_as_leb128=yes
13594 fi
13595   elif test x$gcc_cv_as != x; then
13596     echo '      .data
13597         .uleb128 L2 - L1
13598 L1:
13599         .uleb128 1280
13600         .sleb128 -1010
13601 L2:' > conftest.s
13602     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604   (eval $ac_try) 2>&5
13605   ac_status=$?
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); }; }
13608     then
13609         # GAS versions before 2.11 do not support uleb128,
13610   # despite appearing to.
13611   # ??? There exists an elf-specific test that will crash
13612   # the assembler.  Perhaps it's better to figure out whether
13613   # arbitrary sections are supported and try the test.
13614   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13615   if echo "$as_ver" | grep GNU > /dev/null; then
13616     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13617     as_major=`echo $as_ver | sed 's/\..*//'`
13618     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13619     if test $as_major -eq 2 && test $as_minor -lt 11
13620     then :
13621     else gcc_cv_as_leb128=yes
13622     fi
13623   fi
13624     else
13625       echo "configure: failed program was" >&5
13626       cat conftest.s >&5
13627     fi
13628     rm -f conftest.o conftest.s
13629   fi
13630 fi
13631 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13632 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13633 if test $gcc_cv_as_leb128 = yes; then
13634
13635 cat >>confdefs.h <<\_ACEOF
13636 #define HAVE_AS_LEB128 1
13637 _ACEOF
13638
13639 fi
13640
13641 # GAS versions up to and including 2.11.0 may mis-optimize
13642 # .eh_frame data.
13643 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13644 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13645 if test "${gcc_cv_as_eh_frame+set}" = set; then
13646   echo $ECHO_N "(cached) $ECHO_C" >&6
13647 else
13648   gcc_cv_as_eh_frame=no
13649     if test $in_tree_gas = yes; then
13650     if test $in_tree_gas_is_elf = yes \
13651   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13652   then gcc_cv_as_eh_frame=yes
13653 fi
13654   elif test x$gcc_cv_as != x; then
13655     echo '      .text
13656 .LFB1:
13657         .4byte  0
13658 .L1:
13659         .4byte  0
13660 .LFE1:
13661         .section        .eh_frame,"aw",@progbits
13662 __FRAME_BEGIN__:
13663         .4byte  .LECIE1-.LSCIE1
13664 .LSCIE1:
13665         .4byte  0x0
13666         .byte   0x1
13667         .ascii "z\0"
13668         .byte   0x1
13669         .byte   0x78
13670         .byte   0x1a
13671         .byte   0x0
13672         .byte   0x4
13673         .4byte  1
13674         .p2align 1
13675 .LECIE1:
13676 .LSFDE1:
13677         .4byte  .LEFDE1-.LASFDE1
13678 .LASFDE1:
13679         .4byte  .LASFDE1-__FRAME_BEGIN__
13680         .4byte  .LFB1
13681         .4byte  .LFE1-.LFB1
13682         .byte   0x4
13683         .4byte  .LFE1-.LFB1
13684         .byte   0x4
13685         .4byte  .L1-.LFB1
13686 .LEFDE1:' > conftest.s
13687     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689   (eval $ac_try) 2>&5
13690   ac_status=$?
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); }; }
13693     then
13694           cat > conftest.lit <<EOF
13695  0000 10000000 00000000 017a0001 781a0004  .........z..x...
13696  0010 01000000 12000000 18000000 00000000  ................
13697  0020 08000000 04080000 0044               .........D      
13698 EOF
13699 cat > conftest.big <<EOF
13700  0000 00000010 00000000 017a0001 781a0004  .........z..x...
13701  0010 00000001 00000012 00000018 00000000  ................
13702  0020 00000008 04000000 0844               .........D      
13703 EOF
13704   # If the assembler didn't choke, and we can objdump,
13705   # and we got the correct data, then succeed.
13706   if test x$gcc_cv_objdump != x \
13707   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13708      | tail -3 > conftest.got \
13709   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13710     || cmp conftest.big conftest.got > /dev/null 2>&1; }
13711   then
13712     gcc_cv_as_eh_frame=yes
13713   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715   (eval $ac_try) 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); }; }; then
13719     gcc_cv_as_eh_frame=buggy
13720   else
13721     # Uh oh, what do we do now?
13722     gcc_cv_as_eh_frame=no
13723   fi
13724     else
13725       echo "configure: failed program was" >&5
13726       cat conftest.s >&5
13727     fi
13728     rm -f conftest.o conftest.s
13729   fi
13730 fi
13731 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13732 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13733
13734
13735 if test $gcc_cv_as_eh_frame = buggy; then
13736
13737 cat >>confdefs.h <<\_ACEOF
13738 #define USE_AS_TRADITIONAL_FORMAT 1
13739 _ACEOF
13740
13741 fi
13742
13743 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13744 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13745 if test "${gcc_cv_as_shf_merge+set}" = set; then
13746   echo $ECHO_N "(cached) $ECHO_C" >&6
13747 else
13748   gcc_cv_as_shf_merge=no
13749     if test $in_tree_gas = yes; then
13750     if test $in_tree_gas_is_elf = yes \
13751   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13752   then gcc_cv_as_shf_merge=yes
13753 fi
13754   elif test x$gcc_cv_as != x; then
13755     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13756     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758   (eval $ac_try) 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }; }
13762     then
13763         gcc_cv_as_shf_merge=yes
13764     else
13765       echo "configure: failed program was" >&5
13766       cat conftest.s >&5
13767     fi
13768     rm -f conftest.o conftest.s
13769   fi
13770 fi
13771 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13772 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13773
13774 if test $gcc_cv_as_shf_merge = no; then
13775   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13776 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13777 if test "${gcc_cv_as_shf_merge+set}" = set; then
13778   echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780   gcc_cv_as_shf_merge=no
13781     if test $in_tree_gas = yes; then
13782     if test $in_tree_gas_is_elf = yes \
13783   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13784   then gcc_cv_as_shf_merge=yes
13785 fi
13786   elif test x$gcc_cv_as != x; then
13787     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13788     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790   (eval $ac_try) 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); }; }
13794     then
13795         gcc_cv_as_shf_merge=yes
13796     else
13797       echo "configure: failed program was" >&5
13798       cat conftest.s >&5
13799     fi
13800     rm -f conftest.o conftest.s
13801   fi
13802 fi
13803 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13804 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13805
13806 fi
13807
13808 cat >>confdefs.h <<_ACEOF
13809 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13810 _ACEOF
13811
13812
13813 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13814 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13815 if test "${gcc_cv_as_comdat_group+set}" = set; then
13816   echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818   gcc_cv_as_comdat_group=no
13819     if test $in_tree_gas = yes; then
13820     if test $in_tree_gas_is_elf = yes \
13821   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13822   then gcc_cv_as_comdat_group=yes
13823 fi
13824   elif test x$gcc_cv_as != x; then
13825     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13826     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828   (eval $ac_try) 2>&5
13829   ac_status=$?
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); }; }
13832     then
13833         gcc_cv_as_comdat_group=yes
13834     else
13835       echo "configure: failed program was" >&5
13836       cat conftest.s >&5
13837     fi
13838     rm -f conftest.o conftest.s
13839   fi
13840 fi
13841 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13842 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13843
13844 if test $gcc_cv_as_comdat_group = yes; then
13845   gcc_cv_as_comdat_group_percent=no
13846 else
13847  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13848 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13849 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13850   echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852   gcc_cv_as_comdat_group_percent=no
13853     if test $in_tree_gas = yes; then
13854     if test $in_tree_gas_is_elf = yes \
13855   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13856   then gcc_cv_as_comdat_group_percent=yes
13857 fi
13858   elif test x$gcc_cv_as != x; then
13859     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13860     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862   (eval $ac_try) 2>&5
13863   ac_status=$?
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); }; }
13866     then
13867         gcc_cv_as_comdat_group_percent=yes
13868     else
13869       echo "configure: failed program was" >&5
13870       cat conftest.s >&5
13871     fi
13872     rm -f conftest.o conftest.s
13873   fi
13874 fi
13875 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13876 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13877
13878 fi
13879 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
13880   comdat_group=yes
13881   if test 0"$ld_date" -lt 20050308; then
13882     if test -n "$ld_date"; then
13883       # If there was date string, but was earlier than 2005-03-08, fail
13884       comdat_group=no
13885     elif test "$ld_vers_major" -lt 2; then
13886       comdat_group=no
13887     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13888       comdat_group=no
13889     fi
13890   fi
13891   if test $comdat_group = no; then
13892     gcc_cv_as_comdat_group=no
13893     gcc_cv_as_comdat_group_percent=no
13894   fi
13895 fi
13896
13897 cat >>confdefs.h <<_ACEOF
13898 #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`
13899 _ACEOF
13900
13901
13902 # Thread-local storage - the check is heavily parametrized.
13903 conftest_s=
13904 tls_first_major=
13905 tls_first_minor=
13906 tls_as_opt=
13907 case "$target" in
13908   alpha*-*-*)
13909     conftest_s='
13910         .section ".tdata","awT",@progbits
13911 foo:    .long   25
13912         .text
13913         ldq     $27,__tls_get_addr($29)         !literal!1
13914         lda     $16,foo($29)                    !tlsgd!1
13915         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
13916         ldq     $27,__tls_get_addr($29)         !literal!2
13917         lda     $16,foo($29)                    !tlsldm!2
13918         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
13919         ldq     $1,foo($29)                     !gotdtprel
13920         ldah    $2,foo($29)                     !dtprelhi
13921         lda     $3,foo($2)                      !dtprello
13922         lda     $4,foo($29)                     !dtprel
13923         ldq     $1,foo($29)                     !gottprel
13924         ldah    $2,foo($29)                     !tprelhi
13925         lda     $3,foo($2)                      !tprello
13926         lda     $4,foo($29)                     !tprel'
13927         tls_first_major=2
13928         tls_first_minor=13
13929         tls_as_opt=--fatal-warnings
13930         ;;
13931   frv*-*-*)
13932     conftest_s='
13933         .section ".tdata","awT",@progbits
13934 x:      .long   25
13935         .text
13936         call    #gettlsoff(x)'
13937         tls_first_major=2
13938         tls_first_minor=14
13939         ;;
13940   hppa*-*-linux*)
13941     conftest_s='
13942 t1:     .reg    %r20
13943 t2:     .reg    %r21
13944 gp:     .reg    %r19
13945         .section ".tdata","awT",@progbits
13946 foo:    .long   25
13947         .text
13948         .align  4
13949         addil LT%foo-$tls_gdidx$,gp
13950         ldo RT%foo-$tls_gdidx$(%r1),%arg0
13951         b __tls_get_addr
13952         nop
13953         addil LT%foo-$tls_ldidx$,gp
13954         b __tls_get_addr
13955         ldo RT%foo-$tls_ldidx$(%r1),%arg0
13956         addil LR%foo-$tls_dtpoff$,%ret0
13957         ldo RR%foo-$tls_dtpoff$(%r1),%t1
13958         mfctl %cr27,%t1
13959         addil LT%foo-$tls_ieoff$,gp
13960         ldw RT%foo-$tls_ieoff$(%r1),%t2
13961         add %t1,%t2,%t3
13962         mfctl %cr27,%t1
13963         addil LR%foo-$tls_leoff$,%t1
13964         ldo RR%foo-$tls_leoff$(%r1),%t2'
13965         tls_first_major=2
13966         tls_first_minor=15
13967         tls_as_opt=--fatal-warnings
13968         ;;
13969   arm*-*-*)
13970     conftest_s='
13971         .section ".tdata","awT",%progbits
13972 foo:    .long   25
13973         .text
13974 .word foo(gottpoff)
13975 .word foo(tpoff)
13976 .word foo(tlsgd)
13977 .word foo(tlsldm)
13978 .word foo(tlsldo)'
13979         tls_first_major=2
13980         tls_first_minor=17
13981         ;;
13982   i[34567]86-*-*)
13983     conftest_s='
13984         .section ".tdata","awT",@progbits
13985 foo:    .long   25
13986         .text
13987         movl    %gs:0, %eax
13988         leal    foo@TLSGD(,%ebx,1), %eax
13989         leal    foo@TLSLDM(%ebx), %eax
13990         leal    foo@DTPOFF(%eax), %edx
13991         movl    foo@GOTTPOFF(%ebx), %eax
13992         subl    foo@GOTTPOFF(%ebx), %eax
13993         addl    foo@GOTNTPOFF(%ebx), %eax
13994         movl    foo@INDNTPOFF, %eax
13995         movl    $foo@TPOFF, %eax
13996         subl    $foo@TPOFF, %eax
13997         leal    foo@NTPOFF(%ecx), %eax'
13998         tls_first_major=2
13999         tls_first_minor=14
14000         tls_as_opt=--fatal-warnings
14001         ;;
14002   x86_64-*-*)
14003     conftest_s='
14004         .section ".tdata","awT",@progbits
14005 foo:    .long   25
14006         .text
14007         movq    %fs:0, %rax
14008         leaq    foo@TLSGD(%rip), %rdi
14009         leaq    foo@TLSLD(%rip), %rdi
14010         leaq    foo@DTPOFF(%rax), %rdx
14011         movq    foo@GOTTPOFF(%rip), %rax
14012         movq    $foo@TPOFF, %rax'
14013         tls_first_major=2
14014         tls_first_minor=14
14015         tls_as_opt=--fatal-warnings
14016         ;;
14017   ia64-*-*)
14018     conftest_s='
14019         .section ".tdata","awT",@progbits
14020 foo:    data8   25
14021         .text
14022         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14023         addl    r17 = @ltoff(@dtprel(foo#)), gp
14024         addl    r18 = @ltoff(@tprel(foo#)), gp
14025         addl    r19 = @dtprel(foo#), gp
14026         adds    r21 = @dtprel(foo#), r13
14027         movl    r23 = @dtprel(foo#)
14028         addl    r20 = @tprel(foo#), gp
14029         adds    r22 = @tprel(foo#), r13
14030         movl    r24 = @tprel(foo#)'
14031         tls_first_major=2
14032         tls_first_minor=13
14033         tls_as_opt=--fatal-warnings
14034         ;;
14035   mips*-*-*)
14036     conftest_s='
14037         .section .tdata,"awT",@progbits
14038 x:
14039         .word 2
14040         .text
14041         addiu $4, $28, %tlsgd(x)
14042         addiu $4, $28, %tlsldm(x)
14043         lui $4, %dtprel_hi(x)
14044         addiu $4, $4, %dtprel_lo(x)
14045         lw $4, %gottprel(x)($28)
14046         lui $4, %tprel_hi(x)
14047         addiu $4, $4, %tprel_lo(x)'
14048         tls_first_major=2
14049         tls_first_minor=16
14050         tls_as_opt='-32 --fatal-warnings'
14051         ;;
14052   powerpc-*-*)
14053     conftest_s='
14054         .section ".tdata","awT",@progbits
14055         .align 2
14056 ld0:    .space 4
14057 ld1:    .space 4
14058 x1:     .space 4
14059 x2:     .space 4
14060 x3:     .space 4
14061         .text
14062         addi 3,31,ld0@got@tlsgd
14063         bl __tls_get_addr
14064         addi 3,31,x1@got@tlsld
14065         bl __tls_get_addr
14066         addi 9,3,x1@dtprel
14067         addis 9,3,x2@dtprel@ha
14068         addi 9,9,x2@dtprel@l
14069         lwz 9,x3@got@tprel(31)
14070         add 9,9,x@tls
14071         addi 9,2,x1@tprel
14072         addis 9,2,x2@tprel@ha
14073         addi 9,9,x2@tprel@l'
14074         tls_first_major=2
14075         tls_first_minor=14
14076         tls_as_opt="-a32 --fatal-warnings"
14077         ;;
14078   powerpc64-*-*)
14079     conftest_s='
14080         .section ".tdata","awT",@progbits
14081         .align 3
14082 ld0:    .space 8
14083 ld1:    .space 8
14084 x1:     .space 8
14085 x2:     .space 8
14086 x3:     .space 8
14087         .text
14088         addi 3,2,ld0@got@tlsgd
14089         bl .__tls_get_addr
14090         nop
14091         addi 3,2,ld1@toc
14092         bl .__tls_get_addr
14093         nop
14094         addi 3,2,x1@got@tlsld
14095         bl .__tls_get_addr
14096         nop
14097         addi 9,3,x1@dtprel
14098         bl .__tls_get_addr
14099         nop
14100         addis 9,3,x2@dtprel@ha
14101         addi 9,9,x2@dtprel@l
14102         bl .__tls_get_addr
14103         nop
14104         ld 9,x3@got@dtprel(2)
14105         add 9,9,3
14106         bl .__tls_get_addr
14107         nop'
14108         tls_first_major=2
14109         tls_first_minor=14
14110         tls_as_opt="-a64 --fatal-warnings"
14111         ;;
14112   s390-*-*)
14113     conftest_s='
14114         .section ".tdata","awT",@progbits
14115 foo:    .long   25
14116         .text
14117         .long   foo@TLSGD
14118         .long   foo@TLSLDM
14119         .long   foo@DTPOFF
14120         .long   foo@NTPOFF
14121         .long   foo@GOTNTPOFF
14122         .long   foo@INDNTPOFF
14123         l       %r1,foo@GOTNTPOFF(%r12)
14124         l       %r1,0(%r1):tls_load:foo
14125         bas     %r14,0(%r1,%r13):tls_gdcall:foo
14126         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14127         tls_first_major=2
14128         tls_first_minor=14
14129         tls_as_opt="-m31 --fatal-warnings"
14130         ;;
14131   s390x-*-*)
14132     conftest_s='
14133         .section ".tdata","awT",@progbits
14134 foo:    .long   25
14135         .text
14136         .quad   foo@TLSGD
14137         .quad   foo@TLSLDM
14138         .quad   foo@DTPOFF
14139         .quad   foo@NTPOFF
14140         .quad   foo@GOTNTPOFF
14141         lg      %r1,foo@GOTNTPOFF(%r12)
14142         larl    %r1,foo@INDNTPOFF
14143         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14144         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14145         tls_first_major=2
14146         tls_first_minor=14
14147         tls_as_opt="-m64 -Aesame --fatal-warnings"
14148         ;;
14149   sh-*-* | sh[34]-*-*)
14150     conftest_s='
14151         .section ".tdata","awT",@progbits
14152 foo:    .long   25
14153         .text
14154         .long   foo@TLSGD
14155         .long   foo@TLSLDM
14156         .long   foo@DTPOFF
14157         .long   foo@GOTTPOFF
14158         .long   foo@TPOFF'
14159         tls_first_major=2
14160         tls_first_minor=13
14161         tls_as_opt=--fatal-warnings
14162         ;;
14163   sparc*-*-*)
14164     case "$target" in
14165       sparc*-sun-solaris2.[56789]*)
14166         # TLS was introduced in the Solaris 9 4/04 release but
14167         # we do not enable it by default on Solaris 9 either.
14168         if test "x$enable_tls" = xyes ; then
14169           on_solaris=yes
14170         else
14171           enable_tls=no;
14172         fi
14173         ;;
14174       sparc*-sun-solaris2.*)
14175         on_solaris=yes
14176         ;;
14177       *)
14178         on_solaris=no
14179         ;;
14180     esac
14181     if test x$on_solaris = xyes && test x$gas_flag = xno; then
14182       conftest_s='
14183         .section ".tdata",#alloc,#write,#tls
14184 foo:    .long   25
14185         .text
14186         sethi   %tgd_hi22(foo), %o0
14187         add     %o0, %tgd_lo10(foo), %o1
14188         add     %l7, %o1, %o0, %tgd_add(foo)
14189         call    __tls_get_addr, %tgd_call(foo)
14190         sethi   %tldm_hi22(foo), %l1
14191         add     %l1, %tldm_lo10(foo), %l2
14192         add     %l7, %l2, %o0, %tldm_add(foo)
14193         call    __tls_get_addr, %tldm_call(foo)
14194         sethi   %tldo_hix22(foo), %l3
14195         xor     %l3, %tldo_lox10(foo), %l4
14196         add     %o0, %l4, %l5, %tldo_add(foo)
14197         sethi   %tie_hi22(foo), %o3
14198         add     %o3, %tie_lo10(foo), %o3
14199         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14200         add     %g7, %o2, %o4, %tie_add(foo)
14201         sethi   %tle_hix22(foo), %l1
14202         xor     %l1, %tle_lox10(foo), %o5
14203         ld      [%g7 + %o5], %o1'
14204         tls_first_major=0
14205         tls_first_minor=0
14206     else
14207       conftest_s='
14208         .section ".tdata","awT",@progbits
14209 foo:    .long   25
14210         .text
14211         sethi   %tgd_hi22(foo), %o0
14212         add     %o0, %tgd_lo10(foo), %o1
14213         add     %l7, %o1, %o0, %tgd_add(foo)
14214         call    __tls_get_addr, %tgd_call(foo)
14215         sethi   %tldm_hi22(foo), %l1
14216         add     %l1, %tldm_lo10(foo), %l2
14217         add     %l7, %l2, %o0, %tldm_add(foo)
14218         call    __tls_get_addr, %tldm_call(foo)
14219         sethi   %tldo_hix22(foo), %l3
14220         xor     %l3, %tldo_lox10(foo), %l4
14221         add     %o0, %l4, %l5, %tldo_add(foo)
14222         sethi   %tie_hi22(foo), %o3
14223         add     %o3, %tie_lo10(foo), %o3
14224         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14225         add     %g7, %o2, %o4, %tie_add(foo)
14226         sethi   %tle_hix22(foo), %l1
14227         xor     %l1, %tle_lox10(foo), %o5
14228         ld      [%g7 + %o5], %o1'
14229         tls_first_major=2
14230         tls_first_minor=14
14231         tls_as_opt="-32 --fatal-warnings"
14232       fi
14233         ;;
14234 esac
14235 set_have_as_tls=no
14236 if test "x$enable_tls" = xno ; then
14237   : # TLS explicitly disabled.
14238 elif test "x$enable_tls" = xyes ; then
14239   set_have_as_tls=yes # TLS explicitly enabled.
14240 elif test -z "$tls_first_major"; then
14241   : # If we don't have a check, assume no support.
14242 else
14243   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14244 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14245 if test "${gcc_cv_as_tls+set}" = set; then
14246   echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248   gcc_cv_as_tls=no
14249     if test $in_tree_gas = yes; then
14250     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14251   then gcc_cv_as_tls=yes
14252 fi
14253   elif test x$gcc_cv_as != x; then
14254     echo "$conftest_s" > conftest.s
14255     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }
14261     then
14262         gcc_cv_as_tls=yes
14263     else
14264       echo "configure: failed program was" >&5
14265       cat conftest.s >&5
14266     fi
14267     rm -f conftest.o conftest.s
14268   fi
14269 fi
14270 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14271 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14272 if test $gcc_cv_as_tls = yes; then
14273   set_have_as_tls=yes
14274 fi
14275 fi
14276 if test $set_have_as_tls = yes ; then
14277
14278 cat >>confdefs.h <<\_ACEOF
14279 #define HAVE_AS_TLS 1
14280 _ACEOF
14281
14282 fi
14283
14284 # Target-specific assembler checks.
14285
14286 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14287 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14288 gcc_cv_ld_static_dynamic=no
14289 if test $in_tree_ld = yes ; then
14290   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14291     gcc_cv_ld_static_dynamic=yes
14292   fi
14293 elif test x$gcc_cv_ld != x; then
14294         # Check if linker supports -Bstatic/-Bdynamic option
14295         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14296           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14297                 gcc_cv_ld_static_dynamic=yes
14298         fi
14299 fi
14300 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14301
14302 cat >>confdefs.h <<\_ACEOF
14303 #define HAVE_LD_STATIC_DYNAMIC 1
14304 _ACEOF
14305
14306 fi
14307 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14308 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14309
14310 if test x"$demangler_in_ld" = xyes; then
14311   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14312 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14313   gcc_cv_ld_demangle=no
14314   if test $in_tree_ld = yes; then
14315     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 \
14316       gcc_cv_ld_demangle=yes
14317     fi
14318   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14319     # Check if the GNU linker supports --demangle option
14320     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14321       gcc_cv_ld_demangle=yes
14322     fi
14323   fi
14324   if test x"$gcc_cv_ld_demangle" = xyes; then
14325
14326 cat >>confdefs.h <<\_ACEOF
14327 #define HAVE_LD_DEMANGLE 1
14328 _ACEOF
14329
14330   fi
14331   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14332 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14333 fi
14334
14335 case "$target" in
14336   # All TARGET_ABI_OSF targets.
14337   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14338     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14339 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14340 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14341   echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343   gcc_cv_as_alpha_explicit_relocs=no
14344     if test $in_tree_gas = yes; then
14345     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14346   then gcc_cv_as_alpha_explicit_relocs=yes
14347 fi
14348   elif test x$gcc_cv_as != x; then
14349     echo '      .set nomacro
14350         .text
14351         extbl   $3, $2, $3      !lituse_bytoff!1
14352         ldq     $2, a($29)      !literal!1
14353         ldq     $4, b($29)      !literal!2
14354         ldq_u   $3, 0($2)       !lituse_base!1
14355         ldq     $27, f($29)     !literal!5
14356         jsr     $26, ($27), f   !lituse_jsr!5
14357         ldah    $29, 0($26)     !gpdisp!3
14358         lda     $0, c($29)      !gprel
14359         ldah    $1, d($29)      !gprelhigh
14360         lda     $1, d($1)       !gprellow
14361         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14362     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364   (eval $ac_try) 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; }
14368     then
14369         gcc_cv_as_alpha_explicit_relocs=yes
14370     else
14371       echo "configure: failed program was" >&5
14372       cat conftest.s >&5
14373     fi
14374     rm -f conftest.o conftest.s
14375   fi
14376 fi
14377 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14378 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14379 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14380
14381 cat >>confdefs.h <<\_ACEOF
14382 #define HAVE_AS_EXPLICIT_RELOCS 1
14383 _ACEOF
14384
14385 fi
14386     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14387 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14388 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14389   echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391   gcc_cv_as_alpha_jsrdirect_relocs=no
14392     if test $in_tree_gas = yes; then
14393     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14394   then gcc_cv_as_alpha_jsrdirect_relocs=yes
14395 fi
14396   elif test x$gcc_cv_as != x; then
14397     echo '      .set nomacro
14398         .text
14399         ldq     $27, a($29)     !literal!1
14400         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
14401     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403   (eval $ac_try) 2>&5
14404   ac_status=$?
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); }; }
14407     then
14408         gcc_cv_as_alpha_jsrdirect_relocs=yes
14409     else
14410       echo "configure: failed program was" >&5
14411       cat conftest.s >&5
14412     fi
14413     rm -f conftest.o conftest.s
14414   fi
14415 fi
14416 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14417 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14418 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14419
14420 cat >>confdefs.h <<\_ACEOF
14421 #define HAVE_AS_JSRDIRECT_RELOCS 1
14422 _ACEOF
14423
14424 fi
14425     ;;
14426
14427   cris-*-*)
14428     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14429 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14430 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14431   echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433   gcc_cv_as_cris_no_mul_bug=no
14434     if test $in_tree_gas = yes; then
14435     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14436   then gcc_cv_as_cris_no_mul_bug=yes
14437 fi
14438   elif test x$gcc_cv_as != x; then
14439     echo '.text' > conftest.s
14440     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442   (eval $ac_try) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; }
14446     then
14447         gcc_cv_as_cris_no_mul_bug=yes
14448     else
14449       echo "configure: failed program was" >&5
14450       cat conftest.s >&5
14451     fi
14452     rm -f conftest.o conftest.s
14453   fi
14454 fi
14455 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14456 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14457 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14458
14459 cat >>confdefs.h <<\_ACEOF
14460 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14461 _ACEOF
14462
14463 fi
14464     ;;
14465
14466   sparc*-*-*)
14467     echo "$as_me:$LINENO: checking assembler for .register" >&5
14468 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14469 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14470   echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472   gcc_cv_as_sparc_register_op=no
14473   if test x$gcc_cv_as != x; then
14474     echo '.register %g2, #scratch' > conftest.s
14475     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; }
14481     then
14482         gcc_cv_as_sparc_register_op=yes
14483     else
14484       echo "configure: failed program was" >&5
14485       cat conftest.s >&5
14486     fi
14487     rm -f conftest.o conftest.s
14488   fi
14489 fi
14490 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14491 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14492 if test $gcc_cv_as_sparc_register_op = yes; then
14493
14494 cat >>confdefs.h <<\_ACEOF
14495 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14496 _ACEOF
14497
14498 fi
14499
14500     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14501 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14502 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14503   echo $ECHO_N "(cached) $ECHO_C" >&6
14504 else
14505   gcc_cv_as_sparc_relax=no
14506   if test x$gcc_cv_as != x; then
14507     echo '.text' > conftest.s
14508     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510   (eval $ac_try) 2>&5
14511   ac_status=$?
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); }; }
14514     then
14515         gcc_cv_as_sparc_relax=yes
14516     else
14517       echo "configure: failed program was" >&5
14518       cat conftest.s >&5
14519     fi
14520     rm -f conftest.o conftest.s
14521   fi
14522 fi
14523 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14524 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14525 if test $gcc_cv_as_sparc_relax = yes; then
14526
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE_AS_RELAX_OPTION 1
14529 _ACEOF
14530
14531 fi
14532
14533     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14534 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14535 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14536   echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538   gcc_cv_as_sparc_ua_pcrel=no
14539   if test x$gcc_cv_as != x; then
14540     echo '.text
14541 foo:
14542         nop
14543 .data
14544 .align 4
14545 .byte 0
14546 .uaword %r_disp32(foo)' > conftest.s
14547     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; }
14553     then
14554         if test x$gcc_cv_ld != x \
14555        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14556          gcc_cv_as_sparc_ua_pcrel=yes
14557        fi
14558        rm -f conftest
14559     else
14560       echo "configure: failed program was" >&5
14561       cat conftest.s >&5
14562     fi
14563     rm -f conftest.o conftest.s
14564   fi
14565 fi
14566 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14567 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14568 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14569
14570 cat >>confdefs.h <<\_ACEOF
14571 #define HAVE_AS_SPARC_UA_PCREL 1
14572 _ACEOF
14573
14574
14575       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14576 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14577 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14578   echo $ECHO_N "(cached) $ECHO_C" >&6
14579 else
14580   gcc_cv_as_sparc_ua_pcrel_hidden=no
14581   if test x$gcc_cv_as != x; then
14582     echo '.data
14583 .align 4
14584 .byte 0x31
14585 .uaword %r_disp32(foo)
14586 .byte 0x32, 0x33, 0x34
14587 .global foo
14588 .hidden foo
14589 foo:
14590 .skip 4' > conftest.s
14591     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593   (eval $ac_try) 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; }
14597     then
14598         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14599          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14600          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14601             | grep ' 31000000 07323334' > /dev/null 2>&1; then
14602             if $gcc_cv_objdump -R conftest 2> /dev/null \
14603                | grep 'DISP32' > /dev/null 2>&1; then
14604                 :
14605             else
14606                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14607             fi
14608          fi
14609          rm -f conftest
14610     else
14611       echo "configure: failed program was" >&5
14612       cat conftest.s >&5
14613     fi
14614     rm -f conftest.o conftest.s
14615   fi
14616 fi
14617 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14618 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14619 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14620
14621 cat >>confdefs.h <<\_ACEOF
14622 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14623 _ACEOF
14624
14625 fi
14626
14627 fi # unaligned pcrel relocs
14628
14629     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14630 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14631 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14632   echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634   gcc_cv_as_sparc_offsetable_lo10=no
14635   if test x$gcc_cv_as != x; then
14636     echo '.text
14637         or %g1, %lo(ab) + 12, %g1
14638         or %g1, %lo(ab + 12), %g1' > conftest.s
14639     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641   (eval $ac_try) 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); }; }
14645     then
14646         if test x$gcc_cv_objdump != x \
14647        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14648           | grep ' 82106000 82106000' > /dev/null 2>&1; then
14649          gcc_cv_as_sparc_offsetable_lo10=yes
14650        fi
14651     else
14652       echo "configure: failed program was" >&5
14653       cat conftest.s >&5
14654     fi
14655     rm -f conftest.o conftest.s
14656   fi
14657 fi
14658 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14659 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14660 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14661
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_AS_OFFSETABLE_LO10 1
14664 _ACEOF
14665
14666 fi
14667     ;;
14668
14669   i[34567]86-*-* | x86_64-*-*)
14670     case $target_os in
14671       cygwin* | pe | mingw32*)
14672         # Used for DWARF 2 in PE
14673         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14674 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14675 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14676   echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678   gcc_cv_as_ix86_pe_secrel32=no
14679     if test $in_tree_gas = yes; then
14680     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14681   then gcc_cv_as_ix86_pe_secrel32=yes
14682 fi
14683   elif test x$gcc_cv_as != x; then
14684     echo '.text
14685 foo:    nop
14686 .data
14687         .secrel32 foo' > conftest.s
14688     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690   (eval $ac_try) 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; }
14694     then
14695         if test x$gcc_cv_ld != x \
14696            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14697              gcc_cv_as_ix86_pe_secrel32=yes
14698            fi
14699            rm -f conftest
14700     else
14701       echo "configure: failed program was" >&5
14702       cat conftest.s >&5
14703     fi
14704     rm -f conftest.o conftest.s
14705   fi
14706 fi
14707 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14708 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14709 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14710
14711 cat >>confdefs.h <<\_ACEOF
14712 #define HAVE_GAS_PE_SECREL32_RELOC 1
14713 _ACEOF
14714
14715 fi
14716         ;;
14717     esac
14718
14719     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14720 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14721 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   gcc_cv_as_ix86_filds_fists=no
14725     if test $in_tree_gas = yes; then
14726     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14727   then gcc_cv_as_ix86_filds_fists=yes
14728 fi
14729   elif test x$gcc_cv_as != x; then
14730     echo 'filds mem; fists mem' > conftest.s
14731     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733   (eval $ac_try) 2>&5
14734   ac_status=$?
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); }; }
14737     then
14738         gcc_cv_as_ix86_filds_fists=yes
14739     else
14740       echo "configure: failed program was" >&5
14741       cat conftest.s >&5
14742     fi
14743     rm -f conftest.o conftest.s
14744   fi
14745 fi
14746 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14747 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14748 if test $gcc_cv_as_ix86_filds_fists = yes; then
14749
14750 cat >>confdefs.h <<\_ACEOF
14751 #define HAVE_GAS_FILDS_FISTS 1
14752 _ACEOF
14753
14754 fi
14755
14756     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14757 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14758 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14759   echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761   gcc_cv_as_ix86_cmov_sun_syntax=no
14762   if test x$gcc_cv_as != x; then
14763     echo 'cmovl.l %edx, %eax' > conftest.s
14764     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766   (eval $ac_try) 2>&5
14767   ac_status=$?
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); }; }
14770     then
14771         gcc_cv_as_ix86_cmov_sun_syntax=yes
14772     else
14773       echo "configure: failed program was" >&5
14774       cat conftest.s >&5
14775     fi
14776     rm -f conftest.o conftest.s
14777   fi
14778 fi
14779 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14780 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14781 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14782
14783 cat >>confdefs.h <<\_ACEOF
14784 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14785 _ACEOF
14786
14787 fi
14788
14789     # This one is used unconditionally by i386.[ch]; it is to be defined
14790     # to 1 if the feature is present, 0 otherwise.
14791     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14792 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14793 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14794   echo $ECHO_N "(cached) $ECHO_C" >&6
14795 else
14796   gcc_cv_as_ix86_gotoff_in_data=no
14797     if test $in_tree_gas = yes; then
14798     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14799   then gcc_cv_as_ix86_gotoff_in_data=yes
14800 fi
14801   elif test x$gcc_cv_as != x; then
14802     echo '      .text
14803 .L0:
14804         nop
14805         .data
14806         .long .L0@GOTOFF' > conftest.s
14807     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809   (eval $ac_try) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); }; }
14813     then
14814         gcc_cv_as_ix86_gotoff_in_data=yes
14815     else
14816       echo "configure: failed program was" >&5
14817       cat conftest.s >&5
14818     fi
14819     rm -f conftest.o conftest.s
14820   fi
14821 fi
14822 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14823 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14824
14825
14826 cat >>confdefs.h <<_ACEOF
14827 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14828 _ACEOF
14829
14830     ;;
14831
14832   ia64*-*-*)
14833     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14834 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14835 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14836   echo $ECHO_N "(cached) $ECHO_C" >&6
14837 else
14838   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14839     if test $in_tree_gas = yes; then
14840     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14841   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14842 fi
14843   elif test x$gcc_cv_as != x; then
14844     echo '      .text
14845         addl r15 = @ltoffx(x#), gp
14846         ;;
14847         ld8.mov r16 = [r15], x#' > conftest.s
14848     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850   (eval $ac_try) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); }; }
14854     then
14855         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14856     else
14857       echo "configure: failed program was" >&5
14858       cat conftest.s >&5
14859     fi
14860     rm -f conftest.o conftest.s
14861   fi
14862 fi
14863 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14864 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14865 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14866
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14869 _ACEOF
14870
14871 fi
14872
14873     ;;
14874
14875   powerpc*-*-*)
14876     case $target in
14877       *-*-aix*) conftest_s='    .machine "pwr5"
14878         .csect .text[PR]
14879         mfcr 3,128';;
14880       *-*-darwin*)
14881         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14882 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14883 if test "${gcc_cv_as_machine_directive+set}" = set; then
14884   echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886   gcc_cv_as_machine_directive=no
14887   if test x$gcc_cv_as != x; then
14888     echo '      .machine ppc7400' > conftest.s
14889     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891   (eval $ac_try) 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); }; }
14895     then
14896         gcc_cv_as_machine_directive=yes
14897     else
14898       echo "configure: failed program was" >&5
14899       cat conftest.s >&5
14900     fi
14901     rm -f conftest.o conftest.s
14902   fi
14903 fi
14904 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14905 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14906
14907         if test x$gcc_cv_as_machine_directive != xyes; then
14908           echo "*** This target requires an assembler supporting \".machine\"" >&2
14909           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14910           test x$build = x$target && exit 1
14911         fi
14912         conftest_s='    .text
14913         mfcr r3,128';;
14914       *) conftest_s='   .machine power4
14915         .text
14916         mfcr 3,128';;
14917     esac
14918
14919     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14920 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14921 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 else
14924   gcc_cv_as_powerpc_mfcrf=no
14925     if test $in_tree_gas = yes; then
14926     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14927   then gcc_cv_as_powerpc_mfcrf=yes
14928 fi
14929   elif test x$gcc_cv_as != x; then
14930     echo "$conftest_s" > conftest.s
14931     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933   (eval $ac_try) 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); }; }
14937     then
14938         gcc_cv_as_powerpc_mfcrf=yes
14939     else
14940       echo "configure: failed program was" >&5
14941       cat conftest.s >&5
14942     fi
14943     rm -f conftest.o conftest.s
14944   fi
14945 fi
14946 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14947 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14948 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14949
14950 cat >>confdefs.h <<\_ACEOF
14951 #define HAVE_AS_MFCRF 1
14952 _ACEOF
14953
14954 fi
14955
14956     case $target in
14957       *-*-aix*) conftest_s='    .machine "pwr5"
14958         .csect .text[PR]
14959         popcntb 3,3';;
14960       *) conftest_s='   .machine power5
14961         .text
14962         popcntb 3,3';;
14963     esac
14964
14965     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
14966 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
14967 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 else
14970   gcc_cv_as_powerpc_popcntb=no
14971     if test $in_tree_gas = yes; then
14972     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14973   then gcc_cv_as_powerpc_popcntb=yes
14974 fi
14975   elif test x$gcc_cv_as != x; then
14976     echo "$conftest_s" > conftest.s
14977     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979   (eval $ac_try) 2>&5
14980   ac_status=$?
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); }; }
14983     then
14984         gcc_cv_as_powerpc_popcntb=yes
14985     else
14986       echo "configure: failed program was" >&5
14987       cat conftest.s >&5
14988     fi
14989     rm -f conftest.o conftest.s
14990   fi
14991 fi
14992 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
14993 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
14994 if test $gcc_cv_as_powerpc_popcntb = yes; then
14995
14996 cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_AS_POPCNTB 1
14998 _ACEOF
14999
15000 fi
15001
15002     case $target in
15003       *-*-aix*) conftest_s='    .machine "pwr5x"
15004         .csect .text[PR]
15005         frin 1,1';;
15006       *) conftest_s='   .machine power5
15007         .text
15008         frin 1,1';;
15009     esac
15010
15011     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15012 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15013 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15014   echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016   gcc_cv_as_powerpc_fprnd=no
15017     if test $in_tree_gas = yes; then
15018     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15019   then gcc_cv_as_powerpc_fprnd=yes
15020 fi
15021   elif test x$gcc_cv_as != x; then
15022     echo "$conftest_s" > conftest.s
15023     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025   (eval $ac_try) 2>&5
15026   ac_status=$?
15027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028   (exit $ac_status); }; }
15029     then
15030         gcc_cv_as_powerpc_fprnd=yes
15031     else
15032       echo "configure: failed program was" >&5
15033       cat conftest.s >&5
15034     fi
15035     rm -f conftest.o conftest.s
15036   fi
15037 fi
15038 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15039 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15040 if test $gcc_cv_as_powerpc_fprnd = yes; then
15041
15042 cat >>confdefs.h <<\_ACEOF
15043 #define HAVE_AS_FPRND 1
15044 _ACEOF
15045
15046 fi
15047
15048     case $target in
15049       *-*-aix*) conftest_s='    .csect .text[PR]
15050 LCF..0:
15051         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15052       *-*-darwin*)
15053         conftest_s='    .text
15054 LCF0:
15055         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15056       *) conftest_s='   .text
15057 .LCF0:
15058         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15059     esac
15060
15061     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15062 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15063 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15064   echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066   gcc_cv_as_powerpc_rel16=no
15067     if test $in_tree_gas = yes; then
15068     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15069   then gcc_cv_as_powerpc_rel16=yes
15070 fi
15071   elif test x$gcc_cv_as != x; then
15072     echo "$conftest_s" > conftest.s
15073     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075   (eval $ac_try) 2>&5
15076   ac_status=$?
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); }; }
15079     then
15080         gcc_cv_as_powerpc_rel16=yes
15081     else
15082       echo "configure: failed program was" >&5
15083       cat conftest.s >&5
15084     fi
15085     rm -f conftest.o conftest.s
15086   fi
15087 fi
15088 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15089 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15090 if test $gcc_cv_as_powerpc_rel16 = yes; then
15091
15092 cat >>confdefs.h <<\_ACEOF
15093 #define HAVE_AS_REL16 1
15094 _ACEOF
15095
15096 fi
15097     ;;
15098
15099   mips*-*-*)
15100     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15101 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15102 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105   gcc_cv_as_mips_explicit_relocs=no
15106     if test $in_tree_gas = yes; then
15107     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15108   then gcc_cv_as_mips_explicit_relocs=yes
15109 fi
15110   elif test x$gcc_cv_as != x; then
15111     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15112     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114   (eval $ac_try) 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); }; }
15118     then
15119         gcc_cv_as_mips_explicit_relocs=yes
15120     else
15121       echo "configure: failed program was" >&5
15122       cat conftest.s >&5
15123     fi
15124     rm -f conftest.o conftest.s
15125   fi
15126 fi
15127 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15128 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15129 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15130   if test x$target_cpu_default = x
15131        then target_cpu_default=MASK_EXPLICIT_RELOCS
15132        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15133        fi
15134 fi
15135     ;;
15136 esac
15137
15138 # Mips and HP-UX need the GNU assembler.
15139 # Linux on IA64 might be able to use the Intel assembler.
15140
15141 case "$target" in
15142   mips*-*-* | *-*-hpux* )
15143     if test x$gas_flag = xyes \
15144        || test x"$host" != x"$build" \
15145        || test ! -x "$gcc_cv_as" \
15146        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15147       :
15148     else
15149       echo "*** This configuration requires the GNU assembler" >&2
15150       exit 1
15151     fi
15152     ;;
15153 esac
15154
15155 # ??? Not all targets support dwarf2 debug_line, even within a version
15156 # of gas.  Moreover, we need to emit a valid instruction to trigger any
15157 # info to the output file.  So, as supported targets are added to gas 2.11,
15158 # add some instruction here to (also) show we expect this might work.
15159 # ??? Once 2.11 is released, probably need to add first known working
15160 # version to the per-target configury.
15161 case "$target" in
15162   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15163   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15164   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15165     insn="nop"
15166     ;;
15167   ia64*-*-* | s390*-*-*)
15168     insn="nop 0"
15169     ;;
15170   mmix-*-*)
15171     insn="swym 0"
15172     ;;
15173 esac
15174 if test x"$insn" != x; then
15175  conftest_s="\
15176         .file 1 \"conftest.s\"
15177         .loc 1 3 0
15178         $insn"
15179  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15180 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15181 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15182   echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184   gcc_cv_as_dwarf2_debug_line=no
15185     if test $in_tree_gas = yes; then
15186     if test $in_tree_gas_is_elf = yes \
15187   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15188   then gcc_cv_as_dwarf2_debug_line=yes
15189 fi
15190   elif test x$gcc_cv_as != x; then
15191     echo "$conftest_s" > conftest.s
15192     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194   (eval $ac_try) 2>&5
15195   ac_status=$?
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); }; }
15198     then
15199         if test x$gcc_cv_objdump != x \
15200    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15201       | grep debug_line > /dev/null 2>&1; then
15202      gcc_cv_as_dwarf2_debug_line=yes
15203    fi
15204     else
15205       echo "configure: failed program was" >&5
15206       cat conftest.s >&5
15207     fi
15208     rm -f conftest.o conftest.s
15209   fi
15210 fi
15211 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15212 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15213
15214
15215 # The .debug_line file table must be in the exact order that
15216 # we specified the files, since these indices are also used
15217 # by DW_AT_decl_file.  Approximate this test by testing if
15218 # the assembler bitches if the same index is assigned twice.
15219  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15220 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15221 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15222   echo $ECHO_N "(cached) $ECHO_C" >&6
15223 else
15224   gcc_cv_as_dwarf2_file_buggy=no
15225   if test x$gcc_cv_as != x; then
15226     echo '      .file 1 "foo.s"
15227         .file 1 "bar.s"' > conftest.s
15228     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230   (eval $ac_try) 2>&5
15231   ac_status=$?
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); }; }
15234     then
15235         gcc_cv_as_dwarf2_file_buggy=yes
15236     else
15237       echo "configure: failed program was" >&5
15238       cat conftest.s >&5
15239     fi
15240     rm -f conftest.o conftest.s
15241   fi
15242 fi
15243 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15244 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15245
15246
15247  if test $gcc_cv_as_dwarf2_debug_line = yes \
15248  && test $gcc_cv_as_dwarf2_file_buggy = no; then
15249
15250 cat >>confdefs.h <<\_ACEOF
15251 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15252 _ACEOF
15253
15254  fi
15255
15256  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15257 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15258 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15259   echo $ECHO_N "(cached) $ECHO_C" >&6
15260 else
15261   gcc_cv_as_gdwarf2_flag=no
15262     if test $in_tree_gas = yes; then
15263     if test $in_tree_gas_is_elf = yes \
15264   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15265   then gcc_cv_as_gdwarf2_flag=yes
15266 fi
15267   elif test x$gcc_cv_as != x; then
15268     echo "$insn" > conftest.s
15269     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271   (eval $ac_try) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }; }
15275     then
15276         gcc_cv_as_gdwarf2_flag=yes
15277     else
15278       echo "configure: failed program was" >&5
15279       cat conftest.s >&5
15280     fi
15281     rm -f conftest.o conftest.s
15282   fi
15283 fi
15284 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15285 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15286 if test $gcc_cv_as_gdwarf2_flag = yes; then
15287
15288 cat >>confdefs.h <<\_ACEOF
15289 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15290 _ACEOF
15291
15292 fi
15293
15294  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15295 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15296 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15297   echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299   gcc_cv_as_gstabs_flag=no
15300     if test $in_tree_gas = yes; then
15301     if test $in_tree_gas_is_elf = yes \
15302   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15303   then gcc_cv_as_gstabs_flag=yes
15304 fi
15305   elif test x$gcc_cv_as != x; then
15306     echo "$insn" > conftest.s
15307     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309   (eval $ac_try) 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); }; }
15313     then
15314         # The native Solaris 9/Intel assembler doesn't understand --gstabs
15315    # and warns about it, but still exits successfully.  So check for
15316    # this.
15317    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319   (eval $ac_try) 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); }; }
15323    then :
15324    else gcc_cv_as_gstabs_flag=yes
15325    fi
15326     else
15327       echo "configure: failed program was" >&5
15328       cat conftest.s >&5
15329     fi
15330     rm -f conftest.o conftest.s
15331   fi
15332 fi
15333 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15334 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15335 if test $gcc_cv_as_gstabs_flag = yes; then
15336
15337 cat >>confdefs.h <<\_ACEOF
15338 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15339 _ACEOF
15340
15341 fi
15342 fi
15343
15344 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15345 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15346 gcc_cv_ld_ro_rw_mix=unknown
15347 if test $in_tree_ld = yes ; then
15348   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 \
15349      && test $in_tree_ld_is_elf = yes; then
15350     gcc_cv_ld_ro_rw_mix=read-write
15351   fi
15352 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15353   echo '.section myfoosect, "a"' > conftest1.s
15354   echo '.section myfoosect, "aw"' > conftest2.s
15355   echo '.byte 1' >> conftest2.s
15356   echo '.section myfoosect, "a"' > conftest3.s
15357   echo '.byte 0' >> conftest3.s
15358   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15359      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15360      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15361      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15362         conftest2.o conftest3.o > /dev/null 2>&1; then
15363     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15364                          | sed -e '/myfoosect/!d' -e N`
15365     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15366       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15367         gcc_cv_ld_ro_rw_mix=read-only
15368       else
15369         gcc_cv_ld_ro_rw_mix=read-write
15370       fi
15371     fi
15372   fi
15373   rm -f conftest.* conftest[123].*
15374 fi
15375 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15376
15377 cat >>confdefs.h <<\_ACEOF
15378 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15379 _ACEOF
15380
15381 fi
15382 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15383 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15384
15385 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15386 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15387 gcc_cv_ld_eh_frame_hdr=no
15388 if test $in_tree_ld = yes ; then
15389   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 \
15390      && test $in_tree_ld_is_elf = yes; then
15391     gcc_cv_ld_eh_frame_hdr=yes
15392   fi
15393 elif test x$gcc_cv_ld != x; then
15394         # Check if linker supports --eh-frame-hdr option
15395         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15396                 gcc_cv_ld_eh_frame_hdr=yes
15397         fi
15398 fi
15399
15400 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15401
15402 cat >>confdefs.h <<\_ACEOF
15403 #define HAVE_LD_EH_FRAME_HDR 1
15404 _ACEOF
15405
15406 fi
15407 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15408 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15409
15410 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15411 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15412 gcc_cv_ld_pie=no
15413 if test $in_tree_ld = yes ; then
15414   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 \
15415      && test $in_tree_ld_is_elf = yes; then
15416     gcc_cv_ld_pie=yes
15417   fi
15418 elif test x$gcc_cv_ld != x; then
15419         # Check if linker supports -pie option
15420         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15421                 gcc_cv_ld_pie=yes
15422         fi
15423 fi
15424 if test x"$gcc_cv_ld_pie" = xyes; then
15425
15426 cat >>confdefs.h <<\_ACEOF
15427 #define HAVE_LD_PIE 1
15428 _ACEOF
15429
15430 fi
15431 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15432 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15433
15434 # --------
15435 # UNSORTED
15436 # --------
15437
15438 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15439 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15440 if test "${gcc_cv_ld_as_needed+set}" = set; then
15441   echo $ECHO_N "(cached) $ECHO_C" >&6
15442 else
15443   gcc_cv_ld_as_needed=no
15444 if test $in_tree_ld = yes ; then
15445   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 \
15446      && test $in_tree_ld_is_elf = yes; then
15447     gcc_cv_ld_as_needed=yes
15448   fi
15449 elif test x$gcc_cv_ld != x; then
15450         # Check if linker supports --as-needed and --no-as-needed options
15451         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15452                 gcc_cv_ld_as_needed=yes
15453         fi
15454 fi
15455
15456 fi
15457 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15458 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15459 if test x"$gcc_cv_ld_as_needed" = xyes; then
15460
15461 cat >>confdefs.h <<\_ACEOF
15462 #define HAVE_LD_AS_NEEDED 1
15463 _ACEOF
15464
15465 fi
15466
15467 case "$target:$tm_file" in
15468   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15469     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15470 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15471 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15472   echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474   gcc_cv_ld_no_dot_syms=no
15475     if test $in_tree_ld = yes ; then
15476       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
15477         gcc_cv_ld_no_dot_syms=yes
15478       fi
15479     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15480       cat > conftest1.s <<EOF
15481         .text
15482         bl .foo
15483 EOF
15484       cat > conftest2.s <<EOF
15485         .section ".opd","aw"
15486         .align 3
15487         .globl foo
15488         .type foo,@function
15489 foo:
15490         .quad .LEfoo,.TOC.@tocbase,0
15491         .text
15492 .LEfoo:
15493         blr
15494         .size foo,.-.LEfoo
15495 EOF
15496       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15497          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15498          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15499         gcc_cv_ld_no_dot_syms=yes
15500       fi
15501       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15502     fi
15503
15504 fi
15505 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15506 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15507     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15508
15509 cat >>confdefs.h <<\_ACEOF
15510 #define HAVE_LD_NO_DOT_SYMS 1
15511 _ACEOF
15512
15513     fi
15514     ;;
15515 esac
15516
15517 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15518 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15519 if test "${gcc_cv_ld_sysroot+set}" = set; then
15520   echo $ECHO_N "(cached) $ECHO_C" >&6
15521 else
15522   gcc_cv_ld_sysroot=no
15523   if test $in_tree_ld = yes ; then
15524       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
15525         gcc_cv_ld_sysroot=yes
15526       fi
15527   elif test x$gcc_cv_ld != x; then
15528     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15529       gcc_cv_ld_sysroot=yes
15530     fi
15531   fi
15532 fi
15533 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15534 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15535 if test x"$gcc_cv_ld_sysroot" = xyes; then
15536
15537 cat >>confdefs.h <<\_ACEOF
15538 #define HAVE_LD_SYSROOT 1
15539 _ACEOF
15540
15541 fi
15542
15543 if test x$with_sysroot = x && test x$host = x$target \
15544    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15545
15546 cat >>confdefs.h <<_ACEOF
15547 #define PREFIX_INCLUDE_DIR "$prefix/include"
15548 _ACEOF
15549
15550 fi
15551
15552 # Test for stack protector support in target C library.
15553 case "$target" in
15554   *-*-linux*)
15555     echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15556 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15557 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15558   echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560   gcc_cv_libc_provides_ssp=no
15561       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15562         if test "x$with_sysroot" = x; then
15563           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15564         elif test "x$with_sysroot" = xyes; then
15565           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15566         else
15567           glibc_header_dir="${with_sysroot}/usr/include"
15568         fi
15569       else
15570         glibc_header_dir=/usr/include
15571       fi
15572       # glibc 2.4 and later provides __stack_chk_fail and
15573       # either __stack_chk_guard, or TLS access to stack guard canary.
15574       if test -f $glibc_header_dir/features.h \
15575          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
15576             $glibc_header_dir/features.h > /dev/null; then
15577         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
15578            $glibc_header_dir/features.h > /dev/null; then
15579           gcc_cv_libc_provides_ssp=yes
15580         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
15581              $glibc_header_dir/features.h > /dev/null \
15582              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
15583              $glibc_header_dir/features.h > /dev/null; then
15584           gcc_cv_libc_provides_ssp=yes
15585         fi
15586       fi
15587 fi
15588 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15589 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15590   *) gcc_cv_libc_provides_ssp=no ;;
15591 esac
15592 if test x$gcc_cv_libc_provides_ssp = xyes; then
15593
15594 cat >>confdefs.h <<\_ACEOF
15595 #define TARGET_LIBC_PROVIDES_SSP 1
15596 _ACEOF
15597
15598 fi
15599
15600 # Find out what GC implementation we want, or may, use.
15601
15602 # Check whether --with-gc or --without-gc was given.
15603 if test "${with_gc+set}" = set; then
15604   withval="$with_gc"
15605   case "$withval" in
15606   page)
15607     GGC=ggc-$withval
15608     ;;
15609   zone)
15610     GGC=ggc-$withval
15611
15612 cat >>confdefs.h <<\_ACEOF
15613 #define GGC_ZONE 1
15614 _ACEOF
15615
15616     ;;
15617   *)
15618     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15619 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15620    { (exit 1); exit 1; }; }
15621     ;;
15622 esac
15623 else
15624   GGC=ggc-page
15625 fi;
15626
15627 echo "Using $GGC for garbage collection."
15628
15629 # Use the system's zlib library.
15630 zlibdir=-L../zlib
15631 zlibinc="-I\$(srcdir)/../zlib"
15632
15633 # Check whether --with-system-zlib or --without-system-zlib was given.
15634 if test "${with_system_zlib+set}" = set; then
15635   withval="$with_system_zlib"
15636   zlibdir=
15637 zlibinc=
15638
15639 fi;
15640
15641
15642
15643
15644 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15645 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15646     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15647 if test "${enable_maintainer_mode+set}" = set; then
15648   enableval="$enable_maintainer_mode"
15649   maintainer_mode=$enableval
15650 else
15651   maintainer_mode=no
15652 fi;
15653
15654 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15655 echo "${ECHO_T}$maintainer_mode" >&6
15656
15657 if test "$maintainer_mode" = "yes"; then
15658   MAINT=''
15659 else
15660   MAINT='#'
15661 fi
15662
15663 # --------------
15664 # Language hooks
15665 # --------------
15666
15667 # Make empty files to contain the specs and options for each language.
15668 # Then add #include lines to for a compiler that has specs and/or options.
15669
15670 lang_opt_files=
15671 lang_specs_files=
15672 lang_tree_files=
15673 for subdir in . $subdirs
15674 do
15675         if test -f $srcdir/$subdir/lang.opt; then
15676             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15677         fi
15678         if test -f $srcdir/$subdir/lang-specs.h; then
15679             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15680         fi
15681         if test -f $srcdir/$subdir/$subdir-tree.def; then
15682             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15683         fi
15684 done
15685
15686 # These (without "all_") are set in each config-lang.in.
15687 # `language' must be a single word so is spelled singularly.
15688 all_languages=
15689 all_boot_languages=
15690 all_compilers=
15691 all_stagestuff=
15692 all_outputs='Makefile gccbug mklibgcc libada-mk'
15693 # List of language makefile fragments.
15694 all_lang_makefrags=
15695 # List of language subdirectory makefiles.  Deprecated.
15696 all_lang_makefiles=
15697 # Files for gengtype
15698 all_gtfiles="$target_gtfiles"
15699 # Files for gengtype with language
15700 all_gtfiles_files_langs=
15701 all_gtfiles_files_files=
15702
15703 # Add the language fragments.
15704 # Languages are added via two mechanisms.  Some information must be
15705 # recorded in makefile variables, these are defined in config-lang.in.
15706 # We accumulate them and plug them into the main Makefile.
15707 # The other mechanism is a set of hooks for each of the main targets
15708 # like `clean', `install', etc.
15709
15710 language_hooks="Make-hooks"
15711
15712 for s in $subdirs
15713 do
15714                 language=
15715                 boot_language=
15716                 compilers=
15717                 stagestuff=
15718                 outputs=
15719                 gtfiles=
15720                 . ${srcdir}/$s/config-lang.in
15721                 if test "x$language" = x
15722                 then
15723                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15724                         exit 1
15725                 fi
15726                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15727                 if test -f ${srcdir}/$s/Makefile.in
15728                 then all_lang_makefiles="$s/Makefile"
15729                 fi
15730                 all_languages="$all_languages $language"
15731                 if test "x$boot_language" = xyes
15732                 then
15733                         all_boot_languages="$all_boot_languages $language"
15734                 fi
15735                 all_compilers="$all_compilers $compilers"
15736                 all_stagestuff="$all_stagestuff $stagestuff"
15737                 all_outputs="$all_outputs $outputs"
15738                 all_gtfiles="$all_gtfiles $gtfiles"
15739                 for f in $gtfiles
15740                 do
15741                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15742                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15743                 done
15744 done
15745
15746 # Pick up gtfiles for c
15747 gtfiles=
15748 s="c"
15749 . ${srcdir}/c-config-lang.in
15750 all_gtfiles="$all_gtfiles $gtfiles"
15751 for f in $gtfiles
15752 do
15753         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15754         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15755 done
15756
15757 check_languages=
15758 for language in $all_languages
15759 do
15760                 check_languages="$check_languages check-$language"
15761 done
15762
15763 # We link each language in with a set of hooks, reached indirectly via
15764 # lang.${target}.
15765
15766 rm -f Make-hooks
15767 touch Make-hooks
15768 target_list="all.cross start.encap rest.encap tags \
15769         install-common install-man \
15770         uninstall info man srcextra srcman srcinfo \
15771         mostlyclean clean distclean maintainer-clean \
15772         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15773 for t in $target_list
15774 do
15775         x=
15776         for lang in $all_languages
15777         do
15778                         x="$x $lang.$t"
15779         done
15780         echo "lang.$t: $x" >> Make-hooks
15781 done
15782
15783 # --------
15784 # UNSORTED
15785 # --------
15786
15787 # Create .gdbinit.
15788
15789 echo "dir ." > .gdbinit
15790 echo "dir ${srcdir}" >> .gdbinit
15791 if test x$gdb_needs_out_file_path = xyes
15792 then
15793         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15794 fi
15795 if test "x$subdirs" != x; then
15796         for s in $subdirs
15797         do
15798                 echo "dir ${srcdir}/$s" >> .gdbinit
15799         done
15800 fi
15801 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15802
15803 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15804 # absolute path for gcc_tooldir based on inserting the number of up-directory
15805 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15806 # $(libsubdir)/@(unlibsubdir) based path.
15807 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15808 # make and thus we'd get different behavior depending on where we built the
15809 # sources.
15810 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15811     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15812 else
15813 # An explanation of the sed strings:
15814 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
15815 #  -e 's|/$||'            match a trailing forward slash and eliminates it
15816 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
15817 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
15818 #
15819 # (*) Note this pattern overwrites the first character of the string
15820 # with a forward slash if one is not already present.  This is not a
15821 # problem because the exact names of the sub-directories concerned is
15822 # unimportant, just the number of them matters.
15823 #
15824 # The practical upshot of these patterns is like this:
15825 #
15826 #  prefix     exec_prefix        result
15827 #  ------     -----------        ------
15828 #   /foo        /foo/bar          ../
15829 #   /foo/       /foo/bar          ../
15830 #   /foo        /foo/bar/         ../
15831 #   /foo/       /foo/bar/         ../
15832 #   /foo        /foo/bar/ugg      ../../
15833 #
15834     dollar='$$'
15835     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15836 fi
15837
15838
15839
15840 # Find a directory in which to install a shared libgcc.
15841
15842 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15843 if test "${enable_version_specific_runtime_libs+set}" = set; then
15844   enableval="$enable_version_specific_runtime_libs"
15845
15846 fi;
15847
15848
15849 # Check whether --with-slibdir or --without-slibdir was given.
15850 if test "${with_slibdir+set}" = set; then
15851   withval="$with_slibdir"
15852   slibdir="$with_slibdir"
15853 else
15854   if test "${enable_version_specific_runtime_libs+set}" = set; then
15855   slibdir='$(libsubdir)'
15856 elif test "$host" != "$target"; then
15857   slibdir='$(build_tooldir)/lib'
15858 else
15859   slibdir='$(libdir)'
15860 fi
15861 fi;
15862
15863
15864 objdir=`${PWDCMD-pwd}`
15865
15866
15867 # Substitute configuration variables
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931 # Echo link setup.
15932 if test x${build} = x${host} ; then
15933   if test x${host} = x${target} ; then
15934     echo "Links are now set up to build a native compiler for ${target}." 1>&2
15935   else
15936     echo "Links are now set up to build a cross-compiler" 1>&2
15937     echo " from ${host} to ${target}." 1>&2
15938   fi
15939 else
15940   if test x${host} = x${target} ; then
15941     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15942     echo " for ${target}." 1>&2
15943   else
15944     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15945     echo " from ${host} to ${target}." 1>&2
15946   fi
15947 fi
15948
15949
15950
15951
15952 # Configure the subdirectories
15953 # AC_CONFIG_SUBDIRS($subdirs)
15954
15955 # Create the Makefile
15956 # and configure language subdirectories
15957           ac_config_files="$ac_config_files $all_outputs"
15958
15959
15960           ac_config_commands="$ac_config_commands default"
15961
15962 cat >confcache <<\_ACEOF
15963 # This file is a shell script that caches the results of configure
15964 # tests run on this system so they can be shared between configure
15965 # scripts and configure runs, see configure's option --config-cache.
15966 # It is not useful on other systems.  If it contains results you don't
15967 # want to keep, you may remove or edit it.
15968 #
15969 # config.status only pays attention to the cache file if you give it
15970 # the --recheck option to rerun configure.
15971 #
15972 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15973 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15974 # following values.
15975
15976 _ACEOF
15977
15978 # The following way of writing the cache mishandles newlines in values,
15979 # but we know of no workaround that is simple, portable, and efficient.
15980 # So, don't put newlines in cache variables' values.
15981 # Ultrix sh set writes to stderr and can't be redirected directly,
15982 # and sets the high bit in the cache file unless we assign to the vars.
15983 {
15984   (set) 2>&1 |
15985     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15986     *ac_space=\ *)
15987       # `set' does not quote correctly, so add quotes (double-quote
15988       # substitution turns \\\\ into \\, and sed turns \\ into \).
15989       sed -n \
15990         "s/'/'\\\\''/g;
15991           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15992       ;;
15993     *)
15994       # `set' quotes correctly as required by POSIX, so do not add quotes.
15995       sed -n \
15996         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15997       ;;
15998     esac;
15999 } |
16000   sed '
16001      t clear
16002      : clear
16003      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16004      t end
16005      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16006      : end' >>confcache
16007 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16008   if test -w $cache_file; then
16009     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16010     cat confcache >$cache_file
16011   else
16012     echo "not updating unwritable cache $cache_file"
16013   fi
16014 fi
16015 rm -f confcache
16016
16017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16018 # Let make expand exec_prefix.
16019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16020
16021 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16022 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16023 # trailing colons and then remove the whole line if VPATH becomes empty
16024 # (actually we leave an empty line to preserve line numbers).
16025 if test "x$srcdir" = x.; then
16026   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16027 s/:*\$(srcdir):*/:/;
16028 s/:*\${srcdir}:*/:/;
16029 s/:*@srcdir@:*/:/;
16030 s/^\([^=]*=[     ]*\):*/\1/;
16031 s/:*$//;
16032 s/^[^=]*=[       ]*$//;
16033 }'
16034 fi
16035
16036 DEFS=-DHAVE_CONFIG_H
16037
16038 ac_libobjs=
16039 ac_ltlibobjs=
16040 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16041   # 1. Remove the extension, and $U if already installed.
16042   ac_i=`echo "$ac_i" |
16043          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16044   # 2. Add them.
16045   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16046   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16047 done
16048 LIBOBJS=$ac_libobjs
16049
16050 LTLIBOBJS=$ac_ltlibobjs
16051
16052
16053
16054 : ${CONFIG_STATUS=./config.status}
16055 ac_clean_files_save=$ac_clean_files
16056 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16057 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16058 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16059 cat >$CONFIG_STATUS <<_ACEOF
16060 #! $SHELL
16061 # Generated by $as_me.
16062 # Run this file to recreate the current configuration.
16063 # Compiler output produced by configure, useful for debugging
16064 # configure, is in config.log if it exists.
16065
16066 debug=false
16067 ac_cs_recheck=false
16068 ac_cs_silent=false
16069 SHELL=\${CONFIG_SHELL-$SHELL}
16070 _ACEOF
16071
16072 cat >>$CONFIG_STATUS <<\_ACEOF
16073 ## --------------------- ##
16074 ## M4sh Initialization.  ##
16075 ## --------------------- ##
16076
16077 # Be Bourne compatible
16078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16079   emulate sh
16080   NULLCMD=:
16081   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16082   # is contrary to our usage.  Disable this feature.
16083   alias -g '${1+"$@"}'='"$@"'
16084 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16085   set -o posix
16086 fi
16087 DUALCASE=1; export DUALCASE # for MKS sh
16088
16089 # Support unset when possible.
16090 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16091   as_unset=unset
16092 else
16093   as_unset=false
16094 fi
16095
16096
16097 # Work around bugs in pre-3.0 UWIN ksh.
16098 $as_unset ENV MAIL MAILPATH
16099 PS1='$ '
16100 PS2='> '
16101 PS4='+ '
16102
16103 # NLS nuisances.
16104 for as_var in \
16105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16107   LC_TELEPHONE LC_TIME
16108 do
16109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16110     eval $as_var=C; export $as_var
16111   else
16112     $as_unset $as_var
16113   fi
16114 done
16115
16116 # Required to use basename.
16117 if expr a : '\(a\)' >/dev/null 2>&1; then
16118   as_expr=expr
16119 else
16120   as_expr=false
16121 fi
16122
16123 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16124   as_basename=basename
16125 else
16126   as_basename=false
16127 fi
16128
16129
16130 # Name of the executable.
16131 as_me=`$as_basename "$0" ||
16132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16133          X"$0" : 'X\(//\)$' \| \
16134          X"$0" : 'X\(/\)$' \| \
16135          .     : '\(.\)' 2>/dev/null ||
16136 echo X/"$0" |
16137     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16138           /^X\/\(\/\/\)$/{ s//\1/; q; }
16139           /^X\/\(\/\).*/{ s//\1/; q; }
16140           s/.*/./; q'`
16141
16142
16143 # PATH needs CR, and LINENO needs CR and PATH.
16144 # Avoid depending upon Character Ranges.
16145 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16146 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16147 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16148 as_cr_digits='0123456789'
16149 as_cr_alnum=$as_cr_Letters$as_cr_digits
16150
16151 # The user is always right.
16152 if test "${PATH_SEPARATOR+set}" != set; then
16153   echo "#! /bin/sh" >conf$$.sh
16154   echo  "exit 0"   >>conf$$.sh
16155   chmod +x conf$$.sh
16156   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16157     PATH_SEPARATOR=';'
16158   else
16159     PATH_SEPARATOR=:
16160   fi
16161   rm -f conf$$.sh
16162 fi
16163
16164
16165   as_lineno_1=$LINENO
16166   as_lineno_2=$LINENO
16167   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16168   test "x$as_lineno_1" != "x$as_lineno_2" &&
16169   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16170   # Find who we are.  Look in the path if we contain no path at all
16171   # relative or not.
16172   case $0 in
16173     *[\\/]* ) as_myself=$0 ;;
16174     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16175 for as_dir in $PATH
16176 do
16177   IFS=$as_save_IFS
16178   test -z "$as_dir" && as_dir=.
16179   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16180 done
16181
16182        ;;
16183   esac
16184   # We did not find ourselves, most probably we were run as `sh COMMAND'
16185   # in which case we are not to be found in the path.
16186   if test "x$as_myself" = x; then
16187     as_myself=$0
16188   fi
16189   if test ! -f "$as_myself"; then
16190     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16191 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16192    { (exit 1); exit 1; }; }
16193   fi
16194   case $CONFIG_SHELL in
16195   '')
16196     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16198 do
16199   IFS=$as_save_IFS
16200   test -z "$as_dir" && as_dir=.
16201   for as_base in sh bash ksh sh5; do
16202          case $as_dir in
16203          /*)
16204            if ("$as_dir/$as_base" -c '
16205   as_lineno_1=$LINENO
16206   as_lineno_2=$LINENO
16207   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16208   test "x$as_lineno_1" != "x$as_lineno_2" &&
16209   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16210              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16211              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16212              CONFIG_SHELL=$as_dir/$as_base
16213              export CONFIG_SHELL
16214              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16215            fi;;
16216          esac
16217        done
16218 done
16219 ;;
16220   esac
16221
16222   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16223   # uniformly replaced by the line number.  The first 'sed' inserts a
16224   # line-number line before each line; the second 'sed' does the real
16225   # work.  The second script uses 'N' to pair each line-number line
16226   # with the numbered line, and appends trailing '-' during
16227   # substitution so that $LINENO is not a special case at line end.
16228   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16229   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16230   sed '=' <$as_myself |
16231     sed '
16232       N
16233       s,$,-,
16234       : loop
16235       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16236       t loop
16237       s,-$,,
16238       s,^['$as_cr_digits']*\n,,
16239     ' >$as_me.lineno &&
16240   chmod +x $as_me.lineno ||
16241     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16242 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16243    { (exit 1); exit 1; }; }
16244
16245   # Don't try to exec as it changes $[0], causing all sort of problems
16246   # (the dirname of $[0] is not the place where we might find the
16247   # original and so on.  Autoconf is especially sensible to this).
16248   . ./$as_me.lineno
16249   # Exit status is that of the last command.
16250   exit
16251 }
16252
16253
16254 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16255   *c*,-n*) ECHO_N= ECHO_C='
16256 ' ECHO_T='      ' ;;
16257   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16258   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16259 esac
16260
16261 if expr a : '\(a\)' >/dev/null 2>&1; then
16262   as_expr=expr
16263 else
16264   as_expr=false
16265 fi
16266
16267 rm -f conf$$ conf$$.exe conf$$.file
16268 echo >conf$$.file
16269 if ln -s conf$$.file conf$$ 2>/dev/null; then
16270   # We could just check for DJGPP; but this test a) works b) is more generic
16271   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16272   if test -f conf$$.exe; then
16273     # Don't use ln at all; we don't have any links
16274     as_ln_s='cp -p'
16275   else
16276     as_ln_s='ln -s'
16277   fi
16278 elif ln conf$$.file conf$$ 2>/dev/null; then
16279   as_ln_s=ln
16280 else
16281   as_ln_s='cp -p'
16282 fi
16283 rm -f conf$$ conf$$.exe conf$$.file
16284
16285 if mkdir -p . 2>/dev/null; then
16286   as_mkdir_p=:
16287 else
16288   test -d ./-p && rmdir ./-p
16289   as_mkdir_p=false
16290 fi
16291
16292 as_executable_p="test -f"
16293
16294 # Sed expression to map a string onto a valid CPP name.
16295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16296
16297 # Sed expression to map a string onto a valid variable name.
16298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16299
16300
16301 # IFS
16302 # We need space, tab and new line, in precisely that order.
16303 as_nl='
16304 '
16305 IFS="   $as_nl"
16306
16307 # CDPATH.
16308 $as_unset CDPATH
16309
16310 exec 6>&1
16311
16312 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16313 # report actual input values of CONFIG_FILES etc. instead of their
16314 # values after options handling.  Logging --version etc. is OK.
16315 exec 5>>config.log
16316 {
16317   echo
16318   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16319 ## Running $as_me. ##
16320 _ASBOX
16321 } >&5
16322 cat >&5 <<_CSEOF
16323
16324 This file was extended by $as_me, which was
16325 generated by GNU Autoconf 2.59.  Invocation command line was
16326
16327   CONFIG_FILES    = $CONFIG_FILES
16328   CONFIG_HEADERS  = $CONFIG_HEADERS
16329   CONFIG_LINKS    = $CONFIG_LINKS
16330   CONFIG_COMMANDS = $CONFIG_COMMANDS
16331   $ $0 $@
16332
16333 _CSEOF
16334 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16335 echo >&5
16336 _ACEOF
16337
16338 # Files that config.status was made for.
16339 if test -n "$ac_config_files"; then
16340   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16341 fi
16342
16343 if test -n "$ac_config_headers"; then
16344   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16345 fi
16346
16347 if test -n "$ac_config_links"; then
16348   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16349 fi
16350
16351 if test -n "$ac_config_commands"; then
16352   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16353 fi
16354
16355 cat >>$CONFIG_STATUS <<\_ACEOF
16356
16357 ac_cs_usage="\
16358 \`$as_me' instantiates files from templates according to the
16359 current configuration.
16360
16361 Usage: $0 [OPTIONS] [FILE]...
16362
16363   -h, --help       print this help, then exit
16364   -V, --version    print version number, then exit
16365   -q, --quiet      do not print progress messages
16366   -d, --debug      don't remove temporary files
16367       --recheck    update $as_me by reconfiguring in the same conditions
16368   --file=FILE[:TEMPLATE]
16369                    instantiate the configuration file FILE
16370   --header=FILE[:TEMPLATE]
16371                    instantiate the configuration header FILE
16372
16373 Configuration files:
16374 $config_files
16375
16376 Configuration headers:
16377 $config_headers
16378
16379 Configuration commands:
16380 $config_commands
16381
16382 Report bugs to <bug-autoconf@gnu.org>."
16383 _ACEOF
16384
16385 cat >>$CONFIG_STATUS <<_ACEOF
16386 ac_cs_version="\\
16387 config.status
16388 configured by $0, generated by GNU Autoconf 2.59,
16389   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16390
16391 Copyright (C) 2003 Free Software Foundation, Inc.
16392 This config.status script is free software; the Free Software Foundation
16393 gives unlimited permission to copy, distribute and modify it."
16394 srcdir=$srcdir
16395 _ACEOF
16396
16397 cat >>$CONFIG_STATUS <<\_ACEOF
16398 # If no file are specified by the user, then we need to provide default
16399 # value.  By we need to know if files were specified by the user.
16400 ac_need_defaults=:
16401 while test $# != 0
16402 do
16403   case $1 in
16404   --*=*)
16405     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16406     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16407     ac_shift=:
16408     ;;
16409   -*)
16410     ac_option=$1
16411     ac_optarg=$2
16412     ac_shift=shift
16413     ;;
16414   *) # This is not an option, so the user has probably given explicit
16415      # arguments.
16416      ac_option=$1
16417      ac_need_defaults=false;;
16418   esac
16419
16420   case $ac_option in
16421   # Handling of the options.
16422 _ACEOF
16423 cat >>$CONFIG_STATUS <<\_ACEOF
16424   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16425     ac_cs_recheck=: ;;
16426   --version | --vers* | -V )
16427     echo "$ac_cs_version"; exit 0 ;;
16428   --he | --h)
16429     # Conflict between --help and --header
16430     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16431 Try \`$0 --help' for more information." >&5
16432 echo "$as_me: error: ambiguous option: $1
16433 Try \`$0 --help' for more information." >&2;}
16434    { (exit 1); exit 1; }; };;
16435   --help | --hel | -h )
16436     echo "$ac_cs_usage"; exit 0 ;;
16437   --debug | --d* | -d )
16438     debug=: ;;
16439   --file | --fil | --fi | --f )
16440     $ac_shift
16441     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16442     ac_need_defaults=false;;
16443   --header | --heade | --head | --hea )
16444     $ac_shift
16445     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16446     ac_need_defaults=false;;
16447   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16448   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16449     ac_cs_silent=: ;;
16450
16451   # This is an error.
16452   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16453 Try \`$0 --help' for more information." >&5
16454 echo "$as_me: error: unrecognized option: $1
16455 Try \`$0 --help' for more information." >&2;}
16456    { (exit 1); exit 1; }; } ;;
16457
16458   *) ac_config_targets="$ac_config_targets $1" ;;
16459
16460   esac
16461   shift
16462 done
16463
16464 ac_configure_extra_args=
16465
16466 if $ac_cs_silent; then
16467   exec 6>/dev/null
16468   ac_configure_extra_args="$ac_configure_extra_args --silent"
16469 fi
16470
16471 _ACEOF
16472 cat >>$CONFIG_STATUS <<_ACEOF
16473 if \$ac_cs_recheck; then
16474   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16475   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16476 fi
16477
16478 _ACEOF
16479
16480 cat >>$CONFIG_STATUS <<_ACEOF
16481 #
16482 # INIT-COMMANDS section.
16483 #
16484
16485 subdirs='$subdirs'
16486
16487 _ACEOF
16488
16489
16490
16491 cat >>$CONFIG_STATUS <<\_ACEOF
16492 for ac_config_target in $ac_config_targets
16493 do
16494   case "$ac_config_target" in
16495   # Handling of arguments.
16496   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16497   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16498   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16499   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16501    { (exit 1); exit 1; }; };;
16502   esac
16503 done
16504
16505 # If the user did not use the arguments to specify the items to instantiate,
16506 # then the envvar interface is used.  Set only those that are not.
16507 # We use the long form for the default assignment because of an extremely
16508 # bizarre bug on SunOS 4.1.3.
16509 if $ac_need_defaults; then
16510   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16511   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16512   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16513 fi
16514
16515 # Have a temporary directory for convenience.  Make it in the build tree
16516 # simply because there is no reason to put it here, and in addition,
16517 # creating and moving files from /tmp can sometimes cause problems.
16518 # Create a temporary directory, and hook for its removal unless debugging.
16519 $debug ||
16520 {
16521   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16522   trap '{ (exit 1); exit 1; }' 1 2 13 15
16523 }
16524
16525 # Create a (secure) tmp directory for tmp files.
16526
16527 {
16528   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16529   test -n "$tmp" && test -d "$tmp"
16530 }  ||
16531 {
16532   tmp=./confstat$$-$RANDOM
16533   (umask 077 && mkdir $tmp)
16534 } ||
16535 {
16536    echo "$me: cannot create a temporary directory in ." >&2
16537    { (exit 1); exit 1; }
16538 }
16539
16540 _ACEOF
16541
16542 cat >>$CONFIG_STATUS <<_ACEOF
16543
16544 #
16545 # CONFIG_FILES section.
16546 #
16547
16548 # No need to generate the scripts if there are no CONFIG_FILES.
16549 # This happens for instance when ./config.status config.h
16550 if test -n "\$CONFIG_FILES"; then
16551   # Protect against being on the right side of a sed subst in config.status.
16552   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16553    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16554 s,@SHELL@,$SHELL,;t t
16555 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16556 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16557 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16558 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16559 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16560 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16561 s,@exec_prefix@,$exec_prefix,;t t
16562 s,@prefix@,$prefix,;t t
16563 s,@program_transform_name@,$program_transform_name,;t t
16564 s,@bindir@,$bindir,;t t
16565 s,@sbindir@,$sbindir,;t t
16566 s,@libexecdir@,$libexecdir,;t t
16567 s,@datadir@,$datadir,;t t
16568 s,@sysconfdir@,$sysconfdir,;t t
16569 s,@sharedstatedir@,$sharedstatedir,;t t
16570 s,@localstatedir@,$localstatedir,;t t
16571 s,@libdir@,$libdir,;t t
16572 s,@includedir@,$includedir,;t t
16573 s,@oldincludedir@,$oldincludedir,;t t
16574 s,@infodir@,$infodir,;t t
16575 s,@mandir@,$mandir,;t t
16576 s,@build_alias@,$build_alias,;t t
16577 s,@host_alias@,$host_alias,;t t
16578 s,@target_alias@,$target_alias,;t t
16579 s,@DEFS@,$DEFS,;t t
16580 s,@ECHO_C@,$ECHO_C,;t t
16581 s,@ECHO_N@,$ECHO_N,;t t
16582 s,@ECHO_T@,$ECHO_T,;t t
16583 s,@LIBS@,$LIBS,;t t
16584 s,@build@,$build,;t t
16585 s,@build_cpu@,$build_cpu,;t t
16586 s,@build_vendor@,$build_vendor,;t t
16587 s,@build_os@,$build_os,;t t
16588 s,@host@,$host,;t t
16589 s,@host_cpu@,$host_cpu,;t t
16590 s,@host_vendor@,$host_vendor,;t t
16591 s,@host_os@,$host_os,;t t
16592 s,@target@,$target,;t t
16593 s,@target_cpu@,$target_cpu,;t t
16594 s,@target_vendor@,$target_vendor,;t t
16595 s,@target_os@,$target_os,;t t
16596 s,@target_noncanonical@,$target_noncanonical,;t t
16597 s,@build_subdir@,$build_subdir,;t t
16598 s,@host_subdir@,$host_subdir,;t t
16599 s,@target_subdir@,$target_subdir,;t t
16600 s,@GENINSRC@,$GENINSRC,;t t
16601 s,@CC@,$CC,;t t
16602 s,@CFLAGS@,$CFLAGS,;t t
16603 s,@LDFLAGS@,$LDFLAGS,;t t
16604 s,@CPPFLAGS@,$CPPFLAGS,;t t
16605 s,@ac_ct_CC@,$ac_ct_CC,;t t
16606 s,@EXEEXT@,$EXEEXT,;t t
16607 s,@OBJEXT@,$OBJEXT,;t t
16608 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16609 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16610 s,@CPP@,$CPP,;t t
16611 s,@EGREP@,$EGREP,;t t
16612 s,@strict1_warn@,$strict1_warn,;t t
16613 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16614 s,@warn_cflags@,$warn_cflags,;t t
16615 s,@WERROR@,$WERROR,;t t
16616 s,@nocommon_flag@,$nocommon_flag,;t t
16617 s,@TREEBROWSER@,$TREEBROWSER,;t t
16618 s,@valgrind_path@,$valgrind_path,;t t
16619 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16620 s,@valgrind_command@,$valgrind_command,;t t
16621 s,@coverage_flags@,$coverage_flags,;t t
16622 s,@enable_multilib@,$enable_multilib,;t t
16623 s,@enable_decimal_float@,$enable_decimal_float,;t t
16624 s,@enable_shared@,$enable_shared,;t t
16625 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16626 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16627 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16628 s,@onestep@,$onestep,;t t
16629 s,@SET_MAKE@,$SET_MAKE,;t t
16630 s,@AWK@,$AWK,;t t
16631 s,@LN_S@,$LN_S,;t t
16632 s,@LN@,$LN,;t t
16633 s,@RANLIB@,$RANLIB,;t t
16634 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16635 s,@ranlib_flags@,$ranlib_flags,;t t
16636 s,@INSTALL@,$INSTALL,;t t
16637 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16638 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16639 s,@make_compare_target@,$make_compare_target,;t t
16640 s,@have_mktemp_command@,$have_mktemp_command,;t t
16641 s,@MAKEINFO@,$MAKEINFO,;t t
16642 s,@BUILD_INFO@,$BUILD_INFO,;t t
16643 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16644 s,@FLEX@,$FLEX,;t t
16645 s,@BISON@,$BISON,;t t
16646 s,@NM@,$NM,;t t
16647 s,@AR@,$AR,;t t
16648 s,@stage1_cflags@,$stage1_cflags,;t t
16649 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16650 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16651 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16652 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16653 s,@LIBICONV@,$LIBICONV,;t t
16654 s,@LTLIBICONV@,$LTLIBICONV,;t t
16655 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16656 s,@manext@,$manext,;t t
16657 s,@objext@,$objext,;t t
16658 s,@gthread_flags@,$gthread_flags,;t t
16659 s,@extra_modes_file@,$extra_modes_file,;t t
16660 s,@extra_opt_files@,$extra_opt_files,;t t
16661 s,@USE_NLS@,$USE_NLS,;t t
16662 s,@LIBINTL@,$LIBINTL,;t t
16663 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16664 s,@INCINTL@,$INCINTL,;t t
16665 s,@XGETTEXT@,$XGETTEXT,;t t
16666 s,@GMSGFMT@,$GMSGFMT,;t t
16667 s,@POSUB@,$POSUB,;t t
16668 s,@CATALOGS@,$CATALOGS,;t t
16669 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16670 s,@CROSS@,$CROSS,;t t
16671 s,@ALL@,$ALL,;t t
16672 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16673 s,@inhibit_libc@,$inhibit_libc,;t t
16674 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16675 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16676 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16677 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16678 s,@collect2@,$collect2,;t t
16679 s,@gcc_cv_as@,$gcc_cv_as,;t t
16680 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
16681 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
16682 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
16683 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
16684 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
16685 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
16686 s,@libgcc_visibility@,$libgcc_visibility,;t t
16687 s,@GGC@,$GGC,;t t
16688 s,@zlibdir@,$zlibdir,;t t
16689 s,@zlibinc@,$zlibinc,;t t
16690 s,@MAINT@,$MAINT,;t t
16691 s,@gcc_tooldir@,$gcc_tooldir,;t t
16692 s,@dollar@,$dollar,;t t
16693 s,@slibdir@,$slibdir,;t t
16694 s,@objdir@,$objdir,;t t
16695 s,@subdirs@,$subdirs,;t t
16696 s,@srcdir@,$srcdir,;t t
16697 s,@all_boot_languages@,$all_boot_languages,;t t
16698 s,@all_compilers@,$all_compilers,;t t
16699 s,@all_gtfiles@,$all_gtfiles,;t t
16700 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16701 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16702 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16703 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16704 s,@all_languages@,$all_languages,;t t
16705 s,@all_stagestuff@,$all_stagestuff,;t t
16706 s,@build_exeext@,$build_exeext,;t t
16707 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16708 s,@build_xm_file_list@,$build_xm_file_list,;t t
16709 s,@build_xm_include_list@,$build_xm_include_list,;t t
16710 s,@build_xm_defines@,$build_xm_defines,;t t
16711 s,@check_languages@,$check_languages,;t t
16712 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16713 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16714 s,@cpp_install_dir@,$cpp_install_dir,;t t
16715 s,@xmake_file@,$xmake_file,;t t
16716 s,@tmake_file@,$tmake_file,;t t
16717 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16718 s,@extra_headers_list@,$extra_headers_list,;t t
16719 s,@extra_objs@,$extra_objs,;t t
16720 s,@extra_parts@,$extra_parts,;t t
16721 s,@extra_passes@,$extra_passes,;t t
16722 s,@extra_programs@,$extra_programs,;t t
16723 s,@float_h_file@,$float_h_file,;t t
16724 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16725 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16726 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16727 s,@host_exeext@,$host_exeext,;t t
16728 s,@host_xm_file_list@,$host_xm_file_list,;t t
16729 s,@host_xm_include_list@,$host_xm_include_list,;t t
16730 s,@host_xm_defines@,$host_xm_defines,;t t
16731 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16732 s,@install@,$install,;t t
16733 s,@lang_opt_files@,$lang_opt_files,;t t
16734 s,@lang_specs_files@,$lang_specs_files,;t t
16735 s,@lang_tree_files@,$lang_tree_files,;t t
16736 s,@local_prefix@,$local_prefix,;t t
16737 s,@md_file@,$md_file,;t t
16738 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16739 s,@out_file@,$out_file,;t t
16740 s,@out_object_file@,$out_object_file,;t t
16741 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16742 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16743 s,@thread_file@,$thread_file,;t t
16744 s,@tm_file_list@,$tm_file_list,;t t
16745 s,@tm_include_list@,$tm_include_list,;t t
16746 s,@tm_defines@,$tm_defines,;t t
16747 s,@tm_p_file_list@,$tm_p_file_list,;t t
16748 s,@tm_p_include_list@,$tm_p_include_list,;t t
16749 s,@xm_file_list@,$xm_file_list,;t t
16750 s,@xm_include_list@,$xm_include_list,;t t
16751 s,@xm_defines@,$xm_defines,;t t
16752 s,@c_target_objs@,$c_target_objs,;t t
16753 s,@cxx_target_objs@,$cxx_target_objs,;t t
16754 s,@target_cpu_default@,$target_cpu_default,;t t
16755 s,@GMPLIBS@,$GMPLIBS,;t t
16756 s,@GMPINC@,$GMPINC,;t t
16757 s,@LIBOBJS@,$LIBOBJS,;t t
16758 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16759 /@language_hooks@/r $language_hooks
16760 s,@language_hooks@,,;t t
16761 CEOF
16762
16763 _ACEOF
16764
16765   cat >>$CONFIG_STATUS <<\_ACEOF
16766   # Split the substitutions into bite-sized pieces for seds with
16767   # small command number limits, like on Digital OSF/1 and HP-UX.
16768   ac_max_sed_lines=48
16769   ac_sed_frag=1 # Number of current file.
16770   ac_beg=1 # First line for current file.
16771   ac_end=$ac_max_sed_lines # Line after last line for current file.
16772   ac_more_lines=:
16773   ac_sed_cmds=
16774   while $ac_more_lines; do
16775     if test $ac_beg -gt 1; then
16776       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16777     else
16778       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16779     fi
16780     if test ! -s $tmp/subs.frag; then
16781       ac_more_lines=false
16782     else
16783       # The purpose of the label and of the branching condition is to
16784       # speed up the sed processing (if there are no `@' at all, there
16785       # is no need to browse any of the substitutions).
16786       # These are the two extra sed commands mentioned above.
16787       (echo ':t
16788   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16789       if test -z "$ac_sed_cmds"; then
16790         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16791       else
16792         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16793       fi
16794       ac_sed_frag=`expr $ac_sed_frag + 1`
16795       ac_beg=$ac_end
16796       ac_end=`expr $ac_end + $ac_max_sed_lines`
16797     fi
16798   done
16799   if test -z "$ac_sed_cmds"; then
16800     ac_sed_cmds=cat
16801   fi
16802 fi # test -n "$CONFIG_FILES"
16803
16804 _ACEOF
16805 cat >>$CONFIG_STATUS <<\_ACEOF
16806 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16807   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16808   case $ac_file in
16809   - | *:- | *:-:* ) # input from stdin
16810         cat >$tmp/stdin
16811         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16812         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16813   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16814         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16815   * )   ac_file_in=$ac_file.in ;;
16816   esac
16817
16818   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16819   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16821          X"$ac_file" : 'X\(//\)[^/]' \| \
16822          X"$ac_file" : 'X\(//\)$' \| \
16823          X"$ac_file" : 'X\(/\)' \| \
16824          .     : '\(.\)' 2>/dev/null ||
16825 echo X"$ac_file" |
16826     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16827           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16828           /^X\(\/\/\)$/{ s//\1/; q; }
16829           /^X\(\/\).*/{ s//\1/; q; }
16830           s/.*/./; q'`
16831   { if $as_mkdir_p; then
16832     mkdir -p "$ac_dir"
16833   else
16834     as_dir="$ac_dir"
16835     as_dirs=
16836     while test ! -d "$as_dir"; do
16837       as_dirs="$as_dir $as_dirs"
16838       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16840          X"$as_dir" : 'X\(//\)[^/]' \| \
16841          X"$as_dir" : 'X\(//\)$' \| \
16842          X"$as_dir" : 'X\(/\)' \| \
16843          .     : '\(.\)' 2>/dev/null ||
16844 echo X"$as_dir" |
16845     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16846           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16847           /^X\(\/\/\)$/{ s//\1/; q; }
16848           /^X\(\/\).*/{ s//\1/; q; }
16849           s/.*/./; q'`
16850     done
16851     test ! -n "$as_dirs" || mkdir $as_dirs
16852   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16854    { (exit 1); exit 1; }; }; }
16855
16856   ac_builddir=.
16857
16858 if test "$ac_dir" != .; then
16859   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16860   # A "../" for each directory in $ac_dir_suffix.
16861   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16862 else
16863   ac_dir_suffix= ac_top_builddir=
16864 fi
16865
16866 case $srcdir in
16867   .)  # No --srcdir option.  We are building in place.
16868     ac_srcdir=.
16869     if test -z "$ac_top_builddir"; then
16870        ac_top_srcdir=.
16871     else
16872        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16873     fi ;;
16874   [\\/]* | ?:[\\/]* )  # Absolute path.
16875     ac_srcdir=$srcdir$ac_dir_suffix;
16876     ac_top_srcdir=$srcdir ;;
16877   *) # Relative path.
16878     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16879     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16880 esac
16881
16882 # Do not use `cd foo && pwd` to compute absolute paths, because
16883 # the directories may not exist.
16884 case `pwd` in
16885 .) ac_abs_builddir="$ac_dir";;
16886 *)
16887   case "$ac_dir" in
16888   .) ac_abs_builddir=`pwd`;;
16889   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16890   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16891   esac;;
16892 esac
16893 case $ac_abs_builddir in
16894 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16895 *)
16896   case ${ac_top_builddir}. in
16897   .) ac_abs_top_builddir=$ac_abs_builddir;;
16898   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16899   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16900   esac;;
16901 esac
16902 case $ac_abs_builddir in
16903 .) ac_abs_srcdir=$ac_srcdir;;
16904 *)
16905   case $ac_srcdir in
16906   .) ac_abs_srcdir=$ac_abs_builddir;;
16907   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16908   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16909   esac;;
16910 esac
16911 case $ac_abs_builddir in
16912 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16913 *)
16914   case $ac_top_srcdir in
16915   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16916   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16917   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16918   esac;;
16919 esac
16920
16921
16922
16923   # Let's still pretend it is `configure' which instantiates (i.e., don't
16924   # use $as_me), people would be surprised to read:
16925   #    /* config.h.  Generated by config.status.  */
16926   if test x"$ac_file" = x-; then
16927     configure_input=
16928   else
16929     configure_input="$ac_file.  "
16930   fi
16931   configure_input=$configure_input"Generated from `echo $ac_file_in |
16932                                      sed 's,.*/,,'` by configure."
16933
16934   # First look for the input files in the build tree, otherwise in the
16935   # src tree.
16936   ac_file_inputs=`IFS=:
16937     for f in $ac_file_in; do
16938       case $f in
16939       -) echo $tmp/stdin ;;
16940       [\\/$]*)
16941          # Absolute (can't be DOS-style, as IFS=:)
16942          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16943 echo "$as_me: error: cannot find input file: $f" >&2;}
16944    { (exit 1); exit 1; }; }
16945          echo "$f";;
16946       *) # Relative
16947          if test -f "$f"; then
16948            # Build tree
16949            echo "$f"
16950          elif test -f "$srcdir/$f"; then
16951            # Source tree
16952            echo "$srcdir/$f"
16953          else
16954            # /dev/null tree
16955            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16956 echo "$as_me: error: cannot find input file: $f" >&2;}
16957    { (exit 1); exit 1; }; }
16958          fi;;
16959       esac
16960     done` || { (exit 1); exit 1; }
16961
16962   if test x"$ac_file" != x-; then
16963     { echo "$as_me:$LINENO: creating $ac_file" >&5
16964 echo "$as_me: creating $ac_file" >&6;}
16965     rm -f "$ac_file"
16966   fi
16967 _ACEOF
16968 cat >>$CONFIG_STATUS <<_ACEOF
16969   sed "$ac_vpsub
16970 $extrasub
16971 _ACEOF
16972 cat >>$CONFIG_STATUS <<\_ACEOF
16973 :t
16974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16975 s,@configure_input@,$configure_input,;t t
16976 s,@srcdir@,$ac_srcdir,;t t
16977 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16978 s,@top_srcdir@,$ac_top_srcdir,;t t
16979 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16980 s,@builddir@,$ac_builddir,;t t
16981 s,@abs_builddir@,$ac_abs_builddir,;t t
16982 s,@top_builddir@,$ac_top_builddir,;t t
16983 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16984 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16985   rm -f $tmp/stdin
16986   if test x"$ac_file" != x-; then
16987     mv $tmp/out $ac_file
16988   else
16989     cat $tmp/out
16990     rm -f $tmp/out
16991   fi
16992
16993 done
16994 _ACEOF
16995 cat >>$CONFIG_STATUS <<\_ACEOF
16996
16997 #
16998 # CONFIG_HEADER section.
16999 #
17000
17001 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17002 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17003 #
17004 # ac_d sets the value in "#define NAME VALUE" lines.
17005 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17006 ac_dB='[         ].*$,\1#\2'
17007 ac_dC=' '
17008 ac_dD=',;t'
17009 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17010 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17011 ac_uB='$,\1#\2define\3'
17012 ac_uC=' '
17013 ac_uD=',;t'
17014
17015 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17016   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17017   case $ac_file in
17018   - | *:- | *:-:* ) # input from stdin
17019         cat >$tmp/stdin
17020         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17021         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17022   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17023         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17024   * )   ac_file_in=$ac_file.in ;;
17025   esac
17026
17027   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17028 echo "$as_me: creating $ac_file" >&6;}
17029
17030   # First look for the input files in the build tree, otherwise in the
17031   # src tree.
17032   ac_file_inputs=`IFS=:
17033     for f in $ac_file_in; do
17034       case $f in
17035       -) echo $tmp/stdin ;;
17036       [\\/$]*)
17037          # Absolute (can't be DOS-style, as IFS=:)
17038          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17039 echo "$as_me: error: cannot find input file: $f" >&2;}
17040    { (exit 1); exit 1; }; }
17041          # Do quote $f, to prevent DOS paths from being IFS'd.
17042          echo "$f";;
17043       *) # Relative
17044          if test -f "$f"; then
17045            # Build tree
17046            echo "$f"
17047          elif test -f "$srcdir/$f"; then
17048            # Source tree
17049            echo "$srcdir/$f"
17050          else
17051            # /dev/null tree
17052            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17053 echo "$as_me: error: cannot find input file: $f" >&2;}
17054    { (exit 1); exit 1; }; }
17055          fi;;
17056       esac
17057     done` || { (exit 1); exit 1; }
17058   # Remove the trailing spaces.
17059   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17060
17061 _ACEOF
17062
17063 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17064 # `conftest.undefs', that substitutes the proper values into
17065 # config.h.in to produce config.h.  The first handles `#define'
17066 # templates, and the second `#undef' templates.
17067 # And first: Protect against being on the right side of a sed subst in
17068 # config.status.  Protect against being in an unquoted here document
17069 # in config.status.
17070 rm -f conftest.defines conftest.undefs
17071 # Using a here document instead of a string reduces the quoting nightmare.
17072 # Putting comments in sed scripts is not portable.
17073 #
17074 # `end' is used to avoid that the second main sed command (meant for
17075 # 0-ary CPP macros) applies to n-ary macro definitions.
17076 # See the Autoconf documentation for `clear'.
17077 cat >confdef2sed.sed <<\_ACEOF
17078 s/[\\&,]/\\&/g
17079 s,[\\$`],\\&,g
17080 t clear
17081 : clear
17082 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17083 t end
17084 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17085 : end
17086 _ACEOF
17087 # If some macros were called several times there might be several times
17088 # the same #defines, which is useless.  Nevertheless, we may not want to
17089 # sort them, since we want the *last* AC-DEFINE to be honored.
17090 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17091 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17092 rm -f confdef2sed.sed
17093
17094 # This sed command replaces #undef with comments.  This is necessary, for
17095 # example, in the case of _POSIX_SOURCE, which is predefined and required
17096 # on some systems where configure will not decide to define it.
17097 cat >>conftest.undefs <<\_ACEOF
17098 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17099 _ACEOF
17100
17101 # Break up conftest.defines because some shells have a limit on the size
17102 # of here documents, and old seds have small limits too (100 cmds).
17103 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17104 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17105 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17106 echo '  :' >>$CONFIG_STATUS
17107 rm -f conftest.tail
17108 while grep . conftest.defines >/dev/null
17109 do
17110   # Write a limited-size here document to $tmp/defines.sed.
17111   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17112   # Speed up: don't consider the non `#define' lines.
17113   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17114   # Work around the forget-to-reset-the-flag bug.
17115   echo 't clr' >>$CONFIG_STATUS
17116   echo ': clr' >>$CONFIG_STATUS
17117   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17118   echo 'CEOF
17119   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17120   rm -f $tmp/in
17121   mv $tmp/out $tmp/in
17122 ' >>$CONFIG_STATUS
17123   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17124   rm -f conftest.defines
17125   mv conftest.tail conftest.defines
17126 done
17127 rm -f conftest.defines
17128 echo '  fi # grep' >>$CONFIG_STATUS
17129 echo >>$CONFIG_STATUS
17130
17131 # Break up conftest.undefs because some shells have a limit on the size
17132 # of here documents, and old seds have small limits too (100 cmds).
17133 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17134 rm -f conftest.tail
17135 while grep . conftest.undefs >/dev/null
17136 do
17137   # Write a limited-size here document to $tmp/undefs.sed.
17138   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17139   # Speed up: don't consider the non `#undef'
17140   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17141   # Work around the forget-to-reset-the-flag bug.
17142   echo 't clr' >>$CONFIG_STATUS
17143   echo ': clr' >>$CONFIG_STATUS
17144   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17145   echo 'CEOF
17146   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17147   rm -f $tmp/in
17148   mv $tmp/out $tmp/in
17149 ' >>$CONFIG_STATUS
17150   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17151   rm -f conftest.undefs
17152   mv conftest.tail conftest.undefs
17153 done
17154 rm -f conftest.undefs
17155
17156 cat >>$CONFIG_STATUS <<\_ACEOF
17157   # Let's still pretend it is `configure' which instantiates (i.e., don't
17158   # use $as_me), people would be surprised to read:
17159   #    /* config.h.  Generated by config.status.  */
17160   if test x"$ac_file" = x-; then
17161     echo "/* Generated by configure.  */" >$tmp/config.h
17162   else
17163     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17164   fi
17165   cat $tmp/in >>$tmp/config.h
17166   rm -f $tmp/in
17167   if test x"$ac_file" != x-; then
17168     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17169       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17170 echo "$as_me: $ac_file is unchanged" >&6;}
17171     else
17172       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17174          X"$ac_file" : 'X\(//\)[^/]' \| \
17175          X"$ac_file" : 'X\(//\)$' \| \
17176          X"$ac_file" : 'X\(/\)' \| \
17177          .     : '\(.\)' 2>/dev/null ||
17178 echo X"$ac_file" |
17179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17180           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17181           /^X\(\/\/\)$/{ s//\1/; q; }
17182           /^X\(\/\).*/{ s//\1/; q; }
17183           s/.*/./; q'`
17184       { if $as_mkdir_p; then
17185     mkdir -p "$ac_dir"
17186   else
17187     as_dir="$ac_dir"
17188     as_dirs=
17189     while test ! -d "$as_dir"; do
17190       as_dirs="$as_dir $as_dirs"
17191       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17193          X"$as_dir" : 'X\(//\)[^/]' \| \
17194          X"$as_dir" : 'X\(//\)$' \| \
17195          X"$as_dir" : 'X\(/\)' \| \
17196          .     : '\(.\)' 2>/dev/null ||
17197 echo X"$as_dir" |
17198     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17199           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17200           /^X\(\/\/\)$/{ s//\1/; q; }
17201           /^X\(\/\).*/{ s//\1/; q; }
17202           s/.*/./; q'`
17203     done
17204     test ! -n "$as_dirs" || mkdir $as_dirs
17205   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17206 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17207    { (exit 1); exit 1; }; }; }
17208
17209       rm -f $ac_file
17210       mv $tmp/config.h $ac_file
17211     fi
17212   else
17213     cat $tmp/config.h
17214     rm -f $tmp/config.h
17215   fi
17216 done
17217 _ACEOF
17218 cat >>$CONFIG_STATUS <<\_ACEOF
17219
17220 #
17221 # CONFIG_COMMANDS section.
17222 #
17223 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17224   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17225   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17226   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17227 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17228          X"$ac_dest" : 'X\(//\)[^/]' \| \
17229          X"$ac_dest" : 'X\(//\)$' \| \
17230          X"$ac_dest" : 'X\(/\)' \| \
17231          .     : '\(.\)' 2>/dev/null ||
17232 echo X"$ac_dest" |
17233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17234           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17235           /^X\(\/\/\)$/{ s//\1/; q; }
17236           /^X\(\/\).*/{ s//\1/; q; }
17237           s/.*/./; q'`
17238   { if $as_mkdir_p; then
17239     mkdir -p "$ac_dir"
17240   else
17241     as_dir="$ac_dir"
17242     as_dirs=
17243     while test ! -d "$as_dir"; do
17244       as_dirs="$as_dir $as_dirs"
17245       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17247          X"$as_dir" : 'X\(//\)[^/]' \| \
17248          X"$as_dir" : 'X\(//\)$' \| \
17249          X"$as_dir" : 'X\(/\)' \| \
17250          .     : '\(.\)' 2>/dev/null ||
17251 echo X"$as_dir" |
17252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17253           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17254           /^X\(\/\/\)$/{ s//\1/; q; }
17255           /^X\(\/\).*/{ s//\1/; q; }
17256           s/.*/./; q'`
17257     done
17258     test ! -n "$as_dirs" || mkdir $as_dirs
17259   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17260 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17261    { (exit 1); exit 1; }; }; }
17262
17263   ac_builddir=.
17264
17265 if test "$ac_dir" != .; then
17266   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17267   # A "../" for each directory in $ac_dir_suffix.
17268   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17269 else
17270   ac_dir_suffix= ac_top_builddir=
17271 fi
17272
17273 case $srcdir in
17274   .)  # No --srcdir option.  We are building in place.
17275     ac_srcdir=.
17276     if test -z "$ac_top_builddir"; then
17277        ac_top_srcdir=.
17278     else
17279        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17280     fi ;;
17281   [\\/]* | ?:[\\/]* )  # Absolute path.
17282     ac_srcdir=$srcdir$ac_dir_suffix;
17283     ac_top_srcdir=$srcdir ;;
17284   *) # Relative path.
17285     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17286     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17287 esac
17288
17289 # Do not use `cd foo && pwd` to compute absolute paths, because
17290 # the directories may not exist.
17291 case `pwd` in
17292 .) ac_abs_builddir="$ac_dir";;
17293 *)
17294   case "$ac_dir" in
17295   .) ac_abs_builddir=`pwd`;;
17296   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17297   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17298   esac;;
17299 esac
17300 case $ac_abs_builddir in
17301 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17302 *)
17303   case ${ac_top_builddir}. in
17304   .) ac_abs_top_builddir=$ac_abs_builddir;;
17305   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17306   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17307   esac;;
17308 esac
17309 case $ac_abs_builddir in
17310 .) ac_abs_srcdir=$ac_srcdir;;
17311 *)
17312   case $ac_srcdir in
17313   .) ac_abs_srcdir=$ac_abs_builddir;;
17314   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17315   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17316   esac;;
17317 esac
17318 case $ac_abs_builddir in
17319 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17320 *)
17321   case $ac_top_srcdir in
17322   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17323   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17324   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17325   esac;;
17326 esac
17327
17328
17329   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17330 echo "$as_me: executing $ac_dest commands" >&6;}
17331   case $ac_dest in
17332     default )
17333 case ${CONFIG_HEADERS} in
17334   *auto-host.h:config.in*)
17335   echo > cstamp-h ;;
17336 esac
17337 # Make sure all the subdirs exist.
17338 for d in $subdirs doc build
17339 do
17340     test -d $d || mkdir $d
17341 done
17342 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17343 # bootstrapping and the installation procedure can still use
17344 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
17345 # FLAGS_TO_PASS has been modified to solve the problem there.
17346 # This is virtually a duplicate of what happens in configure.lang; we do
17347 # an extra check to make sure this only happens if ln -s can be used.
17348 case "$LN_S" in
17349   *-s*)
17350     for d in ${subdirs} ; do
17351         STARTDIR=`${PWDCMD-pwd}`
17352         cd $d
17353         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17354         do
17355                 rm -f $t
17356                 $LN_S ../$t $t 2>/dev/null
17357         done
17358         cd $STARTDIR
17359     done
17360   ;;
17361 esac
17362  ;;
17363   esac
17364 done
17365 _ACEOF
17366
17367 cat >>$CONFIG_STATUS <<\_ACEOF
17368
17369 { (exit 0); exit 0; }
17370 _ACEOF
17371 chmod +x $CONFIG_STATUS
17372 ac_clean_files=$ac_clean_files_save
17373
17374
17375 # configure is writing to config.log, and then calls config.status.
17376 # config.status does its own redirection, appending to config.log.
17377 # Unfortunately, on DOS this fails, as config.log is still kept open
17378 # by configure, so config.status won't be able to write to it; its
17379 # output is simply discarded.  So we exec the FD to /dev/null,
17380 # effectively closing config.log, so it can be properly (re)opened and
17381 # appended to by config.status.  When coming back to configure, we
17382 # need to make the FD available again.
17383 if test "$no_create" != yes; then
17384   ac_cs_success=:
17385   ac_config_status_args=
17386   test "$silent" = yes &&
17387     ac_config_status_args="$ac_config_status_args --quiet"
17388   exec 5>/dev/null
17389   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17390   exec 5>>config.log
17391   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17392   # would make configure fail if this is the last instruction.
17393   $ac_cs_success || { (exit 1); exit 1; }
17394 fi
17395