OSDN Git Service

e1b1a79621a78eecb3645ff0ba737958e22bbb01
[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_selected_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"
2399                          || test ! -s conftest.err'
2400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401   (eval $ac_try) 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; } &&
2405          { ac_try='test -s conftest.$ac_objext'
2406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; }; then
2411   ac_compiler_gnu=yes
2412 else
2413   echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416 ac_compiler_gnu=no
2417 fi
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421 fi
2422 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2427 CFLAGS="-g"
2428 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_g+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439
2440 int
2441 main ()
2442 {
2443
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450   (eval $ac_compile) 2>conftest.er1
2451   ac_status=$?
2452   grep -v '^ *+' conftest.er1 >conftest.err
2453   rm -f conftest.er1
2454   cat conftest.err >&5
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); } &&
2457          { ac_try='test -z "$ac_c_werror_flag"
2458                          || test ! -s conftest.err'
2459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460   (eval $ac_try) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; } &&
2464          { ac_try='test -s conftest.$ac_objext'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; }; then
2470   ac_cv_prog_cc_g=yes
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 ac_cv_prog_cc_g=no
2476 fi
2477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478 fi
2479 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2480 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2481 if test "$ac_test_CFLAGS" = set; then
2482   CFLAGS=$ac_save_CFLAGS
2483 elif test $ac_cv_prog_cc_g = yes; then
2484   if test "$GCC" = yes; then
2485     CFLAGS="-g -O2"
2486   else
2487     CFLAGS="-g"
2488   fi
2489 else
2490   if test "$GCC" = yes; then
2491     CFLAGS="-O2"
2492   else
2493     CFLAGS=
2494   fi
2495 fi
2496 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2497 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2498 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   ac_cv_prog_cc_stdc=no
2502 ac_save_CC=$CC
2503 cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509 #include <stdarg.h>
2510 #include <stdio.h>
2511 #include <sys/types.h>
2512 #include <sys/stat.h>
2513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2514 struct buf { int x; };
2515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2516 static char *e (p, i)
2517      char **p;
2518      int i;
2519 {
2520   return p[i];
2521 }
2522 static char *f (char * (*g) (char **, int), char **p, ...)
2523 {
2524   char *s;
2525   va_list v;
2526   va_start (v,p);
2527   s = g (p, va_arg (v,int));
2528   va_end (v);
2529   return s;
2530 }
2531
2532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2533    function prototypes and stuff, but not '\xHH' hex character constants.
2534    These don't provoke an error unfortunately, instead are silently treated
2535    as 'x'.  The following induces an error, until -std1 is added to get
2536    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2537    array size at least.  It's necessary to write '\x00'==0 to get something
2538    that's true only with -std1.  */
2539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2540
2541 int test (int i, double x);
2542 struct s1 {int (*f) (int a);};
2543 struct s2 {int (*f) (double a);};
2544 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545 int argc;
2546 char **argv;
2547 int
2548 main ()
2549 {
2550 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 # Don't try gcc -ansi; that turns off useful extensions and
2556 # breaks some systems' header files.
2557 # AIX                   -qlanglvl=ansi
2558 # Ultrix and OSF/1      -std1
2559 # HP-UX 10.20 and later -Ae
2560 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2561 # SVR4                  -Xc -D__EXTENSIONS__
2562 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2563 do
2564   CC="$ac_save_CC $ac_arg"
2565   rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567   (eval $ac_compile) 2>conftest.er1
2568   ac_status=$?
2569   grep -v '^ *+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } &&
2574          { ac_try='test -z "$ac_c_werror_flag"
2575                          || test ! -s conftest.err'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   ac_cv_prog_cc_stdc=$ac_arg
2588 break
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593 fi
2594 rm -f conftest.err conftest.$ac_objext
2595 done
2596 rm -f conftest.$ac_ext conftest.$ac_objext
2597 CC=$ac_save_CC
2598
2599 fi
2600
2601 case "x$ac_cv_prog_cc_stdc" in
2602   x|xno)
2603     echo "$as_me:$LINENO: result: none needed" >&5
2604 echo "${ECHO_T}none needed" >&6 ;;
2605   *)
2606     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2608     CC="$CC $ac_cv_prog_cc_stdc" ;;
2609 esac
2610
2611 # Some people use a C++ compiler to compile C.  Since we use `exit',
2612 # in C++ we need to declare it.  In case someone uses the same compiler
2613 # for both compiling C and C++ we need to have the C++ compiler decide
2614 # the declaration of exit, since it's the most demanding environment.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #ifndef __cplusplus
2617   choke me
2618 #endif
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622   (eval $ac_compile) 2>conftest.er1
2623   ac_status=$?
2624   grep -v '^ *+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -z "$ac_c_werror_flag"
2630                          || test ! -s conftest.err'
2631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; } &&
2636          { ac_try='test -s conftest.$ac_objext'
2637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638   (eval $ac_try) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; }; then
2642   for ac_declaration in \
2643    '' \
2644    'extern "C" void std::exit (int) throw (); using std::exit;' \
2645    'extern "C" void std::exit (int); using std::exit;' \
2646    'extern "C" void exit (int) throw ();' \
2647    'extern "C" void exit (int);' \
2648    'void exit (int);'
2649 do
2650   cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656 $ac_declaration
2657 #include <stdlib.h>
2658 int
2659 main ()
2660 {
2661 exit (42);
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>conftest.er1
2669   ac_status=$?
2670   grep -v '^ *+' conftest.er1 >conftest.err
2671   rm -f conftest.er1
2672   cat conftest.err >&5
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -z "$ac_c_werror_flag"
2676                          || test ! -s conftest.err'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; } &&
2682          { ac_try='test -s conftest.$ac_objext'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; }; then
2688   :
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 continue
2694 fi
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702 $ac_declaration
2703 int
2704 main ()
2705 {
2706 exit (42);
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713   (eval $ac_compile) 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -z "$ac_c_werror_flag"
2721                          || test ! -s conftest.err'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   break
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 done
2741 rm -f conftest*
2742 if test -n "$ac_declaration"; then
2743   echo '#ifdef __cplusplus' >>confdefs.h
2744   echo $ac_declaration      >>confdefs.h
2745   echo '#endif'             >>confdefs.h
2746 fi
2747
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 fi
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 ac_ext=c
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760 if test "x$CC" != xcc; then
2761   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2762 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2763 else
2764   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2765 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2766 fi
2767 set dummy $CC; ac_cc=`echo $2 |
2768                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2769 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2770   echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772   cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h.  */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h.  */
2778
2779 int
2780 main ()
2781 {
2782
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 # Make sure it works both with $CC and with simple cc.
2788 # We do the test twice because some compilers refuse to overwrite an
2789 # existing .o file with -o, though they will create one.
2790 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2791 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792   (eval $ac_try) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797   (eval $ac_try) 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); };
2801 then
2802   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2803   if test "x$CC" != xcc; then
2804     # Test first that cc exists at all.
2805     if { ac_try='cc -c conftest.$ac_ext >&5'
2806   { (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); }; }; then
2811       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2812       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813   (eval $ac_try) 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); } &&
2817          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818   (eval $ac_try) 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); };
2822       then
2823         # cc works too.
2824         :
2825       else
2826         # cc exists but doesn't like -o.
2827         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2828       fi
2829     fi
2830   fi
2831 else
2832   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2833 fi
2834 rm -f conftest*
2835
2836 fi
2837 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2838   echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6
2840 else
2841   echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2843
2844 cat >>confdefs.h <<\_ACEOF
2845 #define NO_MINUS_C_MINUS_O 1
2846 _ACEOF
2847
2848 fi
2849
2850 # expand $ac_aux_dir to an absolute path
2851 am_aux_dir=`cd $ac_aux_dir && pwd`
2852
2853 # FIXME: we rely on the cache variable name because
2854 # there is no other way.
2855 set dummy $CC
2856 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2858    # Losing compiler, so override with the script.
2859    # FIXME: It is wrong to rewrite CC.
2860    # But if we don't then we get into trouble of one sort or another.
2861    # A longer-term fix would be to have automake use am__CC in this case,
2862    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2863    CC="$am_aux_dir/compile $CC"
2864 fi
2865
2866 # autoconf is lame and doesn't give us any substitution variable for this.
2867 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2868   NO_MINUS_C_MINUS_O=yes
2869 else
2870   OUTPUT_OPTION='-o $@'
2871 fi
2872
2873
2874
2875 # -------------------------
2876 # Check C compiler features
2877 # -------------------------
2878
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2885 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2886 # On Suns, sometimes $CPP names a directory.
2887 if test -n "$CPP" && test -d "$CPP"; then
2888   CPP=
2889 fi
2890 if test -z "$CPP"; then
2891   if test "${ac_cv_prog_CPP+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894       # Double quotes because CPP needs to be expanded
2895     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2896     do
2897       ac_preproc_ok=false
2898 for ac_c_preproc_warn_flag in '' yes
2899 do
2900   # Use a header file that comes with gcc, so configuring glibc
2901   # with a fresh cross-compiler works.
2902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903   # <limits.h> exists even on freestanding compilers.
2904   # On the NeXT, cc -E runs the code through the compiler's parser,
2905   # not just through cpp. "Syntax error" is here to catch this case.
2906   cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h.  */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h.  */
2912 #ifdef __STDC__
2913 # include <limits.h>
2914 #else
2915 # include <assert.h>
2916 #endif
2917                      Syntax error
2918 _ACEOF
2919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } >/dev/null; then
2927   if test -s conftest.err; then
2928     ac_cpp_err=$ac_c_preproc_warn_flag
2929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2930   else
2931     ac_cpp_err=
2932   fi
2933 else
2934   ac_cpp_err=yes
2935 fi
2936 if test -z "$ac_cpp_err"; then
2937   :
2938 else
2939   echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942   # Broken: fails on valid input.
2943 continue
2944 fi
2945 rm -f conftest.err conftest.$ac_ext
2946
2947   # OK, works on sane cases.  Now check whether non-existent headers
2948   # can be detected and how.
2949   cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955 #include <ac_nonexistent.h>
2956 _ACEOF
2957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959   ac_status=$?
2960   grep -v '^ *+' conftest.er1 >conftest.err
2961   rm -f conftest.er1
2962   cat conftest.err >&5
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); } >/dev/null; then
2965   if test -s conftest.err; then
2966     ac_cpp_err=$ac_c_preproc_warn_flag
2967     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2968   else
2969     ac_cpp_err=
2970   fi
2971 else
2972   ac_cpp_err=yes
2973 fi
2974 if test -z "$ac_cpp_err"; then
2975   # Broken: success on invalid input.
2976 continue
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981   # Passes both tests.
2982 ac_preproc_ok=:
2983 break
2984 fi
2985 rm -f conftest.err conftest.$ac_ext
2986
2987 done
2988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2989 rm -f conftest.err conftest.$ac_ext
2990 if $ac_preproc_ok; then
2991   break
2992 fi
2993
2994     done
2995     ac_cv_prog_CPP=$CPP
2996
2997 fi
2998   CPP=$ac_cv_prog_CPP
2999 else
3000   ac_cv_prog_CPP=$CPP
3001 fi
3002 echo "$as_me:$LINENO: result: $CPP" >&5
3003 echo "${ECHO_T}$CPP" >&6
3004 ac_preproc_ok=false
3005 for ac_c_preproc_warn_flag in '' yes
3006 do
3007   # Use a header file that comes with gcc, so configuring glibc
3008   # with a fresh cross-compiler works.
3009   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3010   # <limits.h> exists even on freestanding compilers.
3011   # On the NeXT, cc -E runs the code through the compiler's parser,
3012   # not just through cpp. "Syntax error" is here to catch this case.
3013   cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h.  */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h.  */
3019 #ifdef __STDC__
3020 # include <limits.h>
3021 #else
3022 # include <assert.h>
3023 #endif
3024                      Syntax error
3025 _ACEOF
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } >/dev/null; then
3034   if test -s conftest.err; then
3035     ac_cpp_err=$ac_c_preproc_warn_flag
3036     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3037   else
3038     ac_cpp_err=
3039   fi
3040 else
3041   ac_cpp_err=yes
3042 fi
3043 if test -z "$ac_cpp_err"; then
3044   :
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049   # Broken: fails on valid input.
3050 continue
3051 fi
3052 rm -f conftest.err conftest.$ac_ext
3053
3054   # OK, works on sane cases.  Now check whether non-existent headers
3055   # can be detected and how.
3056   cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062 #include <ac_nonexistent.h>
3063 _ACEOF
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } >/dev/null; then
3072   if test -s conftest.err; then
3073     ac_cpp_err=$ac_c_preproc_warn_flag
3074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3075   else
3076     ac_cpp_err=
3077   fi
3078 else
3079   ac_cpp_err=yes
3080 fi
3081 if test -z "$ac_cpp_err"; then
3082   # Broken: success on invalid input.
3083 continue
3084 else
3085   echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088   # Passes both tests.
3089 ac_preproc_ok=:
3090 break
3091 fi
3092 rm -f conftest.err conftest.$ac_ext
3093
3094 done
3095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096 rm -f conftest.err conftest.$ac_ext
3097 if $ac_preproc_ok; then
3098   :
3099 else
3100   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3103 See \`config.log' for more details." >&2;}
3104    { (exit 1); exit 1; }; }
3105 fi
3106
3107 ac_ext=c
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112
3113
3114 echo "$as_me:$LINENO: checking for inline" >&5
3115 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3116 if test "${ac_cv_c_inline+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   ac_cv_c_inline=no
3120 for ac_kw in inline __inline__ __inline; do
3121   cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127 #ifndef __cplusplus
3128 typedef int foo_t;
3129 static $ac_kw foo_t static_foo () {return 0; }
3130 $ac_kw foo_t foo () {return 0; }
3131 #endif
3132
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136   (eval $ac_compile) 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } &&
3143          { ac_try='test -z "$ac_c_werror_flag"
3144                          || test ! -s conftest.err'
3145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146   (eval $ac_try) 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; } &&
3150          { ac_try='test -s conftest.$ac_objext'
3151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152   (eval $ac_try) 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }; }; then
3156   ac_cv_c_inline=$ac_kw; break
3157 else
3158   echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 fi
3162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3163 done
3164
3165 fi
3166 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3167 echo "${ECHO_T}$ac_cv_c_inline" >&6
3168
3169
3170 case $ac_cv_c_inline in
3171   inline | yes) ;;
3172   *)
3173     case $ac_cv_c_inline in
3174       no) ac_val=;;
3175       *) ac_val=$ac_cv_c_inline;;
3176     esac
3177     cat >>confdefs.h <<_ACEOF
3178 #ifndef __cplusplus
3179 #define inline $ac_val
3180 #endif
3181 _ACEOF
3182     ;;
3183 esac
3184
3185
3186 # sizeof(char) is 1 by definition.
3187
3188 echo "$as_me:$LINENO: checking for egrep" >&5
3189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3190 if test "${ac_cv_prog_egrep+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3194     then ac_cv_prog_egrep='grep -E'
3195     else ac_cv_prog_egrep='egrep'
3196     fi
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3199 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3200  EGREP=$ac_cv_prog_egrep
3201
3202
3203 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3204 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3205 if test "${ac_cv_header_stdc+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214 #include <stdlib.h>
3215 #include <stdarg.h>
3216 #include <string.h>
3217 #include <float.h>
3218
3219 int
3220 main ()
3221 {
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229   (eval $ac_compile) 2>conftest.er1
3230   ac_status=$?
3231   grep -v '^ *+' conftest.er1 >conftest.err
3232   rm -f conftest.er1
3233   cat conftest.err >&5
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); } &&
3236          { ac_try='test -z "$ac_c_werror_flag"
3237                          || test ! -s conftest.err'
3238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239   (eval $ac_try) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; } &&
3243          { ac_try='test -s conftest.$ac_objext'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; }; then
3249   ac_cv_header_stdc=yes
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 ac_cv_header_stdc=no
3255 fi
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257
3258 if test $ac_cv_header_stdc = yes; then
3259   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3260   cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #include <string.h>
3267
3268 _ACEOF
3269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270   $EGREP "memchr" >/dev/null 2>&1; then
3271   :
3272 else
3273   ac_cv_header_stdc=no
3274 fi
3275 rm -f conftest*
3276
3277 fi
3278
3279 if test $ac_cv_header_stdc = yes; then
3280   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3281   cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <stdlib.h>
3288
3289 _ACEOF
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291   $EGREP "free" >/dev/null 2>&1; then
3292   :
3293 else
3294   ac_cv_header_stdc=no
3295 fi
3296 rm -f conftest*
3297
3298 fi
3299
3300 if test $ac_cv_header_stdc = yes; then
3301   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3302   if test "$cross_compiling" = yes; then
3303   :
3304 else
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ctype.h>
3312 #if ((' ' & 0x0FF) == 0x020)
3313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3315 #else
3316 # define ISLOWER(c) \
3317                    (('a' <= (c) && (c) <= 'i') \
3318                      || ('j' <= (c) && (c) <= 'r') \
3319                      || ('s' <= (c) && (c) <= 'z'))
3320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3321 #endif
3322
3323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3324 int
3325 main ()
3326 {
3327   int i;
3328   for (i = 0; i < 256; i++)
3329     if (XOR (islower (i), ISLOWER (i))
3330         || toupper (i) != TOUPPER (i))
3331       exit(2);
3332   exit (0);
3333 }
3334 _ACEOF
3335 rm -f conftest$ac_exeext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3337   (eval $ac_link) 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342   (eval $ac_try) 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); }; }; then
3346   :
3347 else
3348   echo "$as_me: program exited with status $ac_status" >&5
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 ( exit $ac_status )
3353 ac_cv_header_stdc=no
3354 fi
3355 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3356 fi
3357 fi
3358 fi
3359 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3360 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3361 if test $ac_cv_header_stdc = yes; then
3362
3363 cat >>confdefs.h <<\_ACEOF
3364 #define STDC_HEADERS 1
3365 _ACEOF
3366
3367 fi
3368
3369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3380                   inttypes.h stdint.h unistd.h
3381 do
3382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3383 echo "$as_me:$LINENO: checking for $ac_header" >&5
3384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3386   echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 $ac_includes_default
3395
3396 #include <$ac_header>
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400   (eval $ac_compile) 2>conftest.er1
3401   ac_status=$?
3402   grep -v '^ *+' conftest.er1 >conftest.err
3403   rm -f conftest.er1
3404   cat conftest.err >&5
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); } &&
3407          { ac_try='test -z "$ac_c_werror_flag"
3408                          || test ! -s conftest.err'
3409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410   (eval $ac_try) 2>&5
3411   ac_status=$?
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); }; } &&
3414          { ac_try='test -s conftest.$ac_objext'
3415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416   (eval $ac_try) 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }; }; then
3420   eval "$as_ac_Header=yes"
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425 eval "$as_ac_Header=no"
3426 fi
3427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428 fi
3429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3432   cat >>confdefs.h <<_ACEOF
3433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3434 _ACEOF
3435
3436 fi
3437
3438 done
3439
3440
3441 echo "$as_me:$LINENO: checking for void *" >&5
3442 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3443 if test "${ac_cv_type_void_p+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452 $ac_includes_default
3453 int
3454 main ()
3455 {
3456 if ((void * *) 0)
3457   return 0;
3458 if (sizeof (void *))
3459   return 0;
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466   (eval $ac_compile) 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } &&
3473          { ac_try='test -z "$ac_c_werror_flag"
3474                          || test ! -s conftest.err'
3475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; } &&
3480          { ac_try='test -s conftest.$ac_objext'
3481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482   (eval $ac_try) 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; }; then
3486   ac_cv_type_void_p=yes
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 ac_cv_type_void_p=no
3492 fi
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 fi
3495 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3496 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3497
3498 echo "$as_me:$LINENO: checking size of void *" >&5
3499 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3500 if test "${ac_cv_sizeof_void_p+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   if test "$ac_cv_type_void_p" = yes; then
3504   # The cast to unsigned long works around a bug in the HP C Compiler
3505   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3506   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3507   # This bug is HP SR number 8606223364.
3508   if test "$cross_compiling" = yes; then
3509   # Depending upon the size, compute the lo and hi bounds.
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h.  */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h.  */
3516 $ac_includes_default
3517 int
3518 main ()
3519 {
3520 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3521 test_array [0] = 0
3522
3523   ;
3524   return 0;
3525 }
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529   (eval $ac_compile) 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } &&
3536          { ac_try='test -z "$ac_c_werror_flag"
3537                          || test ! -s conftest.err'
3538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539   (eval $ac_try) 2>&5
3540   ac_status=$?
3541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); }; } &&
3543          { ac_try='test -s conftest.$ac_objext'
3544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545   (eval $ac_try) 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; }; then
3549   ac_lo=0 ac_mid=0
3550   while :; do
3551     cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557 $ac_includes_default
3558 int
3559 main ()
3560 {
3561 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3562 test_array [0] = 0
3563
3564   ;
3565   return 0;
3566 }
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570   (eval $ac_compile) 2>conftest.er1
3571   ac_status=$?
3572   grep -v '^ *+' conftest.er1 >conftest.err
3573   rm -f conftest.er1
3574   cat conftest.err >&5
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } &&
3577          { ac_try='test -z "$ac_c_werror_flag"
3578                          || test ! -s conftest.err'
3579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580   (eval $ac_try) 2>&5
3581   ac_status=$?
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); }; } &&
3584          { ac_try='test -s conftest.$ac_objext'
3585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586   (eval $ac_try) 2>&5
3587   ac_status=$?
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); }; }; then
3590   ac_hi=$ac_mid; break
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595 ac_lo=`expr $ac_mid + 1`
3596                     if test $ac_lo -le $ac_mid; then
3597                       ac_lo= ac_hi=
3598                       break
3599                     fi
3600                     ac_mid=`expr 2 '*' $ac_mid + 1`
3601 fi
3602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603   done
3604 else
3605   echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h.  */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h.  */
3614 $ac_includes_default
3615 int
3616 main ()
3617 {
3618 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3619 test_array [0] = 0
3620
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627   (eval $ac_compile) 2>conftest.er1
3628   ac_status=$?
3629   grep -v '^ *+' conftest.er1 >conftest.err
3630   rm -f conftest.er1
3631   cat conftest.err >&5
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); } &&
3634          { ac_try='test -z "$ac_c_werror_flag"
3635                          || test ! -s conftest.err'
3636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637   (eval $ac_try) 2>&5
3638   ac_status=$?
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; } &&
3641          { ac_try='test -s conftest.$ac_objext'
3642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643   (eval $ac_try) 2>&5
3644   ac_status=$?
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); }; }; then
3647   ac_hi=-1 ac_mid=-1
3648   while :; do
3649     cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655 $ac_includes_default
3656 int
3657 main ()
3658 {
3659 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3660 test_array [0] = 0
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>conftest.er1
3669   ac_status=$?
3670   grep -v '^ *+' conftest.er1 >conftest.err
3671   rm -f conftest.er1
3672   cat conftest.err >&5
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } &&
3675          { ac_try='test -z "$ac_c_werror_flag"
3676                          || test ! -s conftest.err'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; } &&
3682          { ac_try='test -s conftest.$ac_objext'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; }; then
3688   ac_lo=$ac_mid; break
3689 else
3690   echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 ac_hi=`expr '(' $ac_mid ')' - 1`
3694                        if test $ac_mid -le $ac_hi; then
3695                          ac_lo= ac_hi=
3696                          break
3697                        fi
3698                        ac_mid=`expr 2 '*' $ac_mid`
3699 fi
3700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701   done
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 ac_lo= ac_hi=
3707 fi
3708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3709 fi
3710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3711 # Binary search between lo and hi bounds.
3712 while test "x$ac_lo" != "x$ac_hi"; do
3713   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3714   cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h.  */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h.  */
3720 $ac_includes_default
3721 int
3722 main ()
3723 {
3724 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3725 test_array [0] = 0
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733   (eval $ac_compile) 2>conftest.er1
3734   ac_status=$?
3735   grep -v '^ *+' conftest.er1 >conftest.err
3736   rm -f conftest.er1
3737   cat conftest.err >&5
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); } &&
3740          { ac_try='test -z "$ac_c_werror_flag"
3741                          || test ! -s conftest.err'
3742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743   (eval $ac_try) 2>&5
3744   ac_status=$?
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); }; } &&
3747          { ac_try='test -s conftest.$ac_objext'
3748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749   (eval $ac_try) 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); }; }; then
3753   ac_hi=$ac_mid
3754 else
3755   echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 ac_lo=`expr '(' $ac_mid ')' + 1`
3759 fi
3760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761 done
3762 case $ac_lo in
3763 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3764 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3765 See \`config.log' for more details." >&5
3766 echo "$as_me: error: cannot compute sizeof (void *), 77
3767 See \`config.log' for more details." >&2;}
3768    { (exit 1); exit 1; }; } ;;
3769 esac
3770 else
3771   if test "$cross_compiling" = yes; then
3772   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3773 See \`config.log' for more details." >&5
3774 echo "$as_me: error: cannot run test program while cross compiling
3775 See \`config.log' for more details." >&2;}
3776    { (exit 1); exit 1; }; }
3777 else
3778   cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h.  */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h.  */
3784 $ac_includes_default
3785 long longval () { return (long) (sizeof (void *)); }
3786 unsigned long ulongval () { return (long) (sizeof (void *)); }
3787 #include <stdio.h>
3788 #include <stdlib.h>
3789 int
3790 main ()
3791 {
3792
3793   FILE *f = fopen ("conftest.val", "w");
3794   if (! f)
3795     exit (1);
3796   if (((long) (sizeof (void *))) < 0)
3797     {
3798       long i = longval ();
3799       if (i != ((long) (sizeof (void *))))
3800         exit (1);
3801       fprintf (f, "%ld\n", i);
3802     }
3803   else
3804     {
3805       unsigned long i = ulongval ();
3806       if (i != ((long) (sizeof (void *))))
3807         exit (1);
3808       fprintf (f, "%lu\n", i);
3809     }
3810   exit (ferror (f) || fclose (f) != 0);
3811
3812   ;
3813   return 0;
3814 }
3815 _ACEOF
3816 rm -f conftest$ac_exeext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818   (eval $ac_link) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823   (eval $ac_try) 2>&5
3824   ac_status=$?
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); }; }; then
3827   ac_cv_sizeof_void_p=`cat conftest.val`
3828 else
3829   echo "$as_me: program exited with status $ac_status" >&5
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833 ( exit $ac_status )
3834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3835 See \`config.log' for more details." >&5
3836 echo "$as_me: error: cannot compute sizeof (void *), 77
3837 See \`config.log' for more details." >&2;}
3838    { (exit 1); exit 1; }; }
3839 fi
3840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3841 fi
3842 fi
3843 rm -f conftest.val
3844 else
3845   ac_cv_sizeof_void_p=0
3846 fi
3847 fi
3848 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3849 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3850 cat >>confdefs.h <<_ACEOF
3851 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3852 _ACEOF
3853
3854
3855 echo "$as_me:$LINENO: checking for short" >&5
3856 echo $ECHO_N "checking for short... $ECHO_C" >&6
3857 if test "${ac_cv_type_short+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h.  */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h.  */
3866 $ac_includes_default
3867 int
3868 main ()
3869 {
3870 if ((short *) 0)
3871   return 0;
3872 if (sizeof (short))
3873   return 0;
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 rm -f conftest.$ac_objext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880   (eval $ac_compile) 2>conftest.er1
3881   ac_status=$?
3882   grep -v '^ *+' conftest.er1 >conftest.err
3883   rm -f conftest.er1
3884   cat conftest.err >&5
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); } &&
3887          { ac_try='test -z "$ac_c_werror_flag"
3888                          || test ! -s conftest.err'
3889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890   (eval $ac_try) 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); }; } &&
3894          { ac_try='test -s conftest.$ac_objext'
3895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896   (eval $ac_try) 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); }; }; then
3900   ac_cv_type_short=yes
3901 else
3902   echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 ac_cv_type_short=no
3906 fi
3907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3908 fi
3909 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3910 echo "${ECHO_T}$ac_cv_type_short" >&6
3911
3912 echo "$as_me:$LINENO: checking size of short" >&5
3913 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3914 if test "${ac_cv_sizeof_short+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   if test "$ac_cv_type_short" = yes; then
3918   # The cast to unsigned long works around a bug in the HP C Compiler
3919   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3920   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3921   # This bug is HP SR number 8606223364.
3922   if test "$cross_compiling" = yes; then
3923   # Depending upon the size, compute the lo and hi bounds.
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h.  */
3930 $ac_includes_default
3931 int
3932 main ()
3933 {
3934 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3935 test_array [0] = 0
3936
3937   ;
3938   return 0;
3939 }
3940 _ACEOF
3941 rm -f conftest.$ac_objext
3942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943   (eval $ac_compile) 2>conftest.er1
3944   ac_status=$?
3945   grep -v '^ *+' conftest.er1 >conftest.err
3946   rm -f conftest.er1
3947   cat conftest.err >&5
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } &&
3950          { ac_try='test -z "$ac_c_werror_flag"
3951                          || test ! -s conftest.err'
3952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953   (eval $ac_try) 2>&5
3954   ac_status=$?
3955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956   (exit $ac_status); }; } &&
3957          { ac_try='test -s conftest.$ac_objext'
3958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959   (eval $ac_try) 2>&5
3960   ac_status=$?
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); }; }; then
3963   ac_lo=0 ac_mid=0
3964   while :; do
3965     cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h.  */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h.  */
3971 $ac_includes_default
3972 int
3973 main ()
3974 {
3975 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3976 test_array [0] = 0
3977
3978   ;
3979   return 0;
3980 }
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984   (eval $ac_compile) 2>conftest.er1
3985   ac_status=$?
3986   grep -v '^ *+' conftest.er1 >conftest.err
3987   rm -f conftest.er1
3988   cat conftest.err >&5
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); } &&
3991          { ac_try='test -z "$ac_c_werror_flag"
3992                          || test ! -s conftest.err'
3993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994   (eval $ac_try) 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; } &&
3998          { ac_try='test -s conftest.$ac_objext'
3999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000   (eval $ac_try) 2>&5
4001   ac_status=$?
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); }; }; then
4004   ac_hi=$ac_mid; break
4005 else
4006   echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 ac_lo=`expr $ac_mid + 1`
4010                     if test $ac_lo -le $ac_mid; then
4011                       ac_lo= ac_hi=
4012                       break
4013                     fi
4014                     ac_mid=`expr 2 '*' $ac_mid + 1`
4015 fi
4016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017   done
4018 else
4019   echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4021
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028 $ac_includes_default
4029 int
4030 main ()
4031 {
4032 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4033 test_array [0] = 0
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041   (eval $ac_compile) 2>conftest.er1
4042   ac_status=$?
4043   grep -v '^ *+' conftest.er1 >conftest.err
4044   rm -f conftest.er1
4045   cat conftest.err >&5
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); } &&
4048          { ac_try='test -z "$ac_c_werror_flag"
4049                          || test ! -s conftest.err'
4050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051   (eval $ac_try) 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; } &&
4055          { ac_try='test -s conftest.$ac_objext'
4056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057   (eval $ac_try) 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); }; }; then
4061   ac_hi=-1 ac_mid=-1
4062   while :; do
4063     cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h.  */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h.  */
4069 $ac_includes_default
4070 int
4071 main ()
4072 {
4073 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4074 test_array [0] = 0
4075
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082   (eval $ac_compile) 2>conftest.er1
4083   ac_status=$?
4084   grep -v '^ *+' conftest.er1 >conftest.err
4085   rm -f conftest.er1
4086   cat conftest.err >&5
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); } &&
4089          { ac_try='test -z "$ac_c_werror_flag"
4090                          || test ! -s conftest.err'
4091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; } &&
4096          { ac_try='test -s conftest.$ac_objext'
4097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098   (eval $ac_try) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; }; then
4102   ac_lo=$ac_mid; break
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ac_hi=`expr '(' $ac_mid ')' - 1`
4108                        if test $ac_mid -le $ac_hi; then
4109                          ac_lo= ac_hi=
4110                          break
4111                        fi
4112                        ac_mid=`expr 2 '*' $ac_mid`
4113 fi
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115   done
4116 else
4117   echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 ac_lo= ac_hi=
4121 fi
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4123 fi
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4125 # Binary search between lo and hi bounds.
4126 while test "x$ac_lo" != "x$ac_hi"; do
4127   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4128   cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 $ac_includes_default
4135 int
4136 main ()
4137 {
4138 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4139 test_array [0] = 0
4140
4141   ;
4142   return 0;
4143 }
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147   (eval $ac_compile) 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } &&
4154          { ac_try='test -z "$ac_c_werror_flag"
4155                          || test ! -s conftest.err'
4156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157   (eval $ac_try) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); }; } &&
4161          { ac_try='test -s conftest.$ac_objext'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; }; then
4167   ac_hi=$ac_mid
4168 else
4169   echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 ac_lo=`expr '(' $ac_mid ')' + 1`
4173 fi
4174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4175 done
4176 case $ac_lo in
4177 ?*) ac_cv_sizeof_short=$ac_lo;;
4178 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4179 See \`config.log' for more details." >&5
4180 echo "$as_me: error: cannot compute sizeof (short), 77
4181 See \`config.log' for more details." >&2;}
4182    { (exit 1); exit 1; }; } ;;
4183 esac
4184 else
4185   if test "$cross_compiling" = yes; then
4186   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4187 See \`config.log' for more details." >&5
4188 echo "$as_me: error: cannot run test program while cross compiling
4189 See \`config.log' for more details." >&2;}
4190    { (exit 1); exit 1; }; }
4191 else
4192   cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198 $ac_includes_default
4199 long longval () { return (long) (sizeof (short)); }
4200 unsigned long ulongval () { return (long) (sizeof (short)); }
4201 #include <stdio.h>
4202 #include <stdlib.h>
4203 int
4204 main ()
4205 {
4206
4207   FILE *f = fopen ("conftest.val", "w");
4208   if (! f)
4209     exit (1);
4210   if (((long) (sizeof (short))) < 0)
4211     {
4212       long i = longval ();
4213       if (i != ((long) (sizeof (short))))
4214         exit (1);
4215       fprintf (f, "%ld\n", i);
4216     }
4217   else
4218     {
4219       unsigned long i = ulongval ();
4220       if (i != ((long) (sizeof (short))))
4221         exit (1);
4222       fprintf (f, "%lu\n", i);
4223     }
4224   exit (ferror (f) || fclose (f) != 0);
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest$ac_exeext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4232   (eval $ac_link) 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   ac_cv_sizeof_short=`cat conftest.val`
4242 else
4243   echo "$as_me: program exited with status $ac_status" >&5
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247 ( exit $ac_status )
4248 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4249 See \`config.log' for more details." >&5
4250 echo "$as_me: error: cannot compute sizeof (short), 77
4251 See \`config.log' for more details." >&2;}
4252    { (exit 1); exit 1; }; }
4253 fi
4254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4255 fi
4256 fi
4257 rm -f conftest.val
4258 else
4259   ac_cv_sizeof_short=0
4260 fi
4261 fi
4262 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4263 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4264 cat >>confdefs.h <<_ACEOF
4265 #define SIZEOF_SHORT $ac_cv_sizeof_short
4266 _ACEOF
4267
4268
4269 echo "$as_me:$LINENO: checking for int" >&5
4270 echo $ECHO_N "checking for int... $ECHO_C" >&6
4271 if test "${ac_cv_type_int+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h.  */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h.  */
4280 $ac_includes_default
4281 int
4282 main ()
4283 {
4284 if ((int *) 0)
4285   return 0;
4286 if (sizeof (int))
4287   return 0;
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292 rm -f conftest.$ac_objext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294   (eval $ac_compile) 2>conftest.er1
4295   ac_status=$?
4296   grep -v '^ *+' conftest.er1 >conftest.err
4297   rm -f conftest.er1
4298   cat conftest.err >&5
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); } &&
4301          { ac_try='test -z "$ac_c_werror_flag"
4302                          || test ! -s conftest.err'
4303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304   (eval $ac_try) 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }; } &&
4308          { ac_try='test -s conftest.$ac_objext'
4309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310   (eval $ac_try) 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }; }; then
4314   ac_cv_type_int=yes
4315 else
4316   echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319 ac_cv_type_int=no
4320 fi
4321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4322 fi
4323 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4324 echo "${ECHO_T}$ac_cv_type_int" >&6
4325
4326 echo "$as_me:$LINENO: checking size of int" >&5
4327 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4328 if test "${ac_cv_sizeof_int+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331   if test "$ac_cv_type_int" = yes; then
4332   # The cast to unsigned long works around a bug in the HP C Compiler
4333   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4334   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4335   # This bug is HP SR number 8606223364.
4336   if test "$cross_compiling" = yes; then
4337   # Depending upon the size, compute the lo and hi bounds.
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h.  */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h.  */
4344 $ac_includes_default
4345 int
4346 main ()
4347 {
4348 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4349 test_array [0] = 0
4350
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357   (eval $ac_compile) 2>conftest.er1
4358   ac_status=$?
4359   grep -v '^ *+' conftest.er1 >conftest.err
4360   rm -f conftest.er1
4361   cat conftest.err >&5
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } &&
4364          { ac_try='test -z "$ac_c_werror_flag"
4365                          || test ! -s conftest.err'
4366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367   (eval $ac_try) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; } &&
4371          { ac_try='test -s conftest.$ac_objext'
4372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373   (eval $ac_try) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; }; then
4377   ac_lo=0 ac_mid=0
4378   while :; do
4379     cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385 $ac_includes_default
4386 int
4387 main ()
4388 {
4389 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4390 test_array [0] = 0
4391
4392   ;
4393   return 0;
4394 }
4395 _ACEOF
4396 rm -f conftest.$ac_objext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398   (eval $ac_compile) 2>conftest.er1
4399   ac_status=$?
4400   grep -v '^ *+' conftest.er1 >conftest.err
4401   rm -f conftest.er1
4402   cat conftest.err >&5
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } &&
4405          { ac_try='test -z "$ac_c_werror_flag"
4406                          || test ! -s conftest.err'
4407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408   (eval $ac_try) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; } &&
4412          { ac_try='test -s conftest.$ac_objext'
4413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414   (eval $ac_try) 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; }; then
4418   ac_hi=$ac_mid; break
4419 else
4420   echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 ac_lo=`expr $ac_mid + 1`
4424                     if test $ac_lo -le $ac_mid; then
4425                       ac_lo= ac_hi=
4426                       break
4427                     fi
4428                     ac_mid=`expr 2 '*' $ac_mid + 1`
4429 fi
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431   done
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 $ac_includes_default
4443 int
4444 main ()
4445 {
4446 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4447 test_array [0] = 0
4448
4449   ;
4450   return 0;
4451 }
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455   (eval $ac_compile) 2>conftest.er1
4456   ac_status=$?
4457   grep -v '^ *+' conftest.er1 >conftest.err
4458   rm -f conftest.er1
4459   cat conftest.err >&5
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } &&
4462          { ac_try='test -z "$ac_c_werror_flag"
4463                          || test ! -s conftest.err'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; } &&
4469          { ac_try='test -s conftest.$ac_objext'
4470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471   (eval $ac_try) 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); }; }; then
4475   ac_hi=-1 ac_mid=-1
4476   while :; do
4477     cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h.  */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h.  */
4483 $ac_includes_default
4484 int
4485 main ()
4486 {
4487 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4488 test_array [0] = 0
4489
4490   ;
4491   return 0;
4492 }
4493 _ACEOF
4494 rm -f conftest.$ac_objext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496   (eval $ac_compile) 2>conftest.er1
4497   ac_status=$?
4498   grep -v '^ *+' conftest.er1 >conftest.err
4499   rm -f conftest.er1
4500   cat conftest.err >&5
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); } &&
4503          { ac_try='test -z "$ac_c_werror_flag"
4504                          || test ! -s conftest.err'
4505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506   (eval $ac_try) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); }; } &&
4510          { ac_try='test -s conftest.$ac_objext'
4511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512   (eval $ac_try) 2>&5
4513   ac_status=$?
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); }; }; then
4516   ac_lo=$ac_mid; break
4517 else
4518   echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4520
4521 ac_hi=`expr '(' $ac_mid ')' - 1`
4522                        if test $ac_mid -le $ac_hi; then
4523                          ac_lo= ac_hi=
4524                          break
4525                        fi
4526                        ac_mid=`expr 2 '*' $ac_mid`
4527 fi
4528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4529   done
4530 else
4531   echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 ac_lo= ac_hi=
4535 fi
4536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 fi
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4539 # Binary search between lo and hi bounds.
4540 while test "x$ac_lo" != "x$ac_hi"; do
4541   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4542   cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548 $ac_includes_default
4549 int
4550 main ()
4551 {
4552 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4553 test_array [0] = 0
4554
4555   ;
4556   return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561   (eval $ac_compile) 2>conftest.er1
4562   ac_status=$?
4563   grep -v '^ *+' conftest.er1 >conftest.err
4564   rm -f conftest.er1
4565   cat conftest.err >&5
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); } &&
4568          { ac_try='test -z "$ac_c_werror_flag"
4569                          || test ! -s conftest.err'
4570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571   (eval $ac_try) 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; } &&
4575          { ac_try='test -s conftest.$ac_objext'
4576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577   (eval $ac_try) 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); }; }; then
4581   ac_hi=$ac_mid
4582 else
4583   echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 ac_lo=`expr '(' $ac_mid ')' + 1`
4587 fi
4588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4589 done
4590 case $ac_lo in
4591 ?*) ac_cv_sizeof_int=$ac_lo;;
4592 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4593 See \`config.log' for more details." >&5
4594 echo "$as_me: error: cannot compute sizeof (int), 77
4595 See \`config.log' for more details." >&2;}
4596    { (exit 1); exit 1; }; } ;;
4597 esac
4598 else
4599   if test "$cross_compiling" = yes; then
4600   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4601 See \`config.log' for more details." >&5
4602 echo "$as_me: error: cannot run test program while cross compiling
4603 See \`config.log' for more details." >&2;}
4604    { (exit 1); exit 1; }; }
4605 else
4606   cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h.  */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h.  */
4612 $ac_includes_default
4613 long longval () { return (long) (sizeof (int)); }
4614 unsigned long ulongval () { return (long) (sizeof (int)); }
4615 #include <stdio.h>
4616 #include <stdlib.h>
4617 int
4618 main ()
4619 {
4620
4621   FILE *f = fopen ("conftest.val", "w");
4622   if (! f)
4623     exit (1);
4624   if (((long) (sizeof (int))) < 0)
4625     {
4626       long i = longval ();
4627       if (i != ((long) (sizeof (int))))
4628         exit (1);
4629       fprintf (f, "%ld\n", i);
4630     }
4631   else
4632     {
4633       unsigned long i = ulongval ();
4634       if (i != ((long) (sizeof (int))))
4635         exit (1);
4636       fprintf (f, "%lu\n", i);
4637     }
4638   exit (ferror (f) || fclose (f) != 0);
4639
4640   ;
4641   return 0;
4642 }
4643 _ACEOF
4644 rm -f conftest$ac_exeext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646   (eval $ac_link) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; }; then
4655   ac_cv_sizeof_int=`cat conftest.val`
4656 else
4657   echo "$as_me: program exited with status $ac_status" >&5
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 ( exit $ac_status )
4662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4663 See \`config.log' for more details." >&5
4664 echo "$as_me: error: cannot compute sizeof (int), 77
4665 See \`config.log' for more details." >&2;}
4666    { (exit 1); exit 1; }; }
4667 fi
4668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4669 fi
4670 fi
4671 rm -f conftest.val
4672 else
4673   ac_cv_sizeof_int=0
4674 fi
4675 fi
4676 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4677 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4678 cat >>confdefs.h <<_ACEOF
4679 #define SIZEOF_INT $ac_cv_sizeof_int
4680 _ACEOF
4681
4682
4683 echo "$as_me:$LINENO: checking for long" >&5
4684 echo $ECHO_N "checking for long... $ECHO_C" >&6
4685 if test "${ac_cv_type_long+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h.  */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h.  */
4694 $ac_includes_default
4695 int
4696 main ()
4697 {
4698 if ((long *) 0)
4699   return 0;
4700 if (sizeof (long))
4701   return 0;
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708   (eval $ac_compile) 2>conftest.er1
4709   ac_status=$?
4710   grep -v '^ *+' conftest.er1 >conftest.err
4711   rm -f conftest.er1
4712   cat conftest.err >&5
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); } &&
4715          { ac_try='test -z "$ac_c_werror_flag"
4716                          || test ! -s conftest.err'
4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718   (eval $ac_try) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; } &&
4722          { ac_try='test -s conftest.$ac_objext'
4723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724   (eval $ac_try) 2>&5
4725   ac_status=$?
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); }; }; then
4728   ac_cv_type_long=yes
4729 else
4730   echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 ac_cv_type_long=no
4734 fi
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4738 echo "${ECHO_T}$ac_cv_type_long" >&6
4739
4740 echo "$as_me:$LINENO: checking size of long" >&5
4741 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4742 if test "${ac_cv_sizeof_long+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   if test "$ac_cv_type_long" = yes; then
4746   # The cast to unsigned long works around a bug in the HP C Compiler
4747   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4748   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4749   # This bug is HP SR number 8606223364.
4750   if test "$cross_compiling" = yes; then
4751   # Depending upon the size, compute the lo and hi bounds.
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758 $ac_includes_default
4759 int
4760 main ()
4761 {
4762 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4763 test_array [0] = 0
4764
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771   (eval $ac_compile) 2>conftest.er1
4772   ac_status=$?
4773   grep -v '^ *+' conftest.er1 >conftest.err
4774   rm -f conftest.er1
4775   cat conftest.err >&5
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } &&
4778          { ac_try='test -z "$ac_c_werror_flag"
4779                          || test ! -s conftest.err'
4780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781   (eval $ac_try) 2>&5
4782   ac_status=$?
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); }; } &&
4785          { ac_try='test -s conftest.$ac_objext'
4786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787   (eval $ac_try) 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); }; }; then
4791   ac_lo=0 ac_mid=0
4792   while :; do
4793     cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799 $ac_includes_default
4800 int
4801 main ()
4802 {
4803 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4804 test_array [0] = 0
4805
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812   (eval $ac_compile) 2>conftest.er1
4813   ac_status=$?
4814   grep -v '^ *+' conftest.er1 >conftest.err
4815   rm -f conftest.er1
4816   cat conftest.err >&5
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } &&
4819          { ac_try='test -z "$ac_c_werror_flag"
4820                          || test ! -s conftest.err'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; } &&
4826          { ac_try='test -s conftest.$ac_objext'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; }; then
4832   ac_hi=$ac_mid; break
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 ac_lo=`expr $ac_mid + 1`
4838                     if test $ac_lo -le $ac_mid; then
4839                       ac_lo= ac_hi=
4840                       break
4841                     fi
4842                     ac_mid=`expr 2 '*' $ac_mid + 1`
4843 fi
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845   done
4846 else
4847   echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850 cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h.  */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h.  */
4856 $ac_includes_default
4857 int
4858 main ()
4859 {
4860 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4861 test_array [0] = 0
4862
4863   ;
4864   return 0;
4865 }
4866 _ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869   (eval $ac_compile) 2>conftest.er1
4870   ac_status=$?
4871   grep -v '^ *+' conftest.er1 >conftest.err
4872   rm -f conftest.er1
4873   cat conftest.err >&5
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); } &&
4876          { ac_try='test -z "$ac_c_werror_flag"
4877                          || test ! -s conftest.err'
4878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879   (eval $ac_try) 2>&5
4880   ac_status=$?
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); }; } &&
4883          { ac_try='test -s conftest.$ac_objext'
4884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885   (eval $ac_try) 2>&5
4886   ac_status=$?
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); }; }; then
4889   ac_hi=-1 ac_mid=-1
4890   while :; do
4891     cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h.  */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h.  */
4897 $ac_includes_default
4898 int
4899 main ()
4900 {
4901 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4902 test_array [0] = 0
4903
4904   ;
4905   return 0;
4906 }
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910   (eval $ac_compile) 2>conftest.er1
4911   ac_status=$?
4912   grep -v '^ *+' conftest.er1 >conftest.err
4913   rm -f conftest.er1
4914   cat conftest.err >&5
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -z "$ac_c_werror_flag"
4918                          || test ! -s conftest.err'
4919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920   (eval $ac_try) 2>&5
4921   ac_status=$?
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); }; } &&
4924          { ac_try='test -s conftest.$ac_objext'
4925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926   (eval $ac_try) 2>&5
4927   ac_status=$?
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); }; }; then
4930   ac_lo=$ac_mid; break
4931 else
4932   echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4934
4935 ac_hi=`expr '(' $ac_mid ')' - 1`
4936                        if test $ac_mid -le $ac_hi; then
4937                          ac_lo= ac_hi=
4938                          break
4939                        fi
4940                        ac_mid=`expr 2 '*' $ac_mid`
4941 fi
4942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4943   done
4944 else
4945   echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 ac_lo= ac_hi=
4949 fi
4950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4951 fi
4952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4953 # Binary search between lo and hi bounds.
4954 while test "x$ac_lo" != "x$ac_hi"; do
4955   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4956   cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 $ac_includes_default
4963 int
4964 main ()
4965 {
4966 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4967 test_array [0] = 0
4968
4969   ;
4970   return 0;
4971 }
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975   (eval $ac_compile) 2>conftest.er1
4976   ac_status=$?
4977   grep -v '^ *+' conftest.er1 >conftest.err
4978   rm -f conftest.er1
4979   cat conftest.err >&5
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } &&
4982          { ac_try='test -z "$ac_c_werror_flag"
4983                          || test ! -s conftest.err'
4984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; } &&
4989          { ac_try='test -s conftest.$ac_objext'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; }; then
4995   ac_hi=$ac_mid
4996 else
4997   echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 ac_lo=`expr '(' $ac_mid ')' + 1`
5001 fi
5002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5003 done
5004 case $ac_lo in
5005 ?*) ac_cv_sizeof_long=$ac_lo;;
5006 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5007 See \`config.log' for more details." >&5
5008 echo "$as_me: error: cannot compute sizeof (long), 77
5009 See \`config.log' for more details." >&2;}
5010    { (exit 1); exit 1; }; } ;;
5011 esac
5012 else
5013   if test "$cross_compiling" = yes; then
5014   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5015 See \`config.log' for more details." >&5
5016 echo "$as_me: error: cannot run test program while cross compiling
5017 See \`config.log' for more details." >&2;}
5018    { (exit 1); exit 1; }; }
5019 else
5020   cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h.  */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h.  */
5026 $ac_includes_default
5027 long longval () { return (long) (sizeof (long)); }
5028 unsigned long ulongval () { return (long) (sizeof (long)); }
5029 #include <stdio.h>
5030 #include <stdlib.h>
5031 int
5032 main ()
5033 {
5034
5035   FILE *f = fopen ("conftest.val", "w");
5036   if (! f)
5037     exit (1);
5038   if (((long) (sizeof (long))) < 0)
5039     {
5040       long i = longval ();
5041       if (i != ((long) (sizeof (long))))
5042         exit (1);
5043       fprintf (f, "%ld\n", i);
5044     }
5045   else
5046     {
5047       unsigned long i = ulongval ();
5048       if (i != ((long) (sizeof (long))))
5049         exit (1);
5050       fprintf (f, "%lu\n", i);
5051     }
5052   exit (ferror (f) || fclose (f) != 0);
5053
5054   ;
5055   return 0;
5056 }
5057 _ACEOF
5058 rm -f conftest$ac_exeext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060   (eval $ac_link) 2>&5
5061   ac_status=$?
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065   (eval $ac_try) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); }; }; then
5069   ac_cv_sizeof_long=`cat conftest.val`
5070 else
5071   echo "$as_me: program exited with status $ac_status" >&5
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5074
5075 ( exit $ac_status )
5076 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5077 See \`config.log' for more details." >&5
5078 echo "$as_me: error: cannot compute sizeof (long), 77
5079 See \`config.log' for more details." >&2;}
5080    { (exit 1); exit 1; }; }
5081 fi
5082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5083 fi
5084 fi
5085 rm -f conftest.val
5086 else
5087   ac_cv_sizeof_long=0
5088 fi
5089 fi
5090 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5091 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5092 cat >>confdefs.h <<_ACEOF
5093 #define SIZEOF_LONG $ac_cv_sizeof_long
5094 _ACEOF
5095
5096
5097 echo "$as_me:$LINENO: checking for long long" >&5
5098 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5099 if test "${ac_cv_type_long_long+set}" = set; then
5100   echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102   cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108 $ac_includes_default
5109 int
5110 main ()
5111 {
5112 if ((long long *) 0)
5113   return 0;
5114 if (sizeof (long long))
5115   return 0;
5116   ;
5117   return 0;
5118 }
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122   (eval $ac_compile) 2>conftest.er1
5123   ac_status=$?
5124   grep -v '^ *+' conftest.er1 >conftest.err
5125   rm -f conftest.er1
5126   cat conftest.err >&5
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); } &&
5129          { ac_try='test -z "$ac_c_werror_flag"
5130                          || test ! -s conftest.err'
5131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132   (eval $ac_try) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; } &&
5136          { ac_try='test -s conftest.$ac_objext'
5137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138   (eval $ac_try) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); }; }; then
5142   ac_cv_type_long_long=yes
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 ac_cv_type_long_long=no
5148 fi
5149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5150 fi
5151 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5152 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5153 if test $ac_cv_type_long_long = yes; then
5154
5155 cat >>confdefs.h <<_ACEOF
5156 #define HAVE_LONG_LONG 1
5157 _ACEOF
5158
5159 echo "$as_me:$LINENO: checking for long long" >&5
5160 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5161 if test "${ac_cv_type_long_long+set}" = set; then
5162   echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164   cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h.  */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h.  */
5170 $ac_includes_default
5171 int
5172 main ()
5173 {
5174 if ((long long *) 0)
5175   return 0;
5176 if (sizeof (long long))
5177   return 0;
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184   (eval $ac_compile) 2>conftest.er1
5185   ac_status=$?
5186   grep -v '^ *+' conftest.er1 >conftest.err
5187   rm -f conftest.er1
5188   cat conftest.err >&5
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); } &&
5191          { ac_try='test -z "$ac_c_werror_flag"
5192                          || test ! -s conftest.err'
5193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194   (eval $ac_try) 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); }; } &&
5198          { ac_try='test -s conftest.$ac_objext'
5199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200   (eval $ac_try) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }; }; then
5204   ac_cv_type_long_long=yes
5205 else
5206   echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 ac_cv_type_long_long=no
5210 fi
5211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5212 fi
5213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5214 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5215
5216 echo "$as_me:$LINENO: checking size of long long" >&5
5217 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5218 if test "${ac_cv_sizeof_long_long+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   if test "$ac_cv_type_long_long" = yes; then
5222   # The cast to unsigned long works around a bug in the HP C Compiler
5223   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5224   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5225   # This bug is HP SR number 8606223364.
5226   if test "$cross_compiling" = yes; then
5227   # Depending upon the size, compute the lo and hi bounds.
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h.  */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h.  */
5234 $ac_includes_default
5235 int
5236 main ()
5237 {
5238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5239 test_array [0] = 0
5240
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247   (eval $ac_compile) 2>conftest.er1
5248   ac_status=$?
5249   grep -v '^ *+' conftest.er1 >conftest.err
5250   rm -f conftest.er1
5251   cat conftest.err >&5
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } &&
5254          { ac_try='test -z "$ac_c_werror_flag"
5255                          || test ! -s conftest.err'
5256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257   (eval $ac_try) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }; } &&
5261          { ac_try='test -s conftest.$ac_objext'
5262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263   (eval $ac_try) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); }; }; then
5267   ac_lo=0 ac_mid=0
5268   while :; do
5269     cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 $ac_includes_default
5276 int
5277 main ()
5278 {
5279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5280 test_array [0] = 0
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288   (eval $ac_compile) 2>conftest.er1
5289   ac_status=$?
5290   grep -v '^ *+' conftest.er1 >conftest.err
5291   rm -f conftest.er1
5292   cat conftest.err >&5
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } &&
5295          { ac_try='test -z "$ac_c_werror_flag"
5296                          || test ! -s conftest.err'
5297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298   (eval $ac_try) 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }; } &&
5302          { ac_try='test -s conftest.$ac_objext'
5303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304   (eval $ac_try) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); }; }; then
5308   ac_hi=$ac_mid; break
5309 else
5310   echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 ac_lo=`expr $ac_mid + 1`
5314                     if test $ac_lo -le $ac_mid; then
5315                       ac_lo= ac_hi=
5316                       break
5317                     fi
5318                     ac_mid=`expr 2 '*' $ac_mid + 1`
5319 fi
5320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5321   done
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h.  */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h.  */
5332 $ac_includes_default
5333 int
5334 main ()
5335 {
5336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5337 test_array [0] = 0
5338
5339   ;
5340   return 0;
5341 }
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345   (eval $ac_compile) 2>conftest.er1
5346   ac_status=$?
5347   grep -v '^ *+' conftest.er1 >conftest.err
5348   rm -f conftest.er1
5349   cat conftest.err >&5
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); } &&
5352          { ac_try='test -z "$ac_c_werror_flag"
5353                          || test ! -s conftest.err'
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); }; } &&
5359          { ac_try='test -s conftest.$ac_objext'
5360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361   (eval $ac_try) 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); }; }; then
5365   ac_hi=-1 ac_mid=-1
5366   while :; do
5367     cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 $ac_includes_default
5374 int
5375 main ()
5376 {
5377 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5378 test_array [0] = 0
5379
5380   ;
5381   return 0;
5382 }
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386   (eval $ac_compile) 2>conftest.er1
5387   ac_status=$?
5388   grep -v '^ *+' conftest.er1 >conftest.err
5389   rm -f conftest.er1
5390   cat conftest.err >&5
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } &&
5393          { ac_try='test -z "$ac_c_werror_flag"
5394                          || test ! -s conftest.err'
5395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396   (eval $ac_try) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; } &&
5400          { ac_try='test -s conftest.$ac_objext'
5401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402   (eval $ac_try) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; }; then
5406   ac_lo=$ac_mid; break
5407 else
5408   echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 ac_hi=`expr '(' $ac_mid ')' - 1`
5412                        if test $ac_mid -le $ac_hi; then
5413                          ac_lo= ac_hi=
5414                          break
5415                        fi
5416                        ac_mid=`expr 2 '*' $ac_mid`
5417 fi
5418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5419   done
5420 else
5421   echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5423
5424 ac_lo= ac_hi=
5425 fi
5426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5427 fi
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429 # Binary search between lo and hi bounds.
5430 while test "x$ac_lo" != "x$ac_hi"; do
5431   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5432   cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438 $ac_includes_default
5439 int
5440 main ()
5441 {
5442 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5443 test_array [0] = 0
5444
5445   ;
5446   return 0;
5447 }
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451   (eval $ac_compile) 2>conftest.er1
5452   ac_status=$?
5453   grep -v '^ *+' conftest.er1 >conftest.err
5454   rm -f conftest.er1
5455   cat conftest.err >&5
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } &&
5458          { ac_try='test -z "$ac_c_werror_flag"
5459                          || test ! -s conftest.err'
5460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461   (eval $ac_try) 2>&5
5462   ac_status=$?
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); }; } &&
5465          { ac_try='test -s conftest.$ac_objext'
5466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467   (eval $ac_try) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); }; }; then
5471   ac_hi=$ac_mid
5472 else
5473   echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476 ac_lo=`expr '(' $ac_mid ')' + 1`
5477 fi
5478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5479 done
5480 case $ac_lo in
5481 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5482 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: cannot compute sizeof (long long), 77
5485 See \`config.log' for more details." >&2;}
5486    { (exit 1); exit 1; }; } ;;
5487 esac
5488 else
5489   if test "$cross_compiling" = yes; then
5490   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5491 See \`config.log' for more details." >&5
5492 echo "$as_me: error: cannot run test program while cross compiling
5493 See \`config.log' for more details." >&2;}
5494    { (exit 1); exit 1; }; }
5495 else
5496   cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h.  */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h.  */
5502 $ac_includes_default
5503 long longval () { return (long) (sizeof (long long)); }
5504 unsigned long ulongval () { return (long) (sizeof (long long)); }
5505 #include <stdio.h>
5506 #include <stdlib.h>
5507 int
5508 main ()
5509 {
5510
5511   FILE *f = fopen ("conftest.val", "w");
5512   if (! f)
5513     exit (1);
5514   if (((long) (sizeof (long long))) < 0)
5515     {
5516       long i = longval ();
5517       if (i != ((long) (sizeof (long long))))
5518         exit (1);
5519       fprintf (f, "%ld\n", i);
5520     }
5521   else
5522     {
5523       unsigned long i = ulongval ();
5524       if (i != ((long) (sizeof (long long))))
5525         exit (1);
5526       fprintf (f, "%lu\n", i);
5527     }
5528   exit (ferror (f) || fclose (f) != 0);
5529
5530   ;
5531   return 0;
5532 }
5533 _ACEOF
5534 rm -f conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536   (eval $ac_link) 2>&5
5537   ac_status=$?
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; }; then
5545   ac_cv_sizeof_long_long=`cat conftest.val`
5546 else
5547   echo "$as_me: program exited with status $ac_status" >&5
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5550
5551 ( exit $ac_status )
5552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5553 See \`config.log' for more details." >&5
5554 echo "$as_me: error: cannot compute sizeof (long long), 77
5555 See \`config.log' for more details." >&2;}
5556    { (exit 1); exit 1; }; }
5557 fi
5558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5559 fi
5560 fi
5561 rm -f conftest.val
5562 else
5563   ac_cv_sizeof_long_long=0
5564 fi
5565 fi
5566 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5567 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5568 cat >>confdefs.h <<_ACEOF
5569 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5570 _ACEOF
5571
5572
5573 fi
5574
5575 echo "$as_me:$LINENO: checking for __int64" >&5
5576 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5577 if test "${ac_cv_type___int64+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h.  */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h.  */
5586 $ac_includes_default
5587 int
5588 main ()
5589 {
5590 if ((__int64 *) 0)
5591   return 0;
5592 if (sizeof (__int64))
5593   return 0;
5594   ;
5595   return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600   (eval $ac_compile) 2>conftest.er1
5601   ac_status=$?
5602   grep -v '^ *+' conftest.er1 >conftest.err
5603   rm -f conftest.er1
5604   cat conftest.err >&5
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); } &&
5607          { ac_try='test -z "$ac_c_werror_flag"
5608                          || test ! -s conftest.err'
5609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610   (eval $ac_try) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); }; } &&
5614          { ac_try='test -s conftest.$ac_objext'
5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616   (eval $ac_try) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; }; then
5620   ac_cv_type___int64=yes
5621 else
5622   echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5624
5625 ac_cv_type___int64=no
5626 fi
5627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5628 fi
5629 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5630 echo "${ECHO_T}$ac_cv_type___int64" >&6
5631 if test $ac_cv_type___int64 = yes; then
5632
5633 cat >>confdefs.h <<_ACEOF
5634 #define HAVE___INT64 1
5635 _ACEOF
5636
5637 echo "$as_me:$LINENO: checking for __int64" >&5
5638 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5639 if test "${ac_cv_type___int64+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h.  */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h.  */
5648 $ac_includes_default
5649 int
5650 main ()
5651 {
5652 if ((__int64 *) 0)
5653   return 0;
5654 if (sizeof (__int64))
5655   return 0;
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662   (eval $ac_compile) 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } &&
5669          { ac_try='test -z "$ac_c_werror_flag"
5670                          || test ! -s conftest.err'
5671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672   (eval $ac_try) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; } &&
5676          { ac_try='test -s conftest.$ac_objext'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; }; then
5682   ac_cv_type___int64=yes
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687 ac_cv_type___int64=no
5688 fi
5689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5692 echo "${ECHO_T}$ac_cv_type___int64" >&6
5693
5694 echo "$as_me:$LINENO: checking size of __int64" >&5
5695 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5696 if test "${ac_cv_sizeof___int64+set}" = set; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699   if test "$ac_cv_type___int64" = yes; then
5700   # The cast to unsigned long works around a bug in the HP C Compiler
5701   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5702   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5703   # This bug is HP SR number 8606223364.
5704   if test "$cross_compiling" = yes; then
5705   # Depending upon the size, compute the lo and hi bounds.
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h.  */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h.  */
5712 $ac_includes_default
5713 int
5714 main ()
5715 {
5716 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5717 test_array [0] = 0
5718
5719   ;
5720   return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725   (eval $ac_compile) 2>conftest.er1
5726   ac_status=$?
5727   grep -v '^ *+' conftest.er1 >conftest.err
5728   rm -f conftest.er1
5729   cat conftest.err >&5
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } &&
5732          { ac_try='test -z "$ac_c_werror_flag"
5733                          || test ! -s conftest.err'
5734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735   (eval $ac_try) 2>&5
5736   ac_status=$?
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); }; } &&
5739          { ac_try='test -s conftest.$ac_objext'
5740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741   (eval $ac_try) 2>&5
5742   ac_status=$?
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); }; }; then
5745   ac_lo=0 ac_mid=0
5746   while :; do
5747     cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753 $ac_includes_default
5754 int
5755 main ()
5756 {
5757 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5758 test_array [0] = 0
5759
5760   ;
5761   return 0;
5762 }
5763 _ACEOF
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766   (eval $ac_compile) 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -z "$ac_c_werror_flag"
5774                          || test ! -s conftest.err'
5775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776   (eval $ac_try) 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); }; } &&
5780          { ac_try='test -s conftest.$ac_objext'
5781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782   (eval $ac_try) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }; }; then
5786   ac_hi=$ac_mid; break
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791 ac_lo=`expr $ac_mid + 1`
5792                     if test $ac_lo -le $ac_mid; then
5793                       ac_lo= ac_hi=
5794                       break
5795                     fi
5796                     ac_mid=`expr 2 '*' $ac_mid + 1`
5797 fi
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5799   done
5800 else
5801   echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810 $ac_includes_default
5811 int
5812 main ()
5813 {
5814 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5815 test_array [0] = 0
5816
5817   ;
5818   return 0;
5819 }
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823   (eval $ac_compile) 2>conftest.er1
5824   ac_status=$?
5825   grep -v '^ *+' conftest.er1 >conftest.err
5826   rm -f conftest.er1
5827   cat conftest.err >&5
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } &&
5830          { ac_try='test -z "$ac_c_werror_flag"
5831                          || test ! -s conftest.err'
5832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833   (eval $ac_try) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; } &&
5837          { ac_try='test -s conftest.$ac_objext'
5838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839   (eval $ac_try) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); }; }; then
5843   ac_hi=-1 ac_mid=-1
5844   while :; do
5845     cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851 $ac_includes_default
5852 int
5853 main ()
5854 {
5855 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5856 test_array [0] = 0
5857
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864   (eval $ac_compile) 2>conftest.er1
5865   ac_status=$?
5866   grep -v '^ *+' conftest.er1 >conftest.err
5867   rm -f conftest.er1
5868   cat conftest.err >&5
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); } &&
5871          { ac_try='test -z "$ac_c_werror_flag"
5872                          || test ! -s conftest.err'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; } &&
5878          { ac_try='test -s conftest.$ac_objext'
5879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880   (eval $ac_try) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; }; then
5884   ac_lo=$ac_mid; break
5885 else
5886   echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5888
5889 ac_hi=`expr '(' $ac_mid ')' - 1`
5890                        if test $ac_mid -le $ac_hi; then
5891                          ac_lo= ac_hi=
5892                          break
5893                        fi
5894                        ac_mid=`expr 2 '*' $ac_mid`
5895 fi
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897   done
5898 else
5899   echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5901
5902 ac_lo= ac_hi=
5903 fi
5904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5905 fi
5906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907 # Binary search between lo and hi bounds.
5908 while test "x$ac_lo" != "x$ac_hi"; do
5909   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5910   cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h.  */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h.  */
5916 $ac_includes_default
5917 int
5918 main ()
5919 {
5920 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5921 test_array [0] = 0
5922
5923   ;
5924   return 0;
5925 }
5926 _ACEOF
5927 rm -f conftest.$ac_objext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929   (eval $ac_compile) 2>conftest.er1
5930   ac_status=$?
5931   grep -v '^ *+' conftest.er1 >conftest.err
5932   rm -f conftest.er1
5933   cat conftest.err >&5
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); } &&
5936          { ac_try='test -z "$ac_c_werror_flag"
5937                          || test ! -s conftest.err'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; } &&
5943          { ac_try='test -s conftest.$ac_objext'
5944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945   (eval $ac_try) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; }; then
5949   ac_hi=$ac_mid
5950 else
5951   echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 ac_lo=`expr '(' $ac_mid ')' + 1`
5955 fi
5956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957 done
5958 case $ac_lo in
5959 ?*) ac_cv_sizeof___int64=$ac_lo;;
5960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5961 See \`config.log' for more details." >&5
5962 echo "$as_me: error: cannot compute sizeof (__int64), 77
5963 See \`config.log' for more details." >&2;}
5964    { (exit 1); exit 1; }; } ;;
5965 esac
5966 else
5967   if test "$cross_compiling" = yes; then
5968   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5969 See \`config.log' for more details." >&5
5970 echo "$as_me: error: cannot run test program while cross compiling
5971 See \`config.log' for more details." >&2;}
5972    { (exit 1); exit 1; }; }
5973 else
5974   cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980 $ac_includes_default
5981 long longval () { return (long) (sizeof (__int64)); }
5982 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5983 #include <stdio.h>
5984 #include <stdlib.h>
5985 int
5986 main ()
5987 {
5988
5989   FILE *f = fopen ("conftest.val", "w");
5990   if (! f)
5991     exit (1);
5992   if (((long) (sizeof (__int64))) < 0)
5993     {
5994       long i = longval ();
5995       if (i != ((long) (sizeof (__int64))))
5996         exit (1);
5997       fprintf (f, "%ld\n", i);
5998     }
5999   else
6000     {
6001       unsigned long i = ulongval ();
6002       if (i != ((long) (sizeof (__int64))))
6003         exit (1);
6004       fprintf (f, "%lu\n", i);
6005     }
6006   exit (ferror (f) || fclose (f) != 0);
6007
6008   ;
6009   return 0;
6010 }
6011 _ACEOF
6012 rm -f conftest$ac_exeext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014   (eval $ac_link) 2>&5
6015   ac_status=$?
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019   (eval $ac_try) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); }; }; then
6023   ac_cv_sizeof___int64=`cat conftest.val`
6024 else
6025   echo "$as_me: program exited with status $ac_status" >&5
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029 ( exit $ac_status )
6030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6031 See \`config.log' for more details." >&5
6032 echo "$as_me: error: cannot compute sizeof (__int64), 77
6033 See \`config.log' for more details." >&2;}
6034    { (exit 1); exit 1; }; }
6035 fi
6036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6037 fi
6038 fi
6039 rm -f conftest.val
6040 else
6041   ac_cv_sizeof___int64=0
6042 fi
6043 fi
6044 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6045 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6046 cat >>confdefs.h <<_ACEOF
6047 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6048 _ACEOF
6049
6050
6051 fi
6052
6053
6054 # ---------------------
6055 # Warnings and checking
6056 # ---------------------
6057
6058 # Check $CC warning features (if it's GCC).
6059 # We want to use -pedantic, but we don't want warnings about
6060 # * 'long long'
6061 # * variadic macros
6062 # * overlong strings
6063 # So, we only use -pedantic if we can disable those warnings.
6064
6065 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6066 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6067 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070   save_CFLAGS="$CFLAGS"
6071   CFLAGS="-Wno-long-long"
6072   cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h.  */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h.  */
6078
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082   (eval $ac_compile) 2>conftest.er1
6083   ac_status=$?
6084   grep -v '^ *+' conftest.er1 >conftest.err
6085   rm -f conftest.er1
6086   cat conftest.err >&5
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } &&
6089          { ac_try='test -z "$ac_c_werror_flag"
6090                          || test ! -s conftest.err'
6091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092   (eval $ac_try) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); }; } &&
6096          { ac_try='test -s conftest.$ac_objext'
6097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098   (eval $ac_try) 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }; }; then
6102   ac_cv_prog_cc_w_no_long_long=yes
6103 else
6104   echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107 ac_cv_prog_cc_w_no_long_long=no
6108 fi
6109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6110   CFLAGS="$save_CFLAGS"
6111
6112 fi
6113 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6114 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6115
6116 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6117 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6118 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   save_CFLAGS="$CFLAGS"
6122   CFLAGS="-Wno-variadic-macros"
6123   cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133   (eval $ac_compile) 2>conftest.er1
6134   ac_status=$?
6135   grep -v '^ *+' conftest.er1 >conftest.err
6136   rm -f conftest.er1
6137   cat conftest.err >&5
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); } &&
6140          { ac_try='test -z "$ac_c_werror_flag"
6141                          || test ! -s conftest.err'
6142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143   (eval $ac_try) 2>&5
6144   ac_status=$?
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); }; } &&
6147          { ac_try='test -s conftest.$ac_objext'
6148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149   (eval $ac_try) 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; }; then
6153   ac_cv_prog_cc_w_no_variadic_macros=yes
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 ac_cv_prog_cc_w_no_variadic_macros=no
6159 fi
6160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6161   CFLAGS="$save_CFLAGS"
6162
6163 fi
6164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6165 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6166
6167 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6168 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6169 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   save_CFLAGS="$CFLAGS"
6173   CFLAGS="-Wno-overlength-strings"
6174   cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h.  */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h.  */
6180
6181 _ACEOF
6182 rm -f conftest.$ac_objext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184   (eval $ac_compile) 2>conftest.er1
6185   ac_status=$?
6186   grep -v '^ *+' conftest.er1 >conftest.err
6187   rm -f conftest.er1
6188   cat conftest.err >&5
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } &&
6191          { ac_try='test -z "$ac_c_werror_flag"
6192                          || test ! -s conftest.err'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; } &&
6198          { ac_try='test -s conftest.$ac_objext'
6199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200   (eval $ac_try) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; }; then
6204   ac_cv_prog_cc_w_no_overlength_strings=yes
6205 else
6206   echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209 ac_cv_prog_cc_w_no_overlength_strings=no
6210 fi
6211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6212   CFLAGS="$save_CFLAGS"
6213
6214 fi
6215 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6216 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6217
6218 strict1_warn=
6219 if test $ac_cv_prog_cc_w_no_long_long = yes \
6220    && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6221    && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6222   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6223 fi
6224
6225 # Add -Wold-style-definition if it's accepted
6226 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6227 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6228 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   save_CFLAGS="$CFLAGS"
6232   CFLAGS="-Wold-style-definition"
6233   cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h.  */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h.  */
6239
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243   (eval $ac_compile) 2>conftest.er1
6244   ac_status=$?
6245   grep -v '^ *+' conftest.er1 >conftest.err
6246   rm -f conftest.er1
6247   cat conftest.err >&5
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } &&
6250          { ac_try='test -z "$ac_c_werror_flag"
6251                          || test ! -s conftest.err'
6252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253   (eval $ac_try) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); }; } &&
6257          { ac_try='test -s conftest.$ac_objext'
6258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259   (eval $ac_try) 2>&5
6260   ac_status=$?
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); }; }; then
6263   ac_cv_prog_cc_w_old_style_definition=yes
6264 else
6265   echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6267
6268 ac_cv_prog_cc_w_old_style_definition=no
6269 fi
6270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6271   CFLAGS="$save_CFLAGS"
6272
6273 fi
6274 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6275 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6276 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6277   strict1_warn="${strict1_warn} -Wold-style-definition"
6278 fi
6279
6280 # Add -Wmissing-format-attribute if it's accepted
6281 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6282 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6283 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6284   echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286   save_CFLAGS="$CFLAGS"
6287   CFLAGS="-Wmissing-format-attribute"
6288   cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h.  */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h.  */
6294
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298   (eval $ac_compile) 2>conftest.er1
6299   ac_status=$?
6300   grep -v '^ *+' conftest.er1 >conftest.err
6301   rm -f conftest.er1
6302   cat conftest.err >&5
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); } &&
6305          { ac_try='test -z "$ac_c_werror_flag"
6306                          || test ! -s conftest.err'
6307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308   (eval $ac_try) 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); }; } &&
6312          { ac_try='test -s conftest.$ac_objext'
6313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314   (eval $ac_try) 2>&5
6315   ac_status=$?
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); }; }; then
6318   ac_cv_prog_cc_w_missing_format_attribute=yes
6319 else
6320   echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6322
6323 ac_cv_prog_cc_w_missing_format_attribute=no
6324 fi
6325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6326   CFLAGS="$save_CFLAGS"
6327
6328 fi
6329 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6330 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6331 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6332   strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6333 fi
6334
6335 # Enable -Werror, period.
6336 # Check whether --enable-werror_always or --disable-werror_always was given.
6337 if test "${enable_werror_always+set}" = set; then
6338   enableval="$enable_werror_always"
6339
6340 else
6341   enable_werror_always=no
6342 fi;
6343 if test x${enable_werror_always} = xyes ; then
6344   strict1_warn="${strict1_warn} -Werror"
6345   WERROR=-Werror
6346 fi
6347
6348
6349
6350 # Get C++ compatibility warning flag, if supported.
6351 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6352 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6353 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   save_CFLAGS="$CFLAGS"
6357   CFLAGS="-Wc++-compat"
6358   cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h.  */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h.  */
6364
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368   (eval $ac_compile) 2>conftest.er1
6369   ac_status=$?
6370   grep -v '^ *+' conftest.er1 >conftest.err
6371   rm -f conftest.er1
6372   cat conftest.err >&5
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); } &&
6375          { ac_try='test -z "$ac_c_werror_flag"
6376                          || test ! -s conftest.err'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; } &&
6382          { ac_try='test -s conftest.$ac_objext'
6383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384   (eval $ac_try) 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); }; }; then
6388   ac_cv_prog_cc_w_cxx_compat=yes
6389 else
6390   echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 ac_cv_prog_cc_w_cxx_compat=no
6394 fi
6395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6396   CFLAGS="$save_CFLAGS"
6397
6398 fi
6399 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6400 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6401 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6402   cxx_compat_warn="-Wc++-compat"
6403 fi
6404
6405
6406
6407 # If the native compiler is GCC, we can enable warnings even in stage1.
6408 # That's useful for people building cross-compilers, or just running a
6409 # quick `make'.
6410 warn_cflags=
6411 if test "x$GCC" = "xyes"; then
6412   warn_cflags='$(GCC_WARN_CFLAGS)'
6413 fi
6414
6415
6416 # Enable -Werror in bootstrap stage2 and later.
6417 is_release=
6418 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6419   is_release=yes
6420 fi
6421 # Check whether --enable-werror or --disable-werror was given.
6422 if test "${enable_werror+set}" = set; then
6423   enableval="$enable_werror"
6424
6425 else
6426   if test x$is_release = x ; then
6427   # Default to "yes" on development branches.
6428   enable_werror=yes
6429 else
6430   # Default to "no" on release branches.
6431   enable_werror=no
6432 fi
6433 fi;
6434 if test x$enable_werror = xyes ; then
6435   WERROR=-Werror
6436 fi
6437
6438
6439 # Enable expensive internal checks
6440 # Check whether --enable-checking or --disable-checking was given.
6441 if test "${enable_checking+set}" = set; then
6442   enableval="$enable_checking"
6443   ac_checking_flags="${enableval}"
6444 else
6445
6446 # Determine the default checks.
6447 if test x$is_release = x ; then
6448   ac_checking_flags=yes
6449 else
6450   ac_checking_flags=release
6451 fi
6452 fi;
6453 ac_assert_checking=1
6454 ac_checking=
6455 ac_fold_checking=
6456 ac_gc_checking=
6457 ac_gc_always_collect=
6458 ac_rtl_checking=
6459 ac_rtlflag_checking=
6460 ac_runtime_checking=1
6461 ac_tree_checking=
6462 ac_valgrind_checking=
6463 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6464 for check in $ac_checking_flags
6465 do
6466         case $check in
6467         # these set all the flags to specific states
6468         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6469                         ac_fold_checking= ; ac_gc_checking=1 ;
6470                         ac_gc_always_collect= ; ac_rtl_checking= ;
6471                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6472                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6473         no|none)        ac_assert_checking= ; ac_checking= ;
6474                         ac_fold_checking= ; ac_gc_checking= ;
6475                         ac_gc_always_collect= ; ac_rtl_checking= ;
6476                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6477                         ac_tree_checking= ; ac_valgrind_checking= ;;
6478         all)            ac_assert_checking=1 ; ac_checking=1 ;
6479                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6480                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6481                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6482                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6483         release)        ac_assert_checking=1 ; ac_checking= ;
6484                         ac_fold_checking= ; ac_gc_checking= ;
6485                         ac_gc_always_collect= ; ac_rtl_checking= ;
6486                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6487                         ac_tree_checking= ; ac_valgrind_checking= ;;
6488         # these enable particular checks
6489         assert)         ac_assert_checking=1 ;;
6490         fold)           ac_fold_checking=1 ;;
6491         gc)             ac_gc_checking=1 ;;
6492         gcac)           ac_gc_always_collect=1 ;;
6493         misc)           ac_checking=1 ;;
6494         rtl)            ac_rtl_checking=1 ;;
6495         rtlflag)        ac_rtlflag_checking=1 ;;
6496         runtime)        ac_runtime_checking=1 ;;
6497         tree)           ac_tree_checking=1 ;;
6498         valgrind)       ac_valgrind_checking=1 ;;
6499         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6500 echo "$as_me: error: unknown check category $check" >&2;}
6501    { (exit 1); exit 1; }; } ;;
6502         esac
6503 done
6504 IFS="$ac_save_IFS"
6505
6506 nocommon_flag=""
6507 if test x$ac_checking != x ; then
6508
6509 cat >>confdefs.h <<\_ACEOF
6510 #define ENABLE_CHECKING 1
6511 _ACEOF
6512
6513   nocommon_flag=-fno-common
6514 fi
6515
6516 if test x$ac_assert_checking != x ; then
6517
6518 cat >>confdefs.h <<\_ACEOF
6519 #define ENABLE_ASSERT_CHECKING 1
6520 _ACEOF
6521
6522 fi
6523
6524 if test x$ac_runtime_checking != x ; then
6525
6526 cat >>confdefs.h <<\_ACEOF
6527 #define ENABLE_RUNTIME_CHECKING 1
6528 _ACEOF
6529
6530 fi
6531 if test x$ac_tree_checking != x ; then
6532
6533 cat >>confdefs.h <<\_ACEOF
6534 #define ENABLE_TREE_CHECKING 1
6535 _ACEOF
6536
6537   TREEBROWSER=tree-browser.o
6538 fi
6539
6540 if test x$ac_rtl_checking != x ; then
6541
6542 cat >>confdefs.h <<\_ACEOF
6543 #define ENABLE_RTL_CHECKING 1
6544 _ACEOF
6545
6546 fi
6547 if test x$ac_rtlflag_checking != x ; then
6548
6549 cat >>confdefs.h <<\_ACEOF
6550 #define ENABLE_RTL_FLAG_CHECKING 1
6551 _ACEOF
6552
6553 fi
6554 if test x$ac_gc_checking != x ; then
6555
6556 cat >>confdefs.h <<\_ACEOF
6557 #define ENABLE_GC_CHECKING 1
6558 _ACEOF
6559
6560 fi
6561 if test x$ac_gc_always_collect != x ; then
6562
6563 cat >>confdefs.h <<\_ACEOF
6564 #define ENABLE_GC_ALWAYS_COLLECT 1
6565 _ACEOF
6566
6567 fi
6568 if test x$ac_fold_checking != x ; then
6569
6570 cat >>confdefs.h <<\_ACEOF
6571 #define ENABLE_FOLD_CHECKING 1
6572 _ACEOF
6573
6574 fi
6575 valgrind_path_defines=
6576 valgrind_command=
6577
6578 if test "${ac_cv_header_valgrind_h+set}" = set; then
6579   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6580 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6581 if test "${ac_cv_header_valgrind_h+set}" = set; then
6582   echo $ECHO_N "(cached) $ECHO_C" >&6
6583 fi
6584 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6585 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6586 else
6587   # Is the header compilable?
6588 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6589 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6590 cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h.  */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h.  */
6596 $ac_includes_default
6597 #include <valgrind.h>
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601   (eval $ac_compile) 2>conftest.er1
6602   ac_status=$?
6603   grep -v '^ *+' conftest.er1 >conftest.err
6604   rm -f conftest.er1
6605   cat conftest.err >&5
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); } &&
6608          { ac_try='test -z "$ac_c_werror_flag"
6609                          || test ! -s conftest.err'
6610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611   (eval $ac_try) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; } &&
6615          { ac_try='test -s conftest.$ac_objext'
6616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617   (eval $ac_try) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; }; then
6621   ac_header_compiler=yes
6622 else
6623   echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 ac_header_compiler=no
6627 fi
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6630 echo "${ECHO_T}$ac_header_compiler" >&6
6631
6632 # Is the header present?
6633 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6634 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h.  */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h.  */
6641 #include <valgrind.h>
6642 _ACEOF
6643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6644   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6645   ac_status=$?
6646   grep -v '^ *+' conftest.er1 >conftest.err
6647   rm -f conftest.er1
6648   cat conftest.err >&5
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); } >/dev/null; then
6651   if test -s conftest.err; then
6652     ac_cpp_err=$ac_c_preproc_warn_flag
6653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6654   else
6655     ac_cpp_err=
6656   fi
6657 else
6658   ac_cpp_err=yes
6659 fi
6660 if test -z "$ac_cpp_err"; then
6661   ac_header_preproc=yes
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666   ac_header_preproc=no
6667 fi
6668 rm -f conftest.err conftest.$ac_ext
6669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6670 echo "${ECHO_T}$ac_header_preproc" >&6
6671
6672 # So?  What about this header?
6673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6674   yes:no: )
6675     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6676 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6677     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6678 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6679     ac_header_preproc=yes
6680     ;;
6681   no:yes:* )
6682     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6683 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6684     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6685 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6686     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6687 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6688     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6689 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6690     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6691 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6692     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6693 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6694     (
6695       cat <<\_ASBOX
6696 ## ------------------------------------------ ##
6697 ## Report this to the AC_PACKAGE_NAME lists.  ##
6698 ## ------------------------------------------ ##
6699 _ASBOX
6700     ) |
6701       sed "s/^/$as_me: WARNING:     /" >&2
6702     ;;
6703 esac
6704 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6705 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6706 if test "${ac_cv_header_valgrind_h+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   ac_cv_header_valgrind_h=$ac_header_preproc
6710 fi
6711 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6712 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6713
6714 fi
6715 if test $ac_cv_header_valgrind_h = yes; then
6716   have_valgrind_h=yes
6717 else
6718   have_valgrind_h=no
6719 fi
6720
6721
6722
6723 if test x$ac_valgrind_checking != x ; then
6724   # It is certainly possible that there's valgrind but no valgrind.h.
6725   # GCC relies on making annotations so we must have both.
6726   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6727 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6728   cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h.  */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h.  */
6734 #include <valgrind/memcheck.h>
6735 #ifndef VALGRIND_DISCARD
6736 #error VALGRIND_DISCARD not defined
6737 #endif
6738 _ACEOF
6739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6740   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6741   ac_status=$?
6742   grep -v '^ *+' conftest.er1 >conftest.err
6743   rm -f conftest.er1
6744   cat conftest.err >&5
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); } >/dev/null; then
6747   if test -s conftest.err; then
6748     ac_cpp_err=$ac_c_preproc_warn_flag
6749     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6750   else
6751     ac_cpp_err=
6752   fi
6753 else
6754   ac_cpp_err=yes
6755 fi
6756 if test -z "$ac_cpp_err"; then
6757   gcc_cv_header_valgrind_memcheck_h=yes
6758 else
6759   echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762   gcc_cv_header_valgrind_memcheck_h=no
6763 fi
6764 rm -f conftest.err conftest.$ac_ext
6765   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6766 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6767   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6768 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6769   cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h.  */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h.  */
6775 #include <memcheck.h>
6776 #ifndef VALGRIND_DISCARD
6777 #error VALGRIND_DISCARD not defined
6778 #endif
6779 _ACEOF
6780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6781   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6782   ac_status=$?
6783   grep -v '^ *+' conftest.er1 >conftest.err
6784   rm -f conftest.er1
6785   cat conftest.err >&5
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); } >/dev/null; then
6788   if test -s conftest.err; then
6789     ac_cpp_err=$ac_c_preproc_warn_flag
6790     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6791   else
6792     ac_cpp_err=
6793   fi
6794 else
6795   ac_cpp_err=yes
6796 fi
6797 if test -z "$ac_cpp_err"; then
6798   gcc_cv_header_memcheck_h=yes
6799 else
6800   echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6802
6803   gcc_cv_header_memcheck_h=no
6804 fi
6805 rm -f conftest.err conftest.$ac_ext
6806   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6807 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6808
6809 # Prepare PATH_SEPARATOR.
6810 # The user is always right.
6811 if test "${PATH_SEPARATOR+set}" != set; then
6812   echo "#! /bin/sh" >conf$$.sh
6813   echo  "exit 0"   >>conf$$.sh
6814   chmod +x conf$$.sh
6815   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6816     PATH_SEPARATOR=';'
6817   else
6818     PATH_SEPARATOR=:
6819   fi
6820   rm -f conf$$.sh
6821 fi
6822
6823 # Find out how to test for executable files. Don't use a zero-byte file,
6824 # as systems may use methods other than mode bits to determine executability.
6825 cat >conf$$.file <<_ASEOF
6826 #! /bin/sh
6827 exit 0
6828 _ASEOF
6829 chmod +x conf$$.file
6830 if test -x conf$$.file >/dev/null 2>&1; then
6831   ac_executable_p="test -x"
6832 else
6833   ac_executable_p="test -f"
6834 fi
6835 rm -f conf$$.file
6836
6837 # Extract the first word of "valgrind", so it can be a program name with args.
6838 set dummy valgrind; ac_word=$2
6839 echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6841 if test "${ac_cv_path_valgrind_path+set}" = set; then
6842   echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844   case "$valgrind_path" in
6845   [\\/]* | ?:[\\/]*)
6846     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6847     ;;
6848   *)
6849     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6850     for ac_dir in $PATH; do
6851       IFS="$ac_save_IFS"
6852       test -z "$ac_dir" && ac_dir=.
6853       for ac_exec_ext in '' $ac_executable_extensions; do
6854         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6855           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6856             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6857             break 2
6858           fi
6859         fi
6860       done
6861     done
6862     IFS="$ac_save_IFS"
6863     ;;
6864 esac
6865 fi
6866 valgrind_path="$ac_cv_path_valgrind_path"
6867 if test -n "$valgrind_path"; then
6868   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6869 echo "${ECHO_T}$valgrind_path" >&6
6870 else
6871   echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6
6873 fi
6874
6875   if test "x$valgrind_path" = "x" \
6876     || (test $have_valgrind_h = no \
6877         && test $gcc_cv_header_memcheck_h = no \
6878         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6879         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6880 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6881    { (exit 1); exit 1; }; }
6882   fi
6883   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6884   valgrind_command="$valgrind_path -q"
6885
6886 cat >>confdefs.h <<\_ACEOF
6887 #define ENABLE_VALGRIND_CHECKING 1
6888 _ACEOF
6889
6890   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6891
6892 cat >>confdefs.h <<\_ACEOF
6893 #define HAVE_VALGRIND_MEMCHECK_H 1
6894 _ACEOF
6895
6896   fi
6897   if test $gcc_cv_header_memcheck_h = yes; then
6898
6899 cat >>confdefs.h <<\_ACEOF
6900 #define HAVE_MEMCHECK_H 1
6901 _ACEOF
6902
6903   fi
6904 fi
6905
6906
6907
6908 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6909 if test "${enable_mapped_location+set}" = set; then
6910   enableval="$enable_mapped_location"
6911
6912 else
6913   enable_mapped_location=no
6914 fi;
6915
6916 if test "$enable_mapped_location" = yes ; then
6917
6918 cat >>confdefs.h <<\_ACEOF
6919 #define USE_MAPPED_LOCATION 1
6920 _ACEOF
6921
6922 fi
6923
6924 # Enable code coverage collection
6925 # Check whether --enable-coverage or --disable-coverage was given.
6926 if test "${enable_coverage+set}" = set; then
6927   enableval="$enable_coverage"
6928   case "${enableval}" in
6929   yes|noopt)
6930     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6931     ;;
6932   opt)
6933     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6934     ;;
6935   no)
6936     # a.k.a. --disable-coverage
6937     coverage_flags=""
6938     ;;
6939   *)
6940     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6941 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6942    { (exit 1); exit 1; }; }
6943     ;;
6944 esac
6945 else
6946   coverage_flags=""
6947 fi;
6948
6949
6950 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6951 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6952   enableval="$enable_gather_detailed_mem_stats"
6953
6954 else
6955   enable_gather_detailed_mem_stats=no
6956 fi;
6957 if test x$enable_gather_detailed_mem_stats = xyes ; then
6958
6959 cat >>confdefs.h <<\_ACEOF
6960 #define GATHER_STATISTICS 1
6961 _ACEOF
6962
6963 fi
6964
6965 # -------------------------------
6966 # Miscenalleous configure options
6967 # -------------------------------
6968
6969 # With stabs
6970
6971 # Check whether --with-stabs or --without-stabs was given.
6972 if test "${with_stabs+set}" = set; then
6973   withval="$with_stabs"
6974   stabs="$with_stabs"
6975 else
6976   stabs=no
6977 fi;
6978
6979 # Determine whether or not multilibs are enabled.
6980 # Check whether --enable-multilib or --disable-multilib was given.
6981 if test "${enable_multilib+set}" = set; then
6982   enableval="$enable_multilib"
6983
6984 else
6985   enable_multilib=yes
6986 fi;
6987
6988
6989 # Enable __cxa_atexit for C++.
6990 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6991 if test "${enable___cxa_atexit+set}" = set; then
6992   enableval="$enable___cxa_atexit"
6993
6994 fi;
6995
6996 # Enable C extension for decimal float if target supports it.
6997 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6998 if test "${enable_decimal_float+set}" = set; then
6999   enableval="$enable_decimal_float"
7000
7001   if test x$enablevar = xyes ; then
7002     case $target in
7003     powerpc*-*-linux* | i?86*-*-linux*)
7004       enable_decimal_float=yes
7005       ;;
7006     *)
7007       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7008 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7009       enable_decimal_float=no
7010       ;;
7011     esac
7012   fi
7013
7014 else
7015   enable_decimal_float=no
7016 fi;
7017
7018
7019
7020 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7021
7022 cat >>confdefs.h <<_ACEOF
7023 #define ENABLE_DECIMAL_FLOAT $dfp
7024 _ACEOF
7025
7026
7027 # Enable threads
7028 # Pass with no value to take the default
7029 # Pass with a value to specify a thread package
7030 # Check whether --enable-threads or --disable-threads was given.
7031 if test "${enable_threads+set}" = set; then
7032   enableval="$enable_threads"
7033
7034 else
7035   enable_threads=''
7036 fi;
7037
7038 # Check whether --enable-tls or --disable-tls was given.
7039 if test "${enable_tls+set}" = set; then
7040   enableval="$enable_tls"
7041
7042   case $enable_tls in
7043     yes | no) ;;
7044     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7045 Valid choices are 'yes' and 'no'." >&5
7046 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7047 Valid choices are 'yes' and 'no'." >&2;}
7048    { (exit 1); exit 1; }; } ;;
7049   esac
7050
7051 else
7052   enable_tls=''
7053 fi;
7054
7055 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7056 if test "${enable_objc_gc+set}" = set; then
7057   enableval="$enable_objc_gc"
7058   if test x$enable_objc_gc = xno; then
7059         objc_boehm_gc=''
7060 else
7061         objc_boehm_gc=1
7062 fi
7063 else
7064   objc_boehm_gc=''
7065 fi;
7066
7067
7068 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7069 if test "${with_dwarf2+set}" = set; then
7070   withval="$with_dwarf2"
7071   dwarf2="$with_dwarf2"
7072 else
7073   dwarf2=no
7074 fi;
7075
7076 # Check whether --enable-shared or --disable-shared was given.
7077 if test "${enable_shared+set}" = set; then
7078   enableval="$enable_shared"
7079
7080   case $enable_shared in
7081   yes | no) ;;
7082   *)
7083     enable_shared=no
7084     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7085     for pkg in $enableval; do
7086       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7087         enable_shared=yes
7088       fi
7089     done
7090     IFS="$ac_save_ifs"
7091     ;;
7092   esac
7093
7094 else
7095   enable_shared=yes
7096 fi;
7097
7098
7099
7100 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7101 if test "${with_build_sysroot+set}" = set; then
7102   withval="$with_build_sysroot"
7103
7104 fi;
7105
7106
7107 # Check whether --with-sysroot or --without-sysroot was given.
7108 if test "${with_sysroot+set}" = set; then
7109   withval="$with_sysroot"
7110
7111  case ${with_sysroot} in
7112  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7113  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7114  esac
7115
7116  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7117  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7118
7119  if test "x$exec_prefix" = xNONE; then
7120   if test "x$prefix" = xNONE; then
7121    test_prefix=/usr/local
7122   else
7123    test_prefix=$prefix
7124   fi
7125  else
7126   test_prefix=$exec_prefix
7127  fi
7128  case ${TARGET_SYSTEM_ROOT} in
7129  "${test_prefix}"|"${test_prefix}/"*|\
7130  '${exec_prefix}'|'${exec_prefix}/'*)
7131    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7132    TARGET_SYSTEM_ROOT_DEFINE="$t"
7133    ;;
7134  esac
7135
7136 else
7137
7138  TARGET_SYSTEM_ROOT=
7139  TARGET_SYSTEM_ROOT_DEFINE=
7140  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7141
7142 fi;
7143
7144
7145
7146
7147 # Build with intermodule optimisations
7148 # Check whether --enable-intermodule or --disable-intermodule was given.
7149 if test "${enable_intermodule+set}" = set; then
7150   enableval="$enable_intermodule"
7151   case ${enable_intermodule} in
7152   yes) onestep="-onestep";;
7153   *) onestep="";;
7154 esac
7155 else
7156   onestep=""
7157 fi;
7158
7159
7160 # Sanity check enable_languages in case someone does not run the toplevel
7161 # configure # script.
7162 # Check whether --enable-languages or --disable-languages was given.
7163 if test "${enable_languages+set}" = set; then
7164   enableval="$enable_languages"
7165   case ,${enable_languages}, in
7166        ,,|,yes,)
7167                 # go safe -- we cannot be much sure without the toplevel
7168                 # configure's
7169                 # analysis of which target libs are present and usable
7170                 enable_languages=c
7171                 ;;
7172          *,all,*)
7173                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7174 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7175    { (exit 1); exit 1; }; }
7176                 ;;
7177         *,c,*)
7178                 ;;
7179         *)
7180                 enable_languages=c,${enable_languages}
7181                 ;;
7182 esac
7183 else
7184   enable_languages=c
7185 fi;
7186
7187
7188 # -------------------------
7189 # Checks for other programs
7190 # -------------------------
7191
7192 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7193 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7194 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7195 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198   cat >conftest.make <<\_ACEOF
7199 all:
7200         @echo 'ac_maketemp="$(MAKE)"'
7201 _ACEOF
7202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7203 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7204 if test -n "$ac_maketemp"; then
7205   eval ac_cv_prog_make_${ac_make}_set=yes
7206 else
7207   eval ac_cv_prog_make_${ac_make}_set=no
7208 fi
7209 rm -f conftest.make
7210 fi
7211 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7212   echo "$as_me:$LINENO: result: yes" >&5
7213 echo "${ECHO_T}yes" >&6
7214   SET_MAKE=
7215 else
7216   echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6
7218   SET_MAKE="MAKE=${MAKE-make}"
7219 fi
7220
7221
7222 # Find some useful tools
7223 for ac_prog in gawk mawk nawk awk
7224 do
7225   # Extract the first word of "$ac_prog", so it can be a program name with args.
7226 set dummy $ac_prog; ac_word=$2
7227 echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229 if test "${ac_cv_prog_AWK+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   if test -n "$AWK"; then
7233   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240   for ac_exec_ext in '' $ac_executable_extensions; do
7241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242     ac_cv_prog_AWK="$ac_prog"
7243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244     break 2
7245   fi
7246 done
7247 done
7248
7249 fi
7250 fi
7251 AWK=$ac_cv_prog_AWK
7252 if test -n "$AWK"; then
7253   echo "$as_me:$LINENO: result: $AWK" >&5
7254 echo "${ECHO_T}$AWK" >&6
7255 else
7256   echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7258 fi
7259
7260   test -n "$AWK" && break
7261 done
7262
7263 # We need awk to create options.c and options.h.
7264 # Bail out if it's missing.
7265 case ${AWK} in
7266   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7267 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7268    { (exit 1); exit 1; }; } ;;
7269 esac
7270
7271 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7272 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7273 if test "${gcc_cv_prog_LN_S+set}" = set; then
7274   echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276   rm -f conftestdata_t
7277 echo >conftestdata_f
7278 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7279 then
7280   gcc_cv_prog_LN_S="ln -s"
7281 else
7282   if ln conftestdata_f conftestdata_t 2>/dev/null
7283   then
7284     gcc_cv_prog_LN_S=ln
7285   else
7286     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7287     then
7288       gcc_cv_prog_LN_S="cp -p"
7289     else
7290       gcc_cv_prog_LN_S=cp
7291     fi
7292   fi
7293 fi
7294 rm -f conftestdata_f conftestdata_t
7295
7296 fi
7297 LN_S="$gcc_cv_prog_LN_S"
7298 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7299   echo "$as_me:$LINENO: result: yes" >&5
7300 echo "${ECHO_T}yes" >&6
7301 else
7302   if test "$gcc_cv_prog_LN_S" = "ln"; then
7303     echo "$as_me:$LINENO: result: no, using ln" >&5
7304 echo "${ECHO_T}no, using ln" >&6
7305   else
7306     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7307 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7308   fi
7309 fi
7310
7311 echo "$as_me:$LINENO: checking whether ln works" >&5
7312 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7313 if test "${acx_cv_prog_LN+set}" = set; then
7314   echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316   rm -f conftestdata_t
7317 echo >conftestdata_f
7318 if ln conftestdata_f conftestdata_t 2>/dev/null
7319 then
7320   acx_cv_prog_LN=ln
7321 else
7322   acx_cv_prog_LN=no
7323 fi
7324 rm -f conftestdata_f conftestdata_t
7325
7326 fi
7327 if test $acx_cv_prog_LN = no; then
7328   LN="$LN_S"
7329   echo "$as_me:$LINENO: result: no, using $LN" >&5
7330 echo "${ECHO_T}no, using $LN" >&6
7331 else
7332   LN="$acx_cv_prog_LN"
7333   echo "$as_me:$LINENO: result: yes" >&5
7334 echo "${ECHO_T}yes" >&6
7335 fi
7336
7337 if test -n "$ac_tool_prefix"; then
7338   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7339 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7340 echo "$as_me:$LINENO: checking for $ac_word" >&5
7341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7342 if test "${ac_cv_prog_RANLIB+set}" = set; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   if test -n "$RANLIB"; then
7346   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351   IFS=$as_save_IFS
7352   test -z "$as_dir" && as_dir=.
7353   for ac_exec_ext in '' $ac_executable_extensions; do
7354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357     break 2
7358   fi
7359 done
7360 done
7361
7362 fi
7363 fi
7364 RANLIB=$ac_cv_prog_RANLIB
7365 if test -n "$RANLIB"; then
7366   echo "$as_me:$LINENO: result: $RANLIB" >&5
7367 echo "${ECHO_T}$RANLIB" >&6
7368 else
7369   echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6
7371 fi
7372
7373 fi
7374 if test -z "$ac_cv_prog_RANLIB"; then
7375   ac_ct_RANLIB=$RANLIB
7376   # Extract the first word of "ranlib", so it can be a program name with args.
7377 set dummy ranlib; ac_word=$2
7378 echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7380 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   if test -n "$ac_ct_RANLIB"; then
7384   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391   for ac_exec_ext in '' $ac_executable_extensions; do
7392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393     ac_cv_prog_ac_ct_RANLIB="ranlib"
7394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398 done
7399
7400   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7401 fi
7402 fi
7403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7404 if test -n "$ac_ct_RANLIB"; then
7405   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7406 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7407 else
7408   echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7410 fi
7411
7412   RANLIB=$ac_ct_RANLIB
7413 else
7414   RANLIB="$ac_cv_prog_RANLIB"
7415 fi
7416
7417 case "${host}" in
7418 *-*-darwin*)
7419   # By default, the Darwin ranlib will not treat common symbols as
7420   # definitions when  building the archive table of contents.  Other
7421   # ranlibs do that; pass an option to the Darwin ranlib that makes
7422   # it behave similarly.
7423   ranlib_flags="-c"
7424   ;;
7425 *)
7426   ranlib_flags=""
7427 esac
7428
7429
7430 # Find a good install program.  We prefer a C program (faster),
7431 # so one script is as good as another.  But avoid the broken or
7432 # incompatible versions:
7433 # SysV /etc/install, /usr/sbin/install
7434 # SunOS /usr/etc/install
7435 # IRIX /sbin/install
7436 # AIX /bin/install
7437 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7438 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7439 # ./install, which can be erroneously created by make from ./install.sh.
7440 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7441 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7442 if test -z "$INSTALL"; then
7443 if test "${ac_cv_path_install+set}" = set; then
7444   echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7447   for ac_dir in $PATH; do
7448     # Account for people who put trailing slashes in PATH elements.
7449     case "$ac_dir/" in
7450     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7451     *)
7452       # OSF1 and SCO ODT 3.0 have their own names for install.
7453       for ac_prog in ginstall scoinst install; do
7454         if test -f $ac_dir/$ac_prog; then
7455           if test $ac_prog = install &&
7456             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7457             # AIX install.  It has an incompatible calling convention.
7458             # OSF/1 installbsd also uses dspmsg, but is usable.
7459             :
7460           else
7461             ac_cv_path_install="$ac_dir/$ac_prog -c"
7462             break 2
7463           fi
7464         fi
7465       done
7466       ;;
7467     esac
7468   done
7469   IFS="$ac_save_IFS"
7470
7471 fi
7472   if test "${ac_cv_path_install+set}" = set; then
7473     INSTALL="$ac_cv_path_install"
7474   else
7475     # As a last resort, use the slow shell script.  We don't cache a
7476     # path for INSTALL within a source directory, because that will
7477     # break other packages using the cache if that directory is
7478     # removed, or if the path is relative.
7479     INSTALL="$ac_install_sh"
7480   fi
7481 fi
7482 echo "$as_me:$LINENO: result: $INSTALL" >&5
7483 echo "${ECHO_T}$INSTALL" >&6
7484
7485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7486 # It thinks the first close brace ends the variable substitution.
7487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7488
7489 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7490
7491
7492 # See if cmp has --ignore-initial.
7493 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7494 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7495 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498    echo abfoo >t1
7499   echo cdfoo >t2
7500   gcc_cv_prog_cmp_skip=slowcompare
7501   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7502     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7503       :
7504     else
7505       gcc_cv_prog_cmp_skip=gnucompare
7506     fi
7507   fi
7508   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7509     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7510       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7511         :
7512       else
7513         gcc_cv_prog_cmp_skip=fastcompare
7514       fi
7515     fi
7516   fi
7517   rm t1 t2
7518
7519 fi
7520 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7521 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7522 make_compare_target=$gcc_cv_prog_cmp_skip
7523
7524
7525
7526 # See if we have the mktemp command.
7527 # Extract the first word of "mktemp", so it can be a program name with args.
7528 set dummy mktemp; 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_have_mktemp_command+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   if test -n "$have_mktemp_command"; then
7535   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # 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_have_mktemp_command="yes"
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   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7552 fi
7553 fi
7554 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7555 if test -n "$have_mktemp_command"; then
7556   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7557 echo "${ECHO_T}$have_mktemp_command" >&6
7558 else
7559   echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561 fi
7562
7563
7564 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7565
7566 # See if makeinfo has been installed and is modern enough
7567 # that we can use it.
7568
7569 ac_executable_extensions="$build_exeext"
7570
7571 # Extract the first word of "makeinfo", so it can be a program name with args.
7572 set dummy makeinfo; ac_word=$2
7573 echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7575 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7576   echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578   if test -n "$MAKEINFO"; then
7579   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586   for ac_exec_ext in '' $ac_executable_extensions; do
7587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588     ac_cv_prog_MAKEINFO="makeinfo"
7589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593 done
7594
7595 fi
7596 fi
7597 MAKEINFO=$ac_cv_prog_MAKEINFO
7598 if test -n "$MAKEINFO"; then
7599   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7600 echo "${ECHO_T}$MAKEINFO" >&6
7601 else
7602   echo "$as_me:$LINENO: result: no" >&5
7603 echo "${ECHO_T}no" >&6
7604 fi
7605
7606 if test -n "$MAKEINFO"; then
7607   # Found it, now check the version.
7608   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7609 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7610 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7611   echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613     ac_prog_version=`$MAKEINFO --version 2>&1 |
7614                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7615   echo "configure:7615: version of makeinfo is $ac_prog_version" >&5
7616   case $ac_prog_version in
7617     '')     gcc_cv_prog_makeinfo_modern=no;;
7618     4.[4-9]*)
7619             gcc_cv_prog_makeinfo_modern=yes;;
7620     *)      gcc_cv_prog_makeinfo_modern=no;;
7621   esac
7622
7623 fi
7624 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7625 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7626 else
7627   gcc_cv_prog_makeinfo_modern=no
7628 fi
7629
7630 if test $gcc_cv_prog_makeinfo_modern = no; then
7631   MAKEINFO="$MISSING makeinfo"
7632   { echo "$as_me:$LINENO: WARNING:
7633 *** Makeinfo is missing or too old.
7634 *** Info documentation will not be built." >&5
7635 echo "$as_me: WARNING:
7636 *** Makeinfo is missing or too old.
7637 *** Info documentation will not be built." >&2;}
7638   BUILD_INFO=
7639 else
7640   BUILD_INFO=info
7641 fi
7642
7643
7644 # Is pod2man recent enough to regenerate manpages?
7645 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7646 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7647 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7648   echo "$as_me:$LINENO: result: yes" >&5
7649 echo "${ECHO_T}yes" >&6
7650   GENERATED_MANPAGES=generated-manpages
7651 else
7652   echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7654   GENERATED_MANPAGES=
7655 fi
7656
7657
7658 # How about lex?
7659 for ac_prog in flex
7660 do
7661   # Extract the first word of "$ac_prog", so it can be a program name with args.
7662 set dummy $ac_prog; ac_word=$2
7663 echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7665 if test "${ac_cv_prog_FLEX+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   if test -n "$FLEX"; then
7669   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_exec_ext in '' $ac_executable_extensions; do
7677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678     ac_cv_prog_FLEX="$ac_prog"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683 done
7684
7685 fi
7686 fi
7687 FLEX=$ac_cv_prog_FLEX
7688 if test -n "$FLEX"; then
7689   echo "$as_me:$LINENO: result: $FLEX" >&5
7690 echo "${ECHO_T}$FLEX" >&6
7691 else
7692   echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6
7694 fi
7695
7696   test -n "$FLEX" && break
7697 done
7698 test -n "$FLEX" || FLEX="$MISSING flex"
7699
7700
7701 # Bison?
7702 for ac_prog in bison
7703 do
7704   # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7708 if test "${ac_cv_prog_BISON+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   if test -n "$BISON"; then
7712   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717   IFS=$as_save_IFS
7718   test -z "$as_dir" && as_dir=.
7719   for ac_exec_ext in '' $ac_executable_extensions; do
7720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721     ac_cv_prog_BISON="$ac_prog"
7722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723     break 2
7724   fi
7725 done
7726 done
7727
7728 fi
7729 fi
7730 BISON=$ac_cv_prog_BISON
7731 if test -n "$BISON"; then
7732   echo "$as_me:$LINENO: result: $BISON" >&5
7733 echo "${ECHO_T}$BISON" >&6
7734 else
7735   echo "$as_me:$LINENO: result: no" >&5
7736 echo "${ECHO_T}no" >&6
7737 fi
7738
7739   test -n "$BISON" && break
7740 done
7741 test -n "$BISON" || BISON="$MISSING bison"
7742
7743
7744 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7745 # check for build == host before using them.
7746
7747 # NM
7748 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7749   && test -d ../binutils ; then
7750   NM='$(objdir)/../binutils/nm-new'
7751 else
7752   # Extract the first word of "nm", so it can be a program name with args.
7753 set dummy nm; ac_word=$2
7754 echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756 if test "${ac_cv_prog_NM+set}" = set; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759   if test -n "$NM"; then
7760   ac_cv_prog_NM="$NM" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767   for ac_exec_ext in '' $ac_executable_extensions; do
7768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769     ac_cv_prog_NM="nm"
7770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774 done
7775
7776   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7777 fi
7778 fi
7779 NM=$ac_cv_prog_NM
7780 if test -n "$NM"; then
7781   echo "$as_me:$LINENO: result: $NM" >&5
7782 echo "${ECHO_T}$NM" >&6
7783 else
7784   echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6
7786 fi
7787
7788 fi
7789
7790 # AR
7791 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7792   && test -d ../binutils ; then
7793   AR='$(objdir)/../binutils/ar'
7794 else
7795   # Extract the first word of "ar", so it can be a program name with args.
7796 set dummy ar; ac_word=$2
7797 echo "$as_me:$LINENO: checking for $ac_word" >&5
7798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7799 if test "${ac_cv_prog_AR+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   if test -n "$AR"; then
7803   ac_cv_prog_AR="$AR" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808   IFS=$as_save_IFS
7809   test -z "$as_dir" && as_dir=.
7810   for ac_exec_ext in '' $ac_executable_extensions; do
7811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812     ac_cv_prog_AR="ar"
7813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7814     break 2
7815   fi
7816 done
7817 done
7818
7819   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7820 fi
7821 fi
7822 AR=$ac_cv_prog_AR
7823 if test -n "$AR"; then
7824   echo "$as_me:$LINENO: result: $AR" >&5
7825 echo "${ECHO_T}$AR" >&6
7826 else
7827   echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6
7829 fi
7830
7831 fi
7832
7833
7834 # --------------------
7835 # Checks for C headers
7836 # --------------------
7837
7838 echo "$as_me:$LINENO: checking for GNU C library" >&5
7839 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7840 if test "${gcc_cv_glibc+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843   cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h.  */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h.  */
7849 #include <features.h>
7850 int
7851 main ()
7852 {
7853
7854 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7855 #error Not a GNU C library system
7856 #endif
7857   ;
7858   return 0;
7859 }
7860 _ACEOF
7861 rm -f conftest.$ac_objext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7863   (eval $ac_compile) 2>conftest.er1
7864   ac_status=$?
7865   grep -v '^ *+' conftest.er1 >conftest.err
7866   rm -f conftest.er1
7867   cat conftest.err >&5
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } &&
7870          { ac_try='test -z "$ac_c_werror_flag"
7871                          || test ! -s conftest.err'
7872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873   (eval $ac_try) 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); }; } &&
7877          { ac_try='test -s conftest.$ac_objext'
7878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879   (eval $ac_try) 2>&5
7880   ac_status=$?
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); }; }; then
7883   gcc_cv_glibc=yes
7884 else
7885   echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7887
7888 gcc_cv_glibc=no
7889 fi
7890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7891 fi
7892
7893 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7894 echo "${ECHO_T}$gcc_cv_glibc" >&6
7895 if test $gcc_cv_glibc = yes; then
7896
7897 cat >>confdefs.h <<\_ACEOF
7898 #define _GNU_SOURCE 1
7899 _ACEOF
7900
7901 fi
7902
7903 # Need to reject headers which give warnings, so that the -Werror bootstrap
7904 # works later. *sigh*  This needs to come before all header checks.
7905
7906 ac_c_preproc_warn_flag=yes
7907
7908 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7909 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7910 if test "${ac_cv_header_stdc+set}" = set; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919 #include <stdlib.h>
7920 #include <stdarg.h>
7921 #include <string.h>
7922 #include <float.h>
7923
7924 int
7925 main ()
7926 {
7927
7928   ;
7929   return 0;
7930 }
7931 _ACEOF
7932 rm -f conftest.$ac_objext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7934   (eval $ac_compile) 2>conftest.er1
7935   ac_status=$?
7936   grep -v '^ *+' conftest.er1 >conftest.err
7937   rm -f conftest.er1
7938   cat conftest.err >&5
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } &&
7941          { ac_try='test -z "$ac_c_werror_flag"
7942                          || test ! -s conftest.err'
7943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944   (eval $ac_try) 2>&5
7945   ac_status=$?
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); }; } &&
7948          { ac_try='test -s conftest.$ac_objext'
7949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950   (eval $ac_try) 2>&5
7951   ac_status=$?
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); }; }; then
7954   ac_cv_header_stdc=yes
7955 else
7956   echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7958
7959 ac_cv_header_stdc=no
7960 fi
7961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7962
7963 if test $ac_cv_header_stdc = yes; then
7964   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7965   cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h.  */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h.  */
7971 #include <string.h>
7972
7973 _ACEOF
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975   $EGREP "memchr" >/dev/null 2>&1; then
7976   :
7977 else
7978   ac_cv_header_stdc=no
7979 fi
7980 rm -f conftest*
7981
7982 fi
7983
7984 if test $ac_cv_header_stdc = yes; then
7985   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7986   cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h.  */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h.  */
7992 #include <stdlib.h>
7993
7994 _ACEOF
7995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7996   $EGREP "free" >/dev/null 2>&1; then
7997   :
7998 else
7999   ac_cv_header_stdc=no
8000 fi
8001 rm -f conftest*
8002
8003 fi
8004
8005 if test $ac_cv_header_stdc = yes; then
8006   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8007   if test "$cross_compiling" = yes; then
8008   :
8009 else
8010   cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h.  */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h.  */
8016 #include <ctype.h>
8017 #if ((' ' & 0x0FF) == 0x020)
8018 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8019 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8020 #else
8021 # define ISLOWER(c) \
8022                    (('a' <= (c) && (c) <= 'i') \
8023                      || ('j' <= (c) && (c) <= 'r') \
8024                      || ('s' <= (c) && (c) <= 'z'))
8025 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8026 #endif
8027
8028 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8029 int
8030 main ()
8031 {
8032   int i;
8033   for (i = 0; i < 256; i++)
8034     if (XOR (islower (i), ISLOWER (i))
8035         || toupper (i) != TOUPPER (i))
8036       exit(2);
8037   exit (0);
8038 }
8039 _ACEOF
8040 rm -f conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042   (eval $ac_link) 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047   (eval $ac_try) 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; }; then
8051   :
8052 else
8053   echo "$as_me: program exited with status $ac_status" >&5
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057 ( exit $ac_status )
8058 ac_cv_header_stdc=no
8059 fi
8060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8061 fi
8062 fi
8063 fi
8064 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8065 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8066 if test $ac_cv_header_stdc = yes; then
8067
8068 cat >>confdefs.h <<\_ACEOF
8069 #define STDC_HEADERS 1
8070 _ACEOF
8071
8072 fi
8073
8074 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8075 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8076 if test "${ac_cv_header_time+set}" = set; then
8077   echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079   cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085 #include <sys/types.h>
8086 #include <sys/time.h>
8087 #include <time.h>
8088
8089 int
8090 main ()
8091 {
8092 if ((struct tm *) 0)
8093 return 0;
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8100   (eval $ac_compile) 2>conftest.er1
8101   ac_status=$?
8102   grep -v '^ *+' conftest.er1 >conftest.err
8103   rm -f conftest.er1
8104   cat conftest.err >&5
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -z "$ac_c_werror_flag"
8108                          || test ! -s conftest.err'
8109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110   (eval $ac_try) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); }; } &&
8114          { ac_try='test -s conftest.$ac_objext'
8115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116   (eval $ac_try) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; }; then
8120   ac_cv_header_time=yes
8121 else
8122   echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8124
8125 ac_cv_header_time=no
8126 fi
8127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128 fi
8129 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8130 echo "${ECHO_T}$ac_cv_header_time" >&6
8131 if test $ac_cv_header_time = yes; then
8132
8133 cat >>confdefs.h <<\_ACEOF
8134 #define TIME_WITH_SYS_TIME 1
8135 _ACEOF
8136
8137 fi
8138
8139 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8140 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8141 if test "${gcc_cv_header_string+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h.  */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h.  */
8150 #include <string.h>
8151 #include <strings.h>
8152 int
8153 main ()
8154 {
8155
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162   (eval $ac_compile) 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -z "$ac_c_werror_flag"
8170                          || test ! -s conftest.err'
8171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172   (eval $ac_try) 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; } &&
8176          { ac_try='test -s conftest.$ac_objext'
8177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178   (eval $ac_try) 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); }; }; then
8182   gcc_cv_header_string=yes
8183 else
8184   echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 gcc_cv_header_string=no
8188 fi
8189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8190 fi
8191 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8192 echo "${ECHO_T}$gcc_cv_header_string" >&6
8193 if test $gcc_cv_header_string = yes; then
8194
8195 cat >>confdefs.h <<\_ACEOF
8196 #define STRING_WITH_STRINGS 1
8197 _ACEOF
8198
8199 fi
8200
8201 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8202 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8203 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8204   echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206   cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h.  */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h.  */
8212 #include <sys/types.h>
8213 #include <sys/wait.h>
8214 #ifndef WEXITSTATUS
8215 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8216 #endif
8217 #ifndef WIFEXITED
8218 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8219 #endif
8220
8221 int
8222 main ()
8223 {
8224   int s;
8225   wait (&s);
8226   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8227   ;
8228   return 0;
8229 }
8230 _ACEOF
8231 rm -f conftest.$ac_objext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8233   (eval $ac_compile) 2>conftest.er1
8234   ac_status=$?
8235   grep -v '^ *+' conftest.er1 >conftest.err
8236   rm -f conftest.er1
8237   cat conftest.err >&5
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } &&
8240          { ac_try='test -z "$ac_c_werror_flag"
8241                          || test ! -s conftest.err'
8242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243   (eval $ac_try) 2>&5
8244   ac_status=$?
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); }; } &&
8247          { ac_try='test -s conftest.$ac_objext'
8248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249   (eval $ac_try) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); }; }; then
8253   ac_cv_header_sys_wait_h=yes
8254 else
8255   echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8257
8258 ac_cv_header_sys_wait_h=no
8259 fi
8260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8261 fi
8262 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8263 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8264 if test $ac_cv_header_sys_wait_h = yes; then
8265
8266 cat >>confdefs.h <<\_ACEOF
8267 #define HAVE_SYS_WAIT_H 1
8268 _ACEOF
8269
8270 fi
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8295                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8296                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8297                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8298 do
8299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8300 echo "$as_me:$LINENO: checking for $ac_header" >&5
8301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311 #include <$ac_header>
8312 _ACEOF
8313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8315   ac_status=$?
8316   grep -v '^ *+' conftest.er1 >conftest.err
8317   rm -f conftest.er1
8318   cat conftest.err >&5
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); } >/dev/null; then
8321   if test -s conftest.err; then
8322     ac_cpp_err=$ac_c_preproc_warn_flag
8323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8324   else
8325     ac_cpp_err=
8326   fi
8327 else
8328   ac_cpp_err=yes
8329 fi
8330 if test -z "$ac_cpp_err"; then
8331   eval "$as_ac_Header=yes"
8332 else
8333   echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336   eval "$as_ac_Header=no"
8337 fi
8338 rm -f conftest.err conftest.$ac_ext
8339 fi
8340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8343   cat >>confdefs.h <<_ACEOF
8344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8345 _ACEOF
8346
8347 fi
8348 done
8349
8350
8351 # Check for thread headers.
8352 echo "$as_me:$LINENO: checking for thread.h" >&5
8353 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8354 if test "${ac_cv_header_thread_h+set}" = set; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357   cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h.  */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h.  */
8363 #include <thread.h>
8364 _ACEOF
8365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8367   ac_status=$?
8368   grep -v '^ *+' conftest.er1 >conftest.err
8369   rm -f conftest.er1
8370   cat conftest.err >&5
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } >/dev/null; then
8373   if test -s conftest.err; then
8374     ac_cpp_err=$ac_c_preproc_warn_flag
8375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8376   else
8377     ac_cpp_err=
8378   fi
8379 else
8380   ac_cpp_err=yes
8381 fi
8382 if test -z "$ac_cpp_err"; then
8383   ac_cv_header_thread_h=yes
8384 else
8385   echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388   ac_cv_header_thread_h=no
8389 fi
8390 rm -f conftest.err conftest.$ac_ext
8391 fi
8392 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8393 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8394 if test $ac_cv_header_thread_h = yes; then
8395   have_thread_h=yes
8396 else
8397   have_thread_h=
8398 fi
8399
8400 echo "$as_me:$LINENO: checking for pthread.h" >&5
8401 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8402 if test "${ac_cv_header_pthread_h+set}" = set; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h.  */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h.  */
8411 #include <pthread.h>
8412 _ACEOF
8413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8414   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } >/dev/null; then
8421   if test -s conftest.err; then
8422     ac_cpp_err=$ac_c_preproc_warn_flag
8423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8424   else
8425     ac_cpp_err=
8426   fi
8427 else
8428   ac_cpp_err=yes
8429 fi
8430 if test -z "$ac_cpp_err"; then
8431   ac_cv_header_pthread_h=yes
8432 else
8433   echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8435
8436   ac_cv_header_pthread_h=no
8437 fi
8438 rm -f conftest.err conftest.$ac_ext
8439 fi
8440 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8441 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8442 if test $ac_cv_header_pthread_h = yes; then
8443   have_pthread_h=yes
8444 else
8445   have_pthread_h=
8446 fi
8447
8448
8449 # These tests can't be done till we know if we have limits.h.
8450 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8451 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8452 if test "${gcc_cv_decl_char_bit+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h.  */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h.  */
8461 #ifdef HAVE_LIMITS_H
8462 #include <limits.h>
8463 #endif
8464 #ifdef CHAR_BIT
8465 found
8466 #endif
8467 _ACEOF
8468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8469   $EGREP "found" >/dev/null 2>&1; then
8470   gcc_cv_decl_char_bit=yes
8471 else
8472   gcc_cv_decl_char_bit=no
8473 fi
8474 rm -f conftest*
8475
8476
8477 fi
8478 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8479 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8480 if test $gcc_cv_decl_char_bit = no; then
8481   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8482 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8483 if test "${gcc_cv_c_nbby+set}" = set; then
8484   echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486   i=8
8487  gcc_cv_c_nbby=
8488  while test $i -lt 65; do
8489    cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h.  */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h.  */
8495
8496 int
8497 main ()
8498 {
8499 switch(0) {
8500   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8501   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8502   ; }
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 rm -f conftest.$ac_objext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8509   (eval $ac_compile) 2>conftest.er1
8510   ac_status=$?
8511   grep -v '^ *+' conftest.er1 >conftest.err
8512   rm -f conftest.er1
8513   cat conftest.err >&5
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } &&
8516          { ac_try='test -z "$ac_c_werror_flag"
8517                          || test ! -s conftest.err'
8518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519   (eval $ac_try) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); }; } &&
8523          { ac_try='test -s conftest.$ac_objext'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; }; then
8529   gcc_cv_c_nbby=$i; break
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 fi
8535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8536    i=`expr $i + 1`
8537  done
8538  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8539
8540 fi
8541 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8542 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8543 if test $gcc_cv_c_nbby = failed; then
8544   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8545 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8546    { (exit 1); exit 1; }; }
8547 else
8548
8549 cat >>confdefs.h <<_ACEOF
8550 #define CHAR_BIT $gcc_cv_c_nbby
8551 _ACEOF
8552
8553 fi
8554 fi
8555 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8556 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8557 if test "${ac_cv_c_bigendian+set}" = set; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   # See if sys/param.h defines the BYTE_ORDER macro.
8561 cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h.  */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h.  */
8567 #include <sys/types.h>
8568 #include <sys/param.h>
8569
8570 int
8571 main ()
8572 {
8573 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8574  bogus endian macros
8575 #endif
8576
8577   ;
8578   return 0;
8579 }
8580 _ACEOF
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583   (eval $ac_compile) 2>conftest.er1
8584   ac_status=$?
8585   grep -v '^ *+' conftest.er1 >conftest.err
8586   rm -f conftest.er1
8587   cat conftest.err >&5
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); } &&
8590          { ac_try='test -z "$ac_c_werror_flag"
8591                          || test ! -s conftest.err'
8592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593   (eval $ac_try) 2>&5
8594   ac_status=$?
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); }; } &&
8597          { ac_try='test -s conftest.$ac_objext'
8598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599   (eval $ac_try) 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); }; }; then
8603   # It does; now see whether it defined to BIG_ENDIAN or not.
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h.  */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h.  */
8610 #include <sys/types.h>
8611 #include <sys/param.h>
8612
8613 int
8614 main ()
8615 {
8616 #if BYTE_ORDER != BIG_ENDIAN
8617  not big endian
8618 #endif
8619
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8626   (eval $ac_compile) 2>conftest.er1
8627   ac_status=$?
8628   grep -v '^ *+' conftest.er1 >conftest.err
8629   rm -f conftest.er1
8630   cat conftest.err >&5
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); } &&
8633          { ac_try='test -z "$ac_c_werror_flag"
8634                          || test ! -s conftest.err'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; } &&
8640          { ac_try='test -s conftest.$ac_objext'
8641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642   (eval $ac_try) 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; }; then
8646   ac_cv_c_bigendian=yes
8647 else
8648   echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 ac_cv_c_bigendian=no
8652 fi
8653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8654 else
8655   echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658 # It does not; compile a test program.
8659 if test "$cross_compiling" = yes; then
8660   # try to guess the endianness by grepping values into an object file
8661   ac_cv_c_bigendian=unknown
8662   cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h.  */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h.  */
8668 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8669 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8670 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8671 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8672 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8673 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8674 int
8675 main ()
8676 {
8677  _ascii (); _ebcdic ();
8678   ;
8679   return 0;
8680 }
8681 _ACEOF
8682 rm -f conftest.$ac_objext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8684   (eval $ac_compile) 2>conftest.er1
8685   ac_status=$?
8686   grep -v '^ *+' conftest.er1 >conftest.err
8687   rm -f conftest.er1
8688   cat conftest.err >&5
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } &&
8691          { ac_try='test -z "$ac_c_werror_flag"
8692                          || test ! -s conftest.err'
8693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694   (eval $ac_try) 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); }; } &&
8698          { ac_try='test -s conftest.$ac_objext'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8705   ac_cv_c_bigendian=yes
8706 fi
8707 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8708   if test "$ac_cv_c_bigendian" = unknown; then
8709     ac_cv_c_bigendian=no
8710   else
8711     # finding both strings is unlikely to happen, but who knows?
8712     ac_cv_c_bigendian=unknown
8713   fi
8714 fi
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719 fi
8720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8721 else
8722   cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h.  */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h.  */
8728 int
8729 main ()
8730 {
8731   /* Are we little or big endian?  From Harbison&Steele.  */
8732   union
8733   {
8734     long l;
8735     char c[sizeof (long)];
8736   } u;
8737   u.l = 1;
8738   exit (u.c[sizeof (long) - 1] == 1);
8739 }
8740 _ACEOF
8741 rm -f conftest$ac_exeext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743   (eval $ac_link) 2>&5
8744   ac_status=$?
8745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748   (eval $ac_try) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }; }; then
8752   ac_cv_c_bigendian=no
8753 else
8754   echo "$as_me: program exited with status $ac_status" >&5
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758 ( exit $ac_status )
8759 ac_cv_c_bigendian=yes
8760 fi
8761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8762 fi
8763 fi
8764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8765 fi
8766 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8767 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8768 case $ac_cv_c_bigendian in
8769   yes)
8770
8771 cat >>confdefs.h <<\_ACEOF
8772 #define WORDS_BIGENDIAN 1
8773 _ACEOF
8774  ;;
8775   no)
8776      ;;
8777   *)
8778     { { echo "$as_me:$LINENO: error: unknown endianness
8779 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8780 echo "$as_me: error: unknown endianness
8781 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8782    { (exit 1); exit 1; }; } ;;
8783 esac
8784
8785
8786 # --------
8787 # UNSORTED
8788 # --------
8789
8790 # Stage specific cflags for build.
8791 stage1_cflags=
8792 case $build in
8793 vax-*-*)
8794   if test x$GCC = xyes
8795   then
8796     stage1_cflags="-Wa,-J"
8797   else
8798     stage1_cflags="-J"
8799   fi
8800   ;;
8801 powerpc-*-darwin*)
8802   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8803   # sources; use -no-cpp-precomp to get to GNU cpp.
8804   # Apple's GCC has bugs in designated initializer handling, so disable
8805   # that too.
8806   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8807   ;;
8808 esac
8809
8810
8811 # These libraries may be used by collect2.
8812 # We may need a special search path to get them linked.
8813 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8814 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8815 if test "${gcc_cv_collect2_libs+set}" = set; then
8816   echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818   save_LIBS="$LIBS"
8819 for libs in '' -lld -lmld \
8820                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8821                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8822 do
8823         LIBS="$libs"
8824         cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h.  */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h.  */
8830
8831 /* Override any gcc2 internal prototype to avoid an error.  */
8832 #ifdef __cplusplus
8833 extern "C"
8834 #endif
8835 /* We use char because int might match the return type of a gcc2
8836    builtin and then its argument prototype would still apply.  */
8837 char ldopen ();
8838 int
8839 main ()
8840 {
8841 ldopen ();
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848   (eval $ac_link) 2>conftest.er1
8849   ac_status=$?
8850   grep -v '^ *+' conftest.er1 >conftest.err
8851   rm -f conftest.er1
8852   cat conftest.err >&5
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); } &&
8855          { ac_try='test -z "$ac_c_werror_flag"
8856                          || test ! -s conftest.err'
8857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858   (eval $ac_try) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; } &&
8862          { ac_try='test -s conftest$ac_exeext'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; }; then
8868   gcc_cv_collect2_libs="$libs"; break
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873 fi
8874 rm -f conftest.err conftest.$ac_objext \
8875       conftest$ac_exeext conftest.$ac_ext
8876 done
8877 LIBS="$save_LIBS"
8878 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8879 fi
8880 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8881 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8882 case $gcc_cv_collect2_libs in
8883         "none required")        ;;
8884         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8885 esac
8886
8887
8888 # When building Ada code on Alpha, we need exc_resume which is usually in
8889 # -lexc.  So test for it.
8890 save_LIBS="$LIBS"
8891 LIBS=
8892 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8893 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8894 if test "${ac_cv_search_exc_resume+set}" = set; then
8895   echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897   ac_func_search_save_LIBS=$LIBS
8898 ac_cv_search_exc_resume=no
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"
8931                          || test ! -s conftest.err'
8932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933   (eval $ac_try) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); }; } &&
8937          { ac_try='test -s conftest$ac_exeext'
8938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939   (eval $ac_try) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; }; then
8943   ac_cv_search_exc_resume="none required"
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 if test "$ac_cv_search_exc_resume" = no; then
8952   for ac_lib in exc; do
8953     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8954     cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h.  */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h.  */
8960
8961 /* Override any gcc2 internal prototype to avoid an error.  */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 /* We use char because int might match the return type of a gcc2
8966    builtin and then its argument prototype would still apply.  */
8967 char exc_resume ();
8968 int
8969 main ()
8970 {
8971 exc_resume ();
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978   (eval $ac_link) 2>conftest.er1
8979   ac_status=$?
8980   grep -v '^ *+' conftest.er1 >conftest.err
8981   rm -f conftest.er1
8982   cat conftest.err >&5
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); } &&
8985          { ac_try='test -z "$ac_c_werror_flag"
8986                          || test ! -s conftest.err'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; } &&
8992          { ac_try='test -s conftest$ac_exeext'
8993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994   (eval $ac_try) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); }; }; then
8998   ac_cv_search_exc_resume="-l$ac_lib"
8999 break
9000 else
9001   echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9003
9004 fi
9005 rm -f conftest.err conftest.$ac_objext \
9006       conftest$ac_exeext conftest.$ac_ext
9007   done
9008 fi
9009 LIBS=$ac_func_search_save_LIBS
9010 fi
9011 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9012 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9013 if test "$ac_cv_search_exc_resume" != no; then
9014   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9015
9016 fi
9017
9018 GNAT_LIBEXC="$LIBS"
9019 LIBS="$save_LIBS"
9020
9021
9022 # Some systems put ldexp and frexp in libm instead of libc; assume
9023 # they're both in the same place.  jcf-dump needs them.
9024 save_LIBS="$LIBS"
9025 LIBS=
9026 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9027 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9028 if test "${ac_cv_search_ldexp+set}" = set; then
9029   echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031   ac_func_search_save_LIBS=$LIBS
9032 ac_cv_search_ldexp=no
9033 cat >conftest.$ac_ext <<_ACEOF
9034 /* confdefs.h.  */
9035 _ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h.  */
9039
9040 /* Override any gcc2 internal prototype to avoid an error.  */
9041 #ifdef __cplusplus
9042 extern "C"
9043 #endif
9044 /* We use char because int might match the return type of a gcc2
9045    builtin and then its argument prototype would still apply.  */
9046 char ldexp ();
9047 int
9048 main ()
9049 {
9050 ldexp ();
9051   ;
9052   return 0;
9053 }
9054 _ACEOF
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057   (eval $ac_link) 2>conftest.er1
9058   ac_status=$?
9059   grep -v '^ *+' conftest.er1 >conftest.err
9060   rm -f conftest.er1
9061   cat conftest.err >&5
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } &&
9064          { ac_try='test -z "$ac_c_werror_flag"
9065                          || test ! -s conftest.err'
9066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067   (eval $ac_try) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; } &&
9071          { ac_try='test -s conftest$ac_exeext'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; }; then
9077   ac_cv_search_ldexp="none required"
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 fi
9083 rm -f conftest.err conftest.$ac_objext \
9084       conftest$ac_exeext conftest.$ac_ext
9085 if test "$ac_cv_search_ldexp" = no; then
9086   for ac_lib in m; do
9087     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9088     cat >conftest.$ac_ext <<_ACEOF
9089 /* confdefs.h.  */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h.  */
9094
9095 /* Override any gcc2 internal prototype to avoid an error.  */
9096 #ifdef __cplusplus
9097 extern "C"
9098 #endif
9099 /* We use char because int might match the return type of a gcc2
9100    builtin and then its argument prototype would still apply.  */
9101 char ldexp ();
9102 int
9103 main ()
9104 {
9105 ldexp ();
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112   (eval $ac_link) 2>conftest.er1
9113   ac_status=$?
9114   grep -v '^ *+' conftest.er1 >conftest.err
9115   rm -f conftest.er1
9116   cat conftest.err >&5
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); } &&
9119          { ac_try='test -z "$ac_c_werror_flag"
9120                          || test ! -s conftest.err'
9121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122   (eval $ac_try) 2>&5
9123   ac_status=$?
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); }; } &&
9126          { ac_try='test -s conftest$ac_exeext'
9127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128   (eval $ac_try) 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); }; }; then
9132   ac_cv_search_ldexp="-l$ac_lib"
9133 break
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 fi
9139 rm -f conftest.err conftest.$ac_objext \
9140       conftest$ac_exeext conftest.$ac_ext
9141   done
9142 fi
9143 LIBS=$ac_func_search_save_LIBS
9144 fi
9145 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9146 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9147 if test "$ac_cv_search_ldexp" != no; then
9148   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9149
9150 fi
9151
9152 LDEXP_LIB="$LIBS"
9153 LIBS="$save_LIBS"
9154
9155
9156 # Use <inttypes.h> only if it exists,
9157 # doesn't clash with <sys/types.h>, and declares intmax_t.
9158 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9159 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9160 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9161   echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163   cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h.  */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h.  */
9169 #include <sys/types.h>
9170 #include <inttypes.h>
9171 int
9172 main ()
9173 {
9174 intmax_t i = -1;
9175   ;
9176   return 0;
9177 }
9178 _ACEOF
9179 rm -f conftest.$ac_objext
9180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9181   (eval $ac_compile) 2>conftest.er1
9182   ac_status=$?
9183   grep -v '^ *+' conftest.er1 >conftest.err
9184   rm -f conftest.er1
9185   cat conftest.err >&5
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); } &&
9188          { ac_try='test -z "$ac_c_werror_flag"
9189                          || test ! -s conftest.err'
9190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191   (eval $ac_try) 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); }; } &&
9195          { ac_try='test -s conftest.$ac_objext'
9196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197   (eval $ac_try) 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); }; }; then
9201   gcc_cv_header_inttypes_h=yes
9202 else
9203   echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9205
9206 gcc_cv_header_inttypes_h=no
9207 fi
9208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9209 fi
9210
9211 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9212 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9213 if test $gcc_cv_header_inttypes_h = yes; then
9214
9215 cat >>confdefs.h <<\_ACEOF
9216 #define HAVE_INTTYPES_H 1
9217 _ACEOF
9218
9219 fi
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9259         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9260         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9261         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
9262 do
9263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9264 echo "$as_me:$LINENO: checking for $ac_func" >&5
9265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9266 if eval "test \"\${$as_ac_var+set}\" = set"; then
9267   echo $ECHO_N "(cached) $ECHO_C" >&6
9268 else
9269   cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h.  */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h.  */
9275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9277 #define $ac_func innocuous_$ac_func
9278
9279 /* System header to define __stub macros and hopefully few prototypes,
9280     which can conflict with char $ac_func (); below.
9281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9282     <limits.h> exists even on freestanding compilers.  */
9283
9284 #ifdef __STDC__
9285 # include <limits.h>
9286 #else
9287 # include <assert.h>
9288 #endif
9289
9290 #undef $ac_func
9291
9292 /* Override any gcc2 internal prototype to avoid an error.  */
9293 #ifdef __cplusplus
9294 extern "C"
9295 {
9296 #endif
9297 /* We use char because int might match the return type of a gcc2
9298    builtin and then its argument prototype would still apply.  */
9299 char $ac_func ();
9300 /* The GNU C library defines this for functions which it implements
9301     to always fail with ENOSYS.  Some functions are actually named
9302     something starting with __ and the normal name is an alias.  */
9303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9304 choke me
9305 #else
9306 char (*f) () = $ac_func;
9307 #endif
9308 #ifdef __cplusplus
9309 }
9310 #endif
9311
9312 int
9313 main ()
9314 {
9315 return f != $ac_func;
9316   ;
9317   return 0;
9318 }
9319 _ACEOF
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322   (eval $ac_link) 2>conftest.er1
9323   ac_status=$?
9324   grep -v '^ *+' conftest.er1 >conftest.err
9325   rm -f conftest.er1
9326   cat conftest.err >&5
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); } &&
9329          { ac_try='test -z "$ac_c_werror_flag"
9330                          || test ! -s conftest.err'
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); }; } &&
9336          { ac_try='test -s conftest$ac_exeext'
9337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338   (eval $ac_try) 2>&5
9339   ac_status=$?
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); }; }; then
9342   eval "$as_ac_var=yes"
9343 else
9344   echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9346
9347 eval "$as_ac_var=no"
9348 fi
9349 rm -f conftest.err conftest.$ac_objext \
9350       conftest$ac_exeext conftest.$ac_ext
9351 fi
9352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9354 if test `eval echo '${'$as_ac_var'}'` = yes; then
9355   cat >>confdefs.h <<_ACEOF
9356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9357 _ACEOF
9358
9359 fi
9360 done
9361
9362
9363 if test x$ac_cv_func_mbstowcs = xyes; then
9364   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9365 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9366 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9367   echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369       if test "$cross_compiling" = yes; then
9370   gcc_cv_func_mbstowcs_works=yes
9371 else
9372   cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h.  */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h.  */
9378 #include <stdlib.h>
9379 int main()
9380 {
9381   mbstowcs(0, "", 0);
9382   return 0;
9383 }
9384 _ACEOF
9385 rm -f conftest$ac_exeext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387   (eval $ac_link) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392   (eval $ac_try) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); }; }; then
9396   gcc_cv_func_mbstowcs_works=yes
9397 else
9398   echo "$as_me: program exited with status $ac_status" >&5
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9401
9402 ( exit $ac_status )
9403 gcc_cv_func_mbstowcs_works=no
9404 fi
9405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9406 fi
9407 fi
9408 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9409 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9410   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9411
9412 cat >>confdefs.h <<\_ACEOF
9413 #define HAVE_WORKING_MBSTOWCS 1
9414 _ACEOF
9415
9416   fi
9417 fi
9418
9419 echo "$as_me:$LINENO: checking for ssize_t" >&5
9420 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9421 if test "${ac_cv_type_ssize_t+set}" = set; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   cat >conftest.$ac_ext <<_ACEOF
9425 /* confdefs.h.  */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h.  */
9430 $ac_includes_default
9431 int
9432 main ()
9433 {
9434 if ((ssize_t *) 0)
9435   return 0;
9436 if (sizeof (ssize_t))
9437   return 0;
9438   ;
9439   return 0;
9440 }
9441 _ACEOF
9442 rm -f conftest.$ac_objext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9444   (eval $ac_compile) 2>conftest.er1
9445   ac_status=$?
9446   grep -v '^ *+' conftest.er1 >conftest.err
9447   rm -f conftest.er1
9448   cat conftest.err >&5
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); } &&
9451          { ac_try='test -z "$ac_c_werror_flag"
9452                          || test ! -s conftest.err'
9453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454   (eval $ac_try) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; } &&
9458          { ac_try='test -s conftest.$ac_objext'
9459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460   (eval $ac_try) 2>&5
9461   ac_status=$?
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); }; }; then
9464   ac_cv_type_ssize_t=yes
9465 else
9466   echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9468
9469 ac_cv_type_ssize_t=no
9470 fi
9471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9472 fi
9473 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9474 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9475 if test $ac_cv_type_ssize_t = yes; then
9476   :
9477 else
9478
9479 cat >>confdefs.h <<_ACEOF
9480 #define ssize_t int
9481 _ACEOF
9482
9483 fi
9484
9485
9486 # Try to determine the array type of the second argument of getgroups
9487 # for the target system (int or gid_t).
9488 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9489 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9490 if test "${ac_cv_type_uid_t+set}" = set; then
9491   echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493   cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h.  */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h.  */
9499 #include <sys/types.h>
9500
9501 _ACEOF
9502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9503   $EGREP "uid_t" >/dev/null 2>&1; then
9504   ac_cv_type_uid_t=yes
9505 else
9506   ac_cv_type_uid_t=no
9507 fi
9508 rm -f conftest*
9509
9510 fi
9511 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9512 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9513 if test $ac_cv_type_uid_t = no; then
9514
9515 cat >>confdefs.h <<\_ACEOF
9516 #define uid_t int
9517 _ACEOF
9518
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define gid_t int
9522 _ACEOF
9523
9524 fi
9525
9526 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9527 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9528 if test "${ac_cv_type_getgroups+set}" = set; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531   if test "$cross_compiling" = yes; then
9532   ac_cv_type_getgroups=cross
9533 else
9534   cat >conftest.$ac_ext <<_ACEOF
9535 /* confdefs.h.  */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h.  */
9540 /* Thanks to Mike Rendell for this test.  */
9541 #include <sys/types.h>
9542 #define NGID 256
9543 #undef MAX
9544 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9545
9546 int
9547 main ()
9548 {
9549   gid_t gidset[NGID];
9550   int i, n;
9551   union { gid_t gval; long lval; }  val;
9552
9553   val.lval = -1;
9554   for (i = 0; i < NGID; i++)
9555     gidset[i] = val.gval;
9556   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9557                  gidset);
9558   /* Exit non-zero if getgroups seems to require an array of ints.  This
9559      happens when gid_t is short but getgroups modifies an array of ints.  */
9560   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9561 }
9562 _ACEOF
9563 rm -f conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565   (eval $ac_link) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570   (eval $ac_try) 2>&5
9571   ac_status=$?
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); }; }; then
9574   ac_cv_type_getgroups=gid_t
9575 else
9576   echo "$as_me: program exited with status $ac_status" >&5
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9579
9580 ( exit $ac_status )
9581 ac_cv_type_getgroups=int
9582 fi
9583 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9584 fi
9585 if test $ac_cv_type_getgroups = cross; then
9586         cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h.  */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h.  */
9592 #include <unistd.h>
9593
9594 _ACEOF
9595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9596   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9597   ac_cv_type_getgroups=gid_t
9598 else
9599   ac_cv_type_getgroups=int
9600 fi
9601 rm -f conftest*
9602
9603 fi
9604 fi
9605 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9606 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9607
9608 cat >>confdefs.h <<_ACEOF
9609 #define GETGROUPS_T $ac_cv_type_getgroups
9610 _ACEOF
9611
9612
9613 if test "${target}" = "${build}"; then
9614   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9615 else
9616   case "${target}" in
9617         # This condition may need some tweaking.  It should include all
9618         # targets where the array type of the second argument of getgroups
9619         # is int and the type of gid_t is not equivalent to int.
9620         *-*-sunos* | *-*-ultrix*)
9621                 TARGET_GETGROUPS_T=int
9622                 ;;
9623         *)
9624                 TARGET_GETGROUPS_T=gid_t
9625                 ;;
9626   esac
9627 fi
9628
9629
9630
9631 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9632 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9633 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9634   echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636   cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h.  */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h.  */
9642 #include <sys/mman.h>
9643 _ACEOF
9644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9646   ac_status=$?
9647   grep -v '^ *+' conftest.er1 >conftest.err
9648   rm -f conftest.er1
9649   cat conftest.err >&5
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } >/dev/null; then
9652   if test -s conftest.err; then
9653     ac_cpp_err=$ac_c_preproc_warn_flag
9654     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9655   else
9656     ac_cpp_err=
9657   fi
9658 else
9659   ac_cpp_err=yes
9660 fi
9661 if test -z "$ac_cpp_err"; then
9662   ac_cv_header_sys_mman_h=yes
9663 else
9664   echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9666
9667   ac_cv_header_sys_mman_h=no
9668 fi
9669 rm -f conftest.err conftest.$ac_ext
9670 fi
9671 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9672 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9673 if test $ac_cv_header_sys_mman_h = yes; then
9674   gcc_header_sys_mman_h=yes
9675 else
9676   gcc_header_sys_mman_h=no
9677 fi
9678
9679 echo "$as_me:$LINENO: checking for mmap" >&5
9680 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9681 if test "${ac_cv_func_mmap+set}" = set; then
9682   echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684   cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9692 #define mmap innocuous_mmap
9693
9694 /* System header to define __stub macros and hopefully few prototypes,
9695     which can conflict with char mmap (); below.
9696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9697     <limits.h> exists even on freestanding compilers.  */
9698
9699 #ifdef __STDC__
9700 # include <limits.h>
9701 #else
9702 # include <assert.h>
9703 #endif
9704
9705 #undef mmap
9706
9707 /* Override any gcc2 internal prototype to avoid an error.  */
9708 #ifdef __cplusplus
9709 extern "C"
9710 {
9711 #endif
9712 /* We use char because int might match the return type of a gcc2
9713    builtin and then its argument prototype would still apply.  */
9714 char mmap ();
9715 /* The GNU C library defines this for functions which it implements
9716     to always fail with ENOSYS.  Some functions are actually named
9717     something starting with __ and the normal name is an alias.  */
9718 #if defined (__stub_mmap) || defined (__stub___mmap)
9719 choke me
9720 #else
9721 char (*f) () = mmap;
9722 #endif
9723 #ifdef __cplusplus
9724 }
9725 #endif
9726
9727 int
9728 main ()
9729 {
9730 return f != mmap;
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737   (eval $ac_link) 2>conftest.er1
9738   ac_status=$?
9739   grep -v '^ *+' conftest.er1 >conftest.err
9740   rm -f conftest.er1
9741   cat conftest.err >&5
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -z "$ac_c_werror_flag"
9745                          || test ! -s conftest.err'
9746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747   (eval $ac_try) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; } &&
9751          { ac_try='test -s conftest$ac_exeext'
9752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753   (eval $ac_try) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; }; then
9757   ac_cv_func_mmap=yes
9758 else
9759   echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762 ac_cv_func_mmap=no
9763 fi
9764 rm -f conftest.err conftest.$ac_objext \
9765       conftest$ac_exeext conftest.$ac_ext
9766 fi
9767 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9768 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9769 if test $ac_cv_func_mmap = yes; then
9770   gcc_func_mmap=yes
9771 else
9772   gcc_func_mmap=no
9773 fi
9774
9775 if test "$gcc_header_sys_mman_h" != yes \
9776  || test "$gcc_func_mmap" != yes; then
9777    gcc_cv_func_mmap_file=no
9778    gcc_cv_func_mmap_dev_zero=no
9779    gcc_cv_func_mmap_anon=no
9780 else
9781    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9782 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9783 if test "${gcc_cv_func_mmap_file+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   # Add a system to this blacklist if
9787    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9788    # memory area containing the same data that you'd get if you applied
9789    # read() to the same fd.  The only system known to have a problem here
9790    # is VMS, where text files have record structure.
9791    case "$host_os" in
9792      vms* | ultrix*)
9793         gcc_cv_func_mmap_file=no ;;
9794      *)
9795         gcc_cv_func_mmap_file=yes;;
9796    esac
9797 fi
9798 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9799 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9800    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9801 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9802 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9803   echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805   # Add a system to this blacklist if it has mmap() but /dev/zero
9806    # does not exist, or if mmapping /dev/zero does not give anonymous
9807    # zeroed pages with both the following properties:
9808    # 1. If you map N consecutive pages in with one call, and then
9809    #    unmap any subset of those pages, the pages that were not
9810    #    explicitly unmapped remain accessible.
9811    # 2. If you map two adjacent blocks of memory and then unmap them
9812    #    both at once, they must both go away.
9813    # Systems known to be in this category are Windows (all variants),
9814    # VMS, and Darwin.
9815    case "$host_os" in
9816      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9817         gcc_cv_func_mmap_dev_zero=no ;;
9818      *)
9819         gcc_cv_func_mmap_dev_zero=yes;;
9820    esac
9821 fi
9822 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9823 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9824
9825    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9826    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9827 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9828 if test "${gcc_cv_decl_map_anon+set}" = set; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837 #include <sys/types.h>
9838 #include <sys/mman.h>
9839 #include <unistd.h>
9840
9841 #ifndef MAP_ANONYMOUS
9842 #define MAP_ANONYMOUS MAP_ANON
9843 #endif
9844
9845 int
9846 main ()
9847 {
9848 int n = MAP_ANONYMOUS;
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855   (eval $ac_compile) 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } &&
9862          { ac_try='test -z "$ac_c_werror_flag"
9863                          || test ! -s conftest.err'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; } &&
9869          { ac_try='test -s conftest.$ac_objext'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; }; then
9875   gcc_cv_decl_map_anon=yes
9876 else
9877   echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 gcc_cv_decl_map_anon=no
9881 fi
9882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9883 fi
9884 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9885 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9886
9887    if test $gcc_cv_decl_map_anon = no; then
9888      gcc_cv_func_mmap_anon=no
9889    else
9890      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9891 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9892 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9893   echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9896    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9897    # doesn't give anonymous zeroed pages with the same properties listed
9898    # above for use of /dev/zero.
9899    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9900    case "$host_os" in
9901      vms* | cygwin* | pe | mingw* | sco* | udk* )
9902         gcc_cv_func_mmap_anon=no ;;
9903      *)
9904         gcc_cv_func_mmap_anon=yes;;
9905    esac
9906 fi
9907 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9908 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9909    fi
9910 fi
9911
9912 if test $gcc_cv_func_mmap_file = yes; then
9913
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_MMAP_FILE 1
9916 _ACEOF
9917
9918 fi
9919 if test $gcc_cv_func_mmap_dev_zero = yes; then
9920
9921 cat >>confdefs.h <<\_ACEOF
9922 #define HAVE_MMAP_DEV_ZERO 1
9923 _ACEOF
9924
9925 fi
9926 if test $gcc_cv_func_mmap_anon = yes; then
9927
9928 cat >>confdefs.h <<\_ACEOF
9929 #define HAVE_MMAP_ANON 1
9930 _ACEOF
9931
9932 fi
9933
9934
9935 case "${host}" in
9936 *-*-*vms*)
9937   # Under VMS, vfork works very differently than on Unix. The standard test
9938   # won't work, and it isn't easily adaptable. It makes more sense to
9939   # just force it.
9940   ac_cv_func_vfork_works=yes
9941   ;;
9942 esac
9943 echo "$as_me:$LINENO: checking for pid_t" >&5
9944 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9945 if test "${ac_cv_type_pid_t+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948   cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954 $ac_includes_default
9955 int
9956 main ()
9957 {
9958 if ((pid_t *) 0)
9959   return 0;
9960 if (sizeof (pid_t))
9961   return 0;
9962   ;
9963   return 0;
9964 }
9965 _ACEOF
9966 rm -f conftest.$ac_objext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9968   (eval $ac_compile) 2>conftest.er1
9969   ac_status=$?
9970   grep -v '^ *+' conftest.er1 >conftest.err
9971   rm -f conftest.er1
9972   cat conftest.err >&5
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); } &&
9975          { ac_try='test -z "$ac_c_werror_flag"
9976                          || test ! -s conftest.err'
9977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978   (eval $ac_try) 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; } &&
9982          { ac_try='test -s conftest.$ac_objext'
9983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984   (eval $ac_try) 2>&5
9985   ac_status=$?
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); }; }; then
9988   ac_cv_type_pid_t=yes
9989 else
9990   echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9992
9993 ac_cv_type_pid_t=no
9994 fi
9995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9996 fi
9997 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9998 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9999 if test $ac_cv_type_pid_t = yes; then
10000   :
10001 else
10002
10003 cat >>confdefs.h <<_ACEOF
10004 #define pid_t int
10005 _ACEOF
10006
10007 fi
10008
10009
10010
10011 for ac_header in unistd.h vfork.h
10012 do
10013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10014 echo "$as_me:$LINENO: checking for $ac_header" >&5
10015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h.  */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h.  */
10025 #include <$ac_header>
10026 _ACEOF
10027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10029   ac_status=$?
10030   grep -v '^ *+' conftest.er1 >conftest.err
10031   rm -f conftest.er1
10032   cat conftest.err >&5
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); } >/dev/null; then
10035   if test -s conftest.err; then
10036     ac_cpp_err=$ac_c_preproc_warn_flag
10037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10038   else
10039     ac_cpp_err=
10040   fi
10041 else
10042   ac_cpp_err=yes
10043 fi
10044 if test -z "$ac_cpp_err"; then
10045   eval "$as_ac_Header=yes"
10046 else
10047   echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050   eval "$as_ac_Header=no"
10051 fi
10052 rm -f conftest.err conftest.$ac_ext
10053 fi
10054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10057   cat >>confdefs.h <<_ACEOF
10058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10059 _ACEOF
10060
10061 fi
10062 done
10063
10064
10065
10066 for ac_func in fork vfork
10067 do
10068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10069 echo "$as_me:$LINENO: checking for $ac_func" >&5
10070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10071 if eval "test \"\${$as_ac_var+set}\" = set"; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074   cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h.  */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h.  */
10080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10082 #define $ac_func innocuous_$ac_func
10083
10084 /* System header to define __stub macros and hopefully few prototypes,
10085     which can conflict with char $ac_func (); below.
10086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10087     <limits.h> exists even on freestanding compilers.  */
10088
10089 #ifdef __STDC__
10090 # include <limits.h>
10091 #else
10092 # include <assert.h>
10093 #endif
10094
10095 #undef $ac_func
10096
10097 /* Override any gcc2 internal prototype to avoid an error.  */
10098 #ifdef __cplusplus
10099 extern "C"
10100 {
10101 #endif
10102 /* We use char because int might match the return type of a gcc2
10103    builtin and then its argument prototype would still apply.  */
10104 char $ac_func ();
10105 /* The GNU C library defines this for functions which it implements
10106     to always fail with ENOSYS.  Some functions are actually named
10107     something starting with __ and the normal name is an alias.  */
10108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10109 choke me
10110 #else
10111 char (*f) () = $ac_func;
10112 #endif
10113 #ifdef __cplusplus
10114 }
10115 #endif
10116
10117 int
10118 main ()
10119 {
10120 return f != $ac_func;
10121   ;
10122   return 0;
10123 }
10124 _ACEOF
10125 rm -f conftest.$ac_objext conftest$ac_exeext
10126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10127   (eval $ac_link) 2>conftest.er1
10128   ac_status=$?
10129   grep -v '^ *+' conftest.er1 >conftest.err
10130   rm -f conftest.er1
10131   cat conftest.err >&5
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); } &&
10134          { ac_try='test -z "$ac_c_werror_flag"
10135                          || test ! -s conftest.err'
10136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137   (eval $ac_try) 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; } &&
10141          { ac_try='test -s conftest$ac_exeext'
10142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143   (eval $ac_try) 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; }; then
10147   eval "$as_ac_var=yes"
10148 else
10149   echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10151
10152 eval "$as_ac_var=no"
10153 fi
10154 rm -f conftest.err conftest.$ac_objext \
10155       conftest$ac_exeext conftest.$ac_ext
10156 fi
10157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10159 if test `eval echo '${'$as_ac_var'}'` = yes; then
10160   cat >>confdefs.h <<_ACEOF
10161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10162 _ACEOF
10163
10164 fi
10165 done
10166
10167 if test "x$ac_cv_func_fork" = xyes; then
10168   echo "$as_me:$LINENO: checking for working fork" >&5
10169 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10170 if test "${ac_cv_func_fork_works+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   if test "$cross_compiling" = yes; then
10174   ac_cv_func_fork_works=cross
10175 else
10176   cat >conftest.$ac_ext <<_ACEOF
10177 /* By Ruediger Kuhlmann. */
10178       #include <sys/types.h>
10179       #if HAVE_UNISTD_H
10180       # include <unistd.h>
10181       #endif
10182       /* Some systems only have a dummy stub for fork() */
10183       int main ()
10184       {
10185         if (fork() < 0)
10186           exit (1);
10187         exit (0);
10188       }
10189 _ACEOF
10190 rm -f conftest$ac_exeext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192   (eval $ac_link) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197   (eval $ac_try) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; }; then
10201   ac_cv_func_fork_works=yes
10202 else
10203   echo "$as_me: program exited with status $ac_status" >&5
10204 echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 ( exit $ac_status )
10208 ac_cv_func_fork_works=no
10209 fi
10210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10211 fi
10212 fi
10213 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10214 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10215
10216 else
10217   ac_cv_func_fork_works=$ac_cv_func_fork
10218 fi
10219 if test "x$ac_cv_func_fork_works" = xcross; then
10220   case $host in
10221     *-*-amigaos* | *-*-msdosdjgpp*)
10222       # Override, as these systems have only a dummy fork() stub
10223       ac_cv_func_fork_works=no
10224       ;;
10225     *)
10226       ac_cv_func_fork_works=yes
10227       ;;
10228   esac
10229   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10230 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10231 fi
10232 ac_cv_func_vfork_works=$ac_cv_func_vfork
10233 if test "x$ac_cv_func_vfork" = xyes; then
10234   echo "$as_me:$LINENO: checking for working vfork" >&5
10235 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10236 if test "${ac_cv_func_vfork_works+set}" = set; then
10237   echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239   if test "$cross_compiling" = yes; then
10240   ac_cv_func_vfork_works=cross
10241 else
10242   cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248 /* Thanks to Paul Eggert for this test.  */
10249 #include <stdio.h>
10250 #include <stdlib.h>
10251 #include <sys/types.h>
10252 #include <sys/stat.h>
10253 #include <sys/wait.h>
10254 #if HAVE_UNISTD_H
10255 # include <unistd.h>
10256 #endif
10257 #if HAVE_VFORK_H
10258 # include <vfork.h>
10259 #endif
10260 /* On some sparc systems, changes by the child to local and incoming
10261    argument registers are propagated back to the parent.  The compiler
10262    is told about this with #include <vfork.h>, but some compilers
10263    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10264    static variable whose address is put into a register that is
10265    clobbered by the vfork.  */
10266 static void
10267 #ifdef __cplusplus
10268 sparc_address_test (int arg)
10269 # else
10270 sparc_address_test (arg) int arg;
10271 #endif
10272 {
10273   static pid_t child;
10274   if (!child) {
10275     child = vfork ();
10276     if (child < 0) {
10277       perror ("vfork");
10278       _exit(2);
10279     }
10280     if (!child) {
10281       arg = getpid();
10282       write(-1, "", 0);
10283       _exit (arg);
10284     }
10285   }
10286 }
10287
10288 int
10289 main ()
10290 {
10291   pid_t parent = getpid ();
10292   pid_t child;
10293
10294   sparc_address_test (0);
10295
10296   child = vfork ();
10297
10298   if (child == 0) {
10299     /* Here is another test for sparc vfork register problems.  This
10300        test uses lots of local variables, at least as many local
10301        variables as main has allocated so far including compiler
10302        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10303        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10304        reuse the register of parent for one of the local variables,
10305        since it will think that parent can't possibly be used any more
10306        in this routine.  Assigning to the local variable will thus
10307        munge parent in the parent process.  */
10308     pid_t
10309       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10310       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10311     /* Convince the compiler that p..p7 are live; otherwise, it might
10312        use the same hardware register for all 8 local variables.  */
10313     if (p != p1 || p != p2 || p != p3 || p != p4
10314         || p != p5 || p != p6 || p != p7)
10315       _exit(1);
10316
10317     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10318        from child file descriptors.  If the child closes a descriptor
10319        before it execs or exits, this munges the parent's descriptor
10320        as well.  Test for this by closing stdout in the child.  */
10321     _exit(close(fileno(stdout)) != 0);
10322   } else {
10323     int status;
10324     struct stat st;
10325
10326     while (wait(&status) != child)
10327       ;
10328     exit(
10329          /* Was there some problem with vforking?  */
10330          child < 0
10331
10332          /* Did the child fail?  (This shouldn't happen.)  */
10333          || status
10334
10335          /* Did the vfork/compiler bug occur?  */
10336          || parent != getpid()
10337
10338          /* Did the file descriptor bug occur?  */
10339          || fstat(fileno(stdout), &st) != 0
10340          );
10341   }
10342 }
10343 _ACEOF
10344 rm -f conftest$ac_exeext
10345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346   (eval $ac_link) 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351   (eval $ac_try) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); }; }; then
10355   ac_cv_func_vfork_works=yes
10356 else
10357   echo "$as_me: program exited with status $ac_status" >&5
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361 ( exit $ac_status )
10362 ac_cv_func_vfork_works=no
10363 fi
10364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10365 fi
10366 fi
10367 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10368 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10369
10370 fi;
10371 if test "x$ac_cv_func_fork_works" = xcross; then
10372   ac_cv_func_vfork_works=$ac_cv_func_vfork
10373   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10374 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10375 fi
10376
10377 if test "x$ac_cv_func_vfork_works" = xyes; then
10378
10379 cat >>confdefs.h <<\_ACEOF
10380 #define HAVE_WORKING_VFORK 1
10381 _ACEOF
10382
10383 else
10384
10385 cat >>confdefs.h <<\_ACEOF
10386 #define vfork fork
10387 _ACEOF
10388
10389 fi
10390 if test "x$ac_cv_func_fork_works" = xyes; then
10391
10392 cat >>confdefs.h <<\_ACEOF
10393 #define HAVE_WORKING_FORK 1
10394 _ACEOF
10395
10396 fi
10397
10398
10399
10400       if test "X$prefix" = "XNONE"; then
10401     acl_final_prefix="$ac_default_prefix"
10402   else
10403     acl_final_prefix="$prefix"
10404   fi
10405   if test "X$exec_prefix" = "XNONE"; then
10406     acl_final_exec_prefix='${prefix}'
10407   else
10408     acl_final_exec_prefix="$exec_prefix"
10409   fi
10410   acl_save_prefix="$prefix"
10411   prefix="$acl_final_prefix"
10412   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10413   prefix="$acl_save_prefix"
10414
10415
10416 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10417 if test "${with_gnu_ld+set}" = set; then
10418   withval="$with_gnu_ld"
10419   test "$withval" = no || with_gnu_ld=yes
10420 else
10421   with_gnu_ld=no
10422 fi;
10423 # Prepare PATH_SEPARATOR.
10424 # The user is always right.
10425 if test "${PATH_SEPARATOR+set}" != set; then
10426   echo "#! /bin/sh" >conf$$.sh
10427   echo  "exit 0"   >>conf$$.sh
10428   chmod +x conf$$.sh
10429   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10430     PATH_SEPARATOR=';'
10431   else
10432     PATH_SEPARATOR=:
10433   fi
10434   rm -f conf$$.sh
10435 fi
10436 ac_prog=ld
10437 if test "$GCC" = yes; then
10438   # Check if gcc -print-prog-name=ld gives a path.
10439   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10440 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10441   case $host in
10442   *-*-mingw*)
10443     # gcc leaves a trailing carriage return which upsets mingw
10444     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10445   *)
10446     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10447   esac
10448   case $ac_prog in
10449     # Accept absolute paths.
10450     [\\/]* | [A-Za-z]:[\\/]*)
10451       re_direlt='/[^/][^/]*/\.\./'
10452       # Canonicalize the path of ld
10453       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10454       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10455         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10456       done
10457       test -z "$LD" && LD="$ac_prog"
10458       ;;
10459   "")
10460     # If it fails, then pretend we aren't using GCC.
10461     ac_prog=ld
10462     ;;
10463   *)
10464     # If it is relative, then search for the first ld in PATH.
10465     with_gnu_ld=unknown
10466     ;;
10467   esac
10468 elif test "$with_gnu_ld" = yes; then
10469   echo "$as_me:$LINENO: checking for GNU ld" >&5
10470 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10471 else
10472   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10473 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10474 fi
10475 if test "${acl_cv_path_LD+set}" = set; then
10476   echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478   if test -z "$LD"; then
10479   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10480   for ac_dir in $PATH; do
10481     test -z "$ac_dir" && ac_dir=.
10482     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10483       acl_cv_path_LD="$ac_dir/$ac_prog"
10484       # Check to see if the program is GNU ld.  I'd rather use --version,
10485       # but apparently some GNU ld's only accept -v.
10486       # Break only if it was the GNU/non-GNU ld that we prefer.
10487       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10488         test "$with_gnu_ld" != no && break
10489       else
10490         test "$with_gnu_ld" != yes && break
10491       fi
10492     fi
10493   done
10494   IFS="$ac_save_ifs"
10495 else
10496   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10497 fi
10498 fi
10499
10500 LD="$acl_cv_path_LD"
10501 if test -n "$LD"; then
10502   echo "$as_me:$LINENO: result: $LD" >&5
10503 echo "${ECHO_T}$LD" >&6
10504 else
10505   echo "$as_me:$LINENO: result: no" >&5
10506 echo "${ECHO_T}no" >&6
10507 fi
10508 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10509 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10510    { (exit 1); exit 1; }; }
10511 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10512 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10513 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10514   echo $ECHO_N "(cached) $ECHO_C" >&6
10515 else
10516   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10517 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10518   acl_cv_prog_gnu_ld=yes
10519 else
10520   acl_cv_prog_gnu_ld=no
10521 fi
10522 fi
10523 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10524 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10525 with_gnu_ld=$acl_cv_prog_gnu_ld
10526
10527
10528
10529                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10530 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10531 if test "${acl_cv_rpath+set}" = set; then
10532   echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534
10535     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10536     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10537     . ./conftest.sh
10538     rm -f ./conftest.sh
10539     acl_cv_rpath=done
10540
10541 fi
10542 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10543 echo "${ECHO_T}$acl_cv_rpath" >&6
10544   wl="$acl_cv_wl"
10545   libext="$acl_cv_libext"
10546   shlibext="$acl_cv_shlibext"
10547   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10548   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10549   hardcode_direct="$acl_cv_hardcode_direct"
10550   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10551     # Check whether --enable-rpath or --disable-rpath was given.
10552 if test "${enable_rpath+set}" = set; then
10553   enableval="$enable_rpath"
10554   :
10555 else
10556   enable_rpath=yes
10557 fi;
10558
10559
10560
10561
10562
10563
10564
10565     use_additional=yes
10566
10567   acl_save_prefix="$prefix"
10568   prefix="$acl_final_prefix"
10569   acl_save_exec_prefix="$exec_prefix"
10570   exec_prefix="$acl_final_exec_prefix"
10571
10572     eval additional_includedir=\"$includedir\"
10573     eval additional_libdir=\"$libdir\"
10574
10575   exec_prefix="$acl_save_exec_prefix"
10576   prefix="$acl_save_prefix"
10577
10578
10579 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10580 if test "${with_libiconv_prefix+set}" = set; then
10581   withval="$with_libiconv_prefix"
10582
10583     if test "X$withval" = "Xno"; then
10584       use_additional=no
10585     else
10586       if test "X$withval" = "X"; then
10587
10588   acl_save_prefix="$prefix"
10589   prefix="$acl_final_prefix"
10590   acl_save_exec_prefix="$exec_prefix"
10591   exec_prefix="$acl_final_exec_prefix"
10592
10593           eval additional_includedir=\"$includedir\"
10594           eval additional_libdir=\"$libdir\"
10595
10596   exec_prefix="$acl_save_exec_prefix"
10597   prefix="$acl_save_prefix"
10598
10599       else
10600         additional_includedir="$withval/include"
10601         additional_libdir="$withval/lib"
10602       fi
10603     fi
10604
10605 fi;
10606       LIBICONV=
10607   LTLIBICONV=
10608   INCICONV=
10609   rpathdirs=
10610   ltrpathdirs=
10611   names_already_handled=
10612   names_next_round='iconv '
10613   while test -n "$names_next_round"; do
10614     names_this_round="$names_next_round"
10615     names_next_round=
10616     for name in $names_this_round; do
10617       already_handled=
10618       for n in $names_already_handled; do
10619         if test "$n" = "$name"; then
10620           already_handled=yes
10621           break
10622         fi
10623       done
10624       if test -z "$already_handled"; then
10625         names_already_handled="$names_already_handled $name"
10626                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10627         eval value=\"\$HAVE_LIB$uppername\"
10628         if test -n "$value"; then
10629           if test "$value" = yes; then
10630             eval value=\"\$LIB$uppername\"
10631             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10632             eval value=\"\$LTLIB$uppername\"
10633             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10634           else
10635                                     :
10636           fi
10637         else
10638                               found_dir=
10639           found_la=
10640           found_so=
10641           found_a=
10642           if test $use_additional = yes; then
10643             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10644               found_dir="$additional_libdir"
10645               found_so="$additional_libdir/lib$name.$shlibext"
10646               if test -f "$additional_libdir/lib$name.la"; then
10647                 found_la="$additional_libdir/lib$name.la"
10648               fi
10649             else
10650               if test -f "$additional_libdir/lib$name.$libext"; then
10651                 found_dir="$additional_libdir"
10652                 found_a="$additional_libdir/lib$name.$libext"
10653                 if test -f "$additional_libdir/lib$name.la"; then
10654                   found_la="$additional_libdir/lib$name.la"
10655                 fi
10656               fi
10657             fi
10658           fi
10659           if test "X$found_dir" = "X"; then
10660             for x in $LDFLAGS $LTLIBICONV; do
10661
10662   acl_save_prefix="$prefix"
10663   prefix="$acl_final_prefix"
10664   acl_save_exec_prefix="$exec_prefix"
10665   exec_prefix="$acl_final_exec_prefix"
10666   eval x=\"$x\"
10667   exec_prefix="$acl_save_exec_prefix"
10668   prefix="$acl_save_prefix"
10669
10670               case "$x" in
10671                 -L*)
10672                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10673                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10674                     found_dir="$dir"
10675                     found_so="$dir/lib$name.$shlibext"
10676                     if test -f "$dir/lib$name.la"; then
10677                       found_la="$dir/lib$name.la"
10678                     fi
10679                   else
10680                     if test -f "$dir/lib$name.$libext"; then
10681                       found_dir="$dir"
10682                       found_a="$dir/lib$name.$libext"
10683                       if test -f "$dir/lib$name.la"; then
10684                         found_la="$dir/lib$name.la"
10685                       fi
10686                     fi
10687                   fi
10688                   ;;
10689               esac
10690               if test "X$found_dir" != "X"; then
10691                 break
10692               fi
10693             done
10694           fi
10695           if test "X$found_dir" != "X"; then
10696                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10697             if test "X$found_so" != "X"; then
10698                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10699                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10700               else
10701                                                                                 haveit=
10702                 for x in $ltrpathdirs; do
10703                   if test "X$x" = "X$found_dir"; then
10704                     haveit=yes
10705                     break
10706                   fi
10707                 done
10708                 if test -z "$haveit"; then
10709                   ltrpathdirs="$ltrpathdirs $found_dir"
10710                 fi
10711                                 if test "$hardcode_direct" = yes; then
10712                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10713                 else
10714                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10715                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10716                                                             haveit=
10717                     for x in $rpathdirs; do
10718                       if test "X$x" = "X$found_dir"; then
10719                         haveit=yes
10720                         break
10721                       fi
10722                     done
10723                     if test -z "$haveit"; then
10724                       rpathdirs="$rpathdirs $found_dir"
10725                     fi
10726                   else
10727                                                                                 haveit=
10728                     for x in $LDFLAGS $LIBICONV; do
10729
10730   acl_save_prefix="$prefix"
10731   prefix="$acl_final_prefix"
10732   acl_save_exec_prefix="$exec_prefix"
10733   exec_prefix="$acl_final_exec_prefix"
10734   eval x=\"$x\"
10735   exec_prefix="$acl_save_exec_prefix"
10736   prefix="$acl_save_prefix"
10737
10738                       if test "X$x" = "X-L$found_dir"; then
10739                         haveit=yes
10740                         break
10741                       fi
10742                     done
10743                     if test -z "$haveit"; then
10744                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10745                     fi
10746                     if test "$hardcode_minus_L" != no; then
10747                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10748                     else
10749                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10750                     fi
10751                   fi
10752                 fi
10753               fi
10754             else
10755               if test "X$found_a" != "X"; then
10756                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10757               else
10758                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10759               fi
10760             fi
10761                         additional_includedir=
10762             case "$found_dir" in
10763               */lib | */lib/)
10764                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10765                 additional_includedir="$basedir/include"
10766                 ;;
10767             esac
10768             if test "X$additional_includedir" != "X"; then
10769                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10770                 haveit=
10771                 if test "X$additional_includedir" = "X/usr/local/include"; then
10772                   if test -n "$GCC"; then
10773                     case $host_os in
10774                       linux*) haveit=yes;;
10775                     esac
10776                   fi
10777                 fi
10778                 if test -z "$haveit"; then
10779                   for x in $CPPFLAGS $INCICONV; do
10780
10781   acl_save_prefix="$prefix"
10782   prefix="$acl_final_prefix"
10783   acl_save_exec_prefix="$exec_prefix"
10784   exec_prefix="$acl_final_exec_prefix"
10785   eval x=\"$x\"
10786   exec_prefix="$acl_save_exec_prefix"
10787   prefix="$acl_save_prefix"
10788
10789                     if test "X$x" = "X-I$additional_includedir"; then
10790                       haveit=yes
10791                       break
10792                     fi
10793                   done
10794                   if test -z "$haveit"; then
10795                     if test -d "$additional_includedir"; then
10796                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10797                     fi
10798                   fi
10799                 fi
10800               fi
10801             fi
10802                         if test -n "$found_la"; then
10803                                                         save_libdir="$libdir"
10804               case "$found_la" in
10805                 */* | *\\*) . "$found_la" ;;
10806                 *) . "./$found_la" ;;
10807               esac
10808               libdir="$save_libdir"
10809                             for dep in $dependency_libs; do
10810                 case "$dep" in
10811                   -L*)
10812                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10813                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10814                       haveit=
10815                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10816                         if test -n "$GCC"; then
10817                           case $host_os in
10818                             linux*) haveit=yes;;
10819                           esac
10820                         fi
10821                       fi
10822                       if test -z "$haveit"; then
10823                         haveit=
10824                         for x in $LDFLAGS $LIBICONV; do
10825
10826   acl_save_prefix="$prefix"
10827   prefix="$acl_final_prefix"
10828   acl_save_exec_prefix="$exec_prefix"
10829   exec_prefix="$acl_final_exec_prefix"
10830   eval x=\"$x\"
10831   exec_prefix="$acl_save_exec_prefix"
10832   prefix="$acl_save_prefix"
10833
10834                           if test "X$x" = "X-L$additional_libdir"; then
10835                             haveit=yes
10836                             break
10837                           fi
10838                         done
10839                         if test -z "$haveit"; then
10840                           if test -d "$additional_libdir"; then
10841                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10842                           fi
10843                         fi
10844                         haveit=
10845                         for x in $LDFLAGS $LTLIBICONV; do
10846
10847   acl_save_prefix="$prefix"
10848   prefix="$acl_final_prefix"
10849   acl_save_exec_prefix="$exec_prefix"
10850   exec_prefix="$acl_final_exec_prefix"
10851   eval x=\"$x\"
10852   exec_prefix="$acl_save_exec_prefix"
10853   prefix="$acl_save_prefix"
10854
10855                           if test "X$x" = "X-L$additional_libdir"; then
10856                             haveit=yes
10857                             break
10858                           fi
10859                         done
10860                         if test -z "$haveit"; then
10861                           if test -d "$additional_libdir"; then
10862                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10863                           fi
10864                         fi
10865                       fi
10866                     fi
10867                     ;;
10868                   -R*)
10869                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10870                     if test "$enable_rpath" != no; then
10871                                                                   haveit=
10872                       for x in $rpathdirs; do
10873                         if test "X$x" = "X$dir"; then
10874                           haveit=yes
10875                           break
10876                         fi
10877                       done
10878                       if test -z "$haveit"; then
10879                         rpathdirs="$rpathdirs $dir"
10880                       fi
10881                                                                   haveit=
10882                       for x in $ltrpathdirs; do
10883                         if test "X$x" = "X$dir"; then
10884                           haveit=yes
10885                           break
10886                         fi
10887                       done
10888                       if test -z "$haveit"; then
10889                         ltrpathdirs="$ltrpathdirs $dir"
10890                       fi
10891                     fi
10892                     ;;
10893                   -l*)
10894                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10895                     ;;
10896                   *.la)
10897                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10898                     ;;
10899                   *)
10900                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10901                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10902                     ;;
10903                 esac
10904               done
10905             fi
10906           else
10907                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10908             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10909           fi
10910         fi
10911       fi
10912     done
10913   done
10914   if test "X$rpathdirs" != "X"; then
10915     if test -n "$hardcode_libdir_separator"; then
10916                         alldirs=
10917       for found_dir in $rpathdirs; do
10918         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10919       done
10920             acl_save_libdir="$libdir"
10921       libdir="$alldirs"
10922       eval flag=\"$hardcode_libdir_flag_spec\"
10923       libdir="$acl_save_libdir"
10924       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10925     else
10926             for found_dir in $rpathdirs; do
10927         acl_save_libdir="$libdir"
10928         libdir="$found_dir"
10929         eval flag=\"$hardcode_libdir_flag_spec\"
10930         libdir="$acl_save_libdir"
10931         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10932       done
10933     fi
10934   fi
10935   if test "X$ltrpathdirs" != "X"; then
10936             for found_dir in $ltrpathdirs; do
10937       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10938     done
10939   fi
10940
10941
10942
10943
10944
10945
10946
10947           am_save_CPPFLAGS="$CPPFLAGS"
10948
10949   for element in $INCICONV; do
10950     haveit=
10951     for x in $CPPFLAGS; do
10952
10953   acl_save_prefix="$prefix"
10954   prefix="$acl_final_prefix"
10955   acl_save_exec_prefix="$exec_prefix"
10956   exec_prefix="$acl_final_exec_prefix"
10957   eval x=\"$x\"
10958   exec_prefix="$acl_save_exec_prefix"
10959   prefix="$acl_save_prefix"
10960
10961       if test "X$x" = "X$element"; then
10962         haveit=yes
10963         break
10964       fi
10965     done
10966     if test -z "$haveit"; then
10967       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10968     fi
10969   done
10970
10971
10972   echo "$as_me:$LINENO: checking for iconv" >&5
10973 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10974 if test "${am_cv_func_iconv+set}" = set; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977
10978     am_cv_func_iconv="no, consider installing GNU libiconv"
10979     am_cv_lib_iconv=no
10980     cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h.  */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h.  */
10986 #include <stdlib.h>
10987 #include <iconv.h>
10988 int
10989 main ()
10990 {
10991 iconv_t cd = iconv_open("","");
10992        iconv(cd,NULL,NULL,NULL,NULL);
10993        iconv_close(cd);
10994   ;
10995   return 0;
10996 }
10997 _ACEOF
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000   (eval $ac_link) 2>conftest.er1
11001   ac_status=$?
11002   grep -v '^ *+' conftest.er1 >conftest.err
11003   rm -f conftest.er1
11004   cat conftest.err >&5
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); } &&
11007          { ac_try='test -z "$ac_c_werror_flag"
11008                          || test ! -s conftest.err'
11009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010   (eval $ac_try) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); }; } &&
11014          { ac_try='test -s conftest$ac_exeext'
11015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016   (eval $ac_try) 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); }; }; then
11020   am_cv_func_iconv=yes
11021 else
11022   echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025 fi
11026 rm -f conftest.err conftest.$ac_objext \
11027       conftest$ac_exeext conftest.$ac_ext
11028     if test "$am_cv_func_iconv" != yes; then
11029       am_save_LIBS="$LIBS"
11030       LIBS="$LIBS $LIBICONV"
11031       cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h.  */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h.  */
11037 #include <stdlib.h>
11038 #include <iconv.h>
11039 int
11040 main ()
11041 {
11042 iconv_t cd = iconv_open("","");
11043          iconv(cd,NULL,NULL,NULL,NULL);
11044          iconv_close(cd);
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051   (eval $ac_link) 2>conftest.er1
11052   ac_status=$?
11053   grep -v '^ *+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } &&
11058          { ac_try='test -z "$ac_c_werror_flag"
11059                          || test ! -s conftest.err'
11060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061   (eval $ac_try) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; } &&
11065          { ac_try='test -s conftest$ac_exeext'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; }; then
11071   am_cv_lib_iconv=yes
11072         am_cv_func_iconv=yes
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077 fi
11078 rm -f conftest.err conftest.$ac_objext \
11079       conftest$ac_exeext conftest.$ac_ext
11080       LIBS="$am_save_LIBS"
11081     fi
11082
11083 fi
11084 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11085 echo "${ECHO_T}$am_cv_func_iconv" >&6
11086   if test "$am_cv_func_iconv" = yes; then
11087
11088 cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_ICONV 1
11090 _ACEOF
11091
11092   fi
11093   if test "$am_cv_lib_iconv" = yes; then
11094     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11095 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11096     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11097 echo "${ECHO_T}$LIBICONV" >&6
11098   else
11099             CPPFLAGS="$am_save_CPPFLAGS"
11100     LIBICONV=
11101     LTLIBICONV=
11102   fi
11103
11104
11105
11106   if test "$am_cv_func_iconv" = yes; then
11107     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11108 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11109     if test "${am_cv_proto_iconv+set}" = set; then
11110   echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112
11113       cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h.  */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h.  */
11119
11120 #include <stdlib.h>
11121 #include <iconv.h>
11122 extern
11123 #ifdef __cplusplus
11124 "C"
11125 #endif
11126 #if defined(__STDC__) || defined(__cplusplus)
11127 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11128 #else
11129 size_t iconv();
11130 #endif
11131
11132 int
11133 main ()
11134 {
11135
11136   ;
11137   return 0;
11138 }
11139 _ACEOF
11140 rm -f conftest.$ac_objext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142   (eval $ac_compile) 2>conftest.er1
11143   ac_status=$?
11144   grep -v '^ *+' conftest.er1 >conftest.err
11145   rm -f conftest.er1
11146   cat conftest.err >&5
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); } &&
11149          { ac_try='test -z "$ac_c_werror_flag"
11150                          || test ! -s conftest.err'
11151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152   (eval $ac_try) 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); }; } &&
11156          { ac_try='test -s conftest.$ac_objext'
11157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158   (eval $ac_try) 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); }; }; then
11162   am_cv_proto_iconv_arg1=""
11163 else
11164   echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167 am_cv_proto_iconv_arg1="const"
11168 fi
11169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11170       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);"
11171 fi
11172
11173     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11174     echo "$as_me:$LINENO: result: ${ac_t:-
11175          }$am_cv_proto_iconv" >&5
11176 echo "${ECHO_T}${ac_t:-
11177          }$am_cv_proto_iconv" >&6
11178
11179 cat >>confdefs.h <<_ACEOF
11180 #define ICONV_CONST $am_cv_proto_iconv_arg1
11181 _ACEOF
11182
11183   fi
11184
11185 # Until we have in-tree GNU iconv:
11186 LIBICONV_DEP=
11187
11188
11189
11190   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11191 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11192 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 #include <locale.h>
11202 int
11203 main ()
11204 {
11205 return LC_MESSAGES
11206   ;
11207   return 0;
11208 }
11209 _ACEOF
11210 rm -f conftest.$ac_objext conftest$ac_exeext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11212   (eval $ac_link) 2>conftest.er1
11213   ac_status=$?
11214   grep -v '^ *+' conftest.er1 >conftest.err
11215   rm -f conftest.er1
11216   cat conftest.err >&5
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); } &&
11219          { ac_try='test -z "$ac_c_werror_flag"
11220                          || 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_val_LC_MESSAGES=yes
11233 else
11234   echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11236
11237 am_cv_val_LC_MESSAGES=no
11238 fi
11239 rm -f conftest.err conftest.$ac_objext \
11240       conftest$ac_exeext conftest.$ac_ext
11241 fi
11242 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11243 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11244   if test $am_cv_val_LC_MESSAGES = yes; then
11245
11246 cat >>confdefs.h <<\_ACEOF
11247 #define HAVE_LC_MESSAGES 1
11248 _ACEOF
11249
11250   fi
11251
11252
11253
11254   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11255 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11256 if test "${am_cv_langinfo_codeset+set}" = set; then
11257   echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259   cat >conftest.$ac_ext <<_ACEOF
11260 /* confdefs.h.  */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h.  */
11265 #include <langinfo.h>
11266 int
11267 main ()
11268 {
11269 char* cs = nl_langinfo(CODESET);
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 rm -f conftest.$ac_objext conftest$ac_exeext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11276   (eval $ac_link) 2>conftest.er1
11277   ac_status=$?
11278   grep -v '^ *+' conftest.er1 >conftest.err
11279   rm -f conftest.er1
11280   cat conftest.err >&5
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); } &&
11283          { ac_try='test -z "$ac_c_werror_flag"
11284                          || test ! -s conftest.err'
11285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286   (eval $ac_try) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; } &&
11290          { ac_try='test -s conftest$ac_exeext'
11291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292   (eval $ac_try) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); }; }; then
11296   am_cv_langinfo_codeset=yes
11297 else
11298   echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 am_cv_langinfo_codeset=no
11302 fi
11303 rm -f conftest.err conftest.$ac_objext \
11304       conftest$ac_exeext conftest.$ac_ext
11305
11306 fi
11307 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11308 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11309   if test $am_cv_langinfo_codeset = yes; then
11310
11311 cat >>confdefs.h <<\_ACEOF
11312 #define HAVE_LANGINFO_CODESET 1
11313 _ACEOF
11314
11315   fi
11316
11317
11318 # We will need to find libiberty.h and ansidecl.h
11319 saved_CFLAGS="$CFLAGS"
11320 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11361         strsignal strstr strverscmp \
11362         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11363         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
11364 do
11365   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11366 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11367 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11368 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11369   echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371   cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h.  */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h.  */
11377 #undef $ac_tr_decl
11378 #define $ac_tr_decl 1
11379
11380 #include "ansidecl.h"
11381 #include "system.h"
11382
11383 int
11384 main ()
11385 {
11386 #ifndef $ac_func
11387 char *(*pfn) = (char *(*)) $ac_func ;
11388 #endif
11389   ;
11390   return 0;
11391 }
11392 _ACEOF
11393 rm -f conftest.$ac_objext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395   (eval $ac_compile) 2>conftest.er1
11396   ac_status=$?
11397   grep -v '^ *+' conftest.er1 >conftest.err
11398   rm -f conftest.er1
11399   cat conftest.err >&5
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); } &&
11402          { ac_try='test -z "$ac_c_werror_flag"
11403                          || test ! -s conftest.err'
11404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405   (eval $ac_try) 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; } &&
11409          { ac_try='test -s conftest.$ac_objext'
11410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411   (eval $ac_try) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; }; then
11415   eval "gcc_cv_have_decl_$ac_func=yes"
11416 else
11417   echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 eval "gcc_cv_have_decl_$ac_func=no"
11421 fi
11422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11423 fi
11424
11425 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11426   echo "$as_me:$LINENO: result: yes" >&5
11427 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11428 #define $ac_tr_decl 1
11429 _ACEOF
11430
11431 else
11432   echo "$as_me:$LINENO: result: no" >&5
11433 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11434 #define $ac_tr_decl 0
11435 _ACEOF
11436
11437 fi
11438
11439 done
11440
11441
11442
11443
11444
11445 for ac_func in getrlimit setrlimit getrusage
11446 do
11447   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11448 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11449 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11450 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11451   echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453   cat >conftest.$ac_ext <<_ACEOF
11454 /* confdefs.h.  */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h.  */
11459 #undef $ac_tr_decl
11460 #define $ac_tr_decl 1
11461
11462 #include "ansidecl.h"
11463 #include "system.h"
11464 #ifdef HAVE_SYS_RESOURCE_H
11465 #include <sys/resource.h>
11466 #endif
11467
11468
11469 int
11470 main ()
11471 {
11472 #ifndef $ac_func
11473 char *(*pfn) = (char *(*)) $ac_func ;
11474 #endif
11475   ;
11476   return 0;
11477 }
11478 _ACEOF
11479 rm -f conftest.$ac_objext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11481   (eval $ac_compile) 2>conftest.er1
11482   ac_status=$?
11483   grep -v '^ *+' conftest.er1 >conftest.err
11484   rm -f conftest.er1
11485   cat conftest.err >&5
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } &&
11488          { ac_try='test -z "$ac_c_werror_flag"
11489                          || test ! -s conftest.err'
11490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491   (eval $ac_try) 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }; } &&
11495          { ac_try='test -s conftest.$ac_objext'
11496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497   (eval $ac_try) 2>&5
11498   ac_status=$?
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); }; }; then
11501   eval "gcc_cv_have_decl_$ac_func=yes"
11502 else
11503   echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 eval "gcc_cv_have_decl_$ac_func=no"
11507 fi
11508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11509 fi
11510
11511 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11512   echo "$as_me:$LINENO: result: yes" >&5
11513 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11514 #define $ac_tr_decl 1
11515 _ACEOF
11516
11517 else
11518   echo "$as_me:$LINENO: result: no" >&5
11519 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11520 #define $ac_tr_decl 0
11521 _ACEOF
11522
11523 fi
11524
11525 done
11526
11527
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h.  */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h.  */
11534
11535 #include "ansidecl.h"
11536 #include "system.h"
11537 #ifdef HAVE_SYS_RESOURCE_H
11538 #include <sys/resource.h>
11539 #endif
11540
11541 int
11542 main ()
11543 {
11544 rlim_t l = 0;
11545   ;
11546   return 0;
11547 }
11548 _ACEOF
11549 rm -f conftest.$ac_objext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11551   (eval $ac_compile) 2>conftest.er1
11552   ac_status=$?
11553   grep -v '^ *+' conftest.er1 >conftest.err
11554   rm -f conftest.er1
11555   cat conftest.err >&5
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); } &&
11558          { ac_try='test -z "$ac_c_werror_flag"
11559                          || test ! -s conftest.err'
11560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561   (eval $ac_try) 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); }; } &&
11565          { ac_try='test -s conftest.$ac_objext'
11566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567   (eval $ac_try) 2>&5
11568   ac_status=$?
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); }; }; then
11571   :
11572 else
11573   echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576
11577 cat >>confdefs.h <<\_ACEOF
11578 #define rlim_t long
11579 _ACEOF
11580
11581 fi
11582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11583
11584 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11585 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11586 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11587 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11588
11589 for ac_func in ldgetname
11590 do
11591   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11592 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11593 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11594 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11595   echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597   cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h.  */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h.  */
11603 #undef $ac_tr_decl
11604 #define $ac_tr_decl 1
11605
11606 #include "ansidecl.h"
11607 #include "system.h"
11608 #ifdef HAVE_LDFCN_H
11609 #undef FREAD
11610 #undef FWRITE
11611 #include <ldfcn.h>
11612 #endif
11613
11614
11615 int
11616 main ()
11617 {
11618 #ifndef $ac_func
11619 char *(*pfn) = (char *(*)) $ac_func ;
11620 #endif
11621   ;
11622   return 0;
11623 }
11624 _ACEOF
11625 rm -f conftest.$ac_objext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11627   (eval $ac_compile) 2>conftest.er1
11628   ac_status=$?
11629   grep -v '^ *+' conftest.er1 >conftest.err
11630   rm -f conftest.er1
11631   cat conftest.err >&5
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); } &&
11634          { ac_try='test -z "$ac_c_werror_flag"
11635                          || test ! -s conftest.err'
11636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637   (eval $ac_try) 2>&5
11638   ac_status=$?
11639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640   (exit $ac_status); }; } &&
11641          { ac_try='test -s conftest.$ac_objext'
11642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643   (eval $ac_try) 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; }; then
11647   eval "gcc_cv_have_decl_$ac_func=yes"
11648 else
11649   echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11651
11652 eval "gcc_cv_have_decl_$ac_func=no"
11653 fi
11654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11655 fi
11656
11657 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11658   echo "$as_me:$LINENO: result: yes" >&5
11659 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11660 #define $ac_tr_decl 1
11661 _ACEOF
11662
11663 else
11664   echo "$as_me:$LINENO: result: no" >&5
11665 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11666 #define $ac_tr_decl 0
11667 _ACEOF
11668
11669 fi
11670
11671 done
11672
11673
11674
11675 for ac_func in times
11676 do
11677   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11678 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11679 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11680 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h.  */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h.  */
11689 #undef $ac_tr_decl
11690 #define $ac_tr_decl 1
11691
11692 #include "ansidecl.h"
11693 #include "system.h"
11694 #ifdef HAVE_SYS_TIMES_H
11695 #include <sys/times.h>
11696 #endif
11697
11698
11699 int
11700 main ()
11701 {
11702 #ifndef $ac_func
11703 char *(*pfn) = (char *(*)) $ac_func ;
11704 #endif
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11711   (eval $ac_compile) 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } &&
11718          { ac_try='test -z "$ac_c_werror_flag"
11719                          || test ! -s conftest.err'
11720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721   (eval $ac_try) 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); }; } &&
11725          { ac_try='test -s conftest.$ac_objext'
11726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727   (eval $ac_try) 2>&5
11728   ac_status=$?
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); }; }; then
11731   eval "gcc_cv_have_decl_$ac_func=yes"
11732 else
11733   echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736 eval "gcc_cv_have_decl_$ac_func=no"
11737 fi
11738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11739 fi
11740
11741 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11742   echo "$as_me:$LINENO: result: yes" >&5
11743 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11744 #define $ac_tr_decl 1
11745 _ACEOF
11746
11747 else
11748   echo "$as_me:$LINENO: result: no" >&5
11749 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11750 #define $ac_tr_decl 0
11751 _ACEOF
11752
11753 fi
11754
11755 done
11756
11757
11758 # More time-related stuff.
11759 echo "$as_me:$LINENO: checking for struct tms" >&5
11760 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11761 if test "${ac_cv_struct_tms+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 #ifdef HAVE_SYS_TIMES_H
11775 #include <sys/times.h>
11776 #endif
11777
11778 int
11779 main ()
11780 {
11781 struct tms tms;
11782   ;
11783   return 0;
11784 }
11785 _ACEOF
11786 rm -f conftest.$ac_objext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788   (eval $ac_compile) 2>conftest.er1
11789   ac_status=$?
11790   grep -v '^ *+' conftest.er1 >conftest.err
11791   rm -f conftest.er1
11792   cat conftest.err >&5
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); } &&
11795          { ac_try='test -z "$ac_c_werror_flag"
11796                          || test ! -s conftest.err'
11797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798   (eval $ac_try) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; } &&
11802          { ac_try='test -s conftest.$ac_objext'
11803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804   (eval $ac_try) 2>&5
11805   ac_status=$?
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); }; }; then
11808   ac_cv_struct_tms=yes
11809 else
11810   echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11812
11813 ac_cv_struct_tms=no
11814 fi
11815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11816 fi
11817 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11818 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11819 if test $ac_cv_struct_tms = yes; then
11820
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_STRUCT_TMS 1
11823 _ACEOF
11824
11825 fi
11826
11827 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11828 # revisit after autoconf 2.50.
11829 echo "$as_me:$LINENO: checking for clock_t" >&5
11830 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11831 if test "${gcc_cv_type_clock_t+set}" = set; then
11832   echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834
11835 cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h.  */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h.  */
11841
11842 #include "ansidecl.h"
11843 #include "system.h"
11844
11845 int
11846 main ()
11847 {
11848 clock_t x;
11849   ;
11850   return 0;
11851 }
11852 _ACEOF
11853 rm -f conftest.$ac_objext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11855   (eval $ac_compile) 2>conftest.er1
11856   ac_status=$?
11857   grep -v '^ *+' conftest.er1 >conftest.err
11858   rm -f conftest.er1
11859   cat conftest.err >&5
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } &&
11862          { ac_try='test -z "$ac_c_werror_flag"
11863                          || test ! -s conftest.err'
11864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865   (eval $ac_try) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; } &&
11869          { ac_try='test -s conftest.$ac_objext'
11870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871   (eval $ac_try) 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; }; then
11875   gcc_cv_type_clock_t=yes
11876 else
11877   echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11879
11880 gcc_cv_type_clock_t=no
11881 fi
11882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11883 fi
11884 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11885 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11886 if test $gcc_cv_type_clock_t = yes; then
11887
11888 cat >>confdefs.h <<\_ACEOF
11889 #define HAVE_CLOCK_T 1
11890 _ACEOF
11891
11892 fi
11893
11894 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11895 CFLAGS="$saved_CFLAGS"
11896
11897 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11898 if test "${enable_initfini_array+set}" = set; then
11899   enableval="$enable_initfini_array"
11900
11901 else
11902
11903 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11904 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11905 if test "${gcc_cv_initfini_array+set}" = set; then
11906   echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908     if test "$cross_compiling" = yes; then
11909   gcc_cv_initfini_array=no
11910 else
11911   cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h.  */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h.  */
11917
11918 static int x = -1;
11919 int main (void) { return x; }
11920 int foo (void) { x = 0; }
11921 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11922 _ACEOF
11923 rm -f conftest$ac_exeext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925   (eval $ac_link) 2>&5
11926   ac_status=$?
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
11934   gcc_cv_initfini_array=yes
11935 else
11936   echo "$as_me: program exited with status $ac_status" >&5
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940 ( exit $ac_status )
11941 gcc_cv_initfini_array=no
11942 fi
11943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11944 fi
11945 fi
11946 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11947 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11948   enable_initfini_array=$gcc_cv_initfini_array
11949
11950 fi;
11951 if test $enable_initfini_array = yes; then
11952
11953 cat >>confdefs.h <<\_ACEOF
11954 #define HAVE_INITFINI_ARRAY 1
11955 _ACEOF
11956
11957 fi
11958
11959 # mkdir takes a single argument on some systems.
11960 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11961 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11962 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11963   echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965   cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h.  */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h.  */
11971
11972 #include <sys/types.h>
11973 #ifdef HAVE_SYS_STAT_H
11974 # include <sys/stat.h>
11975 #endif
11976 #ifdef HAVE_UNISTD_H
11977 # include <unistd.h>
11978 #endif
11979 #ifdef HAVE_DIRECT_H
11980 # include <direct.h>
11981 #endif
11982 int
11983 main ()
11984 {
11985 mkdir ("foo", 0);
11986   ;
11987   return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext
11991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992   (eval $ac_compile) 2>conftest.er1
11993   ac_status=$?
11994   grep -v '^ *+' conftest.er1 >conftest.err
11995   rm -f conftest.er1
11996   cat conftest.err >&5
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); } &&
11999          { ac_try='test -z "$ac_c_werror_flag"
12000                          || test ! -s conftest.err'
12001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002   (eval $ac_try) 2>&5
12003   ac_status=$?
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); }; } &&
12006          { ac_try='test -s conftest.$ac_objext'
12007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008   (eval $ac_try) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; }; then
12012   gcc_cv_mkdir_takes_one_arg=no
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017 gcc_cv_mkdir_takes_one_arg=yes
12018 fi
12019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12020 fi
12021 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12022 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12023 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12024
12025 cat >>confdefs.h <<\_ACEOF
12026 #define MKDIR_TAKES_ONE_ARG 1
12027 _ACEOF
12028
12029 fi
12030
12031
12032 # File extensions
12033 manext='.1'
12034 objext='.o'
12035
12036
12037
12038 # With Setjmp/Longjmp based exception handling.
12039 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12040 if test "${enable_sjlj_exceptions+set}" = set; then
12041   enableval="$enable_sjlj_exceptions"
12042   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12043
12044 cat >>confdefs.h <<_ACEOF
12045 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12046 _ACEOF
12047
12048 fi;
12049
12050 # For platforms with the unwind ABI which includes an unwind library,
12051 # libunwind, we can choose to use the system libunwind.
12052
12053 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12054 if test "${with_system_libunwind+set}" = set; then
12055   withval="$with_system_libunwind"
12056
12057 fi;
12058
12059 # --------------------------------------------------------
12060 # Build, host, and target specific configuration fragments
12061 # --------------------------------------------------------
12062
12063 # Collect build-machine-specific information.
12064 . ${srcdir}/config.build
12065
12066 # Collect host-machine-specific information.
12067 . ${srcdir}/config.host
12068
12069 target_gtfiles=
12070
12071 # Collect target-machine-specific information.
12072 . ${srcdir}/config.gcc
12073
12074 extra_objs="${host_extra_objs} ${extra_objs}"
12075 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12076
12077 # Default the target-machine variables that were not explicitly set.
12078 if test x"$tm_file" = x
12079 then tm_file=$cpu_type/$cpu_type.h; fi
12080
12081 if test x"$extra_headers" = x
12082 then extra_headers=; fi
12083
12084 if test x$md_file = x
12085 then md_file=$cpu_type/$cpu_type.md; fi
12086
12087 if test x$out_file = x
12088 then out_file=$cpu_type/$cpu_type.c; fi
12089
12090 if test x"$tmake_file" = x
12091 then tmake_file=$cpu_type/t-$cpu_type
12092 fi
12093
12094 if test x"$dwarf2" = xyes
12095 then tm_file="$tm_file tm-dwarf2.h"
12096 fi
12097
12098 # Say what files are being used for the output code and MD file.
12099 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12100 echo "Using \`$srcdir/config/$md_file' as machine description file."
12101
12102 # If any of the xm_file variables contain nonexistent files, warn
12103 # about them and drop them.
12104
12105 bx=
12106 for x in $build_xm_file; do
12107   if    test -f $srcdir/config/$x
12108   then      bx="$bx $x"
12109   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12110 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12111   fi
12112 done
12113 build_xm_file="$bx"
12114
12115 hx=
12116 for x in $host_xm_file; do
12117   if    test -f $srcdir/config/$x
12118   then      hx="$hx $x"
12119   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12120 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12121   fi
12122 done
12123 host_xm_file="$hx"
12124
12125 tx=
12126 for x in $xm_file; do
12127   if    test -f $srcdir/config/$x
12128   then      tx="$tx $x"
12129   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12130 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12131   fi
12132 done
12133 xm_file="$tx"
12134
12135 count=a
12136 for f in $tm_file; do
12137         count=${count}x
12138 done
12139 if test $count = ax; then
12140         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12141 else
12142         echo "Using the following target machine macro files:"
12143         for f in $tm_file; do
12144                 echo "  $srcdir/config/$f"
12145         done
12146 fi
12147
12148 if test x$need_64bit_hwint = xyes; then
12149
12150 cat >>confdefs.h <<\_ACEOF
12151 #define NEED_64BIT_HOST_WIDE_INT 1
12152 _ACEOF
12153
12154 fi
12155
12156 if test x$use_long_long_for_widest_fast_int = xyes; then
12157
12158 cat >>confdefs.h <<\_ACEOF
12159 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12160 _ACEOF
12161
12162 fi
12163
12164 count=a
12165 for f in $host_xm_file; do
12166         count=${count}x
12167 done
12168 if test $count = a; then
12169         :
12170 elif test $count = ax; then
12171         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12172 else
12173         echo "Using the following host machine macro files:"
12174         for f in $host_xm_file; do
12175                 echo "  $srcdir/config/$f"
12176         done
12177 fi
12178 echo "Using ${out_host_hook_obj} for host machine hooks."
12179
12180 if test "$host_xm_file" != "$build_xm_file"; then
12181         count=a
12182         for f in $build_xm_file; do
12183                 count=${count}x
12184         done
12185         if test $count = a; then
12186                 :
12187         elif test $count = ax; then
12188                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12189         else
12190                 echo "Using the following build machine macro files:"
12191                 for f in $build_xm_file; do
12192                         echo "  $srcdir/config/$f"
12193                 done
12194         fi
12195 fi
12196
12197 # ---------
12198 # Threading
12199 # ---------
12200
12201 # Check if a valid thread package
12202 case ${enable_threads} in
12203   "" | no)
12204     # No threads
12205     target_thread_file='single'
12206     ;;
12207   yes)
12208     # default
12209     target_thread_file='single'
12210     ;;
12211   aix | dce | gnat | irix | posix | posix95 | rtems | \
12212   single | solaris | vxworks | win32 )
12213     target_thread_file=${enable_threads}
12214     ;;
12215   *)
12216     echo "${enable_threads} is an unknown thread package" 1>&2
12217     exit 1
12218     ;;
12219 esac
12220
12221 if test x${thread_file} = x; then
12222   # No thread file set by target-specific clauses in config.gcc,
12223   # so use file chosen by default logic above
12224   thread_file=${target_thread_file}
12225 fi
12226
12227 # Make gthr-default.h if we have a thread file.
12228 gthread_flags=
12229 if test $thread_file != single; then
12230   rm -f gthr-default.h
12231   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12232   gthread_flags=-DHAVE_GTHR_DEFAULT
12233 fi
12234
12235
12236 # --------
12237 # UNSORTED
12238 # --------
12239
12240 use_cxa_atexit=no
12241 if test x$enable___cxa_atexit = xyes || \
12242    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12243   if test x$host = x$target; then
12244     echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12245 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12246 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12247   echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249   cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h.  */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h.  */
12255 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12257 #define __cxa_atexit innocuous___cxa_atexit
12258
12259 /* System header to define __stub macros and hopefully few prototypes,
12260     which can conflict with char __cxa_atexit (); below.
12261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12262     <limits.h> exists even on freestanding compilers.  */
12263
12264 #ifdef __STDC__
12265 # include <limits.h>
12266 #else
12267 # include <assert.h>
12268 #endif
12269
12270 #undef __cxa_atexit
12271
12272 /* Override any gcc2 internal prototype to avoid an error.  */
12273 #ifdef __cplusplus
12274 extern "C"
12275 {
12276 #endif
12277 /* We use char because int might match the return type of a gcc2
12278    builtin and then its argument prototype would still apply.  */
12279 char __cxa_atexit ();
12280 /* The GNU C library defines this for functions which it implements
12281     to always fail with ENOSYS.  Some functions are actually named
12282     something starting with __ and the normal name is an alias.  */
12283 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12284 choke me
12285 #else
12286 char (*f) () = __cxa_atexit;
12287 #endif
12288 #ifdef __cplusplus
12289 }
12290 #endif
12291
12292 int
12293 main ()
12294 {
12295 return f != __cxa_atexit;
12296   ;
12297   return 0;
12298 }
12299 _ACEOF
12300 rm -f conftest.$ac_objext conftest$ac_exeext
12301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12302   (eval $ac_link) 2>conftest.er1
12303   ac_status=$?
12304   grep -v '^ *+' conftest.er1 >conftest.err
12305   rm -f conftest.er1
12306   cat conftest.err >&5
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); } &&
12309          { ac_try='test -z "$ac_c_werror_flag"
12310                          || test ! -s conftest.err'
12311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312   (eval $ac_try) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; } &&
12316          { ac_try='test -s conftest$ac_exeext'
12317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318   (eval $ac_try) 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); }; }; then
12322   ac_cv_func___cxa_atexit=yes
12323 else
12324   echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12326
12327 ac_cv_func___cxa_atexit=no
12328 fi
12329 rm -f conftest.err conftest.$ac_objext \
12330       conftest$ac_exeext conftest.$ac_ext
12331 fi
12332 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12333 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12334 if test $ac_cv_func___cxa_atexit = yes; then
12335   use_cxa_atexit=yes
12336 else
12337   echo "__cxa_atexit can't be enabled on this target"
12338 fi
12339
12340   else
12341     # We can't check for __cxa_atexit when building a cross, so assume
12342     # it is available
12343     use_cxa_atexit=yes
12344   fi
12345   if test x$use_cxa_atexit = xyes; then
12346
12347 cat >>confdefs.h <<\_ACEOF
12348 #define DEFAULT_USE_CXA_ATEXIT 1
12349 _ACEOF
12350
12351   fi
12352 fi
12353
12354 # Look for a file containing extra machine modes.
12355 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12356   extra_modes_file='$(srcdir)'/config/${extra_modes}
12357
12358
12359 cat >>confdefs.h <<_ACEOF
12360 #define EXTRA_MODES_FILE "config/$extra_modes"
12361 _ACEOF
12362
12363 fi
12364
12365 # Convert extra_options into a form suitable for Makefile use.
12366 extra_opt_files=
12367 for f in $extra_options; do
12368   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12369 done
12370
12371
12372 # auto-host.h is the file containing items generated by autoconf and is
12373 # the first file included by config.h.
12374 # If host=build, it is correct to have bconfig include auto-host.h
12375 # as well.  If host!=build, we are in error and need to do more
12376 # work to find out the build config parameters.
12377 if test x$host = x$build
12378 then
12379         build_auto=auto-host.h
12380 else
12381         # We create a subdir, then run autoconf in the subdir.
12382         # To prevent recursion we set host and build for the new
12383         # invocation of configure to the build for this invocation
12384         # of configure.
12385         tempdir=build.$$
12386         rm -rf $tempdir
12387         mkdir $tempdir
12388         cd $tempdir
12389         case ${srcdir} in
12390         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12391         *) realsrcdir=../${srcdir};;
12392         esac
12393         saved_CFLAGS="${CFLAGS}"
12394         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12395         ${realsrcdir}/configure \
12396                 --enable-languages=${enable_languages-all} \
12397                 --target=$target_alias --host=$build_alias --build=$build_alias
12398         CFLAGS="${saved_CFLAGS}"
12399
12400         # We just finished tests for the build machine, so rename
12401         # the file auto-build.h in the gcc directory.
12402         mv auto-host.h ../auto-build.h
12403         cd ..
12404         rm -rf $tempdir
12405         build_auto=auto-build.h
12406 fi
12407
12408
12409 tm_file="${tm_file} defaults.h"
12410 tm_p_file="${tm_p_file} tm-preds.h"
12411 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12412 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12413 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12414 # put this back in temporarily.
12415 xm_file="auto-host.h ansidecl.h ${xm_file}"
12416
12417 # --------
12418 # UNSORTED
12419 # --------
12420
12421 # Compile in configure arguments.
12422 if test -f configargs.h ; then
12423         # Being re-configured.
12424         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12425         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12426 else
12427         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12428 fi
12429
12430 # Double all backslashes and backslash all quotes to turn
12431 # gcc_config_arguments into a C string.
12432 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12433 $gcc_config_arguments
12434 EOF
12435 gcc_config_arguments_str=`cat conftest.out`
12436 rm -f conftest.out
12437
12438 cat > configargs.h <<EOF
12439 /* Generated automatically. */
12440 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12441 static const char thread_model[] = "$thread_file";
12442
12443 static const struct {
12444   const char *name, *value;
12445 } configure_default_options[] = $configure_default_options;
12446 EOF
12447
12448 # Internationalization
12449 # If we haven't got the data from the intl directory,
12450 # assume NLS is disabled.
12451 USE_NLS=no
12452 LIBINTL=
12453 LIBINTL_DEP=
12454 INCINTL=
12455 XGETTEXT=
12456 GMSGFMT=
12457 POSUB=
12458 if test -f ../intl/config.intl; then
12459   . ../intl/config.intl
12460 fi
12461 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12462 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12463 if test x"$USE_NLS" != xyes; then
12464   echo "$as_me:$LINENO: result: no" >&5
12465 echo "${ECHO_T}no" >&6
12466 else
12467   echo "$as_me:$LINENO: result: yes" >&5
12468 echo "${ECHO_T}yes" >&6
12469
12470 cat >>confdefs.h <<\_ACEOF
12471 #define ENABLE_NLS 1
12472 _ACEOF
12473
12474
12475   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12476 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12477   # Look for .po and .gmo files in the source directory.
12478   CATALOGS=
12479   XLINGUAS=
12480   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12481     # If there aren't any .gmo files the shell will give us the
12482     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12483     # weeded out.
12484     case "$cat" in *\**)
12485       continue;;
12486     esac
12487     # The quadruple backslash is collapsed to a double backslash
12488     # by the backticks, then collapsed again by the double quotes,
12489     # leaving us with one backslash in the sed expression (right
12490     # before the dot that mustn't act as a wildcard).
12491     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12492     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12493     # The user is allowed to set LINGUAS to a list of languages to
12494     # install catalogs for.  If it's empty that means "all of them."
12495     if test "x$LINGUAS" = x; then
12496       CATALOGS="$CATALOGS $cat"
12497       XLINGUAS="$XLINGUAS $lang"
12498     else
12499       case "$LINGUAS" in *$lang*)
12500         CATALOGS="$CATALOGS $cat"
12501         XLINGUAS="$XLINGUAS $lang"
12502         ;;
12503       esac
12504     fi
12505   done
12506   LINGUAS="$XLINGUAS"
12507   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12508 echo "${ECHO_T}$LINGUAS" >&6
12509 fi
12510
12511 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12512 # -liconv on the link line twice.
12513 case "$LIBINTL" in *$LIBICONV*)
12514         LIBICONV= ;;
12515 esac
12516
12517 # Check whether --enable-secureplt or --disable-secureplt was given.
12518 if test "${enable_secureplt+set}" = set; then
12519   enableval="$enable_secureplt"
12520
12521 fi;
12522
12523 # Windows32 Registry support for specifying GCC installation paths.
12524 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12525 if test "${enable_win32_registry+set}" = set; then
12526   enableval="$enable_win32_registry"
12527
12528 fi;
12529
12530 case $host_os in
12531   win32 | pe | cygwin* | mingw32* | uwin*)
12532     if test "x$enable_win32_registry" != xno; then
12533       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12534 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12535 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12536   echo $ECHO_N "(cached) $ECHO_C" >&6
12537 else
12538   ac_func_search_save_LIBS=$LIBS
12539 ac_cv_search_RegOpenKeyExA=no
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h.  */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h.  */
12546
12547 /* Override any gcc2 internal prototype to avoid an error.  */
12548 #ifdef __cplusplus
12549 extern "C"
12550 #endif
12551 /* We use char because int might match the return type of a gcc2
12552    builtin and then its argument prototype would still apply.  */
12553 char RegOpenKeyExA ();
12554 int
12555 main ()
12556 {
12557 RegOpenKeyExA ();
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12564   (eval $ac_link) 2>conftest.er1
12565   ac_status=$?
12566   grep -v '^ *+' conftest.er1 >conftest.err
12567   rm -f conftest.er1
12568   cat conftest.err >&5
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); } &&
12571          { ac_try='test -z "$ac_c_werror_flag"
12572                          || test ! -s conftest.err'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; } &&
12578          { ac_try='test -s conftest$ac_exeext'
12579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580   (eval $ac_try) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; }; then
12584   ac_cv_search_RegOpenKeyExA="none required"
12585 else
12586   echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589 fi
12590 rm -f conftest.err conftest.$ac_objext \
12591       conftest$ac_exeext conftest.$ac_ext
12592 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12593   for ac_lib in advapi32; do
12594     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12595     cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h.  */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h.  */
12601
12602 /* Override any gcc2 internal prototype to avoid an error.  */
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 /* We use char because int might match the return type of a gcc2
12607    builtin and then its argument prototype would still apply.  */
12608 char RegOpenKeyExA ();
12609 int
12610 main ()
12611 {
12612 RegOpenKeyExA ();
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12619   (eval $ac_link) 2>conftest.er1
12620   ac_status=$?
12621   grep -v '^ *+' conftest.er1 >conftest.err
12622   rm -f conftest.er1
12623   cat conftest.err >&5
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } &&
12626          { ac_try='test -z "$ac_c_werror_flag"
12627                          || test ! -s conftest.err'
12628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629   (eval $ac_try) 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); }; } &&
12633          { ac_try='test -s conftest$ac_exeext'
12634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635   (eval $ac_try) 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; }; then
12639   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12640 break
12641 else
12642   echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645 fi
12646 rm -f conftest.err conftest.$ac_objext \
12647       conftest$ac_exeext conftest.$ac_ext
12648   done
12649 fi
12650 LIBS=$ac_func_search_save_LIBS
12651 fi
12652 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12653 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12654 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12655   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12656
12657 else
12658   enable_win32_registry=no
12659 fi
12660
12661     fi
12662
12663     if test "x$enable_win32_registry" != xno; then
12664
12665 cat >>confdefs.h <<\_ACEOF
12666 #define ENABLE_WIN32_REGISTRY 1
12667 _ACEOF
12668
12669
12670       if test "x$enable_win32_registry" != xyes \
12671          && test "x$enable_win32_registry" != x; then
12672
12673 cat >>confdefs.h <<_ACEOF
12674 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12675 _ACEOF
12676
12677       fi
12678     fi
12679   ;;
12680 esac
12681
12682 # Get an absolute path to the GCC top-level source directory
12683 holddir=`${PWDCMD-pwd}`
12684 cd $srcdir
12685 topdir=`${PWDCMD-pwd}`
12686 cd $holddir
12687
12688 # Conditionalize the makefile for this host machine.
12689 xmake_file=
12690 for f in ${host_xmake_file}
12691 do
12692         if test -f ${srcdir}/config/$f
12693         then
12694                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12695         fi
12696 done
12697
12698 # Conditionalize the makefile for this target machine.
12699 tmake_file_=
12700 for f in ${tmake_file}
12701 do
12702         if test -f ${srcdir}/config/$f
12703         then
12704                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12705         fi
12706 done
12707 tmake_file="${tmake_file_}"
12708
12709 # If the host doesn't support symlinks, modify CC in
12710 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12711 # Otherwise, we can use "CC=$(CC)".
12712 rm -f symtest.tem
12713 case "$LN_S" in
12714         *-s*)
12715                 cc_set_by_configure="\$(CC)"
12716                 quoted_cc_set_by_configure="\$(CC)"
12717                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12718                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12719                 ;;
12720         *)
12721                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12722                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12723                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12724                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12725                 ;;
12726 esac
12727
12728 # This is a terrible hack which will go away some day.
12729 host_cc_for_libada=${CC}
12730
12731
12732 out_object_file=`basename $out_file .c`.o
12733
12734 tm_file_list="options.h"
12735 tm_include_list="options.h"
12736 for f in $tm_file; do
12737   case $f in
12738     defaults.h )
12739        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12740        tm_include_list="${tm_include_list} $f"
12741        ;;
12742     * )
12743        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12744        tm_include_list="${tm_include_list} config/$f"
12745        ;;
12746   esac
12747 done
12748
12749 tm_p_file_list=
12750 tm_p_include_list=
12751 for f in $tm_p_file; do
12752   case $f in
12753     tm-preds.h )
12754        tm_p_file_list="${tm_p_file_list} $f"
12755        tm_p_include_list="${tm_p_include_list} $f"
12756        ;;
12757     * )
12758        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12759        tm_p_include_list="${tm_p_include_list} config/$f"
12760   esac
12761 done
12762
12763 xm_file_list=
12764 xm_include_list=
12765 for f in $xm_file; do
12766   case $f in
12767     ansidecl.h )
12768        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12769        xm_include_list="${xm_include_list} $f"
12770        ;;
12771     auto-host.h )
12772        xm_file_list="${xm_file_list} $f"
12773        xm_include_list="${xm_include_list} $f"
12774        ;;
12775     * )
12776        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12777        xm_include_list="${xm_include_list} config/$f"
12778        ;;
12779   esac
12780 done
12781
12782 host_xm_file_list=
12783 host_xm_include_list=
12784 for f in $host_xm_file; do
12785   case $f in
12786     ansidecl.h )
12787        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12788        host_xm_include_list="${host_xm_include_list} $f"
12789        ;;
12790     auto-host.h )
12791        host_xm_file_list="${host_xm_file_list} $f"
12792        host_xm_include_list="${host_xm_include_list} $f"
12793        ;;
12794     * )
12795        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12796        host_xm_include_list="${host_xm_include_list} config/$f"
12797        ;;
12798   esac
12799 done
12800
12801 build_xm_file_list=
12802 for f in $build_xm_file; do
12803   case $f in
12804     ansidecl.h )
12805        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12806        build_xm_include_list="${build_xm_include_list} $f"
12807        ;;
12808     auto-build.h | auto-host.h )
12809        build_xm_file_list="${build_xm_file_list} $f"
12810        build_xm_include_list="${build_xm_include_list} $f"
12811        ;;
12812     * )
12813        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12814        build_xm_include_list="${build_xm_include_list} config/$f"
12815        ;;
12816   esac
12817 done
12818
12819 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12820 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12821 CROSS=
12822 ALL=all.internal
12823 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12824
12825 if test "x$with_build_sysroot" != x; then
12826   build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12827 else
12828   # This value is used, even on a native system, because
12829   # CROSS_SYSTEM_HEADER_DIR is just
12830   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12831   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12832 fi
12833
12834 if test x$host != x$target
12835 then
12836         CROSS="-DCROSS_COMPILE"
12837         ALL=all.cross
12838         SYSTEM_HEADER_DIR=$build_system_header_dir
12839         case "$host","$target" in
12840         # Darwin crosses can use the host system's libraries and headers,
12841         # because of the fat library support.  Of course, it must be the
12842         # same version of Darwin on both sides.  Allow the user to
12843         # just say --target=foo-darwin without a version number to mean
12844         # "the version on this system".
12845             *-*-darwin*,*-*-darwin*)
12846                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12847                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12848                 if test $hostos = $targetos -o $targetos = darwin ; then
12849                     CROSS=
12850                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12851                     with_headers=yes
12852                 fi
12853                 ;;
12854
12855             i?86-*-*,x86_64-*-* \
12856             | powerpc*-*-*,powerpc64*-*-*)
12857                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12858         esac
12859 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12860         SYSTEM_HEADER_DIR=$build_system_header_dir
12861 fi
12862
12863 # If this is a cross-compiler that does not
12864 # have its own set of headers then define
12865 # inhibit_libc
12866
12867 # If this is using newlib, without having the headers available now,
12868 # then define inhibit_libc in LIBGCC2_CFLAGS.
12869 # This prevents libgcc2 from containing any code which requires libc
12870 # support.
12871 inhibit_libc=false
12872 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12873        test x$with_newlib = xyes ; } &&
12874      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12875        inhibit_libc=true
12876 fi
12877
12878
12879 # When building gcc with a cross-compiler, we need to adjust things so
12880 # that the generator programs are still built with the native compiler.
12881 # Also, we cannot run fixincludes or fix-header.
12882
12883 # These are the normal (build=host) settings:
12884 CC_FOR_BUILD='$(CC)'
12885 BUILD_CFLAGS='$(ALL_CFLAGS)'
12886 STMP_FIXINC=stmp-fixinc
12887
12888 # Possibly disable fixproto, on a per-target basis.
12889 case ${use_fixproto} in
12890   no)
12891     STMP_FIXPROTO=
12892     ;;
12893   yes)
12894     STMP_FIXPROTO=stmp-fixproto
12895     ;;
12896 esac
12897
12898
12899 # And these apply if build != host, or we are generating coverage data
12900 if test x$build != x$host || test "x$coverage_flags" != x
12901 then
12902     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12903
12904     if test "x$TARGET_SYSTEM_ROOT" = x; then
12905         if test "x$STMP_FIXPROTO" != x; then
12906           STMP_FIXPROTO=stmp-install-fixproto
12907         fi
12908     fi
12909 fi
12910
12911 # Expand extra_headers to include complete path.
12912 # This substitutes for lots of t-* files.
12913 extra_headers_list=
12914 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12915 for file in ${extra_headers} ; do
12916   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12917 done
12918
12919 # Define collect2 in Makefile.
12920 case $host_can_use_collect2 in
12921   no) collect2= ;;
12922   *) collect2='collect2$(exeext)' ;;
12923 esac
12924
12925
12926 # Add a definition of USE_COLLECT2 if system wants one.
12927 case $use_collect2 in
12928   no) use_collect2= ;;
12929   "") ;;
12930   *)
12931     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12932     xm_defines="${xm_defines} USE_COLLECT2"
12933     case $host_can_use_collect2 in
12934       no)
12935         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12936 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12937    { (exit 1); exit 1; }; }
12938         ;;
12939     esac
12940     ;;
12941 esac
12942
12943 # ---------------------------
12944 # Assembler & linker features
12945 # ---------------------------
12946
12947 # Identify the assembler which will work hand-in-glove with the newly
12948 # built GCC, so that we can examine its features.  This is the assembler
12949 # which will be driven by the driver program.
12950 #
12951 # If build != host, and we aren't building gas in-tree, we identify a
12952 # build->target assembler and hope that it will have the same features
12953 # as the host->target assembler we'll be using.
12954 gcc_cv_gas_major_version=
12955 gcc_cv_gas_minor_version=
12956 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12957
12958 if test "${gcc_cv_as+set}" = set; then
12959   :
12960 else
12961
12962 if test -x "$DEFAULT_ASSEMBLER"; then
12963         gcc_cv_as="$DEFAULT_ASSEMBLER"
12964 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12965      && test -f ../gas/Makefile \
12966      && test x$build = x$host; then
12967         gcc_cv_as=../gas/as-new$build_exeext
12968 elif test -x as$build_exeext; then
12969         # Build using assembler in the current directory.
12970         gcc_cv_as=./as$build_exeext
12971 elif test -x $AS_FOR_TARGET; then
12972         gcc_cv_as="$AS_FOR_TARGET"
12973 else
12974         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12975 set dummy $AS_FOR_TARGET; ac_word=$2
12976 echo "$as_me:$LINENO: checking for $ac_word" >&5
12977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12978 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12979   echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981   case $gcc_cv_as in
12982   [\\/]* | ?:[\\/]*)
12983   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12984   ;;
12985   *)
12986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $PATH
12988 do
12989   IFS=$as_save_IFS
12990   test -z "$as_dir" && as_dir=.
12991   for ac_exec_ext in '' $ac_executable_extensions; do
12992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12993     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12995     break 2
12996   fi
12997 done
12998 done
12999
13000   ;;
13001 esac
13002 fi
13003 gcc_cv_as=$ac_cv_path_gcc_cv_as
13004
13005 if test -n "$gcc_cv_as"; then
13006   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13007 echo "${ECHO_T}$gcc_cv_as" >&6
13008 else
13009   echo "$as_me:$LINENO: result: no" >&5
13010 echo "${ECHO_T}no" >&6
13011 fi
13012
13013 fi
13014 fi
13015
13016
13017 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13018
13019
13020 echo "$as_me:$LINENO: checking what assembler to use" >&5
13021 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13022 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13023   # Single tree build which includes gas.  We want to prefer it
13024   # over whatever linker top-level may have detected, since
13025   # we'll use what we're building after installation anyway.
13026   echo "$as_me:$LINENO: result: newly built gas" >&5
13027 echo "${ECHO_T}newly built gas" >&6
13028   in_tree_gas=yes
13029   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13030 for f in $gcc_cv_as_bfd_srcdir/configure \
13031          $gcc_cv_as_gas_srcdir/configure \
13032          $gcc_cv_as_gas_srcdir/configure.in \
13033          $gcc_cv_as_gas_srcdir/Makefile.in ; do
13034   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13035   if test x$gcc_cv_gas_version != x; then
13036     break
13037   fi
13038 done
13039 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13040 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13041 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13042 case $gcc_cv_gas_patch_version in
13043   "") gcc_cv_gas_patch_version="0" ;;
13044 esac
13045 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13046                             + $gcc_cv_gas_minor_version \) \* 1000 \
13047                             + $gcc_cv_gas_patch_version`
13048
13049   in_tree_gas_is_elf=no
13050   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13051      || (grep 'obj_format = multi' ../gas/Makefile \
13052          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13053   then
13054     in_tree_gas_is_elf=yes
13055   fi
13056 else
13057   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13058 echo "${ECHO_T}$gcc_cv_as" >&6
13059   in_tree_gas=no
13060 fi
13061
13062 # Identify the linker which will work hand-in-glove with the newly
13063 # built GCC, so that we can examine its features.  This is the linker
13064 # which will be driven by the driver program.
13065 #
13066 # If build != host, and we aren't building gas in-tree, we identify a
13067 # build->target linker and hope that it will have the same features
13068 # as the host->target linker we'll be using.
13069 gcc_cv_gld_major_version=
13070 gcc_cv_gld_minor_version=
13071 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13072 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13073
13074 if test "${gcc_cv_ld+set}" = set; then
13075   :
13076 else
13077
13078 if test -x "$DEFAULT_LINKER"; then
13079         gcc_cv_ld="$DEFAULT_LINKER"
13080 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13081      && test -f ../ld/Makefile \
13082      && test x$build = x$host; then
13083         gcc_cv_ld=../ld/ld-new$build_exeext
13084 elif test -x collect-ld$build_exeext; then
13085         # Build using linker in the current directory.
13086         gcc_cv_ld=./collect-ld$build_exeext
13087 elif test -x $LD_FOR_TARGET; then
13088         gcc_cv_ld="$LD_FOR_TARGET"
13089 else
13090         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13091 set dummy $LD_FOR_TARGET; ac_word=$2
13092 echo "$as_me:$LINENO: checking for $ac_word" >&5
13093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13094 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13095   echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097   case $gcc_cv_ld in
13098   [\\/]* | ?:[\\/]*)
13099   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13100   ;;
13101   *)
13102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103 for as_dir in $PATH
13104 do
13105   IFS=$as_save_IFS
13106   test -z "$as_dir" && as_dir=.
13107   for ac_exec_ext in '' $ac_executable_extensions; do
13108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13109     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13111     break 2
13112   fi
13113 done
13114 done
13115
13116   ;;
13117 esac
13118 fi
13119 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13120
13121 if test -n "$gcc_cv_ld"; then
13122   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13123 echo "${ECHO_T}$gcc_cv_ld" >&6
13124 else
13125   echo "$as_me:$LINENO: result: no" >&5
13126 echo "${ECHO_T}no" >&6
13127 fi
13128
13129 fi
13130 fi
13131
13132
13133 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13134
13135
13136 echo "$as_me:$LINENO: checking what linker to use" >&5
13137 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13138 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13139         # Single tree build which includes ld.  We want to prefer it
13140         # over whatever linker top-level may have detected, since
13141         # we'll use what we're building after installation anyway.
13142         echo "$as_me:$LINENO: result: newly built ld" >&5
13143 echo "${ECHO_T}newly built ld" >&6
13144         in_tree_ld=yes
13145         in_tree_ld_is_elf=no
13146         if (grep 'EMUL = .*elf' ../ld/Makefile \
13147             || grep 'EMUL = .*linux' ../ld/Makefile \
13148             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13149           in_tree_ld_is_elf=yes
13150         fi
13151         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
13152         do
13153                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13154                 if test x$gcc_cv_gld_version != x; then
13155                         break
13156                 fi
13157         done
13158         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13159         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13160 else
13161         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13162 echo "${ECHO_T}$gcc_cv_ld" >&6
13163         in_tree_ld=no
13164 fi
13165
13166 # Figure out what nm we will be using.
13167 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13168 if test "${gcc_cv_nm+set}" = set; then
13169   :
13170 else
13171
13172 if test -f $gcc_cv_binutils_srcdir/configure.in \
13173      && test -f ../binutils/Makefile; then
13174         gcc_cv_nm=../binutils/nm-new$build_exeext
13175 elif test -x nm$build_exeext; then
13176         gcc_cv_nm=./nm$build_exeext
13177 elif test -x $NM_FOR_TARGET; then
13178         gcc_cv_nm="$NM_FOR_TARGET"
13179 else
13180         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13181 set dummy $NM_FOR_TARGET; ac_word=$2
13182 echo "$as_me:$LINENO: checking for $ac_word" >&5
13183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13184 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13185   echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187   case $gcc_cv_nm in
13188   [\\/]* | ?:[\\/]*)
13189   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13190   ;;
13191   *)
13192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13194 do
13195   IFS=$as_save_IFS
13196   test -z "$as_dir" && as_dir=.
13197   for ac_exec_ext in '' $ac_executable_extensions; do
13198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13199     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13201     break 2
13202   fi
13203 done
13204 done
13205
13206   ;;
13207 esac
13208 fi
13209 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13210
13211 if test -n "$gcc_cv_nm"; then
13212   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13213 echo "${ECHO_T}$gcc_cv_nm" >&6
13214 else
13215   echo "$as_me:$LINENO: result: no" >&5
13216 echo "${ECHO_T}no" >&6
13217 fi
13218
13219 fi
13220 fi
13221
13222
13223 echo "$as_me:$LINENO: checking what nm to use" >&5
13224 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13225 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13226         # Single tree build which includes binutils.
13227         echo "$as_me:$LINENO: result: newly built nm" >&5
13228 echo "${ECHO_T}newly built nm" >&6
13229         in_tree_nm=yes
13230 else
13231         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13232 echo "${ECHO_T}$gcc_cv_nm" >&6
13233         in_tree_nm=no
13234 fi
13235
13236 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13237
13238
13239 # Figure out what objdump we will be using.
13240 if test "${gcc_cv_objdump+set}" = set; then
13241   :
13242 else
13243
13244 if test -f $gcc_cv_binutils_srcdir/configure.in \
13245      && test -f ../binutils/Makefile; then
13246         # Single tree build which includes binutils.
13247         gcc_cv_objdump=../binutils/objdump$build_exeext
13248 elif test -x objdump$build_exeext; then
13249         gcc_cv_objdump=./objdump$build_exeext
13250 elif test -x $OBJDUMP_FOR_TARGET; then
13251         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13252 else
13253         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13254 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13255 echo "$as_me:$LINENO: checking for $ac_word" >&5
13256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13257 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13258   echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260   case $gcc_cv_objdump in
13261   [\\/]* | ?:[\\/]*)
13262   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13263   ;;
13264   *)
13265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13266 for as_dir in $PATH
13267 do
13268   IFS=$as_save_IFS
13269   test -z "$as_dir" && as_dir=.
13270   for ac_exec_ext in '' $ac_executable_extensions; do
13271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13272     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13274     break 2
13275   fi
13276 done
13277 done
13278
13279   ;;
13280 esac
13281 fi
13282 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13283
13284 if test -n "$gcc_cv_objdump"; then
13285   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13286 echo "${ECHO_T}$gcc_cv_objdump" >&6
13287 else
13288   echo "$as_me:$LINENO: result: no" >&5
13289 echo "${ECHO_T}no" >&6
13290 fi
13291
13292 fi
13293 fi
13294
13295
13296 echo "$as_me:$LINENO: checking what objdump to use" >&5
13297 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13298 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13299         # Single tree build which includes binutils.
13300         echo "$as_me:$LINENO: result: newly built objdump" >&5
13301 echo "${ECHO_T}newly built objdump" >&6
13302 elif test x$gcc_cv_objdump = x; then
13303         echo "$as_me:$LINENO: result: not found" >&5
13304 echo "${ECHO_T}not found" >&6
13305 else
13306         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13307 echo "${ECHO_T}$gcc_cv_objdump" >&6
13308 fi
13309
13310 # Figure out what assembler alignment features are present.
13311 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13312 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13313 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13314   echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316   gcc_cv_as_balign_and_p2align=no
13317     if test $in_tree_gas = yes; then
13318     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13319   then gcc_cv_as_balign_and_p2align=yes
13320 fi
13321   elif test x$gcc_cv_as != x; then
13322     echo '.balign 4
13323 .p2align 2' > conftest.s
13324     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326   (eval $ac_try) 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; }
13330     then
13331         gcc_cv_as_balign_and_p2align=yes
13332     else
13333       echo "configure: failed program was" >&5
13334       cat conftest.s >&5
13335     fi
13336     rm -f conftest.o conftest.s
13337   fi
13338 fi
13339 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13340 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13341 if test $gcc_cv_as_balign_and_p2align = yes; then
13342
13343 cat >>confdefs.h <<\_ACEOF
13344 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13345 _ACEOF
13346
13347 fi
13348
13349 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13350 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13351 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13352   echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354   gcc_cv_as_max_skip_p2align=no
13355     if test $in_tree_gas = yes; then
13356     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13357   then gcc_cv_as_max_skip_p2align=yes
13358 fi
13359   elif test x$gcc_cv_as != x; then
13360     echo '.p2align 4,,7' > conftest.s
13361     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363   (eval $ac_try) 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); }; }
13367     then
13368         gcc_cv_as_max_skip_p2align=yes
13369     else
13370       echo "configure: failed program was" >&5
13371       cat conftest.s >&5
13372     fi
13373     rm -f conftest.o conftest.s
13374   fi
13375 fi
13376 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13377 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13378 if test $gcc_cv_as_max_skip_p2align = yes; then
13379
13380 cat >>confdefs.h <<\_ACEOF
13381 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13382 _ACEOF
13383
13384 fi
13385
13386 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13387 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13388 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13389   echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391   gcc_cv_as_subsection_m1=no
13392     if test $in_tree_gas = yes; then
13393     if test $in_tree_gas_is_elf = yes \
13394   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13395   then gcc_cv_as_subsection_m1=yes
13396 fi
13397   elif test x$gcc_cv_as != x; then
13398     echo 'conftest_label1: .word 0
13399 .subsection -1
13400 conftest_label2: .word 0
13401 .previous' > conftest.s
13402     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404   (eval $ac_try) 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); }; }
13408     then
13409         if test x$gcc_cv_nm != x; then
13410     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13411     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13412     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13413     then :
13414     else gcc_cv_as_subsection_m1=yes
13415     fi
13416     rm -f conftest.nm1 conftest.nm2
13417   fi
13418     else
13419       echo "configure: failed program was" >&5
13420       cat conftest.s >&5
13421     fi
13422     rm -f conftest.o conftest.s
13423   fi
13424 fi
13425 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13426 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13427 if test $gcc_cv_as_subsection_m1 = yes; then
13428
13429 cat >>confdefs.h <<\_ACEOF
13430 #define HAVE_GAS_SUBSECTION_ORDERING 1
13431 _ACEOF
13432
13433 fi
13434
13435 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13436 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13437 if test "${gcc_cv_as_weak+set}" = set; then
13438   echo $ECHO_N "(cached) $ECHO_C" >&6
13439 else
13440   gcc_cv_as_weak=no
13441     if test $in_tree_gas = yes; then
13442     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13443   then gcc_cv_as_weak=yes
13444 fi
13445   elif test x$gcc_cv_as != x; then
13446     echo '      .weak foobar' > 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_weak=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_weak" >&5
13463 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13464 if test $gcc_cv_as_weak = yes; then
13465
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_GAS_WEAK 1
13468 _ACEOF
13469
13470 fi
13471
13472 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13473 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13474 if test "${gcc_cv_as_weakref+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   gcc_cv_as_weakref=no
13478     if test $in_tree_gas = yes; then
13479     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13480   then gcc_cv_as_weakref=yes
13481 fi
13482   elif test x$gcc_cv_as != x; then
13483     echo '      .weakref foobar, barfnot' > conftest.s
13484     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486   (eval $ac_try) 2>&5
13487   ac_status=$?
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); }; }
13490     then
13491         gcc_cv_as_weakref=yes
13492     else
13493       echo "configure: failed program was" >&5
13494       cat conftest.s >&5
13495     fi
13496     rm -f conftest.o conftest.s
13497   fi
13498 fi
13499 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13500 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13501 if test $gcc_cv_as_weakref = yes; then
13502
13503 cat >>confdefs.h <<\_ACEOF
13504 #define HAVE_GAS_WEAKREF 1
13505 _ACEOF
13506
13507 fi
13508
13509 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13510 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13511 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13512   echo $ECHO_N "(cached) $ECHO_C" >&6
13513 else
13514   gcc_cv_as_nsubspa_comdat=no
13515     if test $in_tree_gas = yes; then
13516     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13517   then gcc_cv_as_nsubspa_comdat=yes
13518 fi
13519   elif test x$gcc_cv_as != x; then
13520     echo '      .SPACE $TEXT$
13521         .NSUBSPA $CODE$,COMDAT' > conftest.s
13522     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524   (eval $ac_try) 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; }
13528     then
13529         gcc_cv_as_nsubspa_comdat=yes
13530     else
13531       echo "configure: failed program was" >&5
13532       cat conftest.s >&5
13533     fi
13534     rm -f conftest.o conftest.s
13535   fi
13536 fi
13537 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13538 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13539 if test $gcc_cv_as_nsubspa_comdat = yes; then
13540
13541 cat >>confdefs.h <<\_ACEOF
13542 #define HAVE_GAS_NSUBSPA_COMDAT 1
13543 _ACEOF
13544
13545 fi
13546
13547 # .hidden needs to be supported in both the assembler and the linker,
13548 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13549 # This is irritatingly difficult to feature test for; we have to check the
13550 # date string after the version number.  If we've got an in-tree
13551 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13552 # to be safe.
13553 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13554 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13555 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13556 if test "${gcc_cv_as_hidden+set}" = set; then
13557   echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559   gcc_cv_as_hidden=no
13560     if test $in_tree_gas = yes; then
13561     if test $in_tree_gas_is_elf = yes \
13562   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13563   then gcc_cv_as_hidden=yes
13564 fi
13565   elif test x$gcc_cv_as != x; then
13566     echo '      .hidden foobar
13567 foobar:' > conftest.s
13568     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570   (eval $ac_try) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; }
13574     then
13575         gcc_cv_as_hidden=yes
13576     else
13577       echo "configure: failed program was" >&5
13578       cat conftest.s >&5
13579     fi
13580     rm -f conftest.o conftest.s
13581   fi
13582 fi
13583 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13584 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13585
13586
13587 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13588 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13589 if test "${gcc_cv_ld_hidden+set}" = set; then
13590   echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592   if test $in_tree_ld = yes ; then
13593   gcc_cv_ld_hidden=no
13594   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 \
13595      && test $in_tree_ld_is_elf = yes; then
13596      gcc_cv_ld_hidden=yes
13597   fi
13598 else
13599   gcc_cv_ld_hidden=yes
13600   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13601   if echo "$ld_ver" | grep GNU > /dev/null; then
13602     ld_vers=`echo $ld_ver | sed -n \
13603         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13604         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13605         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13606         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13607         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13608         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
13609         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   ].*$,\1,p'`
13610     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'`
13611     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13612     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13613     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13614     if test 0"$ld_date" -lt 20020404; then
13615       if test -n "$ld_date"; then
13616         # If there was date string, but was earlier than 2002-04-04, fail
13617         gcc_cv_ld_hidden=no
13618       elif test -z "$ld_vers"; then
13619         # If there was no date string nor ld version number, something is wrong
13620         gcc_cv_ld_hidden=no
13621       else
13622         test -z "$ld_vers_patch" && ld_vers_patch=0
13623         if test "$ld_vers_major" -lt 2; then
13624           gcc_cv_ld_hidden=no
13625         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13626           gcc_cv_ld_hidden="no"
13627         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13628           gcc_cv_ld_hidden=no
13629         fi
13630       fi
13631     fi
13632   else
13633     case "${target}" in
13634       hppa64*-*-hpux* | ia64*-*-hpux*)
13635         gcc_cv_ld_hidden=yes
13636         ;;
13637       *)
13638         gcc_cv_ld_hidden=no
13639         ;;
13640     esac
13641   fi
13642 fi
13643 fi
13644 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13645 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13646 libgcc_visibility=no
13647
13648
13649 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13650   libgcc_visibility=yes
13651
13652 cat >>confdefs.h <<\_ACEOF
13653 #define HAVE_GAS_HIDDEN 1
13654 _ACEOF
13655
13656 fi
13657
13658 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13659 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13660 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13661 if test "${gcc_cv_as_leb128+set}" = set; then
13662   echo $ECHO_N "(cached) $ECHO_C" >&6
13663 else
13664   gcc_cv_as_leb128=no
13665     if test $in_tree_gas = yes; then
13666     if test $in_tree_gas_is_elf = yes \
13667   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13668   then gcc_cv_as_leb128=yes
13669 fi
13670   elif test x$gcc_cv_as != x; then
13671     echo '      .data
13672         .uleb128 L2 - L1
13673 L1:
13674         .uleb128 1280
13675         .sleb128 -1010
13676 L2:' > conftest.s
13677     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679   (eval $ac_try) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); }; }
13683     then
13684         # GAS versions before 2.11 do not support uleb128,
13685   # despite appearing to.
13686   # ??? There exists an elf-specific test that will crash
13687   # the assembler.  Perhaps it's better to figure out whether
13688   # arbitrary sections are supported and try the test.
13689   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13690   if echo "$as_ver" | grep GNU > /dev/null; then
13691     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13692     as_major=`echo $as_ver | sed 's/\..*//'`
13693     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13694     if test $as_major -eq 2 && test $as_minor -lt 11
13695     then :
13696     else gcc_cv_as_leb128=yes
13697     fi
13698   fi
13699     else
13700       echo "configure: failed program was" >&5
13701       cat conftest.s >&5
13702     fi
13703     rm -f conftest.o conftest.s
13704   fi
13705 fi
13706 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13707 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13708 if test $gcc_cv_as_leb128 = yes; then
13709
13710 cat >>confdefs.h <<\_ACEOF
13711 #define HAVE_AS_LEB128 1
13712 _ACEOF
13713
13714 fi
13715
13716 # GAS versions up to and including 2.11.0 may mis-optimize
13717 # .eh_frame data.
13718 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13719 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13720 if test "${gcc_cv_as_eh_frame+set}" = set; then
13721   echo $ECHO_N "(cached) $ECHO_C" >&6
13722 else
13723   gcc_cv_as_eh_frame=no
13724     if test $in_tree_gas = yes; then
13725     if test $in_tree_gas_is_elf = yes \
13726   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13727   then gcc_cv_as_eh_frame=yes
13728 fi
13729   elif test x$gcc_cv_as != x; then
13730     echo '      .text
13731 .LFB1:
13732         .4byte  0
13733 .L1:
13734         .4byte  0
13735 .LFE1:
13736         .section        .eh_frame,"aw",@progbits
13737 __FRAME_BEGIN__:
13738         .4byte  .LECIE1-.LSCIE1
13739 .LSCIE1:
13740         .4byte  0x0
13741         .byte   0x1
13742         .ascii "z\0"
13743         .byte   0x1
13744         .byte   0x78
13745         .byte   0x1a
13746         .byte   0x0
13747         .byte   0x4
13748         .4byte  1
13749         .p2align 1
13750 .LECIE1:
13751 .LSFDE1:
13752         .4byte  .LEFDE1-.LASFDE1
13753 .LASFDE1:
13754         .4byte  .LASFDE1-__FRAME_BEGIN__
13755         .4byte  .LFB1
13756         .4byte  .LFE1-.LFB1
13757         .byte   0x4
13758         .4byte  .LFE1-.LFB1
13759         .byte   0x4
13760         .4byte  .L1-.LFB1
13761 .LEFDE1:' > conftest.s
13762     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764   (eval $ac_try) 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); }; }
13768     then
13769           cat > conftest.lit <<EOF
13770  0000 10000000 00000000 017a0001 781a0004  .........z..x...
13771  0010 01000000 12000000 18000000 00000000  ................
13772  0020 08000000 04080000 0044               .........D      
13773 EOF
13774 cat > conftest.big <<EOF
13775  0000 00000010 00000000 017a0001 781a0004  .........z..x...
13776  0010 00000001 00000012 00000018 00000000  ................
13777  0020 00000008 04000000 0844               .........D      
13778 EOF
13779   # If the assembler didn't choke, and we can objdump,
13780   # and we got the correct data, then succeed.
13781   if test x$gcc_cv_objdump != x \
13782   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13783      | tail -3 > conftest.got \
13784   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13785     || cmp conftest.big conftest.got > /dev/null 2>&1; }
13786   then
13787     gcc_cv_as_eh_frame=yes
13788   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
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); }; }; then
13794     gcc_cv_as_eh_frame=buggy
13795   else
13796     # Uh oh, what do we do now?
13797     gcc_cv_as_eh_frame=no
13798   fi
13799     else
13800       echo "configure: failed program was" >&5
13801       cat conftest.s >&5
13802     fi
13803     rm -f conftest.o conftest.s
13804   fi
13805 fi
13806 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13807 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13808
13809
13810 if test $gcc_cv_as_eh_frame = buggy; then
13811
13812 cat >>confdefs.h <<\_ACEOF
13813 #define USE_AS_TRADITIONAL_FORMAT 1
13814 _ACEOF
13815
13816 fi
13817
13818 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13819 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13820 if test "${gcc_cv_as_shf_merge+set}" = set; then
13821   echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823   gcc_cv_as_shf_merge=no
13824     if test $in_tree_gas = yes; then
13825     if test $in_tree_gas_is_elf = yes \
13826   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13827   then gcc_cv_as_shf_merge=yes
13828 fi
13829   elif test x$gcc_cv_as != x; then
13830     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13831     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833   (eval $ac_try) 2>&5
13834   ac_status=$?
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); }; }
13837     then
13838         gcc_cv_as_shf_merge=yes
13839     else
13840       echo "configure: failed program was" >&5
13841       cat conftest.s >&5
13842     fi
13843     rm -f conftest.o conftest.s
13844   fi
13845 fi
13846 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13847 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13848
13849 if test $gcc_cv_as_shf_merge = no; then
13850   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13851 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13852 if test "${gcc_cv_as_shf_merge+set}" = set; then
13853   echo $ECHO_N "(cached) $ECHO_C" >&6
13854 else
13855   gcc_cv_as_shf_merge=no
13856     if test $in_tree_gas = yes; then
13857     if test $in_tree_gas_is_elf = yes \
13858   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13859   then gcc_cv_as_shf_merge=yes
13860 fi
13861   elif test x$gcc_cv_as != x; then
13862     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13863     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865   (eval $ac_try) 2>&5
13866   ac_status=$?
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); }; }
13869     then
13870         gcc_cv_as_shf_merge=yes
13871     else
13872       echo "configure: failed program was" >&5
13873       cat conftest.s >&5
13874     fi
13875     rm -f conftest.o conftest.s
13876   fi
13877 fi
13878 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13879 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13880
13881 fi
13882
13883 cat >>confdefs.h <<_ACEOF
13884 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13885 _ACEOF
13886
13887
13888 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13889 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13890 if test "${gcc_cv_as_comdat_group+set}" = set; then
13891   echo $ECHO_N "(cached) $ECHO_C" >&6
13892 else
13893   gcc_cv_as_comdat_group=no
13894     if test $in_tree_gas = yes; then
13895     if test $in_tree_gas_is_elf = yes \
13896   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13897   then gcc_cv_as_comdat_group=yes
13898 fi
13899   elif test x$gcc_cv_as != x; then
13900     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13901     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }
13907     then
13908         gcc_cv_as_comdat_group=yes
13909     else
13910       echo "configure: failed program was" >&5
13911       cat conftest.s >&5
13912     fi
13913     rm -f conftest.o conftest.s
13914   fi
13915 fi
13916 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13917 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13918
13919 if test $gcc_cv_as_comdat_group = yes; then
13920   gcc_cv_as_comdat_group_percent=no
13921 else
13922  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13923 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13924 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13925   echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927   gcc_cv_as_comdat_group_percent=no
13928     if test $in_tree_gas = yes; then
13929     if test $in_tree_gas_is_elf = yes \
13930   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13931   then gcc_cv_as_comdat_group_percent=yes
13932 fi
13933   elif test x$gcc_cv_as != x; then
13934     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13935     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937   (eval $ac_try) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; }
13941     then
13942         gcc_cv_as_comdat_group_percent=yes
13943     else
13944       echo "configure: failed program was" >&5
13945       cat conftest.s >&5
13946     fi
13947     rm -f conftest.o conftest.s
13948   fi
13949 fi
13950 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13951 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13952
13953 fi
13954 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
13955   comdat_group=yes
13956   if test 0"$ld_date" -lt 20050308; then
13957     if test -n "$ld_date"; then
13958       # If there was date string, but was earlier than 2005-03-08, fail
13959       comdat_group=no
13960     elif test "$ld_vers_major" -lt 2; then
13961       comdat_group=no
13962     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13963       comdat_group=no
13964     fi
13965   fi
13966 else
13967   # assume linkers other than GNU ld don't support COMDAT group
13968   comdat_group=no
13969 fi
13970 if test $comdat_group = no; then
13971   gcc_cv_as_comdat_group=no
13972   gcc_cv_as_comdat_group_percent=no
13973 fi
13974
13975 cat >>confdefs.h <<_ACEOF
13976 #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`
13977 _ACEOF
13978
13979
13980 # Thread-local storage - the check is heavily parametrized.
13981 conftest_s=
13982 tls_first_major=
13983 tls_first_minor=
13984 tls_as_opt=
13985 case "$target" in
13986   alpha*-*-*)
13987     conftest_s='
13988         .section ".tdata","awT",@progbits
13989 foo:    .long   25
13990         .text
13991         ldq     $27,__tls_get_addr($29)         !literal!1
13992         lda     $16,foo($29)                    !tlsgd!1
13993         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
13994         ldq     $27,__tls_get_addr($29)         !literal!2
13995         lda     $16,foo($29)                    !tlsldm!2
13996         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
13997         ldq     $1,foo($29)                     !gotdtprel
13998         ldah    $2,foo($29)                     !dtprelhi
13999         lda     $3,foo($2)                      !dtprello
14000         lda     $4,foo($29)                     !dtprel
14001         ldq     $1,foo($29)                     !gottprel
14002         ldah    $2,foo($29)                     !tprelhi
14003         lda     $3,foo($2)                      !tprello
14004         lda     $4,foo($29)                     !tprel'
14005         tls_first_major=2
14006         tls_first_minor=13
14007         tls_as_opt=--fatal-warnings
14008         ;;
14009   frv*-*-*)
14010     conftest_s='
14011         .section ".tdata","awT",@progbits
14012 x:      .long   25
14013         .text
14014         call    #gettlsoff(x)'
14015         tls_first_major=2
14016         tls_first_minor=14
14017         ;;
14018   hppa*-*-linux*)
14019     conftest_s='
14020 t1:     .reg    %r20
14021 t2:     .reg    %r21
14022 gp:     .reg    %r19
14023         .section ".tdata","awT",@progbits
14024 foo:    .long   25
14025         .text
14026         .align  4
14027         addil LT%foo-$tls_gdidx$,gp
14028         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14029         b __tls_get_addr
14030         nop
14031         addil LT%foo-$tls_ldidx$,gp
14032         b __tls_get_addr
14033         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14034         addil LR%foo-$tls_dtpoff$,%ret0
14035         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14036         mfctl %cr27,%t1
14037         addil LT%foo-$tls_ieoff$,gp
14038         ldw RT%foo-$tls_ieoff$(%r1),%t2
14039         add %t1,%t2,%t3
14040         mfctl %cr27,%t1
14041         addil LR%foo-$tls_leoff$,%t1
14042         ldo RR%foo-$tls_leoff$(%r1),%t2'
14043         tls_first_major=2
14044         tls_first_minor=15
14045         tls_as_opt=--fatal-warnings
14046         ;;
14047   arm*-*-*)
14048     conftest_s='
14049         .section ".tdata","awT",%progbits
14050 foo:    .long   25
14051         .text
14052 .word foo(gottpoff)
14053 .word foo(tpoff)
14054 .word foo(tlsgd)
14055 .word foo(tlsldm)
14056 .word foo(tlsldo)'
14057         tls_first_major=2
14058         tls_first_minor=17
14059         ;;
14060   i[34567]86-*-*)
14061     conftest_s='
14062         .section ".tdata","awT",@progbits
14063 foo:    .long   25
14064         .text
14065         movl    %gs:0, %eax
14066         leal    foo@TLSGD(,%ebx,1), %eax
14067         leal    foo@TLSLDM(%ebx), %eax
14068         leal    foo@DTPOFF(%eax), %edx
14069         movl    foo@GOTTPOFF(%ebx), %eax
14070         subl    foo@GOTTPOFF(%ebx), %eax
14071         addl    foo@GOTNTPOFF(%ebx), %eax
14072         movl    foo@INDNTPOFF, %eax
14073         movl    $foo@TPOFF, %eax
14074         subl    $foo@TPOFF, %eax
14075         leal    foo@NTPOFF(%ecx), %eax'
14076         tls_first_major=2
14077         tls_first_minor=14
14078         tls_as_opt=--fatal-warnings
14079         ;;
14080   x86_64-*-*)
14081     conftest_s='
14082         .section ".tdata","awT",@progbits
14083 foo:    .long   25
14084         .text
14085         movq    %fs:0, %rax
14086         leaq    foo@TLSGD(%rip), %rdi
14087         leaq    foo@TLSLD(%rip), %rdi
14088         leaq    foo@DTPOFF(%rax), %rdx
14089         movq    foo@GOTTPOFF(%rip), %rax
14090         movq    $foo@TPOFF, %rax'
14091         tls_first_major=2
14092         tls_first_minor=14
14093         tls_as_opt=--fatal-warnings
14094         ;;
14095   ia64-*-*)
14096     conftest_s='
14097         .section ".tdata","awT",@progbits
14098 foo:    data8   25
14099         .text
14100         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14101         addl    r17 = @ltoff(@dtprel(foo#)), gp
14102         addl    r18 = @ltoff(@tprel(foo#)), gp
14103         addl    r19 = @dtprel(foo#), gp
14104         adds    r21 = @dtprel(foo#), r13
14105         movl    r23 = @dtprel(foo#)
14106         addl    r20 = @tprel(foo#), gp
14107         adds    r22 = @tprel(foo#), r13
14108         movl    r24 = @tprel(foo#)'
14109         tls_first_major=2
14110         tls_first_minor=13
14111         tls_as_opt=--fatal-warnings
14112         ;;
14113   mips*-*-*)
14114     conftest_s='
14115         .section .tdata,"awT",@progbits
14116 x:
14117         .word 2
14118         .text
14119         addiu $4, $28, %tlsgd(x)
14120         addiu $4, $28, %tlsldm(x)
14121         lui $4, %dtprel_hi(x)
14122         addiu $4, $4, %dtprel_lo(x)
14123         lw $4, %gottprel(x)($28)
14124         lui $4, %tprel_hi(x)
14125         addiu $4, $4, %tprel_lo(x)'
14126         tls_first_major=2
14127         tls_first_minor=16
14128         tls_as_opt='-32 --fatal-warnings'
14129         ;;
14130   powerpc-*-*)
14131     conftest_s='
14132         .section ".tdata","awT",@progbits
14133         .align 2
14134 ld0:    .space 4
14135 ld1:    .space 4
14136 x1:     .space 4
14137 x2:     .space 4
14138 x3:     .space 4
14139         .text
14140         addi 3,31,ld0@got@tlsgd
14141         bl __tls_get_addr
14142         addi 3,31,x1@got@tlsld
14143         bl __tls_get_addr
14144         addi 9,3,x1@dtprel
14145         addis 9,3,x2@dtprel@ha
14146         addi 9,9,x2@dtprel@l
14147         lwz 9,x3@got@tprel(31)
14148         add 9,9,x@tls
14149         addi 9,2,x1@tprel
14150         addis 9,2,x2@tprel@ha
14151         addi 9,9,x2@tprel@l'
14152         tls_first_major=2
14153         tls_first_minor=14
14154         tls_as_opt="-a32 --fatal-warnings"
14155         ;;
14156   powerpc64-*-*)
14157     conftest_s='
14158         .section ".tdata","awT",@progbits
14159         .align 3
14160 ld0:    .space 8
14161 ld1:    .space 8
14162 x1:     .space 8
14163 x2:     .space 8
14164 x3:     .space 8
14165         .text
14166         addi 3,2,ld0@got@tlsgd
14167         bl .__tls_get_addr
14168         nop
14169         addi 3,2,ld1@toc
14170         bl .__tls_get_addr
14171         nop
14172         addi 3,2,x1@got@tlsld
14173         bl .__tls_get_addr
14174         nop
14175         addi 9,3,x1@dtprel
14176         bl .__tls_get_addr
14177         nop
14178         addis 9,3,x2@dtprel@ha
14179         addi 9,9,x2@dtprel@l
14180         bl .__tls_get_addr
14181         nop
14182         ld 9,x3@got@dtprel(2)
14183         add 9,9,3
14184         bl .__tls_get_addr
14185         nop'
14186         tls_first_major=2
14187         tls_first_minor=14
14188         tls_as_opt="-a64 --fatal-warnings"
14189         ;;
14190   s390-*-*)
14191     conftest_s='
14192         .section ".tdata","awT",@progbits
14193 foo:    .long   25
14194         .text
14195         .long   foo@TLSGD
14196         .long   foo@TLSLDM
14197         .long   foo@DTPOFF
14198         .long   foo@NTPOFF
14199         .long   foo@GOTNTPOFF
14200         .long   foo@INDNTPOFF
14201         l       %r1,foo@GOTNTPOFF(%r12)
14202         l       %r1,0(%r1):tls_load:foo
14203         bas     %r14,0(%r1,%r13):tls_gdcall:foo
14204         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14205         tls_first_major=2
14206         tls_first_minor=14
14207         tls_as_opt="-m31 --fatal-warnings"
14208         ;;
14209   s390x-*-*)
14210     conftest_s='
14211         .section ".tdata","awT",@progbits
14212 foo:    .long   25
14213         .text
14214         .quad   foo@TLSGD
14215         .quad   foo@TLSLDM
14216         .quad   foo@DTPOFF
14217         .quad   foo@NTPOFF
14218         .quad   foo@GOTNTPOFF
14219         lg      %r1,foo@GOTNTPOFF(%r12)
14220         larl    %r1,foo@INDNTPOFF
14221         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14222         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14223         tls_first_major=2
14224         tls_first_minor=14
14225         tls_as_opt="-m64 -Aesame --fatal-warnings"
14226         ;;
14227   sh-*-* | sh[34]-*-*)
14228     conftest_s='
14229         .section ".tdata","awT",@progbits
14230 foo:    .long   25
14231         .text
14232         .long   foo@TLSGD
14233         .long   foo@TLSLDM
14234         .long   foo@DTPOFF
14235         .long   foo@GOTTPOFF
14236         .long   foo@TPOFF'
14237         tls_first_major=2
14238         tls_first_minor=13
14239         tls_as_opt=--fatal-warnings
14240         ;;
14241   sparc*-*-*)
14242     case "$target" in
14243       sparc*-sun-solaris2.[56789]*)
14244         # TLS was introduced in the Solaris 9 4/04 release but
14245         # we do not enable it by default on Solaris 9 either.
14246         if test "x$enable_tls" = xyes ; then
14247           on_solaris=yes
14248         else
14249           enable_tls=no;
14250         fi
14251         ;;
14252       sparc*-sun-solaris2.*)
14253         on_solaris=yes
14254         ;;
14255       *)
14256         on_solaris=no
14257         ;;
14258     esac
14259     if test x$on_solaris = xyes && test x$gas_flag = xno; then
14260       conftest_s='
14261         .section ".tdata",#alloc,#write,#tls
14262 foo:    .long   25
14263         .text
14264         sethi   %tgd_hi22(foo), %o0
14265         add     %o0, %tgd_lo10(foo), %o1
14266         add     %l7, %o1, %o0, %tgd_add(foo)
14267         call    __tls_get_addr, %tgd_call(foo)
14268         sethi   %tldm_hi22(foo), %l1
14269         add     %l1, %tldm_lo10(foo), %l2
14270         add     %l7, %l2, %o0, %tldm_add(foo)
14271         call    __tls_get_addr, %tldm_call(foo)
14272         sethi   %tldo_hix22(foo), %l3
14273         xor     %l3, %tldo_lox10(foo), %l4
14274         add     %o0, %l4, %l5, %tldo_add(foo)
14275         sethi   %tie_hi22(foo), %o3
14276         add     %o3, %tie_lo10(foo), %o3
14277         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14278         add     %g7, %o2, %o4, %tie_add(foo)
14279         sethi   %tle_hix22(foo), %l1
14280         xor     %l1, %tle_lox10(foo), %o5
14281         ld      [%g7 + %o5], %o1'
14282         tls_first_major=0
14283         tls_first_minor=0
14284     else
14285       conftest_s='
14286         .section ".tdata","awT",@progbits
14287 foo:    .long   25
14288         .text
14289         sethi   %tgd_hi22(foo), %o0
14290         add     %o0, %tgd_lo10(foo), %o1
14291         add     %l7, %o1, %o0, %tgd_add(foo)
14292         call    __tls_get_addr, %tgd_call(foo)
14293         sethi   %tldm_hi22(foo), %l1
14294         add     %l1, %tldm_lo10(foo), %l2
14295         add     %l7, %l2, %o0, %tldm_add(foo)
14296         call    __tls_get_addr, %tldm_call(foo)
14297         sethi   %tldo_hix22(foo), %l3
14298         xor     %l3, %tldo_lox10(foo), %l4
14299         add     %o0, %l4, %l5, %tldo_add(foo)
14300         sethi   %tie_hi22(foo), %o3
14301         add     %o3, %tie_lo10(foo), %o3
14302         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14303         add     %g7, %o2, %o4, %tie_add(foo)
14304         sethi   %tle_hix22(foo), %l1
14305         xor     %l1, %tle_lox10(foo), %o5
14306         ld      [%g7 + %o5], %o1'
14307         tls_first_major=2
14308         tls_first_minor=14
14309         tls_as_opt="-32 --fatal-warnings"
14310       fi
14311         ;;
14312 esac
14313 set_have_as_tls=no
14314 if test "x$enable_tls" = xno ; then
14315   : # TLS explicitly disabled.
14316 elif test "x$enable_tls" = xyes ; then
14317   set_have_as_tls=yes # TLS explicitly enabled.
14318 elif test -z "$tls_first_major"; then
14319   : # If we don't have a check, assume no support.
14320 else
14321   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14322 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14323 if test "${gcc_cv_as_tls+set}" = set; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   gcc_cv_as_tls=no
14327     if test $in_tree_gas = yes; then
14328     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14329   then gcc_cv_as_tls=yes
14330 fi
14331   elif test x$gcc_cv_as != x; then
14332     echo "$conftest_s" > conftest.s
14333     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335   (eval $ac_try) 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); }; }
14339     then
14340         gcc_cv_as_tls=yes
14341     else
14342       echo "configure: failed program was" >&5
14343       cat conftest.s >&5
14344     fi
14345     rm -f conftest.o conftest.s
14346   fi
14347 fi
14348 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14349 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14350 if test $gcc_cv_as_tls = yes; then
14351   set_have_as_tls=yes
14352 fi
14353 fi
14354 if test $set_have_as_tls = yes ; then
14355
14356 cat >>confdefs.h <<\_ACEOF
14357 #define HAVE_AS_TLS 1
14358 _ACEOF
14359
14360 fi
14361
14362 # Target-specific assembler checks.
14363
14364 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14365 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14366 gcc_cv_ld_static_dynamic=no
14367 if test $in_tree_ld = yes ; then
14368   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14369     gcc_cv_ld_static_dynamic=yes
14370   fi
14371 elif test x$gcc_cv_ld != x; then
14372         # Check if linker supports -Bstatic/-Bdynamic option
14373         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14374           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14375                 gcc_cv_ld_static_dynamic=yes
14376         fi
14377 fi
14378 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14379
14380 cat >>confdefs.h <<\_ACEOF
14381 #define HAVE_LD_STATIC_DYNAMIC 1
14382 _ACEOF
14383
14384 fi
14385 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14386 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14387
14388 if test x"$demangler_in_ld" = xyes; then
14389   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14390 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14391   gcc_cv_ld_demangle=no
14392   if test $in_tree_ld = yes; then
14393     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 \
14394       gcc_cv_ld_demangle=yes
14395     fi
14396   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14397     # Check if the GNU linker supports --demangle option
14398     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14399       gcc_cv_ld_demangle=yes
14400     fi
14401   fi
14402   if test x"$gcc_cv_ld_demangle" = xyes; then
14403
14404 cat >>confdefs.h <<\_ACEOF
14405 #define HAVE_LD_DEMANGLE 1
14406 _ACEOF
14407
14408   fi
14409   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14410 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14411 fi
14412
14413 case "$target" in
14414   # All TARGET_ABI_OSF targets.
14415   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14416     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14417 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14418 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14419   echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421   gcc_cv_as_alpha_explicit_relocs=no
14422     if test $in_tree_gas = yes; then
14423     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14424   then gcc_cv_as_alpha_explicit_relocs=yes
14425 fi
14426   elif test x$gcc_cv_as != x; then
14427     echo '      .set nomacro
14428         .text
14429         extbl   $3, $2, $3      !lituse_bytoff!1
14430         ldq     $2, a($29)      !literal!1
14431         ldq     $4, b($29)      !literal!2
14432         ldq_u   $3, 0($2)       !lituse_base!1
14433         ldq     $27, f($29)     !literal!5
14434         jsr     $26, ($27), f   !lituse_jsr!5
14435         ldah    $29, 0($26)     !gpdisp!3
14436         lda     $0, c($29)      !gprel
14437         ldah    $1, d($29)      !gprelhigh
14438         lda     $1, d($1)       !gprellow
14439         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14440     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442   (eval $ac_try) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; }
14446     then
14447         gcc_cv_as_alpha_explicit_relocs=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_alpha_explicit_relocs" >&5
14456 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14457 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14458
14459 cat >>confdefs.h <<\_ACEOF
14460 #define HAVE_AS_EXPLICIT_RELOCS 1
14461 _ACEOF
14462
14463 fi
14464     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14465 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14466 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14467   echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469   gcc_cv_as_alpha_jsrdirect_relocs=no
14470     if test $in_tree_gas = yes; then
14471     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14472   then gcc_cv_as_alpha_jsrdirect_relocs=yes
14473 fi
14474   elif test x$gcc_cv_as != x; then
14475     echo '      .set nomacro
14476         .text
14477         ldq     $27, a($29)     !literal!1
14478         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
14479     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481   (eval $ac_try) 2>&5
14482   ac_status=$?
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); }; }
14485     then
14486         gcc_cv_as_alpha_jsrdirect_relocs=yes
14487     else
14488       echo "configure: failed program was" >&5
14489       cat conftest.s >&5
14490     fi
14491     rm -f conftest.o conftest.s
14492   fi
14493 fi
14494 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14495 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14496 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14497
14498 cat >>confdefs.h <<\_ACEOF
14499 #define HAVE_AS_JSRDIRECT_RELOCS 1
14500 _ACEOF
14501
14502 fi
14503     ;;
14504
14505   cris-*-*)
14506     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14507 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14508 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   gcc_cv_as_cris_no_mul_bug=no
14512     if test $in_tree_gas = yes; then
14513     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14514   then gcc_cv_as_cris_no_mul_bug=yes
14515 fi
14516   elif test x$gcc_cv_as != x; then
14517     echo '.text' > conftest.s
14518     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520   (eval $ac_try) 2>&5
14521   ac_status=$?
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); }; }
14524     then
14525         gcc_cv_as_cris_no_mul_bug=yes
14526     else
14527       echo "configure: failed program was" >&5
14528       cat conftest.s >&5
14529     fi
14530     rm -f conftest.o conftest.s
14531   fi
14532 fi
14533 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14534 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14535 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14536
14537 cat >>confdefs.h <<\_ACEOF
14538 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14539 _ACEOF
14540
14541 fi
14542     ;;
14543
14544   sparc*-*-*)
14545     echo "$as_me:$LINENO: checking assembler for .register" >&5
14546 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14547 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14548   echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550   gcc_cv_as_sparc_register_op=no
14551   if test x$gcc_cv_as != x; then
14552     echo '.register %g2, #scratch' > conftest.s
14553     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555   (eval $ac_try) 2>&5
14556   ac_status=$?
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); }; }
14559     then
14560         gcc_cv_as_sparc_register_op=yes
14561     else
14562       echo "configure: failed program was" >&5
14563       cat conftest.s >&5
14564     fi
14565     rm -f conftest.o conftest.s
14566   fi
14567 fi
14568 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14569 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14570 if test $gcc_cv_as_sparc_register_op = yes; then
14571
14572 cat >>confdefs.h <<\_ACEOF
14573 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14574 _ACEOF
14575
14576 fi
14577
14578     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14579 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14580 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14581   echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583   gcc_cv_as_sparc_relax=no
14584   if test x$gcc_cv_as != x; then
14585     echo '.text' > conftest.s
14586     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }
14592     then
14593         gcc_cv_as_sparc_relax=yes
14594     else
14595       echo "configure: failed program was" >&5
14596       cat conftest.s >&5
14597     fi
14598     rm -f conftest.o conftest.s
14599   fi
14600 fi
14601 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14602 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14603 if test $gcc_cv_as_sparc_relax = yes; then
14604
14605 cat >>confdefs.h <<\_ACEOF
14606 #define HAVE_AS_RELAX_OPTION 1
14607 _ACEOF
14608
14609 fi
14610
14611     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14612 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14613 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   gcc_cv_as_sparc_ua_pcrel=no
14617   if test x$gcc_cv_as != x; then
14618     echo '.text
14619 foo:
14620         nop
14621 .data
14622 .align 4
14623 .byte 0
14624 .uaword %r_disp32(foo)' > conftest.s
14625     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627   (eval $ac_try) 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); }; }
14631     then
14632         if test x$gcc_cv_ld != x \
14633        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14634          gcc_cv_as_sparc_ua_pcrel=yes
14635        fi
14636        rm -f conftest
14637     else
14638       echo "configure: failed program was" >&5
14639       cat conftest.s >&5
14640     fi
14641     rm -f conftest.o conftest.s
14642   fi
14643 fi
14644 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14645 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14646 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14647
14648 cat >>confdefs.h <<\_ACEOF
14649 #define HAVE_AS_SPARC_UA_PCREL 1
14650 _ACEOF
14651
14652
14653       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14654 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14655 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14656   echo $ECHO_N "(cached) $ECHO_C" >&6
14657 else
14658   gcc_cv_as_sparc_ua_pcrel_hidden=no
14659   if test x$gcc_cv_as != x; then
14660     echo '.data
14661 .align 4
14662 .byte 0x31
14663 .uaword %r_disp32(foo)
14664 .byte 0x32, 0x33, 0x34
14665 .global foo
14666 .hidden foo
14667 foo:
14668 .skip 4' > conftest.s
14669     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671   (eval $ac_try) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }; }
14675     then
14676         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14677          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14678          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14679             | grep ' 31000000 07323334' > /dev/null 2>&1; then
14680             if $gcc_cv_objdump -R conftest 2> /dev/null \
14681                | grep 'DISP32' > /dev/null 2>&1; then
14682                 :
14683             else
14684                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14685             fi
14686          fi
14687          rm -f conftest
14688     else
14689       echo "configure: failed program was" >&5
14690       cat conftest.s >&5
14691     fi
14692     rm -f conftest.o conftest.s
14693   fi
14694 fi
14695 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14696 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14697 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14698
14699 cat >>confdefs.h <<\_ACEOF
14700 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14701 _ACEOF
14702
14703 fi
14704
14705 fi # unaligned pcrel relocs
14706
14707     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14708 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14709 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14710   echo $ECHO_N "(cached) $ECHO_C" >&6
14711 else
14712   gcc_cv_as_sparc_offsetable_lo10=no
14713   if test x$gcc_cv_as != x; then
14714     echo '.text
14715         or %g1, %lo(ab) + 12, %g1
14716         or %g1, %lo(ab + 12), %g1' > conftest.s
14717     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719   (eval $ac_try) 2>&5
14720   ac_status=$?
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); }; }
14723     then
14724         if test x$gcc_cv_objdump != x \
14725        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14726           | grep ' 82106000 82106000' > /dev/null 2>&1; then
14727          gcc_cv_as_sparc_offsetable_lo10=yes
14728        fi
14729     else
14730       echo "configure: failed program was" >&5
14731       cat conftest.s >&5
14732     fi
14733     rm -f conftest.o conftest.s
14734   fi
14735 fi
14736 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14737 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14738 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14739
14740 cat >>confdefs.h <<\_ACEOF
14741 #define HAVE_AS_OFFSETABLE_LO10 1
14742 _ACEOF
14743
14744 fi
14745     ;;
14746
14747   i[34567]86-*-* | x86_64-*-*)
14748     case $target_os in
14749       cygwin* | pe | mingw32*)
14750         # Used for DWARF 2 in PE
14751         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14752 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14753 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14754   echo $ECHO_N "(cached) $ECHO_C" >&6
14755 else
14756   gcc_cv_as_ix86_pe_secrel32=no
14757     if test $in_tree_gas = yes; then
14758     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14759   then gcc_cv_as_ix86_pe_secrel32=yes
14760 fi
14761   elif test x$gcc_cv_as != x; then
14762     echo '.text
14763 foo:    nop
14764 .data
14765         .secrel32 foo' > conftest.s
14766     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768   (eval $ac_try) 2>&5
14769   ac_status=$?
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); }; }
14772     then
14773         if test x$gcc_cv_ld != x \
14774            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14775              gcc_cv_as_ix86_pe_secrel32=yes
14776            fi
14777            rm -f conftest
14778     else
14779       echo "configure: failed program was" >&5
14780       cat conftest.s >&5
14781     fi
14782     rm -f conftest.o conftest.s
14783   fi
14784 fi
14785 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14786 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14787 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14788
14789 cat >>confdefs.h <<\_ACEOF
14790 #define HAVE_GAS_PE_SECREL32_RELOC 1
14791 _ACEOF
14792
14793 fi
14794         ;;
14795     esac
14796
14797     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14798 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14799 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14800   echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802   gcc_cv_as_ix86_filds_fists=no
14803     if test $in_tree_gas = yes; then
14804     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14805   then gcc_cv_as_ix86_filds_fists=yes
14806 fi
14807   elif test x$gcc_cv_as != x; then
14808     echo 'filds mem; fists mem' > conftest.s
14809     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811   (eval $ac_try) 2>&5
14812   ac_status=$?
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); }; }
14815     then
14816         gcc_cv_as_ix86_filds_fists=yes
14817     else
14818       echo "configure: failed program was" >&5
14819       cat conftest.s >&5
14820     fi
14821     rm -f conftest.o conftest.s
14822   fi
14823 fi
14824 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14825 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14826 if test $gcc_cv_as_ix86_filds_fists = yes; then
14827
14828 cat >>confdefs.h <<\_ACEOF
14829 #define HAVE_GAS_FILDS_FISTS 1
14830 _ACEOF
14831
14832 fi
14833
14834     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14835 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14836 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14837   echo $ECHO_N "(cached) $ECHO_C" >&6
14838 else
14839   gcc_cv_as_ix86_cmov_sun_syntax=no
14840   if test x$gcc_cv_as != x; then
14841     echo 'cmovl.l %edx, %eax' > conftest.s
14842     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844   (eval $ac_try) 2>&5
14845   ac_status=$?
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); }; }
14848     then
14849         gcc_cv_as_ix86_cmov_sun_syntax=yes
14850     else
14851       echo "configure: failed program was" >&5
14852       cat conftest.s >&5
14853     fi
14854     rm -f conftest.o conftest.s
14855   fi
14856 fi
14857 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14858 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14859 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14860
14861 cat >>confdefs.h <<\_ACEOF
14862 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14863 _ACEOF
14864
14865 fi
14866
14867     # This one is used unconditionally by i386.[ch]; it is to be defined
14868     # to 1 if the feature is present, 0 otherwise.
14869     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14870 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14871 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14872   echo $ECHO_N "(cached) $ECHO_C" >&6
14873 else
14874   gcc_cv_as_ix86_gotoff_in_data=no
14875     if test $in_tree_gas = yes; then
14876     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14877   then gcc_cv_as_ix86_gotoff_in_data=yes
14878 fi
14879   elif test x$gcc_cv_as != x; then
14880     echo '      .text
14881 .L0:
14882         nop
14883         .data
14884         .long .L0@GOTOFF' > conftest.s
14885     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887   (eval $ac_try) 2>&5
14888   ac_status=$?
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); }; }
14891     then
14892         gcc_cv_as_ix86_gotoff_in_data=yes
14893     else
14894       echo "configure: failed program was" >&5
14895       cat conftest.s >&5
14896     fi
14897     rm -f conftest.o conftest.s
14898   fi
14899 fi
14900 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14901 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14902
14903
14904 cat >>confdefs.h <<_ACEOF
14905 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14906 _ACEOF
14907
14908     ;;
14909
14910   ia64*-*-*)
14911     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14912 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14913 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14914   echo $ECHO_N "(cached) $ECHO_C" >&6
14915 else
14916   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14917     if test $in_tree_gas = yes; then
14918     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14919   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14920 fi
14921   elif test x$gcc_cv_as != x; then
14922     echo '      .text
14923         addl r15 = @ltoffx(x#), gp
14924         ;;
14925         ld8.mov r16 = [r15], x#' > conftest.s
14926     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928   (eval $ac_try) 2>&5
14929   ac_status=$?
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); }; }
14932     then
14933         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14934     else
14935       echo "configure: failed program was" >&5
14936       cat conftest.s >&5
14937     fi
14938     rm -f conftest.o conftest.s
14939   fi
14940 fi
14941 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14942 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14943 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14944
14945 cat >>confdefs.h <<\_ACEOF
14946 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14947 _ACEOF
14948
14949 fi
14950
14951     ;;
14952
14953   powerpc*-*-*)
14954     case $target in
14955       *-*-aix*) conftest_s='    .machine "pwr5"
14956         .csect .text[PR]
14957         mfcr 3,128';;
14958       *-*-darwin*)
14959         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14960 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14961 if test "${gcc_cv_as_machine_directive+set}" = set; then
14962   echo $ECHO_N "(cached) $ECHO_C" >&6
14963 else
14964   gcc_cv_as_machine_directive=no
14965   if test x$gcc_cv_as != x; then
14966     echo '      .machine ppc7400' > conftest.s
14967     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969   (eval $ac_try) 2>&5
14970   ac_status=$?
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); }; }
14973     then
14974         gcc_cv_as_machine_directive=yes
14975     else
14976       echo "configure: failed program was" >&5
14977       cat conftest.s >&5
14978     fi
14979     rm -f conftest.o conftest.s
14980   fi
14981 fi
14982 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14983 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14984
14985         if test x$gcc_cv_as_machine_directive != xyes; then
14986           echo "*** This target requires an assembler supporting \".machine\"" >&2
14987           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14988           test x$build = x$target && exit 1
14989         fi
14990         conftest_s='    .text
14991         mfcr r3,128';;
14992       *) conftest_s='   .machine power4
14993         .text
14994         mfcr 3,128';;
14995     esac
14996
14997     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14998 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14999 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15000   echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002   gcc_cv_as_powerpc_mfcrf=no
15003     if test $in_tree_gas = yes; then
15004     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15005   then gcc_cv_as_powerpc_mfcrf=yes
15006 fi
15007   elif test x$gcc_cv_as != x; then
15008     echo "$conftest_s" > conftest.s
15009     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011   (eval $ac_try) 2>&5
15012   ac_status=$?
15013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); }; }
15015     then
15016         gcc_cv_as_powerpc_mfcrf=yes
15017     else
15018       echo "configure: failed program was" >&5
15019       cat conftest.s >&5
15020     fi
15021     rm -f conftest.o conftest.s
15022   fi
15023 fi
15024 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15025 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15026 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15027
15028 cat >>confdefs.h <<\_ACEOF
15029 #define HAVE_AS_MFCRF 1
15030 _ACEOF
15031
15032 fi
15033
15034     case $target in
15035       *-*-aix*) conftest_s='    .machine "pwr5"
15036         .csect .text[PR]
15037         popcntb 3,3';;
15038       *) conftest_s='   .machine power5
15039         .text
15040         popcntb 3,3';;
15041     esac
15042
15043     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15044 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15045 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15046   echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048   gcc_cv_as_powerpc_popcntb=no
15049     if test $in_tree_gas = yes; then
15050     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15051   then gcc_cv_as_powerpc_popcntb=yes
15052 fi
15053   elif test x$gcc_cv_as != x; then
15054     echo "$conftest_s" > conftest.s
15055     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057   (eval $ac_try) 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); }; }
15061     then
15062         gcc_cv_as_powerpc_popcntb=yes
15063     else
15064       echo "configure: failed program was" >&5
15065       cat conftest.s >&5
15066     fi
15067     rm -f conftest.o conftest.s
15068   fi
15069 fi
15070 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15071 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15072 if test $gcc_cv_as_powerpc_popcntb = yes; then
15073
15074 cat >>confdefs.h <<\_ACEOF
15075 #define HAVE_AS_POPCNTB 1
15076 _ACEOF
15077
15078 fi
15079
15080     case $target in
15081       *-*-aix*) conftest_s='    .machine "pwr5x"
15082         .csect .text[PR]
15083         frin 1,1';;
15084       *) conftest_s='   .machine power5
15085         .text
15086         frin 1,1';;
15087     esac
15088
15089     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15090 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15091 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15092   echo $ECHO_N "(cached) $ECHO_C" >&6
15093 else
15094   gcc_cv_as_powerpc_fprnd=no
15095     if test $in_tree_gas = yes; then
15096     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15097   then gcc_cv_as_powerpc_fprnd=yes
15098 fi
15099   elif test x$gcc_cv_as != x; then
15100     echo "$conftest_s" > conftest.s
15101     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103   (eval $ac_try) 2>&5
15104   ac_status=$?
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); }; }
15107     then
15108         gcc_cv_as_powerpc_fprnd=yes
15109     else
15110       echo "configure: failed program was" >&5
15111       cat conftest.s >&5
15112     fi
15113     rm -f conftest.o conftest.s
15114   fi
15115 fi
15116 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15117 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15118 if test $gcc_cv_as_powerpc_fprnd = yes; then
15119
15120 cat >>confdefs.h <<\_ACEOF
15121 #define HAVE_AS_FPRND 1
15122 _ACEOF
15123
15124 fi
15125
15126     case $target in
15127       *-*-aix*) conftest_s='    .csect .text[PR]
15128 LCF..0:
15129         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15130       *-*-darwin*)
15131         conftest_s='    .text
15132 LCF0:
15133         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15134       *) conftest_s='   .text
15135 .LCF0:
15136         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15137     esac
15138
15139     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15140 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15141 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15142   echo $ECHO_N "(cached) $ECHO_C" >&6
15143 else
15144   gcc_cv_as_powerpc_rel16=no
15145     if test $in_tree_gas = yes; then
15146     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15147   then gcc_cv_as_powerpc_rel16=yes
15148 fi
15149   elif test x$gcc_cv_as != x; then
15150     echo "$conftest_s" > conftest.s
15151     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153   (eval $ac_try) 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; }
15157     then
15158         gcc_cv_as_powerpc_rel16=yes
15159     else
15160       echo "configure: failed program was" >&5
15161       cat conftest.s >&5
15162     fi
15163     rm -f conftest.o conftest.s
15164   fi
15165 fi
15166 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15167 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15168 if test $gcc_cv_as_powerpc_rel16 = yes; then
15169
15170 cat >>confdefs.h <<\_ACEOF
15171 #define HAVE_AS_REL16 1
15172 _ACEOF
15173
15174 fi
15175     ;;
15176
15177   mips*-*-*)
15178     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15179 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15180 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15181   echo $ECHO_N "(cached) $ECHO_C" >&6
15182 else
15183   gcc_cv_as_mips_explicit_relocs=no
15184     if test $in_tree_gas = yes; then
15185     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15186   then gcc_cv_as_mips_explicit_relocs=yes
15187 fi
15188   elif test x$gcc_cv_as != x; then
15189     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15190     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192   (eval $ac_try) 2>&5
15193   ac_status=$?
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); }; }
15196     then
15197         gcc_cv_as_mips_explicit_relocs=yes
15198     else
15199       echo "configure: failed program was" >&5
15200       cat conftest.s >&5
15201     fi
15202     rm -f conftest.o conftest.s
15203   fi
15204 fi
15205 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15206 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15207 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15208   if test x$target_cpu_default = x
15209        then target_cpu_default=MASK_EXPLICIT_RELOCS
15210        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15211        fi
15212 fi
15213     ;;
15214 esac
15215
15216 # Mips and HP-UX need the GNU assembler.
15217 # Linux on IA64 might be able to use the Intel assembler.
15218
15219 case "$target" in
15220   mips*-*-* | *-*-hpux* )
15221     if test x$gas_flag = xyes \
15222        || test x"$host" != x"$build" \
15223        || test ! -x "$gcc_cv_as" \
15224        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15225       :
15226     else
15227       echo "*** This configuration requires the GNU assembler" >&2
15228       exit 1
15229     fi
15230     ;;
15231 esac
15232
15233 # ??? Not all targets support dwarf2 debug_line, even within a version
15234 # of gas.  Moreover, we need to emit a valid instruction to trigger any
15235 # info to the output file.  So, as supported targets are added to gas 2.11,
15236 # add some instruction here to (also) show we expect this might work.
15237 # ??? Once 2.11 is released, probably need to add first known working
15238 # version to the per-target configury.
15239 case "$target" in
15240   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15241   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15242   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15243     insn="nop"
15244     ;;
15245   ia64*-*-* | s390*-*-*)
15246     insn="nop 0"
15247     ;;
15248   mmix-*-*)
15249     insn="swym 0"
15250     ;;
15251 esac
15252 if test x"$insn" != x; then
15253  conftest_s="\
15254         .file 1 \"conftest.s\"
15255         .loc 1 3 0
15256         $insn"
15257  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15258 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15259 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15260   echo $ECHO_N "(cached) $ECHO_C" >&6
15261 else
15262   gcc_cv_as_dwarf2_debug_line=no
15263     if test $in_tree_gas = yes; then
15264     if test $in_tree_gas_is_elf = yes \
15265   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15266   then gcc_cv_as_dwarf2_debug_line=yes
15267 fi
15268   elif test x$gcc_cv_as != x; then
15269     echo "$conftest_s" > conftest.s
15270     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272   (eval $ac_try) 2>&5
15273   ac_status=$?
15274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275   (exit $ac_status); }; }
15276     then
15277         if test x$gcc_cv_objdump != x \
15278    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15279       | grep debug_line > /dev/null 2>&1; then
15280      gcc_cv_as_dwarf2_debug_line=yes
15281    fi
15282     else
15283       echo "configure: failed program was" >&5
15284       cat conftest.s >&5
15285     fi
15286     rm -f conftest.o conftest.s
15287   fi
15288 fi
15289 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15290 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15291
15292
15293 # The .debug_line file table must be in the exact order that
15294 # we specified the files, since these indices are also used
15295 # by DW_AT_decl_file.  Approximate this test by testing if
15296 # the assembler bitches if the same index is assigned twice.
15297  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15298 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15299 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15300   echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302   gcc_cv_as_dwarf2_file_buggy=no
15303   if test x$gcc_cv_as != x; then
15304     echo '      .file 1 "foo.s"
15305         .file 1 "bar.s"' > conftest.s
15306     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308   (eval $ac_try) 2>&5
15309   ac_status=$?
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); }; }
15312     then
15313         gcc_cv_as_dwarf2_file_buggy=yes
15314     else
15315       echo "configure: failed program was" >&5
15316       cat conftest.s >&5
15317     fi
15318     rm -f conftest.o conftest.s
15319   fi
15320 fi
15321 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15322 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15323
15324
15325  if test $gcc_cv_as_dwarf2_debug_line = yes \
15326  && test $gcc_cv_as_dwarf2_file_buggy = no; then
15327
15328 cat >>confdefs.h <<\_ACEOF
15329 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15330 _ACEOF
15331
15332  fi
15333
15334  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15335 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15336 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15337   echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339   gcc_cv_as_gdwarf2_flag=no
15340     if test $in_tree_gas = yes; then
15341     if test $in_tree_gas_is_elf = yes \
15342   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15343   then gcc_cv_as_gdwarf2_flag=yes
15344 fi
15345   elif test x$gcc_cv_as != x; then
15346     echo "$insn" > conftest.s
15347     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349   (eval $ac_try) 2>&5
15350   ac_status=$?
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); }; }
15353     then
15354         gcc_cv_as_gdwarf2_flag=yes
15355     else
15356       echo "configure: failed program was" >&5
15357       cat conftest.s >&5
15358     fi
15359     rm -f conftest.o conftest.s
15360   fi
15361 fi
15362 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15363 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15364 if test $gcc_cv_as_gdwarf2_flag = yes; then
15365
15366 cat >>confdefs.h <<\_ACEOF
15367 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15368 _ACEOF
15369
15370 fi
15371
15372  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15373 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15374 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15375   echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377   gcc_cv_as_gstabs_flag=no
15378     if test $in_tree_gas = yes; then
15379     if test $in_tree_gas_is_elf = yes \
15380   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15381   then gcc_cv_as_gstabs_flag=yes
15382 fi
15383   elif test x$gcc_cv_as != x; then
15384     echo "$insn" > conftest.s
15385     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387   (eval $ac_try) 2>&5
15388   ac_status=$?
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); }; }
15391     then
15392         # The native Solaris 9/Intel assembler doesn't understand --gstabs
15393    # and warns about it, but still exits successfully.  So check for
15394    # this.
15395    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397   (eval $ac_try) 2>&5
15398   ac_status=$?
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); }; }
15401    then :
15402    else gcc_cv_as_gstabs_flag=yes
15403    fi
15404     else
15405       echo "configure: failed program was" >&5
15406       cat conftest.s >&5
15407     fi
15408     rm -f conftest.o conftest.s
15409   fi
15410 fi
15411 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15412 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15413 if test $gcc_cv_as_gstabs_flag = yes; then
15414
15415 cat >>confdefs.h <<\_ACEOF
15416 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15417 _ACEOF
15418
15419 fi
15420 fi
15421
15422 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15423 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15424 gcc_cv_ld_ro_rw_mix=unknown
15425 if test $in_tree_ld = yes ; then
15426   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 \
15427      && test $in_tree_ld_is_elf = yes; then
15428     gcc_cv_ld_ro_rw_mix=read-write
15429   fi
15430 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15431   echo '.section myfoosect, "a"' > conftest1.s
15432   echo '.section myfoosect, "aw"' > conftest2.s
15433   echo '.byte 1' >> conftest2.s
15434   echo '.section myfoosect, "a"' > conftest3.s
15435   echo '.byte 0' >> conftest3.s
15436   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15437      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15438      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15439      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15440         conftest2.o conftest3.o > /dev/null 2>&1; then
15441     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15442                          | sed -e '/myfoosect/!d' -e N`
15443     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15444       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15445         gcc_cv_ld_ro_rw_mix=read-only
15446       else
15447         gcc_cv_ld_ro_rw_mix=read-write
15448       fi
15449     fi
15450   fi
15451   rm -f conftest.* conftest[123].*
15452 fi
15453 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15454
15455 cat >>confdefs.h <<\_ACEOF
15456 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15457 _ACEOF
15458
15459 fi
15460 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15461 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15462
15463 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15464 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15465 gcc_cv_ld_eh_frame_hdr=no
15466 if test $in_tree_ld = yes ; then
15467   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 \
15468      && test $in_tree_ld_is_elf = yes; then
15469     gcc_cv_ld_eh_frame_hdr=yes
15470   fi
15471 elif test x$gcc_cv_ld != x; then
15472         # Check if linker supports --eh-frame-hdr option
15473         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15474                 gcc_cv_ld_eh_frame_hdr=yes
15475         fi
15476 fi
15477
15478 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15479
15480 cat >>confdefs.h <<\_ACEOF
15481 #define HAVE_LD_EH_FRAME_HDR 1
15482 _ACEOF
15483
15484 fi
15485 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15486 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15487
15488 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15489 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15490 gcc_cv_ld_pie=no
15491 if test $in_tree_ld = yes ; then
15492   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 \
15493      && test $in_tree_ld_is_elf = yes; then
15494     gcc_cv_ld_pie=yes
15495   fi
15496 elif test x$gcc_cv_ld != x; then
15497         # Check if linker supports -pie option
15498         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15499                 gcc_cv_ld_pie=yes
15500         fi
15501 fi
15502 if test x"$gcc_cv_ld_pie" = xyes; then
15503
15504 cat >>confdefs.h <<\_ACEOF
15505 #define HAVE_LD_PIE 1
15506 _ACEOF
15507
15508 fi
15509 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15510 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15511
15512 # --------
15513 # UNSORTED
15514 # --------
15515
15516 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15517 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15518 if test "${gcc_cv_ld_as_needed+set}" = set; then
15519   echo $ECHO_N "(cached) $ECHO_C" >&6
15520 else
15521   gcc_cv_ld_as_needed=no
15522 if test $in_tree_ld = yes ; then
15523   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 \
15524      && test $in_tree_ld_is_elf = yes; then
15525     gcc_cv_ld_as_needed=yes
15526   fi
15527 elif test x$gcc_cv_ld != x; then
15528         # Check if linker supports --as-needed and --no-as-needed options
15529         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15530                 gcc_cv_ld_as_needed=yes
15531         fi
15532 fi
15533
15534 fi
15535 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15536 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15537 if test x"$gcc_cv_ld_as_needed" = xyes; then
15538
15539 cat >>confdefs.h <<\_ACEOF
15540 #define HAVE_LD_AS_NEEDED 1
15541 _ACEOF
15542
15543 fi
15544
15545 case "$target:$tm_file" in
15546   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15547     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15548 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15549 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15550   echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552   gcc_cv_ld_no_dot_syms=no
15553     if test $in_tree_ld = yes ; then
15554       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
15555         gcc_cv_ld_no_dot_syms=yes
15556       fi
15557     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15558       cat > conftest1.s <<EOF
15559         .text
15560         bl .foo
15561 EOF
15562       cat > conftest2.s <<EOF
15563         .section ".opd","aw"
15564         .align 3
15565         .globl foo
15566         .type foo,@function
15567 foo:
15568         .quad .LEfoo,.TOC.@tocbase,0
15569         .text
15570 .LEfoo:
15571         blr
15572         .size foo,.-.LEfoo
15573 EOF
15574       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15575          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15576          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15577         gcc_cv_ld_no_dot_syms=yes
15578       fi
15579       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15580     fi
15581
15582 fi
15583 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15584 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15585     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15586
15587 cat >>confdefs.h <<\_ACEOF
15588 #define HAVE_LD_NO_DOT_SYMS 1
15589 _ACEOF
15590
15591     fi
15592     ;;
15593 esac
15594
15595 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15596 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15597 if test "${gcc_cv_ld_sysroot+set}" = set; then
15598   echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600   gcc_cv_ld_sysroot=no
15601   if test $in_tree_ld = yes ; then
15602       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
15603         gcc_cv_ld_sysroot=yes
15604       fi
15605   elif test x$gcc_cv_ld != x; then
15606     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15607       gcc_cv_ld_sysroot=yes
15608     fi
15609   fi
15610 fi
15611 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15612 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15613 if test x"$gcc_cv_ld_sysroot" = xyes; then
15614
15615 cat >>confdefs.h <<\_ACEOF
15616 #define HAVE_LD_SYSROOT 1
15617 _ACEOF
15618
15619 fi
15620
15621 if test x$with_sysroot = x && test x$host = x$target \
15622    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15623
15624 cat >>confdefs.h <<_ACEOF
15625 #define PREFIX_INCLUDE_DIR "$prefix/include"
15626 _ACEOF
15627
15628 fi
15629
15630 # Test for stack protector support in target C library.
15631 case "$target" in
15632   *-*-linux*)
15633     echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15634 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15635 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15636   echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638   gcc_cv_libc_provides_ssp=no
15639       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15640         if test "x$with_sysroot" = x; then
15641           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15642         elif test "x$with_sysroot" = xyes; then
15643           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15644         else
15645           glibc_header_dir="${with_sysroot}/usr/include"
15646         fi
15647       else
15648         glibc_header_dir=/usr/include
15649       fi
15650       # glibc 2.4 and later provides __stack_chk_fail and
15651       # either __stack_chk_guard, or TLS access to stack guard canary.
15652       if test -f $glibc_header_dir/features.h \
15653          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
15654             $glibc_header_dir/features.h > /dev/null; then
15655         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
15656            $glibc_header_dir/features.h > /dev/null; then
15657           gcc_cv_libc_provides_ssp=yes
15658         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
15659              $glibc_header_dir/features.h > /dev/null \
15660              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
15661              $glibc_header_dir/features.h > /dev/null; then
15662           gcc_cv_libc_provides_ssp=yes
15663         fi
15664       fi
15665 fi
15666 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15667 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15668   *) gcc_cv_libc_provides_ssp=no ;;
15669 esac
15670 if test x$gcc_cv_libc_provides_ssp = xyes; then
15671
15672 cat >>confdefs.h <<\_ACEOF
15673 #define TARGET_LIBC_PROVIDES_SSP 1
15674 _ACEOF
15675
15676 fi
15677
15678 # Find out what GC implementation we want, or may, use.
15679
15680 # Check whether --with-gc or --without-gc was given.
15681 if test "${with_gc+set}" = set; then
15682   withval="$with_gc"
15683   case "$withval" in
15684   page)
15685     GGC=ggc-$withval
15686     ;;
15687   zone)
15688     GGC=ggc-$withval
15689
15690 cat >>confdefs.h <<\_ACEOF
15691 #define GGC_ZONE 1
15692 _ACEOF
15693
15694     ;;
15695   *)
15696     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15697 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15698    { (exit 1); exit 1; }; }
15699     ;;
15700 esac
15701 else
15702   GGC=ggc-page
15703 fi;
15704
15705 echo "Using $GGC for garbage collection."
15706
15707 # Use the system's zlib library.
15708 zlibdir=-L../zlib
15709 zlibinc="-I\$(srcdir)/../zlib"
15710
15711 # Check whether --with-system-zlib or --without-system-zlib was given.
15712 if test "${with_system_zlib+set}" = set; then
15713   withval="$with_system_zlib"
15714   zlibdir=
15715 zlibinc=
15716
15717 fi;
15718
15719
15720
15721
15722 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15723 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15724     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15725 if test "${enable_maintainer_mode+set}" = set; then
15726   enableval="$enable_maintainer_mode"
15727   maintainer_mode=$enableval
15728 else
15729   maintainer_mode=no
15730 fi;
15731
15732 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15733 echo "${ECHO_T}$maintainer_mode" >&6
15734
15735 if test "$maintainer_mode" = "yes"; then
15736   MAINT=''
15737 else
15738   MAINT='#'
15739 fi
15740
15741 # --------------
15742 # Language hooks
15743 # --------------
15744
15745 # Make empty files to contain the specs and options for each language.
15746 # Then add #include lines to for a compiler that has specs and/or options.
15747
15748 subdirs=
15749 lang_opt_files=
15750 lang_specs_files=
15751 lang_tree_files=
15752 # These (without "all_") are set in each config-lang.in.
15753 # `language' must be a single word so is spelled singularly.
15754 all_languages=
15755 all_boot_languages=
15756 all_compilers=
15757 all_stagestuff=
15758 all_outputs='Makefile gccbug mklibgcc libada-mk'
15759 # List of language makefile fragments.
15760 all_lang_makefrags=
15761 # List of language subdirectory makefiles.  Deprecated.
15762 all_lang_makefiles=
15763 # Files for gengtype
15764 all_gtfiles="$target_gtfiles"
15765 # Files for gengtype with language
15766 all_gtfiles_files_langs=
15767 all_gtfiles_files_files=
15768
15769 # These are the languages that are set in --enable-languages,
15770 # and are available in the GCC tree.
15771 all_selected_languages=
15772
15773 # Add the language fragments.
15774 # Languages are added via two mechanisms.  Some information must be
15775 # recorded in makefile variables, these are defined in config-lang.in.
15776 # We accumulate them and plug them into the main Makefile.
15777 # The other mechanism is a set of hooks for each of the main targets
15778 # like `clean', `install', etc.
15779
15780 language_hooks="Make-hooks"
15781
15782 for lang in ${srcdir}/*/config-lang.in
15783 do
15784     case $lang in
15785     # The odd quoting in the next line works around
15786     # an apparent bug in bash 1.12 on linux.
15787     ${srcdir}/[*]/config-lang.in)
15788         continue ;;
15789     *)
15790         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
15791         if test "x$lang_alias" = x
15792         then
15793               echo "$lang doesn't set \$language." 1>&2
15794               exit 1
15795         fi
15796         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
15797         subdirs="$subdirs $subdir"
15798         case ",$enable_languages," in
15799         *,$lang_alias,*)
15800             all_selected_languages="$all_selected_languages $lang_alias"
15801             if test -f $srcdir/$subdir/lang-specs.h; then
15802                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15803             fi
15804             ;;
15805         esac
15806
15807         if test -f $srcdir/$subdir/lang.opt; then
15808             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15809         fi
15810         if test -f $srcdir/$subdir/$subdir-tree.def; then
15811             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15812         fi
15813
15814         language=
15815         boot_language=
15816         compilers=
15817         stagestuff=
15818         outputs=
15819         gtfiles=
15820         . ${srcdir}/$subdir/config-lang.in
15821         if test "x$language" = x
15822         then
15823                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
15824                 exit 1
15825         fi
15826         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
15827         if test -f ${srcdir}/$subdir/Makefile.in
15828                 then all_lang_makefiles="$subdir/Makefile"
15829         fi
15830         all_languages="$all_languages $language"
15831         if test "x$boot_language" = xyes
15832         then
15833                 all_boot_languages="$all_boot_languages $language"
15834         fi
15835         all_compilers="$all_compilers $compilers"
15836         all_stagestuff="$all_stagestuff $stagestuff"
15837         all_outputs="$all_outputs $outputs"
15838         all_gtfiles="$all_gtfiles $gtfiles"
15839         for f in $gtfiles
15840         do
15841                  all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
15842                  all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15843         done
15844         ;;
15845     esac
15846 done
15847
15848 # Pick up gtfiles for c
15849 gtfiles=
15850 subdir="c"
15851 . ${srcdir}/c-config-lang.in
15852 all_gtfiles="$all_gtfiles $gtfiles"
15853 for f in $gtfiles
15854 do
15855         all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
15856         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15857 done
15858
15859 check_languages=
15860 for language in $all_selected_languages
15861 do
15862         check_languages="$check_languages check-$language"
15863 done
15864
15865 # We link each language in with a set of hooks, reached indirectly via
15866 # lang.${target}.  Only do so for selected languages.
15867
15868 rm -f Make-hooks
15869 touch Make-hooks
15870 target_list="all.cross start.encap rest.encap tags \
15871         install-common install-man \
15872         uninstall info man srcextra srcman srcinfo \
15873         mostlyclean clean distclean maintainer-clean \
15874         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15875
15876 for t in $target_list
15877 do
15878         x=
15879         for lang in $all_selected_languages
15880         do
15881                 x="$x $lang.$t"
15882         done
15883         echo "lang.$t: $x" >> Make-hooks
15884 done
15885
15886 # --------
15887 # UNSORTED
15888 # --------
15889
15890 # Create .gdbinit.
15891
15892 echo "dir ." > .gdbinit
15893 echo "dir ${srcdir}" >> .gdbinit
15894 if test x$gdb_needs_out_file_path = xyes
15895 then
15896         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15897 fi
15898 if test "x$subdirs" != x; then
15899         for s in $subdirs
15900         do
15901                 echo "dir ${srcdir}/$s" >> .gdbinit
15902         done
15903 fi
15904 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15905
15906 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15907 # absolute path for gcc_tooldir based on inserting the number of up-directory
15908 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15909 # $(libsubdir)/@(unlibsubdir) based path.
15910 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15911 # make and thus we'd get different behavior depending on where we built the
15912 # sources.
15913 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15914     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15915 else
15916 # An explanation of the sed strings:
15917 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
15918 #  -e 's|/$||'            match a trailing forward slash and eliminates it
15919 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
15920 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
15921 #
15922 # (*) Note this pattern overwrites the first character of the string
15923 # with a forward slash if one is not already present.  This is not a
15924 # problem because the exact names of the sub-directories concerned is
15925 # unimportant, just the number of them matters.
15926 #
15927 # The practical upshot of these patterns is like this:
15928 #
15929 #  prefix     exec_prefix        result
15930 #  ------     -----------        ------
15931 #   /foo        /foo/bar          ../
15932 #   /foo/       /foo/bar          ../
15933 #   /foo        /foo/bar/         ../
15934 #   /foo/       /foo/bar/         ../
15935 #   /foo        /foo/bar/ugg      ../../
15936 #
15937     dollar='$$'
15938     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15939 fi
15940
15941
15942
15943 # Find a directory in which to install a shared libgcc.
15944
15945 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15946 if test "${enable_version_specific_runtime_libs+set}" = set; then
15947   enableval="$enable_version_specific_runtime_libs"
15948
15949 fi;
15950
15951
15952 # Check whether --with-slibdir or --without-slibdir was given.
15953 if test "${with_slibdir+set}" = set; then
15954   withval="$with_slibdir"
15955   slibdir="$with_slibdir"
15956 else
15957   if test "${enable_version_specific_runtime_libs+set}" = set; then
15958   slibdir='$(libsubdir)'
15959 elif test "$host" != "$target"; then
15960   slibdir='$(build_tooldir)/lib'
15961 else
15962   slibdir='$(libdir)'
15963 fi
15964 fi;
15965
15966
15967 objdir=`${PWDCMD-pwd}`
15968
15969
15970 # Substitute configuration variables
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035 # Echo link setup.
16036 if test x${build} = x${host} ; then
16037   if test x${host} = x${target} ; then
16038     echo "Links are now set up to build a native compiler for ${target}." 1>&2
16039   else
16040     echo "Links are now set up to build a cross-compiler" 1>&2
16041     echo " from ${host} to ${target}." 1>&2
16042   fi
16043 else
16044   if test x${host} = x${target} ; then
16045     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16046     echo " for ${target}." 1>&2
16047   else
16048     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16049     echo " from ${host} to ${target}." 1>&2
16050   fi
16051 fi
16052
16053
16054
16055
16056 # Configure the subdirectories
16057 # AC_CONFIG_SUBDIRS($subdirs)
16058
16059 # Create the Makefile
16060 # and configure language subdirectories
16061           ac_config_files="$ac_config_files $all_outputs"
16062
16063
16064           ac_config_commands="$ac_config_commands default"
16065
16066 cat >confcache <<\_ACEOF
16067 # This file is a shell script that caches the results of configure
16068 # tests run on this system so they can be shared between configure
16069 # scripts and configure runs, see configure's option --config-cache.
16070 # It is not useful on other systems.  If it contains results you don't
16071 # want to keep, you may remove or edit it.
16072 #
16073 # config.status only pays attention to the cache file if you give it
16074 # the --recheck option to rerun configure.
16075 #
16076 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16077 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16078 # following values.
16079
16080 _ACEOF
16081
16082 # The following way of writing the cache mishandles newlines in values,
16083 # but we know of no workaround that is simple, portable, and efficient.
16084 # So, don't put newlines in cache variables' values.
16085 # Ultrix sh set writes to stderr and can't be redirected directly,
16086 # and sets the high bit in the cache file unless we assign to the vars.
16087 {
16088   (set) 2>&1 |
16089     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16090     *ac_space=\ *)
16091       # `set' does not quote correctly, so add quotes (double-quote
16092       # substitution turns \\\\ into \\, and sed turns \\ into \).
16093       sed -n \
16094         "s/'/'\\\\''/g;
16095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16096       ;;
16097     *)
16098       # `set' quotes correctly as required by POSIX, so do not add quotes.
16099       sed -n \
16100         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16101       ;;
16102     esac;
16103 } |
16104   sed '
16105      t clear
16106      : clear
16107      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16108      t end
16109      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16110      : end' >>confcache
16111 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16112   if test -w $cache_file; then
16113     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16114     cat confcache >$cache_file
16115   else
16116     echo "not updating unwritable cache $cache_file"
16117   fi
16118 fi
16119 rm -f confcache
16120
16121 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16122 # Let make expand exec_prefix.
16123 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16124
16125 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16126 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16127 # trailing colons and then remove the whole line if VPATH becomes empty
16128 # (actually we leave an empty line to preserve line numbers).
16129 if test "x$srcdir" = x.; then
16130   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16131 s/:*\$(srcdir):*/:/;
16132 s/:*\${srcdir}:*/:/;
16133 s/:*@srcdir@:*/:/;
16134 s/^\([^=]*=[     ]*\):*/\1/;
16135 s/:*$//;
16136 s/^[^=]*=[       ]*$//;
16137 }'
16138 fi
16139
16140 DEFS=-DHAVE_CONFIG_H
16141
16142 ac_libobjs=
16143 ac_ltlibobjs=
16144 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16145   # 1. Remove the extension, and $U if already installed.
16146   ac_i=`echo "$ac_i" |
16147          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16148   # 2. Add them.
16149   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16150   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16151 done
16152 LIBOBJS=$ac_libobjs
16153
16154 LTLIBOBJS=$ac_ltlibobjs
16155
16156
16157
16158 : ${CONFIG_STATUS=./config.status}
16159 ac_clean_files_save=$ac_clean_files
16160 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16161 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16162 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16163 cat >$CONFIG_STATUS <<_ACEOF
16164 #! $SHELL
16165 # Generated by $as_me.
16166 # Run this file to recreate the current configuration.
16167 # Compiler output produced by configure, useful for debugging
16168 # configure, is in config.log if it exists.
16169
16170 debug=false
16171 ac_cs_recheck=false
16172 ac_cs_silent=false
16173 SHELL=\${CONFIG_SHELL-$SHELL}
16174 _ACEOF
16175
16176 cat >>$CONFIG_STATUS <<\_ACEOF
16177 ## --------------------- ##
16178 ## M4sh Initialization.  ##
16179 ## --------------------- ##
16180
16181 # Be Bourne compatible
16182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16183   emulate sh
16184   NULLCMD=:
16185   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16186   # is contrary to our usage.  Disable this feature.
16187   alias -g '${1+"$@"}'='"$@"'
16188 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16189   set -o posix
16190 fi
16191 DUALCASE=1; export DUALCASE # for MKS sh
16192
16193 # Support unset when possible.
16194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16195   as_unset=unset
16196 else
16197   as_unset=false
16198 fi
16199
16200
16201 # Work around bugs in pre-3.0 UWIN ksh.
16202 $as_unset ENV MAIL MAILPATH
16203 PS1='$ '
16204 PS2='> '
16205 PS4='+ '
16206
16207 # NLS nuisances.
16208 for as_var in \
16209   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16210   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16211   LC_TELEPHONE LC_TIME
16212 do
16213   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16214     eval $as_var=C; export $as_var
16215   else
16216     $as_unset $as_var
16217   fi
16218 done
16219
16220 # Required to use basename.
16221 if expr a : '\(a\)' >/dev/null 2>&1; then
16222   as_expr=expr
16223 else
16224   as_expr=false
16225 fi
16226
16227 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16228   as_basename=basename
16229 else
16230   as_basename=false
16231 fi
16232
16233
16234 # Name of the executable.
16235 as_me=`$as_basename "$0" ||
16236 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16237          X"$0" : 'X\(//\)$' \| \
16238          X"$0" : 'X\(/\)$' \| \
16239          .     : '\(.\)' 2>/dev/null ||
16240 echo X/"$0" |
16241     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16242           /^X\/\(\/\/\)$/{ s//\1/; q; }
16243           /^X\/\(\/\).*/{ s//\1/; q; }
16244           s/.*/./; q'`
16245
16246
16247 # PATH needs CR, and LINENO needs CR and PATH.
16248 # Avoid depending upon Character Ranges.
16249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16252 as_cr_digits='0123456789'
16253 as_cr_alnum=$as_cr_Letters$as_cr_digits
16254
16255 # The user is always right.
16256 if test "${PATH_SEPARATOR+set}" != set; then
16257   echo "#! /bin/sh" >conf$$.sh
16258   echo  "exit 0"   >>conf$$.sh
16259   chmod +x conf$$.sh
16260   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16261     PATH_SEPARATOR=';'
16262   else
16263     PATH_SEPARATOR=:
16264   fi
16265   rm -f conf$$.sh
16266 fi
16267
16268
16269   as_lineno_1=$LINENO
16270   as_lineno_2=$LINENO
16271   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16272   test "x$as_lineno_1" != "x$as_lineno_2" &&
16273   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16274   # Find who we are.  Look in the path if we contain no path at all
16275   # relative or not.
16276   case $0 in
16277     *[\\/]* ) as_myself=$0 ;;
16278     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279 for as_dir in $PATH
16280 do
16281   IFS=$as_save_IFS
16282   test -z "$as_dir" && as_dir=.
16283   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16284 done
16285
16286        ;;
16287   esac
16288   # We did not find ourselves, most probably we were run as `sh COMMAND'
16289   # in which case we are not to be found in the path.
16290   if test "x$as_myself" = x; then
16291     as_myself=$0
16292   fi
16293   if test ! -f "$as_myself"; then
16294     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16295 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16296    { (exit 1); exit 1; }; }
16297   fi
16298   case $CONFIG_SHELL in
16299   '')
16300     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16301 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16302 do
16303   IFS=$as_save_IFS
16304   test -z "$as_dir" && as_dir=.
16305   for as_base in sh bash ksh sh5; do
16306          case $as_dir in
16307          /*)
16308            if ("$as_dir/$as_base" -c '
16309   as_lineno_1=$LINENO
16310   as_lineno_2=$LINENO
16311   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16312   test "x$as_lineno_1" != "x$as_lineno_2" &&
16313   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16314              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16315              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16316              CONFIG_SHELL=$as_dir/$as_base
16317              export CONFIG_SHELL
16318              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16319            fi;;
16320          esac
16321        done
16322 done
16323 ;;
16324   esac
16325
16326   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16327   # uniformly replaced by the line number.  The first 'sed' inserts a
16328   # line-number line before each line; the second 'sed' does the real
16329   # work.  The second script uses 'N' to pair each line-number line
16330   # with the numbered line, and appends trailing '-' during
16331   # substitution so that $LINENO is not a special case at line end.
16332   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16333   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16334   sed '=' <$as_myself |
16335     sed '
16336       N
16337       s,$,-,
16338       : loop
16339       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16340       t loop
16341       s,-$,,
16342       s,^['$as_cr_digits']*\n,,
16343     ' >$as_me.lineno &&
16344   chmod +x $as_me.lineno ||
16345     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16346 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16347    { (exit 1); exit 1; }; }
16348
16349   # Don't try to exec as it changes $[0], causing all sort of problems
16350   # (the dirname of $[0] is not the place where we might find the
16351   # original and so on.  Autoconf is especially sensible to this).
16352   . ./$as_me.lineno
16353   # Exit status is that of the last command.
16354   exit
16355 }
16356
16357
16358 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16359   *c*,-n*) ECHO_N= ECHO_C='
16360 ' ECHO_T='      ' ;;
16361   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16362   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16363 esac
16364
16365 if expr a : '\(a\)' >/dev/null 2>&1; then
16366   as_expr=expr
16367 else
16368   as_expr=false
16369 fi
16370
16371 rm -f conf$$ conf$$.exe conf$$.file
16372 echo >conf$$.file
16373 if ln -s conf$$.file conf$$ 2>/dev/null; then
16374   # We could just check for DJGPP; but this test a) works b) is more generic
16375   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16376   if test -f conf$$.exe; then
16377     # Don't use ln at all; we don't have any links
16378     as_ln_s='cp -p'
16379   else
16380     as_ln_s='ln -s'
16381   fi
16382 elif ln conf$$.file conf$$ 2>/dev/null; then
16383   as_ln_s=ln
16384 else
16385   as_ln_s='cp -p'
16386 fi
16387 rm -f conf$$ conf$$.exe conf$$.file
16388
16389 if mkdir -p . 2>/dev/null; then
16390   as_mkdir_p=:
16391 else
16392   test -d ./-p && rmdir ./-p
16393   as_mkdir_p=false
16394 fi
16395
16396 as_executable_p="test -f"
16397
16398 # Sed expression to map a string onto a valid CPP name.
16399 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16400
16401 # Sed expression to map a string onto a valid variable name.
16402 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16403
16404
16405 # IFS
16406 # We need space, tab and new line, in precisely that order.
16407 as_nl='
16408 '
16409 IFS="   $as_nl"
16410
16411 # CDPATH.
16412 $as_unset CDPATH
16413
16414 exec 6>&1
16415
16416 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16417 # report actual input values of CONFIG_FILES etc. instead of their
16418 # values after options handling.  Logging --version etc. is OK.
16419 exec 5>>config.log
16420 {
16421   echo
16422   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16423 ## Running $as_me. ##
16424 _ASBOX
16425 } >&5
16426 cat >&5 <<_CSEOF
16427
16428 This file was extended by $as_me, which was
16429 generated by GNU Autoconf 2.59.  Invocation command line was
16430
16431   CONFIG_FILES    = $CONFIG_FILES
16432   CONFIG_HEADERS  = $CONFIG_HEADERS
16433   CONFIG_LINKS    = $CONFIG_LINKS
16434   CONFIG_COMMANDS = $CONFIG_COMMANDS
16435   $ $0 $@
16436
16437 _CSEOF
16438 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16439 echo >&5
16440 _ACEOF
16441
16442 # Files that config.status was made for.
16443 if test -n "$ac_config_files"; then
16444   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16445 fi
16446
16447 if test -n "$ac_config_headers"; then
16448   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16449 fi
16450
16451 if test -n "$ac_config_links"; then
16452   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16453 fi
16454
16455 if test -n "$ac_config_commands"; then
16456   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16457 fi
16458
16459 cat >>$CONFIG_STATUS <<\_ACEOF
16460
16461 ac_cs_usage="\
16462 \`$as_me' instantiates files from templates according to the
16463 current configuration.
16464
16465 Usage: $0 [OPTIONS] [FILE]...
16466
16467   -h, --help       print this help, then exit
16468   -V, --version    print version number, then exit
16469   -q, --quiet      do not print progress messages
16470   -d, --debug      don't remove temporary files
16471       --recheck    update $as_me by reconfiguring in the same conditions
16472   --file=FILE[:TEMPLATE]
16473                    instantiate the configuration file FILE
16474   --header=FILE[:TEMPLATE]
16475                    instantiate the configuration header FILE
16476
16477 Configuration files:
16478 $config_files
16479
16480 Configuration headers:
16481 $config_headers
16482
16483 Configuration commands:
16484 $config_commands
16485
16486 Report bugs to <bug-autoconf@gnu.org>."
16487 _ACEOF
16488
16489 cat >>$CONFIG_STATUS <<_ACEOF
16490 ac_cs_version="\\
16491 config.status
16492 configured by $0, generated by GNU Autoconf 2.59,
16493   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16494
16495 Copyright (C) 2003 Free Software Foundation, Inc.
16496 This config.status script is free software; the Free Software Foundation
16497 gives unlimited permission to copy, distribute and modify it."
16498 srcdir=$srcdir
16499 _ACEOF
16500
16501 cat >>$CONFIG_STATUS <<\_ACEOF
16502 # If no file are specified by the user, then we need to provide default
16503 # value.  By we need to know if files were specified by the user.
16504 ac_need_defaults=:
16505 while test $# != 0
16506 do
16507   case $1 in
16508   --*=*)
16509     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16510     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16511     ac_shift=:
16512     ;;
16513   -*)
16514     ac_option=$1
16515     ac_optarg=$2
16516     ac_shift=shift
16517     ;;
16518   *) # This is not an option, so the user has probably given explicit
16519      # arguments.
16520      ac_option=$1
16521      ac_need_defaults=false;;
16522   esac
16523
16524   case $ac_option in
16525   # Handling of the options.
16526 _ACEOF
16527 cat >>$CONFIG_STATUS <<\_ACEOF
16528   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16529     ac_cs_recheck=: ;;
16530   --version | --vers* | -V )
16531     echo "$ac_cs_version"; exit 0 ;;
16532   --he | --h)
16533     # Conflict between --help and --header
16534     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16535 Try \`$0 --help' for more information." >&5
16536 echo "$as_me: error: ambiguous option: $1
16537 Try \`$0 --help' for more information." >&2;}
16538    { (exit 1); exit 1; }; };;
16539   --help | --hel | -h )
16540     echo "$ac_cs_usage"; exit 0 ;;
16541   --debug | --d* | -d )
16542     debug=: ;;
16543   --file | --fil | --fi | --f )
16544     $ac_shift
16545     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16546     ac_need_defaults=false;;
16547   --header | --heade | --head | --hea )
16548     $ac_shift
16549     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16550     ac_need_defaults=false;;
16551   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16552   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16553     ac_cs_silent=: ;;
16554
16555   # This is an error.
16556   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16557 Try \`$0 --help' for more information." >&5
16558 echo "$as_me: error: unrecognized option: $1
16559 Try \`$0 --help' for more information." >&2;}
16560    { (exit 1); exit 1; }; } ;;
16561
16562   *) ac_config_targets="$ac_config_targets $1" ;;
16563
16564   esac
16565   shift
16566 done
16567
16568 ac_configure_extra_args=
16569
16570 if $ac_cs_silent; then
16571   exec 6>/dev/null
16572   ac_configure_extra_args="$ac_configure_extra_args --silent"
16573 fi
16574
16575 _ACEOF
16576 cat >>$CONFIG_STATUS <<_ACEOF
16577 if \$ac_cs_recheck; then
16578   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16579   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16580 fi
16581
16582 _ACEOF
16583
16584 cat >>$CONFIG_STATUS <<_ACEOF
16585 #
16586 # INIT-COMMANDS section.
16587 #
16588
16589 subdirs='$subdirs'
16590
16591 _ACEOF
16592
16593
16594
16595 cat >>$CONFIG_STATUS <<\_ACEOF
16596 for ac_config_target in $ac_config_targets
16597 do
16598   case "$ac_config_target" in
16599   # Handling of arguments.
16600   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16601   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16602   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16603   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16604 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16605    { (exit 1); exit 1; }; };;
16606   esac
16607 done
16608
16609 # If the user did not use the arguments to specify the items to instantiate,
16610 # then the envvar interface is used.  Set only those that are not.
16611 # We use the long form for the default assignment because of an extremely
16612 # bizarre bug on SunOS 4.1.3.
16613 if $ac_need_defaults; then
16614   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16615   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16616   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16617 fi
16618
16619 # Have a temporary directory for convenience.  Make it in the build tree
16620 # simply because there is no reason to put it here, and in addition,
16621 # creating and moving files from /tmp can sometimes cause problems.
16622 # Create a temporary directory, and hook for its removal unless debugging.
16623 $debug ||
16624 {
16625   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16626   trap '{ (exit 1); exit 1; }' 1 2 13 15
16627 }
16628
16629 # Create a (secure) tmp directory for tmp files.
16630
16631 {
16632   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16633   test -n "$tmp" && test -d "$tmp"
16634 }  ||
16635 {
16636   tmp=./confstat$$-$RANDOM
16637   (umask 077 && mkdir $tmp)
16638 } ||
16639 {
16640    echo "$me: cannot create a temporary directory in ." >&2
16641    { (exit 1); exit 1; }
16642 }
16643
16644 _ACEOF
16645
16646 cat >>$CONFIG_STATUS <<_ACEOF
16647
16648 #
16649 # CONFIG_FILES section.
16650 #
16651
16652 # No need to generate the scripts if there are no CONFIG_FILES.
16653 # This happens for instance when ./config.status config.h
16654 if test -n "\$CONFIG_FILES"; then
16655   # Protect against being on the right side of a sed subst in config.status.
16656   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16657    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16658 s,@SHELL@,$SHELL,;t t
16659 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16660 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16661 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16662 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16663 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16664 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16665 s,@exec_prefix@,$exec_prefix,;t t
16666 s,@prefix@,$prefix,;t t
16667 s,@program_transform_name@,$program_transform_name,;t t
16668 s,@bindir@,$bindir,;t t
16669 s,@sbindir@,$sbindir,;t t
16670 s,@libexecdir@,$libexecdir,;t t
16671 s,@datadir@,$datadir,;t t
16672 s,@sysconfdir@,$sysconfdir,;t t
16673 s,@sharedstatedir@,$sharedstatedir,;t t
16674 s,@localstatedir@,$localstatedir,;t t
16675 s,@libdir@,$libdir,;t t
16676 s,@includedir@,$includedir,;t t
16677 s,@oldincludedir@,$oldincludedir,;t t
16678 s,@infodir@,$infodir,;t t
16679 s,@mandir@,$mandir,;t t
16680 s,@build_alias@,$build_alias,;t t
16681 s,@host_alias@,$host_alias,;t t
16682 s,@target_alias@,$target_alias,;t t
16683 s,@DEFS@,$DEFS,;t t
16684 s,@ECHO_C@,$ECHO_C,;t t
16685 s,@ECHO_N@,$ECHO_N,;t t
16686 s,@ECHO_T@,$ECHO_T,;t t
16687 s,@LIBS@,$LIBS,;t t
16688 s,@build@,$build,;t t
16689 s,@build_cpu@,$build_cpu,;t t
16690 s,@build_vendor@,$build_vendor,;t t
16691 s,@build_os@,$build_os,;t t
16692 s,@host@,$host,;t t
16693 s,@host_cpu@,$host_cpu,;t t
16694 s,@host_vendor@,$host_vendor,;t t
16695 s,@host_os@,$host_os,;t t
16696 s,@target@,$target,;t t
16697 s,@target_cpu@,$target_cpu,;t t
16698 s,@target_vendor@,$target_vendor,;t t
16699 s,@target_os@,$target_os,;t t
16700 s,@target_noncanonical@,$target_noncanonical,;t t
16701 s,@build_subdir@,$build_subdir,;t t
16702 s,@host_subdir@,$host_subdir,;t t
16703 s,@target_subdir@,$target_subdir,;t t
16704 s,@GENINSRC@,$GENINSRC,;t t
16705 s,@CC@,$CC,;t t
16706 s,@CFLAGS@,$CFLAGS,;t t
16707 s,@LDFLAGS@,$LDFLAGS,;t t
16708 s,@CPPFLAGS@,$CPPFLAGS,;t t
16709 s,@ac_ct_CC@,$ac_ct_CC,;t t
16710 s,@EXEEXT@,$EXEEXT,;t t
16711 s,@OBJEXT@,$OBJEXT,;t t
16712 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16713 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16714 s,@CPP@,$CPP,;t t
16715 s,@EGREP@,$EGREP,;t t
16716 s,@strict1_warn@,$strict1_warn,;t t
16717 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16718 s,@warn_cflags@,$warn_cflags,;t t
16719 s,@WERROR@,$WERROR,;t t
16720 s,@nocommon_flag@,$nocommon_flag,;t t
16721 s,@TREEBROWSER@,$TREEBROWSER,;t t
16722 s,@valgrind_path@,$valgrind_path,;t t
16723 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16724 s,@valgrind_command@,$valgrind_command,;t t
16725 s,@coverage_flags@,$coverage_flags,;t t
16726 s,@enable_multilib@,$enable_multilib,;t t
16727 s,@enable_decimal_float@,$enable_decimal_float,;t t
16728 s,@enable_shared@,$enable_shared,;t t
16729 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16730 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16731 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16732 s,@onestep@,$onestep,;t t
16733 s,@SET_MAKE@,$SET_MAKE,;t t
16734 s,@AWK@,$AWK,;t t
16735 s,@LN_S@,$LN_S,;t t
16736 s,@LN@,$LN,;t t
16737 s,@RANLIB@,$RANLIB,;t t
16738 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16739 s,@ranlib_flags@,$ranlib_flags,;t t
16740 s,@INSTALL@,$INSTALL,;t t
16741 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16742 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16743 s,@make_compare_target@,$make_compare_target,;t t
16744 s,@have_mktemp_command@,$have_mktemp_command,;t t
16745 s,@MAKEINFO@,$MAKEINFO,;t t
16746 s,@BUILD_INFO@,$BUILD_INFO,;t t
16747 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16748 s,@FLEX@,$FLEX,;t t
16749 s,@BISON@,$BISON,;t t
16750 s,@NM@,$NM,;t t
16751 s,@AR@,$AR,;t t
16752 s,@stage1_cflags@,$stage1_cflags,;t t
16753 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16754 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16755 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16756 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16757 s,@LIBICONV@,$LIBICONV,;t t
16758 s,@LTLIBICONV@,$LTLIBICONV,;t t
16759 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16760 s,@manext@,$manext,;t t
16761 s,@objext@,$objext,;t t
16762 s,@gthread_flags@,$gthread_flags,;t t
16763 s,@extra_modes_file@,$extra_modes_file,;t t
16764 s,@extra_opt_files@,$extra_opt_files,;t t
16765 s,@USE_NLS@,$USE_NLS,;t t
16766 s,@LIBINTL@,$LIBINTL,;t t
16767 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16768 s,@INCINTL@,$INCINTL,;t t
16769 s,@XGETTEXT@,$XGETTEXT,;t t
16770 s,@GMSGFMT@,$GMSGFMT,;t t
16771 s,@POSUB@,$POSUB,;t t
16772 s,@CATALOGS@,$CATALOGS,;t t
16773 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16774 s,@CROSS@,$CROSS,;t t
16775 s,@ALL@,$ALL,;t t
16776 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16777 s,@inhibit_libc@,$inhibit_libc,;t t
16778 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16779 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16780 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16781 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16782 s,@collect2@,$collect2,;t t
16783 s,@gcc_cv_as@,$gcc_cv_as,;t t
16784 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
16785 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
16786 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
16787 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
16788 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
16789 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
16790 s,@libgcc_visibility@,$libgcc_visibility,;t t
16791 s,@GGC@,$GGC,;t t
16792 s,@zlibdir@,$zlibdir,;t t
16793 s,@zlibinc@,$zlibinc,;t t
16794 s,@MAINT@,$MAINT,;t t
16795 s,@gcc_tooldir@,$gcc_tooldir,;t t
16796 s,@dollar@,$dollar,;t t
16797 s,@slibdir@,$slibdir,;t t
16798 s,@objdir@,$objdir,;t t
16799 s,@subdirs@,$subdirs,;t t
16800 s,@srcdir@,$srcdir,;t t
16801 s,@all_boot_languages@,$all_boot_languages,;t t
16802 s,@all_compilers@,$all_compilers,;t t
16803 s,@all_gtfiles@,$all_gtfiles,;t t
16804 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16805 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16806 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16807 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16808 s,@all_languages@,$all_languages,;t t
16809 s,@all_selected_languages@,$all_selected_languages,;t t
16810 s,@all_stagestuff@,$all_stagestuff,;t t
16811 s,@build_exeext@,$build_exeext,;t t
16812 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16813 s,@build_xm_file_list@,$build_xm_file_list,;t t
16814 s,@build_xm_include_list@,$build_xm_include_list,;t t
16815 s,@build_xm_defines@,$build_xm_defines,;t t
16816 s,@check_languages@,$check_languages,;t t
16817 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16818 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16819 s,@cpp_install_dir@,$cpp_install_dir,;t t
16820 s,@xmake_file@,$xmake_file,;t t
16821 s,@tmake_file@,$tmake_file,;t t
16822 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16823 s,@extra_headers_list@,$extra_headers_list,;t t
16824 s,@extra_objs@,$extra_objs,;t t
16825 s,@extra_parts@,$extra_parts,;t t
16826 s,@extra_passes@,$extra_passes,;t t
16827 s,@extra_programs@,$extra_programs,;t t
16828 s,@float_h_file@,$float_h_file,;t t
16829 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16830 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16831 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16832 s,@host_exeext@,$host_exeext,;t t
16833 s,@host_xm_file_list@,$host_xm_file_list,;t t
16834 s,@host_xm_include_list@,$host_xm_include_list,;t t
16835 s,@host_xm_defines@,$host_xm_defines,;t t
16836 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16837 s,@install@,$install,;t t
16838 s,@lang_opt_files@,$lang_opt_files,;t t
16839 s,@lang_specs_files@,$lang_specs_files,;t t
16840 s,@lang_tree_files@,$lang_tree_files,;t t
16841 s,@local_prefix@,$local_prefix,;t t
16842 s,@md_file@,$md_file,;t t
16843 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16844 s,@out_file@,$out_file,;t t
16845 s,@out_object_file@,$out_object_file,;t t
16846 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16847 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16848 s,@thread_file@,$thread_file,;t t
16849 s,@tm_file_list@,$tm_file_list,;t t
16850 s,@tm_include_list@,$tm_include_list,;t t
16851 s,@tm_defines@,$tm_defines,;t t
16852 s,@tm_p_file_list@,$tm_p_file_list,;t t
16853 s,@tm_p_include_list@,$tm_p_include_list,;t t
16854 s,@xm_file_list@,$xm_file_list,;t t
16855 s,@xm_include_list@,$xm_include_list,;t t
16856 s,@xm_defines@,$xm_defines,;t t
16857 s,@c_target_objs@,$c_target_objs,;t t
16858 s,@cxx_target_objs@,$cxx_target_objs,;t t
16859 s,@target_cpu_default@,$target_cpu_default,;t t
16860 s,@GMPLIBS@,$GMPLIBS,;t t
16861 s,@GMPINC@,$GMPINC,;t t
16862 s,@LIBOBJS@,$LIBOBJS,;t t
16863 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16864 /@language_hooks@/r $language_hooks
16865 s,@language_hooks@,,;t t
16866 CEOF
16867
16868 _ACEOF
16869
16870   cat >>$CONFIG_STATUS <<\_ACEOF
16871   # Split the substitutions into bite-sized pieces for seds with
16872   # small command number limits, like on Digital OSF/1 and HP-UX.
16873   ac_max_sed_lines=48
16874   ac_sed_frag=1 # Number of current file.
16875   ac_beg=1 # First line for current file.
16876   ac_end=$ac_max_sed_lines # Line after last line for current file.
16877   ac_more_lines=:
16878   ac_sed_cmds=
16879   while $ac_more_lines; do
16880     if test $ac_beg -gt 1; then
16881       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16882     else
16883       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16884     fi
16885     if test ! -s $tmp/subs.frag; then
16886       ac_more_lines=false
16887     else
16888       # The purpose of the label and of the branching condition is to
16889       # speed up the sed processing (if there are no `@' at all, there
16890       # is no need to browse any of the substitutions).
16891       # These are the two extra sed commands mentioned above.
16892       (echo ':t
16893   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16894       if test -z "$ac_sed_cmds"; then
16895         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16896       else
16897         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16898       fi
16899       ac_sed_frag=`expr $ac_sed_frag + 1`
16900       ac_beg=$ac_end
16901       ac_end=`expr $ac_end + $ac_max_sed_lines`
16902     fi
16903   done
16904   if test -z "$ac_sed_cmds"; then
16905     ac_sed_cmds=cat
16906   fi
16907 fi # test -n "$CONFIG_FILES"
16908
16909 _ACEOF
16910 cat >>$CONFIG_STATUS <<\_ACEOF
16911 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16912   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16913   case $ac_file in
16914   - | *:- | *:-:* ) # input from stdin
16915         cat >$tmp/stdin
16916         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16917         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16918   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16919         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16920   * )   ac_file_in=$ac_file.in ;;
16921   esac
16922
16923   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16924   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16926          X"$ac_file" : 'X\(//\)[^/]' \| \
16927          X"$ac_file" : 'X\(//\)$' \| \
16928          X"$ac_file" : 'X\(/\)' \| \
16929          .     : '\(.\)' 2>/dev/null ||
16930 echo X"$ac_file" |
16931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16933           /^X\(\/\/\)$/{ s//\1/; q; }
16934           /^X\(\/\).*/{ s//\1/; q; }
16935           s/.*/./; q'`
16936   { if $as_mkdir_p; then
16937     mkdir -p "$ac_dir"
16938   else
16939     as_dir="$ac_dir"
16940     as_dirs=
16941     while test ! -d "$as_dir"; do
16942       as_dirs="$as_dir $as_dirs"
16943       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16945          X"$as_dir" : 'X\(//\)[^/]' \| \
16946          X"$as_dir" : 'X\(//\)$' \| \
16947          X"$as_dir" : 'X\(/\)' \| \
16948          .     : '\(.\)' 2>/dev/null ||
16949 echo X"$as_dir" |
16950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16951           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16952           /^X\(\/\/\)$/{ s//\1/; q; }
16953           /^X\(\/\).*/{ s//\1/; q; }
16954           s/.*/./; q'`
16955     done
16956     test ! -n "$as_dirs" || mkdir $as_dirs
16957   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16959    { (exit 1); exit 1; }; }; }
16960
16961   ac_builddir=.
16962
16963 if test "$ac_dir" != .; then
16964   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16965   # A "../" for each directory in $ac_dir_suffix.
16966   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16967 else
16968   ac_dir_suffix= ac_top_builddir=
16969 fi
16970
16971 case $srcdir in
16972   .)  # No --srcdir option.  We are building in place.
16973     ac_srcdir=.
16974     if test -z "$ac_top_builddir"; then
16975        ac_top_srcdir=.
16976     else
16977        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16978     fi ;;
16979   [\\/]* | ?:[\\/]* )  # Absolute path.
16980     ac_srcdir=$srcdir$ac_dir_suffix;
16981     ac_top_srcdir=$srcdir ;;
16982   *) # Relative path.
16983     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16984     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16985 esac
16986
16987 # Do not use `cd foo && pwd` to compute absolute paths, because
16988 # the directories may not exist.
16989 case `pwd` in
16990 .) ac_abs_builddir="$ac_dir";;
16991 *)
16992   case "$ac_dir" in
16993   .) ac_abs_builddir=`pwd`;;
16994   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16995   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16996   esac;;
16997 esac
16998 case $ac_abs_builddir in
16999 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17000 *)
17001   case ${ac_top_builddir}. in
17002   .) ac_abs_top_builddir=$ac_abs_builddir;;
17003   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17004   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17005   esac;;
17006 esac
17007 case $ac_abs_builddir in
17008 .) ac_abs_srcdir=$ac_srcdir;;
17009 *)
17010   case $ac_srcdir in
17011   .) ac_abs_srcdir=$ac_abs_builddir;;
17012   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17013   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17014   esac;;
17015 esac
17016 case $ac_abs_builddir in
17017 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17018 *)
17019   case $ac_top_srcdir in
17020   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17021   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17022   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17023   esac;;
17024 esac
17025
17026
17027
17028   if test x"$ac_file" != x-; then
17029     { echo "$as_me:$LINENO: creating $ac_file" >&5
17030 echo "$as_me: creating $ac_file" >&6;}
17031     rm -f "$ac_file"
17032   fi
17033   # Let's still pretend it is `configure' which instantiates (i.e., don't
17034   # use $as_me), people would be surprised to read:
17035   #    /* config.h.  Generated by config.status.  */
17036   if test x"$ac_file" = x-; then
17037     configure_input=
17038   else
17039     configure_input="$ac_file.  "
17040   fi
17041   configure_input=$configure_input"Generated from `echo $ac_file_in |
17042                                      sed 's,.*/,,'` by configure."
17043
17044   # First look for the input files in the build tree, otherwise in the
17045   # src tree.
17046   ac_file_inputs=`IFS=:
17047     for f in $ac_file_in; do
17048       case $f in
17049       -) echo $tmp/stdin ;;
17050       [\\/$]*)
17051          # Absolute (can't be DOS-style, as IFS=:)
17052          test -f "$f" || { { 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          echo "$f";;
17056       *) # Relative
17057          if test -f "$f"; then
17058            # Build tree
17059            echo "$f"
17060          elif test -f "$srcdir/$f"; then
17061            # Source tree
17062            echo "$srcdir/$f"
17063          else
17064            # /dev/null tree
17065            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17066 echo "$as_me: error: cannot find input file: $f" >&2;}
17067    { (exit 1); exit 1; }; }
17068          fi;;
17069       esac
17070     done` || { (exit 1); exit 1; }
17071 _ACEOF
17072 cat >>$CONFIG_STATUS <<_ACEOF
17073   sed "$ac_vpsub
17074 $extrasub
17075 _ACEOF
17076 cat >>$CONFIG_STATUS <<\_ACEOF
17077 :t
17078 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17079 s,@configure_input@,$configure_input,;t t
17080 s,@srcdir@,$ac_srcdir,;t t
17081 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17082 s,@top_srcdir@,$ac_top_srcdir,;t t
17083 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17084 s,@builddir@,$ac_builddir,;t t
17085 s,@abs_builddir@,$ac_abs_builddir,;t t
17086 s,@top_builddir@,$ac_top_builddir,;t t
17087 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17088 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17089   rm -f $tmp/stdin
17090   if test x"$ac_file" != x-; then
17091     mv $tmp/out $ac_file
17092   else
17093     cat $tmp/out
17094     rm -f $tmp/out
17095   fi
17096
17097 done
17098 _ACEOF
17099 cat >>$CONFIG_STATUS <<\_ACEOF
17100
17101 #
17102 # CONFIG_HEADER section.
17103 #
17104
17105 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17106 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17107 #
17108 # ac_d sets the value in "#define NAME VALUE" lines.
17109 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17110 ac_dB='[         ].*$,\1#\2'
17111 ac_dC=' '
17112 ac_dD=',;t'
17113 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17114 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17115 ac_uB='$,\1#\2define\3'
17116 ac_uC=' '
17117 ac_uD=',;t'
17118
17119 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17120   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17121   case $ac_file in
17122   - | *:- | *:-:* ) # input from stdin
17123         cat >$tmp/stdin
17124         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17125         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17126   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17127         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17128   * )   ac_file_in=$ac_file.in ;;
17129   esac
17130
17131   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17132 echo "$as_me: creating $ac_file" >&6;}
17133
17134   # First look for the input files in the build tree, otherwise in the
17135   # src tree.
17136   ac_file_inputs=`IFS=:
17137     for f in $ac_file_in; do
17138       case $f in
17139       -) echo $tmp/stdin ;;
17140       [\\/$]*)
17141          # Absolute (can't be DOS-style, as IFS=:)
17142          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17143 echo "$as_me: error: cannot find input file: $f" >&2;}
17144    { (exit 1); exit 1; }; }
17145          # Do quote $f, to prevent DOS paths from being IFS'd.
17146          echo "$f";;
17147       *) # Relative
17148          if test -f "$f"; then
17149            # Build tree
17150            echo "$f"
17151          elif test -f "$srcdir/$f"; then
17152            # Source tree
17153            echo "$srcdir/$f"
17154          else
17155            # /dev/null tree
17156            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17157 echo "$as_me: error: cannot find input file: $f" >&2;}
17158    { (exit 1); exit 1; }; }
17159          fi;;
17160       esac
17161     done` || { (exit 1); exit 1; }
17162   # Remove the trailing spaces.
17163   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17164
17165 _ACEOF
17166
17167 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17168 # `conftest.undefs', that substitutes the proper values into
17169 # config.h.in to produce config.h.  The first handles `#define'
17170 # templates, and the second `#undef' templates.
17171 # And first: Protect against being on the right side of a sed subst in
17172 # config.status.  Protect against being in an unquoted here document
17173 # in config.status.
17174 rm -f conftest.defines conftest.undefs
17175 # Using a here document instead of a string reduces the quoting nightmare.
17176 # Putting comments in sed scripts is not portable.
17177 #
17178 # `end' is used to avoid that the second main sed command (meant for
17179 # 0-ary CPP macros) applies to n-ary macro definitions.
17180 # See the Autoconf documentation for `clear'.
17181 cat >confdef2sed.sed <<\_ACEOF
17182 s/[\\&,]/\\&/g
17183 s,[\\$`],\\&,g
17184 t clear
17185 : clear
17186 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17187 t end
17188 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17189 : end
17190 _ACEOF
17191 # If some macros were called several times there might be several times
17192 # the same #defines, which is useless.  Nevertheless, we may not want to
17193 # sort them, since we want the *last* AC-DEFINE to be honored.
17194 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17195 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17196 rm -f confdef2sed.sed
17197
17198 # This sed command replaces #undef with comments.  This is necessary, for
17199 # example, in the case of _POSIX_SOURCE, which is predefined and required
17200 # on some systems where configure will not decide to define it.
17201 cat >>conftest.undefs <<\_ACEOF
17202 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17203 _ACEOF
17204
17205 # Break up conftest.defines because some shells have a limit on the size
17206 # of here documents, and old seds have small limits too (100 cmds).
17207 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17208 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17209 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17210 echo '  :' >>$CONFIG_STATUS
17211 rm -f conftest.tail
17212 while grep . conftest.defines >/dev/null
17213 do
17214   # Write a limited-size here document to $tmp/defines.sed.
17215   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17216   # Speed up: don't consider the non `#define' lines.
17217   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17218   # Work around the forget-to-reset-the-flag bug.
17219   echo 't clr' >>$CONFIG_STATUS
17220   echo ': clr' >>$CONFIG_STATUS
17221   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17222   echo 'CEOF
17223   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17224   rm -f $tmp/in
17225   mv $tmp/out $tmp/in
17226 ' >>$CONFIG_STATUS
17227   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17228   rm -f conftest.defines
17229   mv conftest.tail conftest.defines
17230 done
17231 rm -f conftest.defines
17232 echo '  fi # grep' >>$CONFIG_STATUS
17233 echo >>$CONFIG_STATUS
17234
17235 # Break up conftest.undefs because some shells have a limit on the size
17236 # of here documents, and old seds have small limits too (100 cmds).
17237 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17238 rm -f conftest.tail
17239 while grep . conftest.undefs >/dev/null
17240 do
17241   # Write a limited-size here document to $tmp/undefs.sed.
17242   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17243   # Speed up: don't consider the non `#undef'
17244   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17245   # Work around the forget-to-reset-the-flag bug.
17246   echo 't clr' >>$CONFIG_STATUS
17247   echo ': clr' >>$CONFIG_STATUS
17248   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17249   echo 'CEOF
17250   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17251   rm -f $tmp/in
17252   mv $tmp/out $tmp/in
17253 ' >>$CONFIG_STATUS
17254   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17255   rm -f conftest.undefs
17256   mv conftest.tail conftest.undefs
17257 done
17258 rm -f conftest.undefs
17259
17260 cat >>$CONFIG_STATUS <<\_ACEOF
17261   # Let's still pretend it is `configure' which instantiates (i.e., don't
17262   # use $as_me), people would be surprised to read:
17263   #    /* config.h.  Generated by config.status.  */
17264   if test x"$ac_file" = x-; then
17265     echo "/* Generated by configure.  */" >$tmp/config.h
17266   else
17267     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17268   fi
17269   cat $tmp/in >>$tmp/config.h
17270   rm -f $tmp/in
17271   if test x"$ac_file" != x-; then
17272     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17273       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17274 echo "$as_me: $ac_file is unchanged" >&6;}
17275     else
17276       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17277 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17278          X"$ac_file" : 'X\(//\)[^/]' \| \
17279          X"$ac_file" : 'X\(//\)$' \| \
17280          X"$ac_file" : 'X\(/\)' \| \
17281          .     : '\(.\)' 2>/dev/null ||
17282 echo X"$ac_file" |
17283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17284           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17285           /^X\(\/\/\)$/{ s//\1/; q; }
17286           /^X\(\/\).*/{ s//\1/; q; }
17287           s/.*/./; q'`
17288       { if $as_mkdir_p; then
17289     mkdir -p "$ac_dir"
17290   else
17291     as_dir="$ac_dir"
17292     as_dirs=
17293     while test ! -d "$as_dir"; do
17294       as_dirs="$as_dir $as_dirs"
17295       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17297          X"$as_dir" : 'X\(//\)[^/]' \| \
17298          X"$as_dir" : 'X\(//\)$' \| \
17299          X"$as_dir" : 'X\(/\)' \| \
17300          .     : '\(.\)' 2>/dev/null ||
17301 echo X"$as_dir" |
17302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17303           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17304           /^X\(\/\/\)$/{ s//\1/; q; }
17305           /^X\(\/\).*/{ s//\1/; q; }
17306           s/.*/./; q'`
17307     done
17308     test ! -n "$as_dirs" || mkdir $as_dirs
17309   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17310 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17311    { (exit 1); exit 1; }; }; }
17312
17313       rm -f $ac_file
17314       mv $tmp/config.h $ac_file
17315     fi
17316   else
17317     cat $tmp/config.h
17318     rm -f $tmp/config.h
17319   fi
17320 done
17321 _ACEOF
17322 cat >>$CONFIG_STATUS <<\_ACEOF
17323
17324 #
17325 # CONFIG_COMMANDS section.
17326 #
17327 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17328   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17329   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17330   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17331 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17332          X"$ac_dest" : 'X\(//\)[^/]' \| \
17333          X"$ac_dest" : 'X\(//\)$' \| \
17334          X"$ac_dest" : 'X\(/\)' \| \
17335          .     : '\(.\)' 2>/dev/null ||
17336 echo X"$ac_dest" |
17337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17338           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17339           /^X\(\/\/\)$/{ s//\1/; q; }
17340           /^X\(\/\).*/{ s//\1/; q; }
17341           s/.*/./; q'`
17342   { if $as_mkdir_p; then
17343     mkdir -p "$ac_dir"
17344   else
17345     as_dir="$ac_dir"
17346     as_dirs=
17347     while test ! -d "$as_dir"; do
17348       as_dirs="$as_dir $as_dirs"
17349       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17351          X"$as_dir" : 'X\(//\)[^/]' \| \
17352          X"$as_dir" : 'X\(//\)$' \| \
17353          X"$as_dir" : 'X\(/\)' \| \
17354          .     : '\(.\)' 2>/dev/null ||
17355 echo X"$as_dir" |
17356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17357           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17358           /^X\(\/\/\)$/{ s//\1/; q; }
17359           /^X\(\/\).*/{ s//\1/; q; }
17360           s/.*/./; q'`
17361     done
17362     test ! -n "$as_dirs" || mkdir $as_dirs
17363   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17364 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17365    { (exit 1); exit 1; }; }; }
17366
17367   ac_builddir=.
17368
17369 if test "$ac_dir" != .; then
17370   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17371   # A "../" for each directory in $ac_dir_suffix.
17372   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17373 else
17374   ac_dir_suffix= ac_top_builddir=
17375 fi
17376
17377 case $srcdir in
17378   .)  # No --srcdir option.  We are building in place.
17379     ac_srcdir=.
17380     if test -z "$ac_top_builddir"; then
17381        ac_top_srcdir=.
17382     else
17383        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17384     fi ;;
17385   [\\/]* | ?:[\\/]* )  # Absolute path.
17386     ac_srcdir=$srcdir$ac_dir_suffix;
17387     ac_top_srcdir=$srcdir ;;
17388   *) # Relative path.
17389     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17390     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17391 esac
17392
17393 # Do not use `cd foo && pwd` to compute absolute paths, because
17394 # the directories may not exist.
17395 case `pwd` in
17396 .) ac_abs_builddir="$ac_dir";;
17397 *)
17398   case "$ac_dir" in
17399   .) ac_abs_builddir=`pwd`;;
17400   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17401   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17402   esac;;
17403 esac
17404 case $ac_abs_builddir in
17405 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17406 *)
17407   case ${ac_top_builddir}. in
17408   .) ac_abs_top_builddir=$ac_abs_builddir;;
17409   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17410   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17411   esac;;
17412 esac
17413 case $ac_abs_builddir in
17414 .) ac_abs_srcdir=$ac_srcdir;;
17415 *)
17416   case $ac_srcdir in
17417   .) ac_abs_srcdir=$ac_abs_builddir;;
17418   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17419   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17420   esac;;
17421 esac
17422 case $ac_abs_builddir in
17423 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17424 *)
17425   case $ac_top_srcdir in
17426   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17427   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17428   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17429   esac;;
17430 esac
17431
17432
17433   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17434 echo "$as_me: executing $ac_dest commands" >&6;}
17435   case $ac_dest in
17436     default )
17437 case ${CONFIG_HEADERS} in
17438   *auto-host.h:config.in*)
17439   echo > cstamp-h ;;
17440 esac
17441 # Make sure all the subdirs exist.
17442 for d in $subdirs doc build
17443 do
17444     test -d $d || mkdir $d
17445 done
17446 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17447 # bootstrapping and the installation procedure can still use
17448 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
17449 # FLAGS_TO_PASS has been modified to solve the problem there.
17450 # This is virtually a duplicate of what happens in configure.lang; we do
17451 # an extra check to make sure this only happens if ln -s can be used.
17452 case "$LN_S" in
17453   *-s*)
17454     for d in ${subdirs} ; do
17455         STARTDIR=`${PWDCMD-pwd}`
17456         cd $d
17457         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17458         do
17459                 rm -f $t
17460                 $LN_S ../$t $t 2>/dev/null
17461         done
17462         cd $STARTDIR
17463     done
17464   ;;
17465 esac
17466  ;;
17467   esac
17468 done
17469 _ACEOF
17470
17471 cat >>$CONFIG_STATUS <<\_ACEOF
17472
17473 { (exit 0); exit 0; }
17474 _ACEOF
17475 chmod +x $CONFIG_STATUS
17476 ac_clean_files=$ac_clean_files_save
17477
17478
17479 # configure is writing to config.log, and then calls config.status.
17480 # config.status does its own redirection, appending to config.log.
17481 # Unfortunately, on DOS this fails, as config.log is still kept open
17482 # by configure, so config.status won't be able to write to it; its
17483 # output is simply discarded.  So we exec the FD to /dev/null,
17484 # effectively closing config.log, so it can be properly (re)opened and
17485 # appended to by config.status.  When coming back to configure, we
17486 # need to make the FD available again.
17487 if test "$no_create" != yes; then
17488   ac_cs_success=:
17489   ac_config_status_args=
17490   test "$silent" = yes &&
17491     ac_config_status_args="$ac_config_status_args --quiet"
17492   exec 5>/dev/null
17493   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17494   exec 5>>config.log
17495   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17496   # would make configure fail if this is the last instruction.
17497   $ac_cs_success || { (exit 1); exit 1; }
17498 fi
17499