* system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
[official-gcc.git] / gcc / configure
blob92d222c4276eab32b576a18e33cfb16fc629ccb6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
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`
249 exec 6>&1
252 # Initializations.
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}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
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"
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 build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags TREEBROWSER enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT ANDER BANSHEEINC BANSHEELIB gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger 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 symbolic_link 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 target_noncanonical c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
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
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'
353 ac_prev=
354 for ac_option
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
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 ;;
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
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 ;;
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 ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
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'" ;;
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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 ;;
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}
649 esac
650 done
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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
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
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
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
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
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
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
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=..
725 else
726 ac_srcdir_defaulted=no
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; }; }
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
783 # Report the --help message.
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.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
796 Defaults for the options are specified in brackets.
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 \`..']
809 _ACEOF
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]
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'.
823 For better control, use the options below.
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
840 cat <<\_ACEOF
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
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
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
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: misc,tree,rtl,rtlflag,gc,gcac,fold;
871 default is misc,tree,gc,rtlflag
872 --enable-coverage=LEVEL
873 enable compiler\'s code coverage collection.
874 Use to measure compiler performance and locate
875 unused parts of the compiler. With LEVEL, specify
876 optimization. Values are opt, noopt,
877 default is noopt
878 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
879 --enable-tree-browser enable the tree browsing routines for debugging
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --enable-initfini-array use .init_array/.fini_array sections
890 --enable-sjlj-exceptions
891 arrange to use setjmp/longjmp exception handling
892 --enable-libunwind-exceptions force use libunwind for exceptions
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
899 of the registry key
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
907 Optional Packages:
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-gnu-as arrange to work with GNU as
919 --with-as arrange to use the specified as (full pathname)
920 --with-stabs arrange to use stabs instead of host debug format
921 --with-dwarf2 force the default debug format to be DWARF 2
922 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
923 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
924 --with-gc={page,zone} choose the garbage collection mechanism to use
925 with the compiler
926 --with-system-zlib use installed libz
927 --with-libbanshee enable libbanshee
928 --with-slibdir=DIR shared libraries in DIR LIBDIR
930 Some influential environment variables:
931 CC C compiler command
932 CFLAGS C compiler flags
933 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
934 nonstandard directory <lib dir>
935 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
936 headers in a nonstandard directory <include dir>
937 CPP C preprocessor
938 GMPLIBS How to link GMP
939 GMPINC How to find GMP include files
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
944 _ACEOF
947 if test "$ac_init_help" = "recursive"; then
948 # If there are subdirs, report their specific --help.
949 ac_popdir=`pwd`
950 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951 test -d $ac_dir || continue
952 ac_builddir=.
954 if test "$ac_dir" != .; then
955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956 # A "../" for each directory in $ac_dir_suffix.
957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 else
959 ac_dir_suffix= ac_top_builddir=
962 case $srcdir in
963 .) # No --srcdir option. We are building in place.
964 ac_srcdir=.
965 if test -z "$ac_top_builddir"; then
966 ac_top_srcdir=.
967 else
968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969 fi ;;
970 [\\/]* | ?:[\\/]* ) # Absolute path.
971 ac_srcdir=$srcdir$ac_dir_suffix;
972 ac_top_srcdir=$srcdir ;;
973 *) # Relative path.
974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 esac
978 # Do not use `cd foo && pwd` to compute absolute paths, because
979 # the directories may not exist.
980 case `pwd` in
981 .) ac_abs_builddir="$ac_dir";;
983 case "$ac_dir" in
984 .) ac_abs_builddir=`pwd`;;
985 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986 *) ac_abs_builddir=`pwd`/"$ac_dir";;
987 esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
992 case ${ac_top_builddir}. in
993 .) ac_abs_top_builddir=$ac_abs_builddir;;
994 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
996 esac;;
997 esac
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1001 case $ac_srcdir in
1002 .) ac_abs_srcdir=$ac_abs_builddir;;
1003 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1005 esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1010 case $ac_top_srcdir in
1011 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1014 esac;;
1015 esac
1017 cd $ac_dir
1018 # Check for guested configure; otherwise get Cygnus style configure.
1019 if test -f $ac_srcdir/configure.gnu; then
1020 echo
1021 $SHELL $ac_srcdir/configure.gnu --help=recursive
1022 elif test -f $ac_srcdir/configure; then
1023 echo
1024 $SHELL $ac_srcdir/configure --help=recursive
1025 elif test -f $ac_srcdir/configure.ac ||
1026 test -f $ac_srcdir/configure.in; then
1027 echo
1028 $ac_configure --help
1029 else
1030 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1032 cd $ac_popdir
1033 done
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1038 cat <<\_ACEOF
1040 Copyright (C) 2003 Free Software Foundation, Inc.
1041 This configure script is free software; the Free Software Foundation
1042 gives unlimited permission to copy, distribute and modify it.
1043 _ACEOF
1044 exit 0
1046 exec 5>config.log
1047 cat >&5 <<_ACEOF
1048 This file contains any messages produced by compilers while
1049 running configure, to aid debugging if configure makes a mistake.
1051 It was created by $as_me, which was
1052 generated by GNU Autoconf 2.59. Invocation command line was
1054 $ $0 $@
1056 _ACEOF
1058 cat <<_ASUNAME
1059 ## --------- ##
1060 ## Platform. ##
1061 ## --------- ##
1063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1070 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1072 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1073 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1075 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1076 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1077 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1078 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1080 _ASUNAME
1082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1083 for as_dir in $PATH
1085 IFS=$as_save_IFS
1086 test -z "$as_dir" && as_dir=.
1087 echo "PATH: $as_dir"
1088 done
1090 } >&5
1092 cat >&5 <<_ACEOF
1095 ## ----------- ##
1096 ## Core tests. ##
1097 ## ----------- ##
1099 _ACEOF
1102 # Keep a trace of the command line.
1103 # Strip out --no-create and --no-recursion so they do not pile up.
1104 # Strip out --silent because we don't want to record it for future runs.
1105 # Also quote any args containing shell meta-characters.
1106 # Make two passes to allow for proper duplicate-argument suppression.
1107 ac_configure_args=
1108 ac_configure_args0=
1109 ac_configure_args1=
1110 ac_sep=
1111 ac_must_keep_next=false
1112 for ac_pass in 1 2
1114 for ac_arg
1116 case $ac_arg in
1117 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 continue ;;
1121 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1123 esac
1124 case $ac_pass in
1125 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1127 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1128 if test $ac_must_keep_next = true; then
1129 ac_must_keep_next=false # Got value, back to normal.
1130 else
1131 case $ac_arg in
1132 *=* | --config-cache | -C | -disable-* | --disable-* \
1133 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1134 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1135 | -with-* | --with-* | -without-* | --without-* | --x)
1136 case "$ac_configure_args0 " in
1137 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1138 esac
1140 -* ) ac_must_keep_next=true ;;
1141 esac
1143 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1144 # Get rid of the leading space.
1145 ac_sep=" "
1147 esac
1148 done
1149 done
1150 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1151 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1153 # When interrupted or exit'd, cleanup temporary files, and complete
1154 # config.log. We remove comments because anyway the quotes in there
1155 # would cause problems or look ugly.
1156 # WARNING: Be sure not to use single quotes in there, as some shells,
1157 # such as our DU 5.0 friend, will then `close' the trap.
1158 trap 'exit_status=$?
1159 # Save into config.log some information that might help in debugging.
1161 echo
1163 cat <<\_ASBOX
1164 ## ---------------- ##
1165 ## Cache variables. ##
1166 ## ---------------- ##
1167 _ASBOX
1168 echo
1169 # The following way of writing the cache mishandles newlines in values,
1171 (set) 2>&1 |
1172 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1173 *ac_space=\ *)
1174 sed -n \
1175 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1179 sed -n \
1180 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1182 esac;
1184 echo
1186 cat <<\_ASBOX
1187 ## ----------------- ##
1188 ## Output variables. ##
1189 ## ----------------- ##
1190 _ASBOX
1191 echo
1192 for ac_var in $ac_subst_vars
1194 eval ac_val=$`echo $ac_var`
1195 echo "$ac_var='"'"'$ac_val'"'"'"
1196 done | sort
1197 echo
1199 if test -n "$ac_subst_files"; then
1200 cat <<\_ASBOX
1201 ## ------------- ##
1202 ## Output files. ##
1203 ## ------------- ##
1204 _ASBOX
1205 echo
1206 for ac_var in $ac_subst_files
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1210 done | sort
1211 echo
1214 if test -s confdefs.h; then
1215 cat <<\_ASBOX
1216 ## ----------- ##
1217 ## confdefs.h. ##
1218 ## ----------- ##
1219 _ASBOX
1220 echo
1221 sed "/^$/d" confdefs.h | sort
1222 echo
1224 test "$ac_signal" != 0 &&
1225 echo "$as_me: caught signal $ac_signal"
1226 echo "$as_me: exit $exit_status"
1227 } >&5
1228 rm -f core *.core &&
1229 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230 exit $exit_status
1232 for ac_signal in 1 2 13 15; do
1233 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 done
1235 ac_signal=0
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 echo >confdefs.h
1242 # Predefined preprocessor variables.
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 _ACEOF
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 _ACEOF
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 _ACEOF
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 _ACEOF
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 _ACEOF
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272 if test "x$prefix" != xNONE; then
1273 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274 else
1275 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278 for ac_site_file in $CONFIG_SITE; do
1279 if test -r "$ac_site_file"; then
1280 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282 sed 's/^/| /' "$ac_site_file" >&5
1283 . "$ac_site_file"
1285 done
1287 if test -r "$cache_file"; then
1288 # Some versions of bash will fail to source /dev/null (special
1289 # files actually), so we avoid doing that.
1290 if test -f "$cache_file"; then
1291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1293 case $cache_file in
1294 [\\/]* | ?:[\\/]* ) . $cache_file;;
1295 *) . ./$cache_file;;
1296 esac
1298 else
1299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1301 >$cache_file
1304 # Check that the precious variables saved in the cache have kept the same
1305 # value.
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310 eval ac_new_set=\$ac_env_${ac_var}_set
1311 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312 eval ac_new_val="\$ac_env_${ac_var}_value"
1313 case $ac_old_set,$ac_new_set in
1314 set,)
1315 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317 ac_cache_corrupted=: ;;
1318 ,set)
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1322 ,);;
1324 if test "x$ac_old_val" != "x$ac_new_val"; then
1325 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1328 echo "$as_me: former value: $ac_old_val" >&2;}
1329 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1330 echo "$as_me: current value: $ac_new_val" >&2;}
1331 ac_cache_corrupted=:
1332 fi;;
1333 esac
1334 # Pass precious variables to config.status.
1335 if test "$ac_new_set" = set; then
1336 case $ac_new_val in
1337 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339 *) ac_arg=$ac_var=$ac_new_val ;;
1340 esac
1341 case " $ac_configure_args " in
1342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344 esac
1346 done
1347 if $ac_cache_corrupted; then
1348 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352 { (exit 1); exit 1; }; }
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1380 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1383 # Determine the host, build, and target systems
1384 ac_aux_dir=
1385 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1386 if test -f $ac_dir/install-sh; then
1387 ac_aux_dir=$ac_dir
1388 ac_install_sh="$ac_aux_dir/install-sh -c"
1389 break
1390 elif test -f $ac_dir/install.sh; then
1391 ac_aux_dir=$ac_dir
1392 ac_install_sh="$ac_aux_dir/install.sh -c"
1393 break
1394 elif test -f $ac_dir/shtool; then
1395 ac_aux_dir=$ac_dir
1396 ac_install_sh="$ac_aux_dir/shtool install -c"
1397 break
1399 done
1400 if test -z "$ac_aux_dir"; then
1401 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1402 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1403 { (exit 1); exit 1; }; }
1405 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1406 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1407 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1409 # Make sure we can run config.sub.
1410 $ac_config_sub sun4 >/dev/null 2>&1 ||
1411 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1412 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1413 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: checking build system type" >&5
1416 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1417 if test "${ac_cv_build+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420 ac_cv_build_alias=$build_alias
1421 test -z "$ac_cv_build_alias" &&
1422 ac_cv_build_alias=`$ac_config_guess`
1423 test -z "$ac_cv_build_alias" &&
1424 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1425 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1426 { (exit 1); exit 1; }; }
1427 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1428 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1429 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1430 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1434 echo "${ECHO_T}$ac_cv_build" >&6
1435 build=$ac_cv_build
1436 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441 echo "$as_me:$LINENO: checking host system type" >&5
1442 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1443 if test "${ac_cv_host+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 ac_cv_host_alias=$host_alias
1447 test -z "$ac_cv_host_alias" &&
1448 ac_cv_host_alias=$ac_cv_build_alias
1449 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1450 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1451 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1452 { (exit 1); exit 1; }; }
1455 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1456 echo "${ECHO_T}$ac_cv_host" >&6
1457 host=$ac_cv_host
1458 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1459 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1460 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1463 echo "$as_me:$LINENO: checking target system type" >&5
1464 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1465 if test "${ac_cv_target+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468 ac_cv_target_alias=$target_alias
1469 test "x$ac_cv_target_alias" = "x" &&
1470 ac_cv_target_alias=$ac_cv_host_alias
1471 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1473 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1474 { (exit 1); exit 1; }; }
1477 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1478 echo "${ECHO_T}$ac_cv_target" >&6
1479 target=$ac_cv_target
1480 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1481 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1482 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1485 # The aliases save the names the user supplied, while $host etc.
1486 # will get canonicalized.
1487 test -n "$target_alias" &&
1488 test "$program_prefix$program_suffix$program_transform_name" = \
1489 NONENONEs,x,x, &&
1490 program_prefix=${target_alias}-
1492 # Determine the noncanonical target name, for directory use.
1493 case ${build_alias} in
1494 "") build_noncanonical=${build} ;;
1495 *) build_noncanonical=${build_alias} ;;
1496 esac
1498 case ${host_alias} in
1499 "") host_noncanonical=${build_noncanonical} ;;
1500 *) host_noncanonical=${host_alias} ;;
1501 esac
1503 case ${target_alias} in
1504 "") target_noncanonical=${host_noncanonical} ;;
1505 *) target_noncanonical=${target_alias} ;;
1506 esac
1509 # Determine the target- and build-specific subdirectories
1510 # Prefix 'build-' so this never conflicts with target_subdir.
1511 build_subdir="build-${build_noncanonical}"
1512 # Not really a subdirectory, but here for completeness.
1513 host_subdir=.
1514 # No prefix.
1515 target_subdir=${target_noncanonical}
1518 # Set program_transform_name
1519 test "$program_prefix" != NONE &&
1520 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1521 # Use a double $ so make ignores it.
1522 test "$program_suffix" != NONE &&
1523 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1524 # Double any \ or $. echo might interpret backslashes.
1525 # By default was `s,x,x', remove it if useless.
1526 cat <<\_ACEOF >conftest.sed
1527 s/[\\$]/&&/g;s/;s,x,x,$//
1528 _ACEOF
1529 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1530 rm conftest.sed
1533 # Check for bogus environment variables.
1534 # Test if LIBRARY_PATH contains the notation for the current directory
1535 # since this would lead to problems installing/building glibc.
1536 # LIBRARY_PATH contains the current directory if one of the following
1537 # is true:
1538 # - one of the terminals (":" and ";") is the first or last sign
1539 # - two terminals occur directly after each other
1540 # - the path contains an element with a dot in it
1541 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1542 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1543 case ${LIBRARY_PATH} in
1544 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1545 library_path_setting="contains current directory"
1548 library_path_setting="ok"
1550 esac
1551 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1552 echo "${ECHO_T}$library_path_setting" >&6
1553 if test "$library_path_setting" != "ok"; then
1554 { { echo "$as_me:$LINENO: error:
1555 *** LIBRARY_PATH shouldn't contain the current directory when
1556 *** building gcc. Please change the environment variable
1557 *** and run configure again." >&5
1558 echo "$as_me: error:
1559 *** LIBRARY_PATH shouldn't contain the current directory when
1560 *** building gcc. Please change the environment variable
1561 *** and run configure again." >&2;}
1562 { (exit 1); exit 1; }; }
1565 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1566 # since this would lead to problems installing/building glibc.
1567 # GCC_EXEC_PREFIX contains the current directory if one of the following
1568 # is true:
1569 # - one of the terminals (":" and ";") is the first or last sign
1570 # - two terminals occur directly after each other
1571 # - the path contains an element with a dot in it
1572 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1573 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1574 case ${GCC_EXEC_PREFIX} in
1575 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1576 gcc_exec_prefix_setting="contains current directory"
1579 gcc_exec_prefix_setting="ok"
1581 esac
1582 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1583 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1584 if test "$gcc_exec_prefix_setting" != "ok"; then
1585 { { echo "$as_me:$LINENO: error:
1586 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1587 *** building gcc. Please change the environment variable
1588 *** and run configure again." >&5
1589 echo "$as_me: error:
1590 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1591 *** building gcc. Please change the environment variable
1592 *** and run configure again." >&2;}
1593 { (exit 1); exit 1; }; }
1596 # -----------
1597 # Directories
1598 # -----------
1600 # Specify the local prefix
1601 local_prefix=
1603 # Check whether --with-local-prefix or --without-local-prefix was given.
1604 if test "${with_local_prefix+set}" = set; then
1605 withval="$with_local_prefix"
1606 case "${withval}" in
1607 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1608 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1609 { (exit 1); exit 1; }; } ;;
1610 no) ;;
1611 *) local_prefix=$with_local_prefix ;;
1612 esac
1615 # Default local prefix if it is empty
1616 if test x$local_prefix = x; then
1617 local_prefix=/usr/local
1620 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1621 # passed in by the toplevel make and thus we'd get different behavior
1622 # depending on where we built the sources.
1623 gcc_gxx_include_dir=
1624 # Specify the g++ header file directory
1626 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1627 if test "${with_gxx_include_dir+set}" = set; then
1628 withval="$with_gxx_include_dir"
1629 case "${withval}" in
1630 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1631 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1632 { (exit 1); exit 1; }; } ;;
1633 no) ;;
1634 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1635 esac
1638 if test x${gcc_gxx_include_dir} = x; then
1639 if test x${enable_version_specific_runtime_libs} = xyes; then
1640 gcc_gxx_include_dir='${libsubdir}/include/c++'
1641 else
1642 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1643 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1648 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1649 if test "${with_cpp_install_dir+set}" = set; then
1650 withval="$with_cpp_install_dir"
1651 if test x$withval = xyes; then
1652 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1653 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1654 { (exit 1); exit 1; }; }
1655 elif test x$withval != xno; then
1656 cpp_install_dir=$withval
1660 # We would like to our source tree to be readonly. However when releases or
1661 # pre-releases are generated, the flex/bison generated files as well as the
1662 # various formats of manuals need to be included along with the rest of the
1663 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1664 # just that.
1666 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1667 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1668 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1669 if test "${enable_generated_files_in_srcdir+set}" = set; then
1670 enableval="$enable_generated_files_in_srcdir"
1671 generated_files_in_srcdir=$enableval
1672 else
1673 generated_files_in_srcdir=no
1676 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1677 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1679 if test "$generated_files_in_srcdir" = "yes"; then
1680 GENINSRC=''
1681 else
1682 GENINSRC='#'
1686 # -------------------
1687 # Find default linker
1688 # -------------------
1690 # With GNU ld
1692 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1693 if test "${with_gnu_ld+set}" = set; then
1694 withval="$with_gnu_ld"
1695 gnu_ld_flag="$with_gnu_ld"
1696 else
1697 gnu_ld_flag=no
1700 # With pre-defined ld
1702 # Check whether --with-ld or --without-ld was given.
1703 if test "${with_ld+set}" = set; then
1704 withval="$with_ld"
1705 DEFAULT_LINKER="$with_ld"
1707 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1708 if test ! -x "$DEFAULT_LINKER"; then
1709 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1710 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1711 { (exit 1); exit 1; }; }
1712 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1713 gnu_ld_flag=yes
1716 cat >>confdefs.h <<_ACEOF
1717 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1718 _ACEOF
1722 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1723 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1724 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1725 if test x"$gnu_ld_flag" = x"no"; then
1726 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1727 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1728 else
1729 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1730 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1737 # ----------------------
1738 # Find default assembler
1739 # ----------------------
1741 # With GNU as
1743 # Check whether --with-gnu-as or --without-gnu-as was given.
1744 if test "${with_gnu_as+set}" = set; then
1745 withval="$with_gnu_as"
1746 gas_flag="$with_gnu_as"
1747 else
1748 gas_flag=no
1752 # Check whether --with-as or --without-as was given.
1753 if test "${with_as+set}" = set; then
1754 withval="$with_as"
1755 DEFAULT_ASSEMBLER="$with_as"
1757 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1758 if test ! -x "$DEFAULT_ASSEMBLER"; then
1759 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1760 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1761 { (exit 1); exit 1; }; }
1762 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1763 gas_flag=yes
1766 cat >>confdefs.h <<_ACEOF
1767 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1768 _ACEOF
1772 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1773 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1774 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1775 if test x"$gas_flag" = x"no"; then
1776 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1777 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1778 else
1779 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1780 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1787 # ---------------
1788 # Find C compiler
1789 # ---------------
1791 # If a non-executable a.out is present (e.g. created by GNU as above even if
1792 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1793 # file, even when creating an executable, so an execution test fails.
1794 # Remove possible default executable files to avoid this.
1796 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1797 # Autoconf includes it.
1798 rm -f a.out a.exe b.out
1800 # Find the native compiler
1801 ac_ext=c
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 if test -n "$ac_tool_prefix"; then
1807 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1808 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC="$CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1828 done
1829 done
1833 CC=$ac_cv_prog_CC
1834 if test -n "$CC"; then
1835 echo "$as_me:$LINENO: result: $CC" >&5
1836 echo "${ECHO_T}$CC" >&6
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1843 if test -z "$ac_cv_prog_CC"; then
1844 ac_ct_CC=$CC
1845 # Extract the first word of "gcc", so it can be a program name with args.
1846 set dummy gcc; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$ac_ct_CC"; then
1853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_ac_ct_CC="gcc"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 break 2
1866 done
1867 done
1871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1872 if test -n "$ac_ct_CC"; then
1873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874 echo "${ECHO_T}$ac_ct_CC" >&6
1875 else
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1880 CC=$ac_ct_CC
1881 else
1882 CC="$ac_cv_prog_CC"
1885 if test -z "$CC"; then
1886 if test -n "$ac_tool_prefix"; then
1887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1888 set dummy ${ac_tool_prefix}cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_CC="${ac_tool_prefix}cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1908 done
1909 done
1913 CC=$ac_cv_prog_CC
1914 if test -n "$CC"; then
1915 echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6
1917 else
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1923 if test -z "$ac_cv_prog_CC"; then
1924 ac_ct_CC=$CC
1925 # Extract the first word of "cc", so it can be a program name with args.
1926 set dummy cc; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 if test -n "$ac_ct_CC"; then
1933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_ac_ct_CC="cc"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 break 2
1946 done
1947 done
1951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952 if test -n "$ac_ct_CC"; then
1953 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954 echo "${ECHO_T}$ac_ct_CC" >&6
1955 else
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1960 CC=$ac_ct_CC
1961 else
1962 CC="$ac_cv_prog_CC"
1966 if test -z "$CC"; then
1967 # Extract the first word of "cc", so it can be a program name with args.
1968 set dummy cc; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 ac_prog_rejected=no
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1986 ac_prog_rejected=yes
1987 continue
1989 ac_cv_prog_CC="cc"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 break 2
1993 done
1994 done
1996 if test $ac_prog_rejected = yes; then
1997 # We found a bogon in the path, so make sure we never use it.
1998 set dummy $ac_cv_prog_CC
1999 shift
2000 if test $# != 0; then
2001 # We chose a different compiler from the bogus one.
2002 # However, it has the same basename, so the bogon will be chosen
2003 # first if we set CC to just the basename; use the full file name.
2004 shift
2005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2010 CC=$ac_cv_prog_CC
2011 if test -n "$CC"; then
2012 echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2014 else
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2020 if test -z "$CC"; then
2021 if test -n "$ac_tool_prefix"; then
2022 for ac_prog in cl
2024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$CC"; then
2032 ac_cv_prog_CC="$CC" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2045 done
2046 done
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2059 test -n "$CC" && break
2060 done
2062 if test -z "$CC"; then
2063 ac_ct_CC=$CC
2064 for ac_prog in cl
2066 # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$ac_ct_CC"; then
2074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_ac_ct_CC="$ac_prog"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093 if test -n "$ac_ct_CC"; then
2094 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095 echo "${ECHO_T}$ac_ct_CC" >&6
2096 else
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2101 test -n "$ac_ct_CC" && break
2102 done
2104 CC=$ac_ct_CC
2110 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&2;}
2114 { (exit 1); exit 1; }; }
2116 # Provide some information about the compiler.
2117 echo "$as_me:$LINENO:" \
2118 "checking for C compiler version" >&5
2119 ac_compiler=`set X $ac_compile; echo $2`
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2121 (eval $ac_compiler --version </dev/null >&5) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2126 (eval $ac_compiler -v </dev/null >&5) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2131 (eval $ac_compiler -V </dev/null >&5) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2136 cat >conftest.$ac_ext <<_ACEOF
2137 /* confdefs.h. */
2138 _ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2144 main ()
2148 return 0;
2150 _ACEOF
2151 ac_clean_files_save=$ac_clean_files
2152 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2153 # Try to create an executable without -o first, disregard a.out.
2154 # It will help us diagnose broken compilers, and finding out an intuition
2155 # of exeext.
2156 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2157 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2158 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2159 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2160 (eval $ac_link_default) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; then
2164 # Find the output, starting from the most likely. This scheme is
2165 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2166 # resort.
2168 # Be careful to initialize this variable, since it used to be cached.
2169 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2170 ac_cv_exeext=
2171 # b.out is created by i960 compilers.
2172 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2174 test -f "$ac_file" || continue
2175 case $ac_file in
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2178 conftest.$ac_ext )
2179 # This is the source file.
2181 [ab].out )
2182 # We found the default executable, but exeext='' is most
2183 # certainly right.
2184 break;;
2185 *.* )
2186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187 # FIXME: I believe we export ac_cv_exeext for Libtool,
2188 # but it would be cool to find out if it's true. Does anybody
2189 # maintain Libtool? --akim.
2190 export ac_cv_exeext
2191 break;;
2193 break;;
2194 esac
2195 done
2196 else
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2200 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&2;}
2204 { (exit 77); exit 77; }; }
2207 ac_exeext=$ac_cv_exeext
2208 echo "$as_me:$LINENO: result: $ac_file" >&5
2209 echo "${ECHO_T}$ac_file" >&6
2211 # Check the compiler produces executables we can run. If not, either
2212 # the compiler is broken, or we cross compile.
2213 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2215 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216 # If not cross compiling, check that we can run a simple program.
2217 if test "$cross_compiling" != yes; then
2218 if { ac_try='./$ac_file'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2224 cross_compiling=no
2225 else
2226 if test "$cross_compiling" = maybe; then
2227 cross_compiling=yes
2228 else
2229 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&2;}
2235 { (exit 1); exit 1; }; }
2239 echo "$as_me:$LINENO: result: yes" >&5
2240 echo "${ECHO_T}yes" >&6
2242 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2243 ac_clean_files=$ac_clean_files_save
2244 # Check the compiler produces executables we can run. If not, either
2245 # the compiler is broken, or we cross compile.
2246 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2247 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2248 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2249 echo "${ECHO_T}$cross_compiling" >&6
2251 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2252 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2254 (eval $ac_link) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; then
2258 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2259 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2260 # work properly (i.e., refer to `conftest.exe'), while it won't with
2261 # `rm'.
2262 for ac_file in conftest.exe conftest conftest.*; do
2263 test -f "$ac_file" || continue
2264 case $ac_file in
2265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2266 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2267 export ac_cv_exeext
2268 break;;
2269 * ) break;;
2270 esac
2271 done
2272 else
2273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
2280 rm -f conftest$ac_cv_exeext
2281 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2286 ac_exeext=$EXEEXT
2287 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2289 if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h. */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2300 main ()
2304 return 0;
2306 _ACEOF
2307 rm -f conftest.o conftest.obj
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
2313 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2314 case $ac_file in
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2317 break;;
2318 esac
2319 done
2320 else
2321 echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2333 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2334 echo "${ECHO_T}$ac_cv_objext" >&6
2335 OBJEXT=$ac_cv_objext
2336 ac_objext=$OBJEXT
2337 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2338 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2339 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h. */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2350 main ()
2352 #ifndef __GNUC__
2353 choke me
2354 #endif
2357 return 0;
2359 _ACEOF
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>conftest.er1
2363 ac_status=$?
2364 grep -v '^ *+' conftest.er1 >conftest.err
2365 rm -f conftest.er1
2366 cat conftest.err >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try='test -z "$ac_c_werror_flag"
2370 || test ! -s conftest.err'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; } &&
2376 { ac_try='test -s conftest.$ac_objext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2382 ac_compiler_gnu=yes
2383 else
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2387 ac_compiler_gnu=no
2389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2393 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2394 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2395 GCC=`test $ac_compiler_gnu = yes && echo yes`
2396 ac_test_CFLAGS=${CFLAGS+set}
2397 ac_save_CFLAGS=$CFLAGS
2398 CFLAGS="-g"
2399 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2400 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2401 if test "${ac_cv_prog_cc_g+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404 cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h. */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2412 main ()
2416 return 0;
2418 _ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2422 ac_status=$?
2423 grep -v '^ *+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 ac_cv_prog_cc_g=yes
2442 else
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2446 ac_cv_prog_cc_g=no
2448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2451 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2452 if test "$ac_test_CFLAGS" = set; then
2453 CFLAGS=$ac_save_CFLAGS
2454 elif test $ac_cv_prog_cc_g = yes; then
2455 if test "$GCC" = yes; then
2456 CFLAGS="-g -O2"
2457 else
2458 CFLAGS="-g"
2460 else
2461 if test "$GCC" = yes; then
2462 CFLAGS="-O2"
2463 else
2464 CFLAGS=
2467 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2468 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2469 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472 ac_cv_prog_cc_stdc=no
2473 ac_save_CC=$CC
2474 cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h. */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2480 #include <stdarg.h>
2481 #include <stdio.h>
2482 #include <sys/types.h>
2483 #include <sys/stat.h>
2484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2485 struct buf { int x; };
2486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2487 static char *e (p, i)
2488 char **p;
2489 int i;
2491 return p[i];
2493 static char *f (char * (*g) (char **, int), char **p, ...)
2495 char *s;
2496 va_list v;
2497 va_start (v,p);
2498 s = g (p, va_arg (v,int));
2499 va_end (v);
2500 return s;
2503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2504 function prototypes and stuff, but not '\xHH' hex character constants.
2505 These don't provoke an error unfortunately, instead are silently treated
2506 as 'x'. The following induces an error, until -std1 is added to get
2507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2508 array size at least. It's necessary to write '\x00'==0 to get something
2509 that's true only with -std1. */
2510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2512 int test (int i, double x);
2513 struct s1 {int (*f) (int a);};
2514 struct s2 {int (*f) (double a);};
2515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2516 int argc;
2517 char **argv;
2519 main ()
2521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2523 return 0;
2525 _ACEOF
2526 # Don't try gcc -ansi; that turns off useful extensions and
2527 # breaks some systems' header files.
2528 # AIX -qlanglvl=ansi
2529 # Ultrix and OSF/1 -std1
2530 # HP-UX 10.20 and later -Ae
2531 # HP-UX older versions -Aa -D_HPUX_SOURCE
2532 # SVR4 -Xc -D__EXTENSIONS__
2533 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2535 CC="$ac_save_CC $ac_arg"
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>conftest.er1
2539 ac_status=$?
2540 grep -v '^ *+' conftest.er1 >conftest.err
2541 rm -f conftest.er1
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -z "$ac_c_werror_flag"
2546 || test ! -s conftest.err'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 (eval $ac_try) 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try='test -s conftest.$ac_objext'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2558 ac_cv_prog_cc_stdc=$ac_arg
2559 break
2560 else
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2565 rm -f conftest.err conftest.$ac_objext
2566 done
2567 rm -f conftest.$ac_ext conftest.$ac_objext
2568 CC=$ac_save_CC
2572 case "x$ac_cv_prog_cc_stdc" in
2573 x|xno)
2574 echo "$as_me:$LINENO: result: none needed" >&5
2575 echo "${ECHO_T}none needed" >&6 ;;
2577 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2578 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2579 CC="$CC $ac_cv_prog_cc_stdc" ;;
2580 esac
2582 # Some people use a C++ compiler to compile C. Since we use `exit',
2583 # in C++ we need to declare it. In case someone uses the same compiler
2584 # for both compiling C and C++ we need to have the C++ compiler decide
2585 # the declaration of exit, since it's the most demanding environment.
2586 cat >conftest.$ac_ext <<_ACEOF
2587 #ifndef __cplusplus
2588 choke me
2589 #endif
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>conftest.er1
2594 ac_status=$?
2595 grep -v '^ *+' conftest.er1 >conftest.err
2596 rm -f conftest.er1
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -z "$ac_c_werror_flag"
2601 || test ! -s conftest.err'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 for ac_declaration in \
2614 '' \
2615 'extern "C" void std::exit (int) throw (); using std::exit;' \
2616 'extern "C" void std::exit (int); using std::exit;' \
2617 'extern "C" void exit (int) throw ();' \
2618 'extern "C" void exit (int);' \
2619 'void exit (int);'
2621 cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h. */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2627 $ac_declaration
2628 #include <stdlib.h>
2630 main ()
2632 exit (42);
2634 return 0;
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>conftest.er1
2640 ac_status=$?
2641 grep -v '^ *+' conftest.er1 >conftest.err
2642 rm -f conftest.er1
2643 cat conftest.err >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } &&
2646 { ac_try='test -z "$ac_c_werror_flag"
2647 || test ! -s conftest.err'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 continue
2666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2667 cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h. */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2673 $ac_declaration
2675 main ()
2677 exit (42);
2679 return 0;
2681 _ACEOF
2682 rm -f conftest.$ac_objext
2683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684 (eval $ac_compile) 2>conftest.er1
2685 ac_status=$?
2686 grep -v '^ *+' conftest.er1 >conftest.err
2687 rm -f conftest.er1
2688 cat conftest.err >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try='test -z "$ac_c_werror_flag"
2692 || test ! -s conftest.err'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; } &&
2698 { ac_try='test -s conftest.$ac_objext'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 (eval $ac_try) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; }; then
2704 break
2705 else
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2711 done
2712 rm -f conftest*
2713 if test -n "$ac_declaration"; then
2714 echo '#ifdef __cplusplus' >>confdefs.h
2715 echo $ac_declaration >>confdefs.h
2716 echo '#endif' >>confdefs.h
2719 else
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731 if test "x$CC" != xcc; then
2732 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2733 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2734 else
2735 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2736 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2738 set dummy $CC; ac_cc=`echo $2 |
2739 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2740 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2751 main ()
2755 return 0;
2757 _ACEOF
2758 # Make sure it works both with $CC and with simple cc.
2759 # We do the test twice because some compilers refuse to overwrite an
2760 # existing .o file with -o, though they will create one.
2761 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2762 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); };
2772 then
2773 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2774 if test "x$CC" != xcc; then
2775 # Test first that cc exists at all.
2776 if { ac_try='cc -c conftest.$ac_ext >&5'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2783 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); };
2793 then
2794 # cc works too.
2796 else
2797 # cc exists but doesn't like -o.
2798 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2802 else
2803 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2805 rm -f conftest*
2808 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2809 echo "$as_me:$LINENO: result: yes" >&5
2810 echo "${ECHO_T}yes" >&6
2811 else
2812 echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6
2815 cat >>confdefs.h <<\_ACEOF
2816 #define NO_MINUS_C_MINUS_O 1
2817 _ACEOF
2821 # autoconf is lame and doesn't give us any substitution variable for this.
2822 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2823 NO_MINUS_C_MINUS_O=yes
2824 else
2825 OUTPUT_OPTION='-o $@'
2830 # -------------------------
2831 # Check C compiler features
2832 # -------------------------
2834 ac_ext=c
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2840 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2841 # On Suns, sometimes $CPP names a directory.
2842 if test -n "$CPP" && test -d "$CPP"; then
2843 CPP=
2845 if test -z "$CPP"; then
2846 if test "${ac_cv_prog_CPP+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 # Double quotes because CPP needs to be expanded
2850 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2852 ac_preproc_ok=false
2853 for ac_c_preproc_warn_flag in '' yes
2855 # Use a header file that comes with gcc, so configuring glibc
2856 # with a fresh cross-compiler works.
2857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2858 # <limits.h> exists even on freestanding compilers.
2859 # On the NeXT, cc -E runs the code through the compiler's parser,
2860 # not just through cpp. "Syntax error" is here to catch this case.
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h. */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867 #ifdef __STDC__
2868 # include <limits.h>
2869 #else
2870 # include <assert.h>
2871 #endif
2872 Syntax error
2873 _ACEOF
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev/null; then
2882 if test -s conftest.err; then
2883 ac_cpp_err=$ac_c_preproc_warn_flag
2884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2885 else
2886 ac_cpp_err=
2888 else
2889 ac_cpp_err=yes
2891 if test -z "$ac_cpp_err"; then
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2897 # Broken: fails on valid input.
2898 continue
2900 rm -f conftest.err conftest.$ac_ext
2902 # OK, works on sane cases. Now check whether non-existent headers
2903 # can be detected and how.
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 #include <ac_nonexistent.h>
2911 _ACEOF
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914 ac_status=$?
2915 grep -v '^ *+' conftest.er1 >conftest.err
2916 rm -f conftest.er1
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } >/dev/null; then
2920 if test -s conftest.err; then
2921 ac_cpp_err=$ac_c_preproc_warn_flag
2922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2923 else
2924 ac_cpp_err=
2926 else
2927 ac_cpp_err=yes
2929 if test -z "$ac_cpp_err"; then
2930 # Broken: success on invalid input.
2931 continue
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 # Passes both tests.
2937 ac_preproc_ok=:
2938 break
2940 rm -f conftest.err conftest.$ac_ext
2942 done
2943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2944 rm -f conftest.err conftest.$ac_ext
2945 if $ac_preproc_ok; then
2946 break
2949 done
2950 ac_cv_prog_CPP=$CPP
2953 CPP=$ac_cv_prog_CPP
2954 else
2955 ac_cv_prog_CPP=$CPP
2957 echo "$as_me:$LINENO: result: $CPP" >&5
2958 echo "${ECHO_T}$CPP" >&6
2959 ac_preproc_ok=false
2960 for ac_c_preproc_warn_flag in '' yes
2962 # Use a header file that comes with gcc, so configuring glibc
2963 # with a fresh cross-compiler works.
2964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2965 # <limits.h> exists even on freestanding compilers.
2966 # On the NeXT, cc -E runs the code through the compiler's parser,
2967 # not just through cpp. "Syntax error" is here to catch this case.
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h. */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 #ifdef __STDC__
2975 # include <limits.h>
2976 #else
2977 # include <assert.h>
2978 #endif
2979 Syntax error
2980 _ACEOF
2981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2983 ac_status=$?
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } >/dev/null; then
2989 if test -s conftest.err; then
2990 ac_cpp_err=$ac_c_preproc_warn_flag
2991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2992 else
2993 ac_cpp_err=
2995 else
2996 ac_cpp_err=yes
2998 if test -z "$ac_cpp_err"; then
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 # Broken: fails on valid input.
3005 continue
3007 rm -f conftest.err conftest.$ac_ext
3009 # OK, works on sane cases. Now check whether non-existent headers
3010 # can be detected and how.
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #include <ac_nonexistent.h>
3018 _ACEOF
3019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } >/dev/null; then
3027 if test -s conftest.err; then
3028 ac_cpp_err=$ac_c_preproc_warn_flag
3029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030 else
3031 ac_cpp_err=
3033 else
3034 ac_cpp_err=yes
3036 if test -z "$ac_cpp_err"; then
3037 # Broken: success on invalid input.
3038 continue
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 # Passes both tests.
3044 ac_preproc_ok=:
3045 break
3047 rm -f conftest.err conftest.$ac_ext
3049 done
3050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051 rm -f conftest.err conftest.$ac_ext
3052 if $ac_preproc_ok; then
3054 else
3055 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3058 See \`config.log' for more details." >&2;}
3059 { (exit 1); exit 1; }; }
3062 ac_ext=c
3063 ac_cpp='$CPP $CPPFLAGS'
3064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069 echo "$as_me:$LINENO: checking for inline" >&5
3070 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3071 if test "${ac_cv_c_inline+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074 ac_cv_c_inline=no
3075 for ac_kw in inline __inline__ __inline; do
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h. */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082 #ifndef __cplusplus
3083 typedef int foo_t;
3084 static $ac_kw foo_t static_foo () {return 0; }
3085 $ac_kw foo_t foo () {return 0; }
3086 #endif
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_cv_c_inline=$ac_kw; break
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118 done
3121 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3122 echo "${ECHO_T}$ac_cv_c_inline" >&6
3125 case $ac_cv_c_inline in
3126 inline | yes) ;;
3128 case $ac_cv_c_inline in
3129 no) ac_val=;;
3130 *) ac_val=$ac_cv_c_inline;;
3131 esac
3132 cat >>confdefs.h <<_ACEOF
3133 #ifndef __cplusplus
3134 #define inline $ac_val
3135 #endif
3136 _ACEOF
3138 esac
3141 echo "$as_me:$LINENO: checking for long long int" >&5
3142 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3143 if test "${ac_cv_c_long_long+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h. */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3154 main ()
3156 long long int i;
3158 return 0;
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163 (eval $ac_compile) 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_c_werror_flag"
3171 || test ! -s conftest.err'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_c_long_long=yes
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 ac_cv_c_long_long=no
3190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3193 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3194 if test $ac_cv_c_long_long = yes; then
3196 cat >>confdefs.h <<\_ACEOF
3197 #define HAVE_LONG_LONG 1
3198 _ACEOF
3201 echo "$as_me:$LINENO: checking for __int64" >&5
3202 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3203 if test "${ac_cv_c___int64+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3214 main ()
3216 __int64 i;
3218 return 0;
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223 (eval $ac_compile) 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag"
3231 || test ! -s conftest.err'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; } &&
3237 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3243 ac_cv_c___int64=yes
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 ac_cv_c___int64=no
3250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3252 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3253 echo "${ECHO_T}$ac_cv_c___int64" >&6
3254 if test $ac_cv_c___int64 = yes; then
3256 cat >>confdefs.h <<\_ACEOF
3257 #define HAVE___INT64 1
3258 _ACEOF
3262 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3263 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3264 if test "${gcc_cv_c__bool+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267 cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h. */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3275 main ()
3277 _Bool foo;
3279 return 0;
3281 _ACEOF
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 gcc_cv_c__bool=yes
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 gcc_cv_c__bool=no
3311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3314 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3315 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3316 if test $gcc_cv_c__bool = yes; then
3318 cat >>confdefs.h <<\_ACEOF
3319 #define HAVE__BOOL 1
3320 _ACEOF
3325 # sizeof(char) is 1 by definition.
3326 echo "$as_me:$LINENO: checking size of void *" >&5
3327 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3328 if test "${ac_cv_sizeof_void_p+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3332 cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h. */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3338 #include "confdefs.h"
3339 #include <sys/types.h>
3343 main ()
3345 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3347 return 0;
3349 _ACEOF
3350 rm -f conftest.$ac_objext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352 (eval $ac_compile) 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
3359 { ac_try='test -z "$ac_c_werror_flag"
3360 || test ! -s conftest.err'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 (eval $ac_try) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; } &&
3366 { ac_try='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 ac_cv_sizeof_void_p=$ac_size
3373 else
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3379 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3380 done
3384 if test x$ac_cv_sizeof_void_p = x ; then
3385 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3386 echo "$as_me: error: cannot determine a size for void *" >&2;}
3387 { (exit 1); exit 1; }; }
3389 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3390 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3392 cat >>confdefs.h <<_ACEOF
3393 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3394 _ACEOF
3397 echo "$as_me:$LINENO: checking size of short" >&5
3398 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3399 if test "${ac_cv_sizeof_short+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #include "confdefs.h"
3410 #include <sys/types.h>
3414 main ()
3416 switch (0) case 0: case (sizeof (short) == $ac_size):;
3418 return 0;
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>conftest.er1
3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -z "$ac_c_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_cv_sizeof_short=$ac_size
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3450 if test x$ac_cv_sizeof_short != x ; then break; fi
3451 done
3455 if test x$ac_cv_sizeof_short = x ; then
3456 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3457 echo "$as_me: error: cannot determine a size for short" >&2;}
3458 { (exit 1); exit 1; }; }
3460 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3461 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3463 cat >>confdefs.h <<_ACEOF
3464 #define SIZEOF_SHORT $ac_cv_sizeof_short
3465 _ACEOF
3468 echo "$as_me:$LINENO: checking size of int" >&5
3469 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3470 if test "${ac_cv_sizeof_int+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include "confdefs.h"
3481 #include <sys/types.h>
3485 main ()
3487 switch (0) case 0: case (sizeof (int) == $ac_size):;
3489 return 0;
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag"
3502 || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_cv_sizeof_int=$ac_size
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3521 if test x$ac_cv_sizeof_int != x ; then break; fi
3522 done
3526 if test x$ac_cv_sizeof_int = x ; then
3527 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3528 echo "$as_me: error: cannot determine a size for int" >&2;}
3529 { (exit 1); exit 1; }; }
3531 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3532 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3534 cat >>confdefs.h <<_ACEOF
3535 #define SIZEOF_INT $ac_cv_sizeof_int
3536 _ACEOF
3539 echo "$as_me:$LINENO: checking size of long" >&5
3540 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3541 if test "${ac_cv_sizeof_long+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 #include "confdefs.h"
3552 #include <sys/types.h>
3556 main ()
3558 switch (0) case 0: case (sizeof (long) == $ac_size):;
3560 return 0;
3562 _ACEOF
3563 rm -f conftest.$ac_objext
3564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3565 (eval $ac_compile) 2>conftest.er1
3566 ac_status=$?
3567 grep -v '^ *+' conftest.er1 >conftest.err
3568 rm -f conftest.er1
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } &&
3572 { ac_try='test -z "$ac_c_werror_flag"
3573 || test ! -s conftest.err'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 (eval $ac_try) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; } &&
3579 { ac_try='test -s conftest.$ac_objext'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3585 ac_cv_sizeof_long=$ac_size
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592 if test x$ac_cv_sizeof_long != x ; then break; fi
3593 done
3597 if test x$ac_cv_sizeof_long = x ; then
3598 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3599 echo "$as_me: error: cannot determine a size for long" >&2;}
3600 { (exit 1); exit 1; }; }
3602 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3603 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3605 cat >>confdefs.h <<_ACEOF
3606 #define SIZEOF_LONG $ac_cv_sizeof_long
3607 _ACEOF
3610 if test $ac_cv_c_long_long = yes; then
3611 echo "$as_me:$LINENO: checking size of long long" >&5
3612 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3613 if test "${ac_cv_sizeof_long_long+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3617 cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h. */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include "confdefs.h"
3624 #include <sys/types.h>
3628 main ()
3630 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3632 return 0;
3634 _ACEOF
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } &&
3644 { ac_try='test -z "$ac_c_werror_flag"
3645 || test ! -s conftest.err'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 ac_cv_sizeof_long_long=$ac_size
3658 else
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3664 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3665 done
3669 if test x$ac_cv_sizeof_long_long = x ; then
3670 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3671 echo "$as_me: error: cannot determine a size for long long" >&2;}
3672 { (exit 1); exit 1; }; }
3674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3675 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3677 cat >>confdefs.h <<_ACEOF
3678 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3679 _ACEOF
3683 if test $ac_cv_c___int64 = yes; then
3684 echo "$as_me:$LINENO: checking size of __int64" >&5
3685 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3686 if test "${ac_cv_sizeof___int64+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3690 cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h. */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696 #include "confdefs.h"
3697 #include <sys/types.h>
3701 main ()
3703 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3705 return 0;
3707 _ACEOF
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -z "$ac_c_werror_flag"
3718 || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try='test -s conftest.$ac_objext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_sizeof___int64=$ac_size
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3738 done
3742 if test x$ac_cv_sizeof___int64 = x ; then
3743 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3744 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3745 { (exit 1); exit 1; }; }
3747 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3748 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3750 cat >>confdefs.h <<_ACEOF
3751 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3752 _ACEOF
3757 # ---------------------
3758 # Warnings and checking
3759 # ---------------------
3761 # Check $CC warning features (if it's GCC).
3762 # We want to use -pedantic, but we don't want warnings about
3763 # * 'long long'
3764 # * variadic macros
3765 # So, we only use -pedantic if we can disable those warnings.
3767 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3768 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3769 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 save_CFLAGS="$CFLAGS"
3773 CFLAGS="-Wno-long-long"
3774 cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h. */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3781 _ACEOF
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_cv_prog_cc_w_no_long_long=yes
3805 else
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 ac_cv_prog_cc_w_no_long_long=no
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812 CFLAGS="$save_CFLAGS"
3815 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3816 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3818 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3819 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3820 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823 save_CFLAGS="$CFLAGS"
3824 CFLAGS="-Wno-variadic-macros"
3825 cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h. */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3832 _ACEOF
3833 rm -f conftest.$ac_objext
3834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3835 (eval $ac_compile) 2>conftest.er1
3836 ac_status=$?
3837 grep -v '^ *+' conftest.er1 >conftest.err
3838 rm -f conftest.er1
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } &&
3842 { ac_try='test -z "$ac_c_werror_flag"
3843 || test ! -s conftest.err'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; } &&
3849 { ac_try='test -s conftest.$ac_objext'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851 (eval $ac_try) 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; }; then
3855 ac_cv_prog_cc_w_no_variadic_macros=yes
3856 else
3857 echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3860 ac_cv_prog_cc_w_no_variadic_macros=no
3862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3863 CFLAGS="$save_CFLAGS"
3866 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3867 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3869 strict1_warn=
3870 if test $ac_cv_prog_cc_w_no_long_long = yes \
3871 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3872 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3876 # Add -Wold-style-definition if it's accepted
3877 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3878 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3879 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882 save_CFLAGS="$CFLAGS"
3883 CFLAGS="-Wold-style-definition"
3884 cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h. */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3891 _ACEOF
3892 rm -f conftest.$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_prog_cc_w_old_style_definition=yes
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 ac_cv_prog_cc_w_old_style_definition=no
3921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3922 CFLAGS="$save_CFLAGS"
3925 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3926 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3927 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3928 strict1_warn="${strict1_warn} -Wold-style-definition"
3931 # Enable -Werror, period.
3932 # Check whether --enable-werror_always or --disable-werror_always was given.
3933 if test "${enable_werror_always+set}" = set; then
3934 enableval="$enable_werror_always"
3936 else
3937 enable_werror_always=no
3939 if test x${enable_werror_always} = xyes ; then
3940 strict1_warn="${strict1_warn} -Werror"
3941 WERROR=-Werror
3944 # If the native compiler is GCC, we can enable warnings even in stage1.
3945 # That's useful for people building cross-compilers, or just running a
3946 # quick `make'.
3947 warn_cflags=
3948 if test "x$GCC" = "xyes"; then
3949 warn_cflags='$(GCC_WARN_CFLAGS)'
3953 # Enable -Werror in bootstrap stage2 and later.
3954 # Change the default to "no" on release branches.
3955 # Check whether --enable-werror or --disable-werror was given.
3956 if test "${enable_werror+set}" = set; then
3957 enableval="$enable_werror"
3959 else
3960 enable_werror=yes
3962 if test x$enable_werror = xyes ; then
3963 WERROR=-Werror
3967 # Enable expensive internal checks
3968 # Check whether --enable-checking or --disable-checking was given.
3969 if test "${enable_checking+set}" = set; then
3970 enableval="$enable_checking"
3971 ac_checking=
3972 ac_tree_checking=
3973 ac_rtl_checking=
3974 ac_rtlflag_checking=
3975 ac_gc_checking=
3976 ac_gc_always_collect=
3977 ac_fold_checking=
3978 case "${enableval}" in
3979 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3980 ac_rtlflag_checking=1 ;;
3981 no) ;;
3982 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3983 set fnord $enableval; shift
3984 IFS="$ac_save_IFS"
3985 for check
3987 case $check in
3988 misc) ac_checking=1 ;;
3989 tree) ac_tree_checking=1 ;;
3990 rtlflag) ac_rtlflag_checking=1 ;;
3991 rtl) ac_rtl_checking=1 ;;
3992 gc) ac_gc_checking=1 ;;
3993 gcac) ac_gc_always_collect=1 ;;
3994 fold) ac_fold_checking=1 ;;
3995 valgrind) ac_checking_valgrind=1 ;;
3996 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3997 echo "$as_me: error: unknown check category $check" >&2;}
3998 { (exit 1); exit 1; }; } ;;
3999 esac
4000 done
4002 esac
4004 else
4005 # Enable some checks by default for development versions of GCC
4006 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
4008 nocommon_flag=""
4009 if test x$ac_checking != x ; then
4011 cat >>confdefs.h <<\_ACEOF
4012 #define ENABLE_CHECKING 1
4013 _ACEOF
4015 nocommon_flag=-fno-common
4018 if test x$ac_tree_checking != x ; then
4020 cat >>confdefs.h <<\_ACEOF
4021 #define ENABLE_TREE_CHECKING 1
4022 _ACEOF
4025 if test x$ac_rtl_checking != x ; then
4027 cat >>confdefs.h <<\_ACEOF
4028 #define ENABLE_RTL_CHECKING 1
4029 _ACEOF
4032 if test x$ac_rtlflag_checking != x ; then
4034 cat >>confdefs.h <<\_ACEOF
4035 #define ENABLE_RTL_FLAG_CHECKING 1
4036 _ACEOF
4039 if test x$ac_gc_checking != x ; then
4041 cat >>confdefs.h <<\_ACEOF
4042 #define ENABLE_GC_CHECKING 1
4043 _ACEOF
4046 if test x$ac_gc_always_collect != x ; then
4048 cat >>confdefs.h <<\_ACEOF
4049 #define ENABLE_GC_ALWAYS_COLLECT 1
4050 _ACEOF
4053 if test x$ac_fold_checking != x ; then
4055 cat >>confdefs.h <<\_ACEOF
4056 #define ENABLE_FOLD_CHECKING 1
4057 _ACEOF
4060 valgrind_path_defines=
4061 valgrind_command=
4064 echo "$as_me:$LINENO: checking for egrep" >&5
4065 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4066 if test "${ac_cv_prog_egrep+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4070 then ac_cv_prog_egrep='grep -E'
4071 else ac_cv_prog_egrep='egrep'
4074 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4075 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4076 EGREP=$ac_cv_prog_egrep
4079 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4081 if test "${ac_cv_header_stdc+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084 cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h. */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <stdlib.h>
4091 #include <stdarg.h>
4092 #include <string.h>
4093 #include <float.h>
4096 main ()
4100 return 0;
4102 _ACEOF
4103 rm -f conftest.$ac_objext
4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105 (eval $ac_compile) 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } &&
4112 { ac_try='test -z "$ac_c_werror_flag"
4113 || test ! -s conftest.err'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 (eval $ac_try) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4125 ac_cv_header_stdc=yes
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 ac_cv_header_stdc=no
4132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 if test $ac_cv_header_stdc = yes; then
4135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <string.h>
4144 _ACEOF
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 $EGREP "memchr" >/dev/null 2>&1; then
4148 else
4149 ac_cv_header_stdc=no
4151 rm -f conftest*
4155 if test $ac_cv_header_stdc = yes; then
4156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4157 cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h. */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4163 #include <stdlib.h>
4165 _ACEOF
4166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167 $EGREP "free" >/dev/null 2>&1; then
4169 else
4170 ac_cv_header_stdc=no
4172 rm -f conftest*
4176 if test $ac_cv_header_stdc = yes; then
4177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4178 if test "$cross_compiling" = yes; then
4180 else
4181 cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h. */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4187 #include <ctype.h>
4188 #if ((' ' & 0x0FF) == 0x020)
4189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4191 #else
4192 # define ISLOWER(c) \
4193 (('a' <= (c) && (c) <= 'i') \
4194 || ('j' <= (c) && (c) <= 'r') \
4195 || ('s' <= (c) && (c) <= 'z'))
4196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4197 #endif
4199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4201 main ()
4203 int i;
4204 for (i = 0; i < 256; i++)
4205 if (XOR (islower (i), ISLOWER (i))
4206 || toupper (i) != TOUPPER (i))
4207 exit(2);
4208 exit (0);
4210 _ACEOF
4211 rm -f conftest$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213 (eval $ac_link) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4223 else
4224 echo "$as_me: program exited with status $ac_status" >&5
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 ( exit $ac_status )
4229 ac_cv_header_stdc=no
4231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4235 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4236 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4237 if test $ac_cv_header_stdc = yes; then
4239 cat >>confdefs.h <<\_ACEOF
4240 #define STDC_HEADERS 1
4241 _ACEOF
4245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4256 inttypes.h stdint.h unistd.h
4258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4259 echo "$as_me:$LINENO: checking for $ac_header" >&5
4260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 $ac_includes_default
4272 #include <$ac_header>
4273 _ACEOF
4274 rm -f conftest.$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276 (eval $ac_compile) 2>conftest.er1
4277 ac_status=$?
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try='test -z "$ac_c_werror_flag"
4284 || test ! -s conftest.err'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; } &&
4290 { ac_try='test -s conftest.$ac_objext'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 (eval $ac_try) 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
4296 eval "$as_ac_Header=yes"
4297 else
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 eval "$as_ac_Header=no"
4303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4308 cat >>confdefs.h <<_ACEOF
4309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4310 _ACEOF
4314 done
4317 if test "${ac_cv_header_valgrind_h+set}" = set; then
4318 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4319 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4320 if test "${ac_cv_header_valgrind_h+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4324 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4325 else
4326 # Is the header compilable?
4327 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4328 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 $ac_includes_default
4336 #include <valgrind.h>
4337 _ACEOF
4338 rm -f conftest.$ac_objext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4340 (eval $ac_compile) 2>conftest.er1
4341 ac_status=$?
4342 grep -v '^ *+' conftest.er1 >conftest.err
4343 rm -f conftest.er1
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try='test -z "$ac_c_werror_flag"
4348 || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_header_compiler=yes
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 ac_header_compiler=no
4367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4369 echo "${ECHO_T}$ac_header_compiler" >&6
4371 # Is the header present?
4372 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4373 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h. */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #include <valgrind.h>
4381 _ACEOF
4382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev/null; then
4390 if test -s conftest.err; then
4391 ac_cpp_err=$ac_c_preproc_warn_flag
4392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4393 else
4394 ac_cpp_err=
4396 else
4397 ac_cpp_err=yes
4399 if test -z "$ac_cpp_err"; then
4400 ac_header_preproc=yes
4401 else
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 ac_header_preproc=no
4407 rm -f conftest.err conftest.$ac_ext
4408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4409 echo "${ECHO_T}$ac_header_preproc" >&6
4411 # So? What about this header?
4412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4413 yes:no: )
4414 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4415 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4417 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4418 ac_header_preproc=yes
4420 no:yes:* )
4421 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4422 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4424 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4425 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4426 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4427 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4428 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4429 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4430 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4431 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4432 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4434 cat <<\_ASBOX
4435 ## ------------------------------------------ ##
4436 ## Report this to the AC_PACKAGE_NAME lists. ##
4437 ## ------------------------------------------ ##
4438 _ASBOX
4440 sed "s/^/$as_me: WARNING: /" >&2
4442 esac
4443 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4444 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4445 if test "${ac_cv_header_valgrind_h+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 ac_cv_header_valgrind_h=$ac_header_preproc
4450 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4451 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4454 if test $ac_cv_header_valgrind_h = yes; then
4455 have_valgrind_h=yes
4456 else
4457 have_valgrind_h=no
4462 if test x$ac_checking_valgrind != x ; then
4463 # It is certainly possible that there's valgrind but no valgrind.h.
4464 # GCC relies on making annotations so we must have both.
4465 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4466 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4467 cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h. */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 #include <valgrind/memcheck.h>
4474 #ifndef VALGRIND_DISCARD
4475 #error VALGRIND_DISCARD not defined
4476 #endif
4477 _ACEOF
4478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } >/dev/null; then
4486 if test -s conftest.err; then
4487 ac_cpp_err=$ac_c_preproc_warn_flag
4488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4489 else
4490 ac_cpp_err=
4492 else
4493 ac_cpp_err=yes
4495 if test -z "$ac_cpp_err"; then
4496 gcc_cv_header_valgrind_memcheck_h=yes
4497 else
4498 echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 gcc_cv_header_valgrind_memcheck_h=no
4503 rm -f conftest.err conftest.$ac_ext
4504 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4505 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4506 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4507 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <memcheck.h>
4515 #ifndef VALGRIND_DISCARD
4516 #error VALGRIND_DISCARD not defined
4517 #endif
4518 _ACEOF
4519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4521 ac_status=$?
4522 grep -v '^ *+' conftest.er1 >conftest.err
4523 rm -f conftest.er1
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } >/dev/null; then
4527 if test -s conftest.err; then
4528 ac_cpp_err=$ac_c_preproc_warn_flag
4529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4530 else
4531 ac_cpp_err=
4533 else
4534 ac_cpp_err=yes
4536 if test -z "$ac_cpp_err"; then
4537 gcc_cv_header_memcheck_h=yes
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 gcc_cv_header_memcheck_h=no
4544 rm -f conftest.err conftest.$ac_ext
4545 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4546 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4548 # Prepare PATH_SEPARATOR.
4549 # The user is always right.
4550 if test "${PATH_SEPARATOR+set}" != set; then
4551 echo "#! /bin/sh" >conf$$.sh
4552 echo "exit 0" >>conf$$.sh
4553 chmod +x conf$$.sh
4554 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4555 PATH_SEPARATOR=';'
4556 else
4557 PATH_SEPARATOR=:
4559 rm -f conf$$.sh
4562 # Find out how to test for executable files. Don't use a zero-byte file,
4563 # as systems may use methods other than mode bits to determine executability.
4564 cat >conf$$.file <<_ASEOF
4565 #! /bin/sh
4566 exit 0
4567 _ASEOF
4568 chmod +x conf$$.file
4569 if test -x conf$$.file >/dev/null 2>&1; then
4570 ac_executable_p="test -x"
4571 else
4572 ac_executable_p="test -f"
4574 rm -f conf$$.file
4576 # Extract the first word of "valgrind", so it can be a program name with args.
4577 set dummy valgrind; ac_word=$2
4578 echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580 if test "${ac_cv_path_valgrind_path+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 case "$valgrind_path" in
4584 [\\/]* | ?:[\\/]*)
4585 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4588 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4589 for ac_dir in $PATH; do
4590 IFS="$ac_save_IFS"
4591 test -z "$ac_dir" && ac_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4594 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4595 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4596 break 2
4599 done
4600 done
4601 IFS="$ac_save_IFS"
4603 esac
4605 valgrind_path="$ac_cv_path_valgrind_path"
4606 if test -n "$valgrind_path"; then
4607 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4608 echo "${ECHO_T}$valgrind_path" >&6
4609 else
4610 echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4614 if test "x$valgrind_path" = "x" \
4615 || (test $have_valgrind_h = no \
4616 && test $gcc_cv_header_memcheck_h = no \
4617 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4618 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4619 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4620 { (exit 1); exit 1; }; }
4622 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4623 valgrind_command="$valgrind_path -q"
4625 cat >>confdefs.h <<\_ACEOF
4626 #define ENABLE_VALGRIND_CHECKING 1
4627 _ACEOF
4629 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4631 cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_VALGRIND_MEMCHECK_H 1
4633 _ACEOF
4636 if test $gcc_cv_header_memcheck_h = yes; then
4638 cat >>confdefs.h <<\_ACEOF
4639 #define HAVE_MEMCHECK_H 1
4640 _ACEOF
4647 # Enable code coverage collection
4648 # Check whether --enable-coverage or --disable-coverage was given.
4649 if test "${enable_coverage+set}" = set; then
4650 enableval="$enable_coverage"
4651 case "${enableval}" in
4652 yes|noopt)
4653 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4655 opt)
4656 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4659 # a.k.a. --disable-coverage
4660 coverage_flags=""
4663 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4664 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4665 { (exit 1); exit 1; }; }
4667 esac
4668 else
4669 coverage_flags=""
4673 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4674 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4675 enableval="$enable_gather_detailed_mem_stats"
4677 else
4678 enable_gather_detailed_mem_stats=no
4680 if test x$enable_gather_detailed_mem_stats = xyes ; then
4682 cat >>confdefs.h <<\_ACEOF
4683 #define GATHER_STATISTICS 1
4684 _ACEOF
4688 # Check whether --enable-tree-browser or --disable-tree-browser was given.
4689 if test "${enable_tree_browser+set}" = set; then
4690 enableval="$enable_tree_browser"
4692 else
4693 enable_tree_browser=no
4695 if test x$enable_tree_browser = xyes ; then
4696 TREEBROWSER=tree-browser.o
4700 # -------------------------------
4701 # Miscenalleous configure options
4702 # -------------------------------
4704 # With stabs
4706 # Check whether --with-stabs or --without-stabs was given.
4707 if test "${with_stabs+set}" = set; then
4708 withval="$with_stabs"
4709 stabs="$with_stabs"
4710 else
4711 stabs=no
4714 # Determine whether or not multilibs are enabled.
4715 # Check whether --enable-multilib or --disable-multilib was given.
4716 if test "${enable_multilib+set}" = set; then
4717 enableval="$enable_multilib"
4719 else
4720 enable_multilib=yes
4724 # Enable __cxa_atexit for C++.
4725 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4726 if test "${enable___cxa_atexit+set}" = set; then
4727 enableval="$enable___cxa_atexit"
4731 # Enable threads
4732 # Pass with no value to take the default
4733 # Pass with a value to specify a thread package
4734 # Check whether --enable-threads or --disable-threads was given.
4735 if test "${enable_threads+set}" = set; then
4736 enableval="$enable_threads"
4738 else
4739 enable_threads=''
4742 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4743 if test "${enable_objc_gc+set}" = set; then
4744 enableval="$enable_objc_gc"
4745 if test x$enable_objc_gc = xno; then
4746 objc_boehm_gc=''
4747 else
4748 objc_boehm_gc=1
4750 else
4751 objc_boehm_gc=''
4755 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4756 if test "${with_dwarf2+set}" = set; then
4757 withval="$with_dwarf2"
4758 dwarf2="$with_dwarf2"
4759 else
4760 dwarf2=no
4763 # Check whether --enable-shared or --disable-shared was given.
4764 if test "${enable_shared+set}" = set; then
4765 enableval="$enable_shared"
4767 case $enable_shared in
4768 yes | no) ;;
4770 enable_shared=no
4771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4772 for pkg in $enableval; do
4773 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4774 enable_shared=yes
4776 done
4777 IFS="$ac_save_ifs"
4779 esac
4781 else
4782 enable_shared=yes
4787 # Check whether --with-sysroot or --without-sysroot was given.
4788 if test "${with_sysroot+set}" = set; then
4789 withval="$with_sysroot"
4791 case ${with_sysroot} in
4792 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4793 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4794 esac
4796 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4797 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4799 if test "x$exec_prefix" = xNONE; then
4800 if test "x$prefix" = xNONE; then
4801 test_prefix=/usr/local
4802 else
4803 test_prefix=$prefix
4805 else
4806 test_prefix=$exec_prefix
4808 case ${TARGET_SYSTEM_ROOT} in
4809 "${test_prefix}"|"${test_prefix}/"*|\
4810 '${exec_prefix}'|'${exec_prefix}/'*)
4811 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4812 TARGET_SYSTEM_ROOT_DEFINE="$t"
4814 esac
4816 else
4818 TARGET_SYSTEM_ROOT=
4819 TARGET_SYSTEM_ROOT_DEFINE=
4820 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4827 # Build with intermodule optimisations
4828 # Check whether --enable-intermodule or --disable-intermodule was given.
4829 if test "${enable_intermodule+set}" = set; then
4830 enableval="$enable_intermodule"
4831 case ${enable_intermodule} in
4832 yes) onestep="-onestep";;
4833 *) onestep="";;
4834 esac
4835 else
4836 onestep=""
4840 # Sanity check enable_languages in case someone does not run the toplevel
4841 # configure # script.
4842 # Check whether --enable-languages or --disable-languages was given.
4843 if test "${enable_languages+set}" = set; then
4844 enableval="$enable_languages"
4845 case ,${enable_languages}, in
4846 ,,|,yes,)
4847 # go safe -- we cannot be much sure without the toplevel
4848 # configure's
4849 # analysis of which target libs are present and usable
4850 enable_languages=c
4852 *,all,*)
4853 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4854 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4855 { (exit 1); exit 1; }; }
4857 *,c,*)
4860 enable_languages=c,${enable_languages}
4862 esac
4863 else
4864 enable_languages=c
4867 subdirs=
4868 for lang in ${srcdir}/*/config-lang.in
4870 case $lang in
4871 # The odd quoting in the next line works around
4872 # an apparent bug in bash 1.12 on linux.
4873 ${srcdir}/[*]/config-lang.in) ;;
4875 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4876 if test "x$lang_alias" = x
4877 then
4878 echo "$lang doesn't set \$language." 1>&2
4879 exit 1
4881 case ",$enable_languages," in
4882 *,$lang_alias,*)
4883 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4884 esac
4886 esac
4887 done
4890 # -------------------------
4891 # Checks for other programs
4892 # -------------------------
4894 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4895 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4896 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4897 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900 cat >conftest.make <<\_ACEOF
4901 all:
4902 @echo 'ac_maketemp="$(MAKE)"'
4903 _ACEOF
4904 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4905 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4906 if test -n "$ac_maketemp"; then
4907 eval ac_cv_prog_make_${ac_make}_set=yes
4908 else
4909 eval ac_cv_prog_make_${ac_make}_set=no
4911 rm -f conftest.make
4913 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4914 echo "$as_me:$LINENO: result: yes" >&5
4915 echo "${ECHO_T}yes" >&6
4916 SET_MAKE=
4917 else
4918 echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6
4920 SET_MAKE="MAKE=${MAKE-make}"
4924 # Find some useful tools
4925 for ac_prog in gawk mawk nawk awk
4927 # Extract the first word of "$ac_prog", so it can be a program name with args.
4928 set dummy $ac_prog; ac_word=$2
4929 echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4931 if test "${ac_cv_prog_AWK+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 if test -n "$AWK"; then
4935 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_AWK="$ac_prog"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4953 AWK=$ac_cv_prog_AWK
4954 if test -n "$AWK"; then
4955 echo "$as_me:$LINENO: result: $AWK" >&5
4956 echo "${ECHO_T}$AWK" >&6
4957 else
4958 echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6
4962 test -n "$AWK" && break
4963 done
4965 # We need awk to run opts.sh (to create options.c and options.h).
4966 # Bail out if it's missing.
4967 case ${AWK} in
4968 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4969 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4970 { (exit 1); exit 1; }; } ;;
4971 esac
4973 echo "$as_me:$LINENO: checking whether ln works" >&5
4974 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4975 if test "${gcc_cv_prog_LN+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 rm -f conftestdata_t
4979 echo >conftestdata_f
4980 if ln conftestdata_f conftestdata_t 2>/dev/null
4981 then
4982 gcc_cv_prog_LN="ln"
4983 else
4984 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4985 then
4986 gcc_cv_prog_LN="ln -s"
4987 else
4988 gcc_cv_prog_LN=cp
4991 rm -f conftestdata_f conftestdata_t
4994 LN="$gcc_cv_prog_LN"
4995 if test "$gcc_cv_prog_LN" = "ln"; then
4996 echo "$as_me:$LINENO: result: yes" >&5
4997 echo "${ECHO_T}yes" >&6
4998 else
4999 if test "$gcc_cv_prog_LN" = "ln -s"; then
5000 echo "$as_me:$LINENO: result: no, using ln -s" >&5
5001 echo "${ECHO_T}no, using ln -s" >&6
5002 else
5003 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
5004 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
5008 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5009 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5010 if test "${gcc_cv_prog_LN_S+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 rm -f conftestdata_t
5014 echo >conftestdata_f
5015 if ln -s conftestdata_f conftestdata_t 2>/dev/null
5016 then
5017 gcc_cv_prog_LN_S="ln -s"
5018 else
5019 if ln conftestdata_f conftestdata_t 2>/dev/null
5020 then
5021 gcc_cv_prog_LN_S=ln
5022 else
5023 gcc_cv_prog_LN_S=cp
5026 rm -f conftestdata_f conftestdata_t
5029 LN_S="$gcc_cv_prog_LN_S"
5030 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
5031 echo "$as_me:$LINENO: result: yes" >&5
5032 echo "${ECHO_T}yes" >&6
5033 else
5034 if test "$gcc_cv_prog_LN_S" = "ln"; then
5035 echo "$as_me:$LINENO: result: no, using ln" >&5
5036 echo "${ECHO_T}no, using ln" >&6
5037 else
5038 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
5039 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
5043 if test -n "$ac_tool_prefix"; then
5044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5045 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5046 echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5048 if test "${ac_cv_prog_RANLIB+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 if test -n "$RANLIB"; then
5052 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5065 done
5066 done
5070 RANLIB=$ac_cv_prog_RANLIB
5071 if test -n "$RANLIB"; then
5072 echo "$as_me:$LINENO: result: $RANLIB" >&5
5073 echo "${ECHO_T}$RANLIB" >&6
5074 else
5075 echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6
5080 if test -z "$ac_cv_prog_RANLIB"; then
5081 ac_ct_RANLIB=$RANLIB
5082 # Extract the first word of "ranlib", so it can be a program name with args.
5083 set dummy ranlib; ac_word=$2
5084 echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089 if test -n "$ac_ct_RANLIB"; then
5090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_ac_ct_RANLIB="ranlib"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5103 done
5104 done
5106 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5110 if test -n "$ac_ct_RANLIB"; then
5111 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5112 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5113 else
5114 echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6
5118 RANLIB=$ac_ct_RANLIB
5119 else
5120 RANLIB="$ac_cv_prog_RANLIB"
5123 # Find a good install program. We prefer a C program (faster),
5124 # so one script is as good as another. But avoid the broken or
5125 # incompatible versions:
5126 # SysV /etc/install, /usr/sbin/install
5127 # SunOS /usr/etc/install
5128 # IRIX /sbin/install
5129 # AIX /bin/install
5130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5132 # ./install, which can be erroneously created by make from ./install.sh.
5133 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5134 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5135 if test -z "$INSTALL"; then
5136 if test "${ac_cv_path_install+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5140 for ac_dir in $PATH; do
5141 # Account for people who put trailing slashes in PATH elements.
5142 case "$ac_dir/" in
5143 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5145 # OSF1 and SCO ODT 3.0 have their own names for install.
5146 for ac_prog in ginstall scoinst install; do
5147 if test -f $ac_dir/$ac_prog; then
5148 if test $ac_prog = install &&
5149 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5150 # AIX install. It has an incompatible calling convention.
5151 # OSF/1 installbsd also uses dspmsg, but is usable.
5153 else
5154 ac_cv_path_install="$ac_dir/$ac_prog -c"
5155 break 2
5158 done
5160 esac
5161 done
5162 IFS="$ac_save_IFS"
5165 if test "${ac_cv_path_install+set}" = set; then
5166 INSTALL="$ac_cv_path_install"
5167 else
5168 # As a last resort, use the slow shell script. We don't cache a
5169 # path for INSTALL within a source directory, because that will
5170 # break other packages using the cache if that directory is
5171 # removed, or if the path is relative.
5172 INSTALL="$ac_install_sh"
5175 echo "$as_me:$LINENO: result: $INSTALL" >&5
5176 echo "${ECHO_T}$INSTALL" >&6
5178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5179 # It thinks the first close brace ends the variable substitution.
5180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5185 # See if cmp has --ignore-initial.
5186 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5187 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5188 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 echo abfoo >t1
5192 echo cdfoo >t2
5193 gcc_cv_prog_cmp_skip=slowcompare
5194 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5195 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5197 else
5198 gcc_cv_prog_cmp_skip=gnucompare
5201 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5202 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5203 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5205 else
5206 gcc_cv_prog_cmp_skip=fastcompare
5210 rm t1 t2
5213 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5214 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5215 make_compare_target=$gcc_cv_prog_cmp_skip
5219 # See if we have the mktemp command.
5220 # Extract the first word of "mktemp", so it can be a program name with args.
5221 set dummy mktemp; ac_word=$2
5222 echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 if test -n "$have_mktemp_command"; then
5228 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_have_mktemp_command="yes"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5244 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5247 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5248 if test -n "$have_mktemp_command"; then
5249 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5250 echo "${ECHO_T}$have_mktemp_command" >&6
5251 else
5252 echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5257 # Do we have a single-tree copy of texinfo?
5258 if test -f $srcdir/../texinfo/Makefile.in; then
5259 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5260 gcc_cv_prog_makeinfo_modern=yes
5261 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5262 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5263 else
5264 # See if makeinfo has been installed and is modern enough
5265 # that we can use it.
5266 # Extract the first word of "makeinfo", so it can be a program name with args.
5267 set dummy makeinfo; ac_word=$2
5268 echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5270 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273 if test -n "$MAKEINFO"; then
5274 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_MAKEINFO="makeinfo"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5292 MAKEINFO=$ac_cv_prog_MAKEINFO
5293 if test -n "$MAKEINFO"; then
5294 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5295 echo "${ECHO_T}$MAKEINFO" >&6
5296 else
5297 echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5301 if test -n "$MAKEINFO"; then
5302 # Found it, now check the version.
5303 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5304 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5305 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308 ac_prog_version=`$MAKEINFO --version 2>&1 |
5309 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5310 echo "configure:5310: version of makeinfo is $ac_prog_version" >&5
5311 case $ac_prog_version in
5312 '') gcc_cv_prog_makeinfo_modern=no;;
5313 4.[2-9]*)
5314 gcc_cv_prog_makeinfo_modern=yes;;
5315 *) gcc_cv_prog_makeinfo_modern=no;;
5316 esac
5319 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5320 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5321 else
5322 gcc_cv_prog_makeinfo_modern=no
5327 if test $gcc_cv_prog_makeinfo_modern = no; then
5328 { echo "$as_me:$LINENO: WARNING:
5329 *** Makeinfo is missing or too old.
5330 *** Info documentation will not be built." >&5
5331 echo "$as_me: WARNING:
5332 *** Makeinfo is missing or too old.
5333 *** Info documentation will not be built." >&2;}
5334 BUILD_INFO=
5335 else
5336 BUILD_INFO=info
5339 # Is pod2man recent enough to regenerate manpages?
5340 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5341 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5342 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344 echo "${ECHO_T}yes" >&6
5345 GENERATED_MANPAGES=generated-manpages
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5349 GENERATED_MANPAGES=
5352 # How about lex?
5353 if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
5354 FLEX='$(objdir)/../flex/flex'
5355 else
5356 # Extract the first word of "flex", so it can be a program name with args.
5357 set dummy flex; ac_word=$2
5358 echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5360 if test "${ac_cv_prog_FLEX+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363 if test -n "$FLEX"; then
5364 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_FLEX="flex"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5377 done
5378 done
5380 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5383 FLEX=$ac_cv_prog_FLEX
5384 if test -n "$FLEX"; then
5385 echo "$as_me:$LINENO: result: $FLEX" >&5
5386 echo "${ECHO_T}$FLEX" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5394 # Bison?
5395 # The -L switch is so bison can find its skeleton file.
5396 if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
5397 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5398 else
5399 # Extract the first word of "bison", so it can be a program name with args.
5400 set dummy bison; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_prog_BISON+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 if test -n "$BISON"; then
5407 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_BISON="bison"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5420 done
5421 done
5423 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5426 BISON=$ac_cv_prog_BISON
5427 if test -n "$BISON"; then
5428 echo "$as_me:$LINENO: result: $BISON" >&5
5429 echo "${ECHO_T}$BISON" >&6
5430 else
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5437 # --------------------
5438 # Checks for C headers
5439 # --------------------
5441 echo "$as_me:$LINENO: checking for GNU C library" >&5
5442 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5443 if test "${gcc_cv_glibc+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 #include <features.h>
5454 main ()
5457 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5458 #error Not a GNU C library system
5459 #endif
5461 return 0;
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466 (eval $ac_compile) 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -z "$ac_c_werror_flag"
5474 || test ! -s conftest.err'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; } &&
5480 { ac_try='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 gcc_cv_glibc=yes
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 gcc_cv_glibc=no
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5497 echo "${ECHO_T}$gcc_cv_glibc" >&6
5498 if test $gcc_cv_glibc = yes; then
5500 cat >>confdefs.h <<\_ACEOF
5501 #define _GNU_SOURCE 1
5502 _ACEOF
5506 # Need to reject headers which give warnings, so that the -Werror bootstrap
5507 # works later. *sigh* This needs to come before all header checks.
5509 ac_c_preproc_warn_flag=yes
5511 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5512 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5513 if test "${ac_cv_header_stdc+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 #include <stdlib.h>
5523 #include <stdarg.h>
5524 #include <string.h>
5525 #include <float.h>
5528 main ()
5532 return 0;
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537 (eval $ac_compile) 2>conftest.er1
5538 ac_status=$?
5539 grep -v '^ *+' conftest.er1 >conftest.err
5540 rm -f conftest.er1
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try='test -z "$ac_c_werror_flag"
5545 || test ! -s conftest.err'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; } &&
5551 { ac_try='test -s conftest.$ac_objext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 (eval $ac_try) 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_header_stdc=yes
5558 else
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 ac_cv_header_stdc=no
5564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5566 if test $ac_cv_header_stdc = yes; then
5567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 #include <string.h>
5576 _ACEOF
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 $EGREP "memchr" >/dev/null 2>&1; then
5580 else
5581 ac_cv_header_stdc=no
5583 rm -f conftest*
5587 if test $ac_cv_header_stdc = yes; then
5588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #include <stdlib.h>
5597 _ACEOF
5598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599 $EGREP "free" >/dev/null 2>&1; then
5601 else
5602 ac_cv_header_stdc=no
5604 rm -f conftest*
5608 if test $ac_cv_header_stdc = yes; then
5609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5610 if test "$cross_compiling" = yes; then
5612 else
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h. */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 #include <ctype.h>
5620 #if ((' ' & 0x0FF) == 0x020)
5621 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5622 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5623 #else
5624 # define ISLOWER(c) \
5625 (('a' <= (c) && (c) <= 'i') \
5626 || ('j' <= (c) && (c) <= 'r') \
5627 || ('s' <= (c) && (c) <= 'z'))
5628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5629 #endif
5631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5633 main ()
5635 int i;
5636 for (i = 0; i < 256; i++)
5637 if (XOR (islower (i), ISLOWER (i))
5638 || toupper (i) != TOUPPER (i))
5639 exit(2);
5640 exit (0);
5642 _ACEOF
5643 rm -f conftest$ac_exeext
5644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645 (eval $ac_link) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5655 else
5656 echo "$as_me: program exited with status $ac_status" >&5
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 ( exit $ac_status )
5661 ac_cv_header_stdc=no
5663 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5667 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5668 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5669 if test $ac_cv_header_stdc = yes; then
5671 cat >>confdefs.h <<\_ACEOF
5672 #define STDC_HEADERS 1
5673 _ACEOF
5677 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5678 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5679 if test "${ac_cv_header_time+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h. */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 #include <sys/types.h>
5689 #include <sys/time.h>
5690 #include <time.h>
5693 main ()
5695 if ((struct tm *) 0)
5696 return 0;
5698 return 0;
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_header_time=yes
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 ac_cv_header_time=no
5730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5732 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5733 echo "${ECHO_T}$ac_cv_header_time" >&6
5734 if test $ac_cv_header_time = yes; then
5736 cat >>confdefs.h <<\_ACEOF
5737 #define TIME_WITH_SYS_TIME 1
5738 _ACEOF
5742 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5743 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5744 if test "${ac_cv_header_stdbool_h+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
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 #include <stdbool.h>
5755 main ()
5757 bool foo = false;
5759 return 0;
5761 _ACEOF
5762 rm -f conftest.$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>conftest.er1
5765 ac_status=$?
5766 grep -v '^ *+' conftest.er1 >conftest.err
5767 rm -f conftest.er1
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -z "$ac_c_werror_flag"
5772 || test ! -s conftest.err'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 (eval $ac_try) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_header_stdbool_h=yes
5785 else
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5789 ac_cv_header_stdbool_h=no
5791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5793 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5794 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5795 if test $ac_cv_header_stdbool_h = yes; then
5797 cat >>confdefs.h <<\_ACEOF
5798 #define HAVE_STDBOOL_H 1
5799 _ACEOF
5803 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5804 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5805 if test "${gcc_cv_header_string+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h. */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 #include <string.h>
5815 #include <strings.h>
5817 main ()
5821 return 0;
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try='test -z "$ac_c_werror_flag"
5834 || test ! -s conftest.err'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 (eval $ac_try) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 gcc_cv_header_string=yes
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 gcc_cv_header_string=no
5853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5856 echo "${ECHO_T}$gcc_cv_header_string" >&6
5857 if test $gcc_cv_header_string = yes; then
5859 cat >>confdefs.h <<\_ACEOF
5860 #define STRING_WITH_STRINGS 1
5861 _ACEOF
5865 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5866 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5867 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #include <sys/types.h>
5877 #include <sys/wait.h>
5878 #ifndef WEXITSTATUS
5879 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5880 #endif
5881 #ifndef WIFEXITED
5882 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5883 #endif
5886 main ()
5888 int s;
5889 wait (&s);
5890 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5892 return 0;
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897 (eval $ac_compile) 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_c_werror_flag"
5905 || test ! -s conftest.err'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 (eval $ac_try) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 ac_cv_header_sys_wait_h=yes
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 ac_cv_header_sys_wait_h=no
5924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5926 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5927 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5928 if test $ac_cv_header_sys_wait_h = yes; then
5930 cat >>confdefs.h <<\_ACEOF
5931 #define HAVE_SYS_WAIT_H 1
5932 _ACEOF
5957 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5958 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5959 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5960 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5963 echo "$as_me:$LINENO: checking for $ac_header" >&5
5964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #include <$ac_header>
5975 _ACEOF
5976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev/null; then
5984 if test -s conftest.err; then
5985 ac_cpp_err=$ac_c_preproc_warn_flag
5986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5987 else
5988 ac_cpp_err=
5990 else
5991 ac_cpp_err=yes
5993 if test -z "$ac_cpp_err"; then
5994 eval "$as_ac_Header=yes"
5995 else
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 eval "$as_ac_Header=no"
6001 rm -f conftest.err conftest.$ac_ext
6003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6006 cat >>confdefs.h <<_ACEOF
6007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6008 _ACEOF
6011 done
6014 # Check for thread headers.
6015 echo "$as_me:$LINENO: checking for thread.h" >&5
6016 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6017 if test "${ac_cv_header_thread_h+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #include <thread.h>
6027 _ACEOF
6028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6030 ac_status=$?
6031 grep -v '^ *+' conftest.er1 >conftest.err
6032 rm -f conftest.er1
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } >/dev/null; then
6036 if test -s conftest.err; then
6037 ac_cpp_err=$ac_c_preproc_warn_flag
6038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6039 else
6040 ac_cpp_err=
6042 else
6043 ac_cpp_err=yes
6045 if test -z "$ac_cpp_err"; then
6046 ac_cv_header_thread_h=yes
6047 else
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6051 ac_cv_header_thread_h=no
6053 rm -f conftest.err conftest.$ac_ext
6055 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6056 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6057 if test $ac_cv_header_thread_h = yes; then
6058 have_thread_h=yes
6059 else
6060 have_thread_h=
6063 echo "$as_me:$LINENO: checking for pthread.h" >&5
6064 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6065 if test "${ac_cv_header_pthread_h+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #include <pthread.h>
6075 _ACEOF
6076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } >/dev/null; then
6084 if test -s conftest.err; then
6085 ac_cpp_err=$ac_c_preproc_warn_flag
6086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6087 else
6088 ac_cpp_err=
6090 else
6091 ac_cpp_err=yes
6093 if test -z "$ac_cpp_err"; then
6094 ac_cv_header_pthread_h=yes
6095 else
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6099 ac_cv_header_pthread_h=no
6101 rm -f conftest.err conftest.$ac_ext
6103 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6104 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6105 if test $ac_cv_header_pthread_h = yes; then
6106 have_pthread_h=yes
6107 else
6108 have_pthread_h=
6112 # These tests can't be done till we know if we have limits.h.
6113 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6114 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6115 if test "${gcc_cv_decl_char_bit+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #ifdef HAVE_LIMITS_H
6125 #include <limits.h>
6126 #endif
6127 #ifdef CHAR_BIT
6128 found
6129 #endif
6130 _ACEOF
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132 $EGREP "found" >/dev/null 2>&1; then
6133 gcc_cv_decl_char_bit=yes
6134 else
6135 gcc_cv_decl_char_bit=no
6137 rm -f conftest*
6141 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6142 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6143 if test $gcc_cv_decl_char_bit = no; then
6144 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6145 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6146 if test "${gcc_cv_c_nbby+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6150 gcc_cv_c_nbby=
6151 while test $i -lt 65; do
6152 cat >conftest.$ac_ext <<_ACEOF
6153 /* confdefs.h. */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6160 main ()
6162 switch(0) {
6163 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6164 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6167 return 0;
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_c_werror_flag"
6180 || test ! -s conftest.err'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest.$ac_objext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 gcc_cv_c_nbby=$i; break
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6199 i=`expr $i + 1`
6200 done
6201 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6204 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6205 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6206 if test $gcc_cv_c_nbby = failed; then
6207 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6208 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6209 { (exit 1); exit 1; }; }
6210 else
6212 cat >>confdefs.h <<_ACEOF
6213 #define CHAR_BIT $gcc_cv_c_nbby
6214 _ACEOF
6218 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6219 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6220 if test "${ac_cv_c_bigendian+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 ac_cv_c_bigendian=unknown
6224 # See if sys/param.h defines the BYTE_ORDER macro.
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #include <sys/types.h>
6232 #include <sys/param.h>
6234 main ()
6237 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6238 bogus endian macros
6239 #endif
6241 return 0;
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_c_werror_flag"
6254 || test ! -s conftest.err'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; } &&
6260 { ac_try='test -s conftest.$ac_objext'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 (eval $ac_try) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 # It does; now see whether it defined to BIG_ENDIAN or not.
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 #include <sys/types.h>
6274 #include <sys/param.h>
6276 main ()
6279 #if BYTE_ORDER != BIG_ENDIAN
6280 not big endian
6281 #endif
6283 return 0;
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_c_werror_flag"
6296 || test ! -s conftest.err'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try='test -s conftest.$ac_objext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_c_bigendian=yes
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_cv_c_bigendian=no
6315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6316 else
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6322 if test $ac_cv_c_bigendian = unknown; then
6323 if test "$cross_compiling" = yes; then
6324 echo $ac_n "cross-compiling... " 2>&6
6325 else
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h. */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 main () {
6333 /* Are we little or big endian? From Harbison&Steele. */
6334 union
6336 long l;
6337 char c[sizeof (long)];
6338 } u;
6339 u.l = 1;
6340 exit (u.c[sizeof (long) - 1] == 1);
6342 _ACEOF
6343 rm -f conftest$ac_exeext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6345 (eval $ac_link) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 ac_cv_c_bigendian=no
6355 else
6356 echo "$as_me: program exited with status $ac_status" >&5
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 ( exit $ac_status )
6361 ac_cv_c_bigendian=yes
6363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6367 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6368 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6369 if test $ac_cv_c_bigendian = unknown; then
6370 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6371 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6373 cat >conftest.c <<EOF
6374 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6375 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6376 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6377 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6378 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6379 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6380 int main() { _ascii (); _ebcdic (); return 0; }
6382 if test -f conftest.c ; then
6383 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6384 if test `grep -l BIGenDianSyS conftest.o` ; then
6385 echo $ac_n ' big endian probe OK, ' 1>&6
6386 ac_cv_c_bigendian=yes
6388 if test `grep -l LiTTleEnDian conftest.o` ; then
6389 echo $ac_n ' little endian probe OK, ' 1>&6
6390 if test $ac_cv_c_bigendian = yes ; then
6391 ac_cv_c_bigendian=unknown;
6392 else
6393 ac_cv_c_bigendian=no
6396 echo $ac_n 'guessing bigendian ... ' >&6
6399 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6400 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6402 if test $ac_cv_c_bigendian = yes; then
6404 cat >>confdefs.h <<\_ACEOF
6405 #define WORDS_BIGENDIAN 1
6406 _ACEOF
6409 cat >>confdefs.h <<\_ACEOF
6410 #define HOST_WORDS_BIG_ENDIAN 1
6411 _ACEOF
6413 BYTEORDER=4321
6414 else
6415 BYTEORDER=1234
6418 cat >>confdefs.h <<_ACEOF
6419 #define BYTEORDER $BYTEORDER
6420 _ACEOF
6422 if test $ac_cv_c_bigendian = unknown; then
6423 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6424 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6425 { (exit 1); exit 1; }; }
6429 # --------
6430 # UNSORTED
6431 # --------
6433 # Stage specific cflags for build.
6434 stage1_cflags=
6435 case $build in
6436 vax-*-*)
6437 if test x$GCC = xyes
6438 then
6439 stage1_cflags="-Wa,-J"
6440 else
6441 stage1_cflags="-J"
6444 powerpc-*-darwin*)
6445 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6446 # sources; use -no-cpp-precomp to get to GNU cpp.
6447 # Apple's GCC has bugs in designated initializer handling, so disable
6448 # that too.
6449 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6451 esac
6454 # These libraries may be used by collect2.
6455 # We may need a special search path to get them linked.
6456 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6457 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6458 if test "${gcc_cv_collect2_libs+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 save_LIBS="$LIBS"
6462 for libs in '' -lld -lmld \
6463 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6464 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6466 LIBS="$libs"
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6474 /* Override any gcc2 internal prototype to avoid an error. */
6475 #ifdef __cplusplus
6476 extern "C"
6477 #endif
6478 /* We use char because int might match the return type of a gcc2
6479 builtin and then its argument prototype would still apply. */
6480 char ldopen ();
6482 main ()
6484 ldopen ();
6486 return 0;
6488 _ACEOF
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491 (eval $ac_link) 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -z "$ac_c_werror_flag"
6499 || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest$ac_exeext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 gcc_cv_collect2_libs="$libs"; break
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6517 rm -f conftest.err conftest.$ac_objext \
6518 conftest$ac_exeext conftest.$ac_ext
6519 done
6520 LIBS="$save_LIBS"
6521 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6523 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6524 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6525 case $gcc_cv_collect2_libs in
6526 "none required") ;;
6527 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6528 esac
6531 # When building Ada code on Alpha, we need exc_resume which is usually in
6532 # -lexc. So test for it.
6533 save_LIBS="$LIBS"
6534 LIBS=
6535 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6536 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6537 if test "${ac_cv_search_exc_resume+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540 ac_func_search_save_LIBS=$LIBS
6541 ac_cv_search_exc_resume=no
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6549 /* Override any gcc2 internal prototype to avoid an error. */
6550 #ifdef __cplusplus
6551 extern "C"
6552 #endif
6553 /* We use char because int might match the return type of a gcc2
6554 builtin and then its argument prototype would still apply. */
6555 char exc_resume ();
6557 main ()
6559 exc_resume ();
6561 return 0;
6563 _ACEOF
6564 rm -f conftest.$ac_objext conftest$ac_exeext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566 (eval $ac_link) 2>conftest.er1
6567 ac_status=$?
6568 grep -v '^ *+' conftest.er1 >conftest.err
6569 rm -f conftest.er1
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -z "$ac_c_werror_flag"
6574 || test ! -s conftest.err'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try='test -s conftest$ac_exeext'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 ac_cv_search_exc_resume="none required"
6587 else
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6592 rm -f conftest.err conftest.$ac_objext \
6593 conftest$ac_exeext conftest.$ac_ext
6594 if test "$ac_cv_search_exc_resume" = no; then
6595 for ac_lib in exc; do
6596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6597 cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h. */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6604 /* Override any gcc2 internal prototype to avoid an error. */
6605 #ifdef __cplusplus
6606 extern "C"
6607 #endif
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6610 char exc_resume ();
6612 main ()
6614 exc_resume ();
6616 return 0;
6618 _ACEOF
6619 rm -f conftest.$ac_objext conftest$ac_exeext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6621 (eval $ac_link) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest$ac_exeext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_search_exc_resume="-l$ac_lib"
6642 break
6643 else
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6648 rm -f conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
6650 done
6652 LIBS=$ac_func_search_save_LIBS
6654 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6655 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6656 if test "$ac_cv_search_exc_resume" != no; then
6657 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6661 GNAT_LIBEXC="$LIBS"
6662 LIBS="$save_LIBS"
6665 # Some systems put ldexp and frexp in libm instead of libc; assume
6666 # they're both in the same place. jcf-dump needs them.
6667 save_LIBS="$LIBS"
6668 LIBS=
6669 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6670 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6671 if test "${ac_cv_search_ldexp+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 ac_func_search_save_LIBS=$LIBS
6675 ac_cv_search_ldexp=no
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6683 /* Override any gcc2 internal prototype to avoid an error. */
6684 #ifdef __cplusplus
6685 extern "C"
6686 #endif
6687 /* We use char because int might match the return type of a gcc2
6688 builtin and then its argument prototype would still apply. */
6689 char ldexp ();
6691 main ()
6693 ldexp ();
6695 return 0;
6697 _ACEOF
6698 rm -f conftest.$ac_objext conftest$ac_exeext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700 (eval $ac_link) 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -z "$ac_c_werror_flag"
6708 || test ! -s conftest.err'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710 (eval $ac_try) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; } &&
6714 { ac_try='test -s conftest$ac_exeext'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 (eval $ac_try) 2>&5
6717 ac_status=$?
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; }; then
6720 ac_cv_search_ldexp="none required"
6721 else
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6726 rm -f conftest.err conftest.$ac_objext \
6727 conftest$ac_exeext conftest.$ac_ext
6728 if test "$ac_cv_search_ldexp" = no; then
6729 for ac_lib in m; do
6730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6738 /* Override any gcc2 internal prototype to avoid an error. */
6739 #ifdef __cplusplus
6740 extern "C"
6741 #endif
6742 /* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */
6744 char ldexp ();
6746 main ()
6748 ldexp ();
6750 return 0;
6752 _ACEOF
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755 (eval $ac_link) 2>conftest.er1
6756 ac_status=$?
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -z "$ac_c_werror_flag"
6763 || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try='test -s conftest$ac_exeext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_search_ldexp="-l$ac_lib"
6776 break
6777 else
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6782 rm -f conftest.err conftest.$ac_objext \
6783 conftest$ac_exeext conftest.$ac_ext
6784 done
6786 LIBS=$ac_func_search_save_LIBS
6788 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6789 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6790 if test "$ac_cv_search_ldexp" != no; then
6791 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6795 LDEXP_LIB="$LIBS"
6796 LIBS="$save_LIBS"
6799 # Use <inttypes.h> only if it exists,
6800 # doesn't clash with <sys/types.h>, and declares intmax_t.
6801 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6802 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6803 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <sys/types.h>
6813 #include <inttypes.h>
6815 main ()
6817 intmax_t i = -1;
6819 return 0;
6821 _ACEOF
6822 rm -f conftest.$ac_objext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824 (eval $ac_compile) 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -z "$ac_c_werror_flag"
6832 || test ! -s conftest.err'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; } &&
6838 { ac_try='test -s conftest.$ac_objext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 gcc_cv_header_inttypes_h=yes
6845 else
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 gcc_cv_header_inttypes_h=no
6851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6854 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6855 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6856 if test $gcc_cv_header_inttypes_h = yes; then
6858 cat >>confdefs.h <<\_ACEOF
6859 #define HAVE_INTTYPES_H 1
6860 _ACEOF
6890 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6891 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6892 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6893 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6894 setlocale
6896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6897 echo "$as_me:$LINENO: checking for $ac_func" >&5
6898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6899 if eval "test \"\${$as_ac_var+set}\" = set"; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h. */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6910 #define $ac_func innocuous_$ac_func
6912 /* System header to define __stub macros and hopefully few prototypes,
6913 which can conflict with char $ac_func (); below.
6914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6915 <limits.h> exists even on freestanding compilers. */
6917 #ifdef __STDC__
6918 # include <limits.h>
6919 #else
6920 # include <assert.h>
6921 #endif
6923 #undef $ac_func
6925 /* Override any gcc2 internal prototype to avoid an error. */
6926 #ifdef __cplusplus
6927 extern "C"
6929 #endif
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6932 char $ac_func ();
6933 /* The GNU C library defines this for functions which it implements
6934 to always fail with ENOSYS. Some functions are actually named
6935 something starting with __ and the normal name is an alias. */
6936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6937 choke me
6938 #else
6939 char (*f) () = $ac_func;
6940 #endif
6941 #ifdef __cplusplus
6943 #endif
6946 main ()
6948 return f != $ac_func;
6950 return 0;
6952 _ACEOF
6953 rm -f conftest.$ac_objext conftest$ac_exeext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6955 (eval $ac_link) 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try='test -z "$ac_c_werror_flag"
6963 || test ! -s conftest.err'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; } &&
6969 { ac_try='test -s conftest$ac_exeext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 eval "$as_ac_var=yes"
6976 else
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6980 eval "$as_ac_var=no"
6982 rm -f conftest.err conftest.$ac_objext \
6983 conftest$ac_exeext conftest.$ac_ext
6985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6987 if test `eval echo '${'$as_ac_var'}'` = yes; then
6988 cat >>confdefs.h <<_ACEOF
6989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6990 _ACEOF
6993 done
6996 if test x$ac_cv_func_mbstowcs = xyes; then
6997 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6998 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6999 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 else
7002 if test "$cross_compiling" = yes; then
7003 gcc_cv_func_mbstowcs_works=yes
7004 else
7005 cat >conftest.$ac_ext <<_ACEOF
7006 /* confdefs.h. */
7007 _ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7011 #include <stdlib.h>
7012 int main()
7014 mbstowcs(0, "", 0);
7015 return 0;
7017 _ACEOF
7018 rm -f conftest$ac_exeext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7020 (eval $ac_link) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 gcc_cv_func_mbstowcs_works=yes
7030 else
7031 echo "$as_me: program exited with status $ac_status" >&5
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 ( exit $ac_status )
7036 gcc_cv_func_mbstowcs_works=no
7038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7041 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7042 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7043 if test x$gcc_cv_func_mbstowcs_works = xyes; then
7045 cat >>confdefs.h <<\_ACEOF
7046 #define HAVE_WORKING_MBSTOWCS 1
7047 _ACEOF
7052 echo "$as_me:$LINENO: checking for ssize_t" >&5
7053 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7054 if test "${ac_cv_type_ssize_t+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7065 main ()
7067 if ((ssize_t *) 0)
7068 return 0;
7069 if (sizeof (ssize_t))
7070 return 0;
7072 return 0;
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>conftest.er1
7078 ac_status=$?
7079 grep -v '^ *+' conftest.er1 >conftest.err
7080 rm -f conftest.er1
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try='test -z "$ac_c_werror_flag"
7085 || test ! -s conftest.err'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 (eval $ac_try) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; } &&
7091 { ac_try='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 ac_cv_type_ssize_t=yes
7098 else
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 ac_cv_type_ssize_t=no
7104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7106 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7107 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7108 if test $ac_cv_type_ssize_t = yes; then
7110 else
7112 cat >>confdefs.h <<_ACEOF
7113 #define ssize_t int
7114 _ACEOF
7119 # Try to determine the array type of the second argument of getgroups
7120 # for the target system (int or gid_t).
7121 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7122 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7123 if test "${ac_cv_type_uid_t+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126 cat >conftest.$ac_ext <<_ACEOF
7127 /* confdefs.h. */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 #include <sys/types.h>
7134 _ACEOF
7135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7136 $EGREP "uid_t" >/dev/null 2>&1; then
7137 ac_cv_type_uid_t=yes
7138 else
7139 ac_cv_type_uid_t=no
7141 rm -f conftest*
7144 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7145 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7146 if test $ac_cv_type_uid_t = no; then
7148 cat >>confdefs.h <<\_ACEOF
7149 #define uid_t int
7150 _ACEOF
7153 cat >>confdefs.h <<\_ACEOF
7154 #define gid_t int
7155 _ACEOF
7159 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7160 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7161 if test "${ac_cv_type_getgroups+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 if test "$cross_compiling" = yes; then
7165 ac_cv_type_getgroups=cross
7166 else
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h. */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 /* Thanks to Mike Rendell for this test. */
7174 #include <sys/types.h>
7175 #define NGID 256
7176 #undef MAX
7177 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7180 main ()
7182 gid_t gidset[NGID];
7183 int i, n;
7184 union { gid_t gval; long lval; } val;
7186 val.lval = -1;
7187 for (i = 0; i < NGID; i++)
7188 gidset[i] = val.gval;
7189 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7190 gidset);
7191 /* Exit non-zero if getgroups seems to require an array of ints. This
7192 happens when gid_t is short but getgroups modifies an array of ints. */
7193 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7195 _ACEOF
7196 rm -f conftest$ac_exeext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198 (eval $ac_link) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_type_getgroups=gid_t
7208 else
7209 echo "$as_me: program exited with status $ac_status" >&5
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ( exit $ac_status )
7214 ac_cv_type_getgroups=int
7216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7218 if test $ac_cv_type_getgroups = cross; then
7219 cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h. */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7225 #include <unistd.h>
7227 _ACEOF
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7230 ac_cv_type_getgroups=gid_t
7231 else
7232 ac_cv_type_getgroups=int
7234 rm -f conftest*
7238 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7239 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7241 cat >>confdefs.h <<_ACEOF
7242 #define GETGROUPS_T $ac_cv_type_getgroups
7243 _ACEOF
7246 if test "${target}" = "${build}"; then
7247 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7248 else
7249 case "${target}" in
7250 # This condition may need some tweaking. It should include all
7251 # targets where the array type of the second argument of getgroups
7252 # is int and the type of gid_t is not equivalent to int.
7253 *-*-sunos* | *-*-ultrix*)
7254 TARGET_GETGROUPS_T=int
7257 TARGET_GETGROUPS_T=gid_t
7259 esac
7263 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7264 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7265 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 if test "$cross_compiling" = yes; then
7269 gcc_cv_func_printf_ptr=no
7270 else
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 #include <stdio.h>
7279 int main()
7281 char buf[64];
7282 char *p = buf, *q = NULL;
7283 sprintf(buf, "%p", p);
7284 sscanf(buf, "%p", &q);
7285 return (p != q);
7287 _ACEOF
7288 rm -f conftest$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290 (eval $ac_link) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 gcc_cv_func_printf_ptr=yes
7300 else
7301 echo "$as_me: program exited with status $ac_status" >&5
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7305 ( exit $ac_status )
7306 gcc_cv_func_printf_ptr=no
7308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7310 rm -f core core.* *.core
7312 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7313 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7314 if test $gcc_cv_func_printf_ptr = yes ; then
7316 cat >>confdefs.h <<\_ACEOF
7317 #define HAVE_PRINTF_PTR 1
7318 _ACEOF
7322 if test $ac_cv_header_sys_mman_h != yes \
7323 || test $ac_cv_func_mmap != yes; then
7324 gcc_cv_func_mmap_file=no
7325 gcc_cv_func_mmap_dev_zero=no
7326 gcc_cv_func_mmap_anon=no
7327 else
7328 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7329 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7330 if test "${gcc_cv_func_mmap_file+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 # Add a system to this blacklist if
7334 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7335 # memory area containing the same data that you'd get if you applied
7336 # read() to the same fd. The only system known to have a problem here
7337 # is VMS, where text files have record structure.
7338 case "$host_os" in
7339 vms* | ultrix*)
7340 gcc_cv_func_mmap_file=no ;;
7342 gcc_cv_func_mmap_file=yes;;
7343 esac
7345 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7346 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7347 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7348 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7349 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 # Add a system to this blacklist if it has mmap() but /dev/zero
7353 # does not exist, or if mmapping /dev/zero does not give anonymous
7354 # zeroed pages with both the following properties:
7355 # 1. If you map N consecutive pages in with one call, and then
7356 # unmap any subset of those pages, the pages that were not
7357 # explicitly unmapped remain accessible.
7358 # 2. If you map two adjacent blocks of memory and then unmap them
7359 # both at once, they must both go away.
7360 # Systems known to be in this category are Windows (all variants),
7361 # VMS, and Darwin.
7362 case "$host_os" in
7363 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7364 gcc_cv_func_mmap_dev_zero=no ;;
7366 gcc_cv_func_mmap_dev_zero=yes;;
7367 esac
7369 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7370 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7372 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7373 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7374 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7375 if test "${gcc_cv_decl_map_anon+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #include <sys/types.h>
7385 #include <sys/mman.h>
7386 #include <unistd.h>
7388 #ifndef MAP_ANONYMOUS
7389 #define MAP_ANONYMOUS MAP_ANON
7390 #endif
7393 main ()
7395 int n = MAP_ANONYMOUS;
7397 return 0;
7399 _ACEOF
7400 rm -f conftest.$ac_objext
7401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7402 (eval $ac_compile) 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } &&
7409 { ac_try='test -z "$ac_c_werror_flag"
7410 || test ! -s conftest.err'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; } &&
7416 { ac_try='test -s conftest.$ac_objext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 gcc_cv_decl_map_anon=yes
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 gcc_cv_decl_map_anon=no
7429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7431 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7432 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7434 if test $gcc_cv_decl_map_anon = no; then
7435 gcc_cv_func_mmap_anon=no
7436 else
7437 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7438 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7439 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7443 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7444 # doesn't give anonymous zeroed pages with the same properties listed
7445 # above for use of /dev/zero.
7446 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7447 case "$host_os" in
7448 vms* | cygwin* | pe | mingw* | sco* | udk* )
7449 gcc_cv_func_mmap_anon=no ;;
7451 gcc_cv_func_mmap_anon=yes;;
7452 esac
7454 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7455 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7459 if test $gcc_cv_func_mmap_file = yes; then
7461 cat >>confdefs.h <<\_ACEOF
7462 #define HAVE_MMAP_FILE 1
7463 _ACEOF
7466 if test $gcc_cv_func_mmap_dev_zero = yes; then
7468 cat >>confdefs.h <<\_ACEOF
7469 #define HAVE_MMAP_DEV_ZERO 1
7470 _ACEOF
7473 if test $gcc_cv_func_mmap_anon = yes; then
7475 cat >>confdefs.h <<\_ACEOF
7476 #define HAVE_MMAP_ANON 1
7477 _ACEOF
7482 case "${host}" in
7483 *-*-*vms*)
7484 # Under VMS, vfork works very differently than on Unix. The standard test
7485 # won't work, and it isn't easily adaptable. It makes more sense to
7486 # just force it.
7487 ac_cv_func_vfork_works=yes
7489 esac
7490 echo "$as_me:$LINENO: checking for pid_t" >&5
7491 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7492 if test "${ac_cv_type_pid_t+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 $ac_includes_default
7503 main ()
7505 if ((pid_t *) 0)
7506 return 0;
7507 if (sizeof (pid_t))
7508 return 0;
7510 return 0;
7512 _ACEOF
7513 rm -f conftest.$ac_objext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>conftest.er1
7516 ac_status=$?
7517 grep -v '^ *+' conftest.er1 >conftest.err
7518 rm -f conftest.er1
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -z "$ac_c_werror_flag"
7523 || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try='test -s conftest.$ac_objext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 ac_cv_type_pid_t=yes
7536 else
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 ac_cv_type_pid_t=no
7542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7544 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7545 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7546 if test $ac_cv_type_pid_t = yes; then
7548 else
7550 cat >>confdefs.h <<_ACEOF
7551 #define pid_t int
7552 _ACEOF
7558 for ac_header in unistd.h vfork.h
7560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7561 echo "$as_me:$LINENO: checking for $ac_header" >&5
7562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h. */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 #include <$ac_header>
7573 _ACEOF
7574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7576 ac_status=$?
7577 grep -v '^ *+' conftest.er1 >conftest.err
7578 rm -f conftest.er1
7579 cat conftest.err >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } >/dev/null; then
7582 if test -s conftest.err; then
7583 ac_cpp_err=$ac_c_preproc_warn_flag
7584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7585 else
7586 ac_cpp_err=
7588 else
7589 ac_cpp_err=yes
7591 if test -z "$ac_cpp_err"; then
7592 eval "$as_ac_Header=yes"
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 eval "$as_ac_Header=no"
7599 rm -f conftest.err conftest.$ac_ext
7601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7604 cat >>confdefs.h <<_ACEOF
7605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7606 _ACEOF
7609 done
7613 for ac_func in fork vfork
7615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7616 echo "$as_me:$LINENO: checking for $ac_func" >&5
7617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7618 if eval "test \"\${$as_ac_var+set}\" = set"; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* confdefs.h. */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7629 #define $ac_func innocuous_$ac_func
7631 /* System header to define __stub macros and hopefully few prototypes,
7632 which can conflict with char $ac_func (); below.
7633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7634 <limits.h> exists even on freestanding compilers. */
7636 #ifdef __STDC__
7637 # include <limits.h>
7638 #else
7639 # include <assert.h>
7640 #endif
7642 #undef $ac_func
7644 /* Override any gcc2 internal prototype to avoid an error. */
7645 #ifdef __cplusplus
7646 extern "C"
7648 #endif
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7651 char $ac_func ();
7652 /* The GNU C library defines this for functions which it implements
7653 to always fail with ENOSYS. Some functions are actually named
7654 something starting with __ and the normal name is an alias. */
7655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7656 choke me
7657 #else
7658 char (*f) () = $ac_func;
7659 #endif
7660 #ifdef __cplusplus
7662 #endif
7665 main ()
7667 return f != $ac_func;
7669 return 0;
7671 _ACEOF
7672 rm -f conftest.$ac_objext conftest$ac_exeext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -z "$ac_c_werror_flag"
7682 || test ! -s conftest.err'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try='test -s conftest$ac_exeext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 eval "$as_ac_var=yes"
7695 else
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 eval "$as_ac_var=no"
7701 rm -f conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7706 if test `eval echo '${'$as_ac_var'}'` = yes; then
7707 cat >>confdefs.h <<_ACEOF
7708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7709 _ACEOF
7712 done
7714 if test "x$ac_cv_func_fork" = xyes; then
7715 echo "$as_me:$LINENO: checking for working fork" >&5
7716 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7717 if test "${ac_cv_func_fork_works+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 if test "$cross_compiling" = yes; then
7721 ac_cv_func_fork_works=cross
7722 else
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* By Ruediger Kuhlmann. */
7725 #include <sys/types.h>
7726 #if HAVE_UNISTD_H
7727 # include <unistd.h>
7728 #endif
7729 /* Some systems only have a dummy stub for fork() */
7730 int main ()
7732 if (fork() < 0)
7733 exit (1);
7734 exit (0);
7736 _ACEOF
7737 rm -f conftest$ac_exeext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7739 (eval $ac_link) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 (eval $ac_try) 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7748 ac_cv_func_fork_works=yes
7749 else
7750 echo "$as_me: program exited with status $ac_status" >&5
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 ( exit $ac_status )
7755 ac_cv_func_fork_works=no
7757 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7760 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7761 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7763 else
7764 ac_cv_func_fork_works=$ac_cv_func_fork
7766 if test "x$ac_cv_func_fork_works" = xcross; then
7767 case $host in
7768 *-*-amigaos* | *-*-msdosdjgpp*)
7769 # Override, as these systems have only a dummy fork() stub
7770 ac_cv_func_fork_works=no
7773 ac_cv_func_fork_works=yes
7775 esac
7776 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7777 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7779 ac_cv_func_vfork_works=$ac_cv_func_vfork
7780 if test "x$ac_cv_func_vfork" = xyes; then
7781 echo "$as_me:$LINENO: checking for working vfork" >&5
7782 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7783 if test "${ac_cv_func_vfork_works+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786 if test "$cross_compiling" = yes; then
7787 ac_cv_func_vfork_works=cross
7788 else
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 /* Thanks to Paul Eggert for this test. */
7796 #include <stdio.h>
7797 #include <stdlib.h>
7798 #include <sys/types.h>
7799 #include <sys/stat.h>
7800 #include <sys/wait.h>
7801 #if HAVE_UNISTD_H
7802 # include <unistd.h>
7803 #endif
7804 #if HAVE_VFORK_H
7805 # include <vfork.h>
7806 #endif
7807 /* On some sparc systems, changes by the child to local and incoming
7808 argument registers are propagated back to the parent. The compiler
7809 is told about this with #include <vfork.h>, but some compilers
7810 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7811 static variable whose address is put into a register that is
7812 clobbered by the vfork. */
7813 static void
7814 #ifdef __cplusplus
7815 sparc_address_test (int arg)
7816 # else
7817 sparc_address_test (arg) int arg;
7818 #endif
7820 static pid_t child;
7821 if (!child) {
7822 child = vfork ();
7823 if (child < 0) {
7824 perror ("vfork");
7825 _exit(2);
7827 if (!child) {
7828 arg = getpid();
7829 write(-1, "", 0);
7830 _exit (arg);
7836 main ()
7838 pid_t parent = getpid ();
7839 pid_t child;
7841 sparc_address_test (0);
7843 child = vfork ();
7845 if (child == 0) {
7846 /* Here is another test for sparc vfork register problems. This
7847 test uses lots of local variables, at least as many local
7848 variables as main has allocated so far including compiler
7849 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7850 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7851 reuse the register of parent for one of the local variables,
7852 since it will think that parent can't possibly be used any more
7853 in this routine. Assigning to the local variable will thus
7854 munge parent in the parent process. */
7855 pid_t
7856 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7857 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7858 /* Convince the compiler that p..p7 are live; otherwise, it might
7859 use the same hardware register for all 8 local variables. */
7860 if (p != p1 || p != p2 || p != p3 || p != p4
7861 || p != p5 || p != p6 || p != p7)
7862 _exit(1);
7864 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7865 from child file descriptors. If the child closes a descriptor
7866 before it execs or exits, this munges the parent's descriptor
7867 as well. Test for this by closing stdout in the child. */
7868 _exit(close(fileno(stdout)) != 0);
7869 } else {
7870 int status;
7871 struct stat st;
7873 while (wait(&status) != child)
7875 exit(
7876 /* Was there some problem with vforking? */
7877 child < 0
7879 /* Did the child fail? (This shouldn't happen.) */
7880 || status
7882 /* Did the vfork/compiler bug occur? */
7883 || parent != getpid()
7885 /* Did the file descriptor bug occur? */
7886 || fstat(fileno(stdout), &st) != 0
7890 _ACEOF
7891 rm -f conftest$ac_exeext
7892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7893 (eval $ac_link) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_func_vfork_works=yes
7903 else
7904 echo "$as_me: program exited with status $ac_status" >&5
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 ( exit $ac_status )
7909 ac_cv_func_vfork_works=no
7911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7914 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7915 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7918 if test "x$ac_cv_func_fork_works" = xcross; then
7919 ac_cv_func_vfork_works=$ac_cv_func_vfork
7920 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7921 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7924 if test "x$ac_cv_func_vfork_works" = xyes; then
7926 cat >>confdefs.h <<\_ACEOF
7927 #define HAVE_WORKING_VFORK 1
7928 _ACEOF
7930 else
7932 cat >>confdefs.h <<\_ACEOF
7933 #define vfork fork
7934 _ACEOF
7937 if test "x$ac_cv_func_fork_works" = xyes; then
7939 cat >>confdefs.h <<\_ACEOF
7940 #define HAVE_WORKING_FORK 1
7941 _ACEOF
7948 am_cv_lib_iconv_ldpath=
7950 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7951 if test "${with_libiconv_prefix+set}" = set; then
7952 withval="$with_libiconv_prefix"
7954 for dir in `echo "$withval" | tr : ' '`; do
7955 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7956 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7957 done
7962 for ac_header in iconv.h
7964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7965 echo "$as_me:$LINENO: checking for $ac_header" >&5
7966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 else
7970 cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h. */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 #include <$ac_header>
7977 _ACEOF
7978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } >/dev/null; then
7986 if test -s conftest.err; then
7987 ac_cpp_err=$ac_c_preproc_warn_flag
7988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7989 else
7990 ac_cpp_err=
7992 else
7993 ac_cpp_err=yes
7995 if test -z "$ac_cpp_err"; then
7996 eval "$as_ac_Header=yes"
7997 else
7998 echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8001 eval "$as_ac_Header=no"
8003 rm -f conftest.err conftest.$ac_ext
8005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8008 cat >>confdefs.h <<_ACEOF
8009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8010 _ACEOF
8013 done
8016 echo "$as_me:$LINENO: checking for iconv" >&5
8017 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8018 if test "${am_cv_func_iconv+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8022 am_cv_func_iconv="no, consider installing GNU libiconv"
8023 am_cv_lib_iconv=no
8024 cat >conftest.$ac_ext <<_ACEOF
8025 /* confdefs.h. */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8030 #include <stdlib.h>
8031 #include <iconv.h>
8033 main ()
8035 iconv_t cd = iconv_open("","");
8036 iconv(cd,NULL,NULL,NULL,NULL);
8037 iconv_close(cd);
8039 return 0;
8041 _ACEOF
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044 (eval $ac_link) 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -z "$ac_c_werror_flag"
8052 || test ! -s conftest.err'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest$ac_exeext'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
8064 am_cv_func_iconv=yes
8065 else
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8070 rm -f conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8072 if test "$am_cv_func_iconv" != yes; then
8073 am_save_LIBS="$LIBS"
8074 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 #include <stdlib.h>
8082 #include <iconv.h>
8084 main ()
8086 iconv_t cd = iconv_open("","");
8087 iconv(cd,NULL,NULL,NULL,NULL);
8088 iconv_close(cd);
8090 return 0;
8092 _ACEOF
8093 rm -f conftest.$ac_objext conftest$ac_exeext
8094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8095 (eval $ac_link) 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
8102 { ac_try='test -z "$ac_c_werror_flag"
8103 || test ! -s conftest.err'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 (eval $ac_try) 2>&5
8106 ac_status=$?
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; } &&
8109 { ac_try='test -s conftest$ac_exeext'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 (eval $ac_try) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8115 am_cv_lib_iconv=yes
8116 am_cv_func_iconv=yes
8117 else
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8122 rm -f conftest.err conftest.$ac_objext \
8123 conftest$ac_exeext conftest.$ac_ext
8124 LIBS="$am_save_LIBS"
8128 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8129 echo "${ECHO_T}$am_cv_func_iconv" >&6
8130 if test "$am_cv_func_iconv" = yes; then
8132 cat >>confdefs.h <<\_ACEOF
8133 #define HAVE_ICONV 1
8134 _ACEOF
8136 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8137 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8138 if test "${am_cv_proto_iconv+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8142 cat >conftest.$ac_ext <<_ACEOF
8143 /* confdefs.h. */
8144 _ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8149 #include <stdlib.h>
8150 #include <iconv.h>
8151 extern
8152 #ifdef __cplusplus
8154 #endif
8155 #if defined(__STDC__) || defined(__cplusplus)
8156 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8157 #else
8158 size_t iconv();
8159 #endif
8162 main ()
8166 return 0;
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -z "$ac_c_werror_flag"
8179 || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try='test -s conftest.$ac_objext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 am_cv_proto_iconv_arg1=""
8192 else
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8196 am_cv_proto_iconv_arg1="const"
8198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8199 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);"
8202 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8203 echo "$as_me:$LINENO: result: ${ac_t:-
8204 }$am_cv_proto_iconv" >&5
8205 echo "${ECHO_T}${ac_t:-
8206 }$am_cv_proto_iconv" >&6
8208 cat >>confdefs.h <<_ACEOF
8209 #define ICONV_CONST $am_cv_proto_iconv_arg1
8210 _ACEOF
8213 LIBICONV=
8214 if test "$am_cv_lib_iconv" = yes; then
8215 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8219 # Until we have in-tree GNU iconv:
8220 LIBICONV_DEP=
8224 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8225 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8226 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 #include <locale.h>
8237 main ()
8239 return LC_MESSAGES
8241 return 0;
8243 _ACEOF
8244 rm -f conftest.$ac_objext conftest$ac_exeext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246 (eval $ac_link) 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -z "$ac_c_werror_flag"
8254 || test ! -s conftest.err'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try='test -s conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 am_cv_val_LC_MESSAGES=yes
8267 else
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 am_cv_val_LC_MESSAGES=no
8273 rm -f conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8276 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8277 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8278 if test $am_cv_val_LC_MESSAGES = yes; then
8280 cat >>confdefs.h <<\_ACEOF
8281 #define HAVE_LC_MESSAGES 1
8282 _ACEOF
8287 # We will need to find libiberty.h and ansidecl.h
8288 saved_CFLAGS="$CFLAGS"
8289 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8290 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8291 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8292 fprintf_unlocked strstr errno snprintf vasprintf \
8293 malloc realloc calloc free basename getopt clock
8295 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8296 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8297 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8298 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 #undef $ac_tr_decl
8308 #define $ac_tr_decl 1
8310 #include "ansidecl.h"
8311 #include "system.h"
8314 main ()
8316 #ifndef $ac_func
8317 char *(*pfn) = (char *(*)) $ac_func ;
8318 #endif
8320 return 0;
8322 _ACEOF
8323 rm -f conftest.$ac_objext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8325 (eval $ac_compile) 2>conftest.er1
8326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
8332 { ac_try='test -z "$ac_c_werror_flag"
8333 || test ! -s conftest.err'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; } &&
8339 { ac_try='test -s conftest.$ac_objext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 eval "gcc_cv_have_decl_$ac_func=yes"
8346 else
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8350 eval "gcc_cv_have_decl_$ac_func=no"
8352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8355 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8356 echo "$as_me:$LINENO: result: yes" >&5
8357 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8358 #define $ac_tr_decl 1
8359 _ACEOF
8361 else
8362 echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8364 #define $ac_tr_decl 0
8365 _ACEOF
8369 done
8370 if test x = y ; then
8372 cat >>confdefs.h <<\_ACEOF
8373 #define HAVE_DECL_GETENV 1
8374 _ACEOF
8376 cat >>confdefs.h <<\_ACEOF
8377 #define HAVE_DECL_ATOL 1
8378 _ACEOF
8380 cat >>confdefs.h <<\_ACEOF
8381 #define HAVE_DECL_SBRK 1
8382 _ACEOF
8384 cat >>confdefs.h <<\_ACEOF
8385 #define HAVE_DECL_ABORT 1
8386 _ACEOF
8388 cat >>confdefs.h <<\_ACEOF
8389 #define HAVE_DECL_ATOF 1
8390 _ACEOF
8392 cat >>confdefs.h <<\_ACEOF
8393 #define HAVE_DECL_GETCWD 1
8394 _ACEOF
8396 cat >>confdefs.h <<\_ACEOF
8397 #define HAVE_DECL_GETWD 1
8398 _ACEOF
8401 cat >>confdefs.h <<\_ACEOF
8402 #define HAVE_DECL_STRSIGNAL 1
8403 _ACEOF
8405 cat >>confdefs.h <<\_ACEOF
8406 #define HAVE_DECL_PUTC_UNLOCKED 1
8407 _ACEOF
8409 cat >>confdefs.h <<\_ACEOF
8410 #define HAVE_DECL_FPUTS_UNLOCKED 1
8411 _ACEOF
8413 cat >>confdefs.h <<\_ACEOF
8414 #define HAVE_DECL_FWRITE_UNLOCKED 1
8415 _ACEOF
8418 cat >>confdefs.h <<\_ACEOF
8419 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8420 _ACEOF
8422 cat >>confdefs.h <<\_ACEOF
8423 #define HAVE_DECL_STRSTR 1
8424 _ACEOF
8426 cat >>confdefs.h <<\_ACEOF
8427 #define HAVE_DECL_ERRNO 1
8428 _ACEOF
8430 cat >>confdefs.h <<\_ACEOF
8431 #define HAVE_DECL_SNPRINTF 1
8432 _ACEOF
8434 cat >>confdefs.h <<\_ACEOF
8435 #define HAVE_DECL_VASPRINTF 1
8436 _ACEOF
8439 cat >>confdefs.h <<\_ACEOF
8440 #define HAVE_DECL_MALLOC 1
8441 _ACEOF
8443 cat >>confdefs.h <<\_ACEOF
8444 #define HAVE_DECL_REALLOC 1
8445 _ACEOF
8447 cat >>confdefs.h <<\_ACEOF
8448 #define HAVE_DECL_CALLOC 1
8449 _ACEOF
8451 cat >>confdefs.h <<\_ACEOF
8452 #define HAVE_DECL_FREE 1
8453 _ACEOF
8455 cat >>confdefs.h <<\_ACEOF
8456 #define HAVE_DECL_BASENAME 1
8457 _ACEOF
8459 cat >>confdefs.h <<\_ACEOF
8460 #define HAVE_DECL_GETOPT 1
8461 _ACEOF
8463 cat >>confdefs.h <<\_ACEOF
8464 #define HAVE_DECL_CLOCK 1
8465 _ACEOF
8469 for ac_func in getrlimit setrlimit getrusage
8471 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8472 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8473 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8474 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 else
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 #undef $ac_tr_decl
8484 #define $ac_tr_decl 1
8486 #include "ansidecl.h"
8487 #include "system.h"
8488 #ifdef HAVE_SYS_RESOURCE_H
8489 #include <sys/resource.h>
8490 #endif
8494 main ()
8496 #ifndef $ac_func
8497 char *(*pfn) = (char *(*)) $ac_func ;
8498 #endif
8500 return 0;
8502 _ACEOF
8503 rm -f conftest.$ac_objext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8505 (eval $ac_compile) 2>conftest.er1
8506 ac_status=$?
8507 grep -v '^ *+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } &&
8512 { ac_try='test -z "$ac_c_werror_flag"
8513 || test ! -s conftest.err'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 (eval $ac_try) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; } &&
8519 { ac_try='test -s conftest.$ac_objext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 eval "gcc_cv_have_decl_$ac_func=yes"
8526 else
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8530 eval "gcc_cv_have_decl_$ac_func=no"
8532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8535 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8536 echo "$as_me:$LINENO: result: yes" >&5
8537 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8538 #define $ac_tr_decl 1
8539 _ACEOF
8541 else
8542 echo "$as_me:$LINENO: result: no" >&5
8543 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8544 #define $ac_tr_decl 0
8545 _ACEOF
8549 done
8550 if test x = y ; then
8552 cat >>confdefs.h <<\_ACEOF
8553 #define HAVE_DECL_GETRLIMIT 1
8554 _ACEOF
8556 cat >>confdefs.h <<\_ACEOF
8557 #define HAVE_DECL_SETRLIMIT 1
8558 _ACEOF
8560 cat >>confdefs.h <<\_ACEOF
8561 #define HAVE_DECL_GETRUSAGE 1
8562 _ACEOF
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h. */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8573 #include "ansidecl.h"
8574 #include "system.h"
8575 #ifdef HAVE_SYS_RESOURCE_H
8576 #include <sys/resource.h>
8577 #endif
8580 main ()
8582 rlim_t l = 0;
8584 return 0;
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>conftest.er1
8590 ac_status=$?
8591 grep -v '^ *+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } &&
8596 { ac_try='test -z "$ac_c_werror_flag"
8597 || test ! -s conftest.err'
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); }; } &&
8603 { ac_try='test -s conftest.$ac_objext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8610 else
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8615 cat >>confdefs.h <<\_ACEOF
8616 #define rlim_t long
8617 _ACEOF
8620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8622 for ac_func in ldgetname
8624 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8625 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8626 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8627 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630 cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h. */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636 #undef $ac_tr_decl
8637 #define $ac_tr_decl 1
8639 #include "ansidecl.h"
8640 #include "system.h"
8641 #ifdef HAVE_LDFCN_H
8642 #include <ldfcn.h>
8643 #endif
8647 main ()
8649 #ifndef $ac_func
8650 char *(*pfn) = (char *(*)) $ac_func ;
8651 #endif
8653 return 0;
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 eval "gcc_cv_have_decl_$ac_func=yes"
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 eval "gcc_cv_have_decl_$ac_func=no"
8685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8688 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8689 echo "$as_me:$LINENO: result: yes" >&5
8690 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8691 #define $ac_tr_decl 1
8692 _ACEOF
8694 else
8695 echo "$as_me:$LINENO: result: no" >&5
8696 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8697 #define $ac_tr_decl 0
8698 _ACEOF
8702 done
8703 if test x = y ; then
8705 cat >>confdefs.h <<\_ACEOF
8706 #define HAVE_DECL_LDGETNAME 1
8707 _ACEOF
8711 for ac_func in times
8713 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8714 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8715 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8716 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h. */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8725 #undef $ac_tr_decl
8726 #define $ac_tr_decl 1
8728 #include "ansidecl.h"
8729 #include "system.h"
8730 #ifdef HAVE_SYS_TIMES_H
8731 #include <sys/times.h>
8732 #endif
8736 main ()
8738 #ifndef $ac_func
8739 char *(*pfn) = (char *(*)) $ac_func ;
8740 #endif
8742 return 0;
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747 (eval $ac_compile) 2>conftest.er1
8748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -z "$ac_c_werror_flag"
8755 || test ! -s conftest.err'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 (eval $ac_try) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; } &&
8761 { ac_try='test -s conftest.$ac_objext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 (eval $ac_try) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 eval "gcc_cv_have_decl_$ac_func=yes"
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 eval "gcc_cv_have_decl_$ac_func=no"
8774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8777 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8778 echo "$as_me:$LINENO: result: yes" >&5
8779 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8780 #define $ac_tr_decl 1
8781 _ACEOF
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8786 #define $ac_tr_decl 0
8787 _ACEOF
8791 done
8792 if test x = y ; then
8794 cat >>confdefs.h <<\_ACEOF
8795 #define HAVE_DECL_TIMES 1
8796 _ACEOF
8800 # More time-related stuff.
8801 echo "$as_me:$LINENO: checking for struct tms" >&5
8802 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8803 if test "${ac_cv_struct_tms+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h. */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8814 #include "ansidecl.h"
8815 #include "system.h"
8816 #ifdef HAVE_SYS_TIMES_H
8817 #include <sys/times.h>
8818 #endif
8821 main ()
8823 struct tms tms;
8825 return 0;
8827 _ACEOF
8828 rm -f conftest.$ac_objext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830 (eval $ac_compile) 2>conftest.er1
8831 ac_status=$?
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
8837 { ac_try='test -z "$ac_c_werror_flag"
8838 || test ! -s conftest.err'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try='test -s conftest.$ac_objext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_cv_struct_tms=yes
8851 else
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 ac_cv_struct_tms=no
8857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8859 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8860 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8861 if test $ac_cv_struct_tms = yes; then
8863 cat >>confdefs.h <<\_ACEOF
8864 #define HAVE_STRUCT_TMS 1
8865 _ACEOF
8869 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8870 # revisit after autoconf 2.50.
8871 echo "$as_me:$LINENO: checking for clock_t" >&5
8872 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8873 if test "${gcc_cv_type_clock_t+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8884 #include "ansidecl.h"
8885 #include "system.h"
8888 main ()
8890 clock_t x;
8892 return 0;
8894 _ACEOF
8895 rm -f conftest.$ac_objext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8897 (eval $ac_compile) 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -z "$ac_c_werror_flag"
8905 || test ! -s conftest.err'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try='test -s conftest.$ac_objext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 gcc_cv_type_clock_t=yes
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 gcc_cv_type_clock_t=no
8924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8926 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8927 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8928 if test $gcc_cv_type_clock_t = yes; then
8930 cat >>confdefs.h <<\_ACEOF
8931 #define HAVE_CLOCK_T 1
8932 _ACEOF
8936 echo "$as_me:$LINENO: checking for uchar" >&5
8937 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8938 if test "${gcc_cv_type_uchar+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8948 #include "ansidecl.h"
8949 #include "system.h"
8952 main ()
8954 if ((uchar *)0) return 0;
8955 if (sizeof(uchar)) return 0;
8957 return 0;
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962 (eval $ac_compile) 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag"
8970 || test ! -s conftest.err'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 (eval $ac_try) 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try='test -s conftest.$ac_objext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_type_uchar=yes
8983 else
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 ac_cv_type_uchar=no
8989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8991 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8992 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8993 if test $ac_cv_type_uchar = yes; then
8995 cat >>confdefs.h <<\_ACEOF
8996 #define HAVE_UCHAR 1
8997 _ACEOF
9001 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9002 CFLAGS="$saved_CFLAGS"
9004 # Check whether --enable-initfini-array or --disable-initfini-array was given.
9005 if test "${enable_initfini_array+set}" = set; then
9006 enableval="$enable_initfini_array"
9008 else
9010 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
9011 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
9012 if test "${gcc_cv_initfini_array+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 if test "$cross_compiling" = yes; then
9016 gcc_cv_initfini_array=no
9017 else
9018 cat >conftest.$ac_ext <<_ACEOF
9019 /* confdefs.h. */
9020 _ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9025 static int x = -1;
9026 int main (void) { return x; }
9027 int foo (void) { x = 0; }
9028 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9029 _ACEOF
9030 rm -f conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032 (eval $ac_link) 2>&5
9033 ac_status=$?
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 gcc_cv_initfini_array=yes
9042 else
9043 echo "$as_me: program exited with status $ac_status" >&5
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 ( exit $ac_status )
9048 gcc_cv_initfini_array=no
9050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9053 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9054 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9055 enable_initfini_array=$gcc_cv_initfini_array
9058 if test $enable_initfini_array = yes; then
9060 cat >>confdefs.h <<\_ACEOF
9061 #define HAVE_INITFINI_ARRAY 1
9062 _ACEOF
9066 # mkdir takes a single argument on some systems.
9067 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9068 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9069 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h. */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9079 #include <sys/types.h>
9080 #ifdef HAVE_SYS_STAT_H
9081 # include <sys/stat.h>
9082 #endif
9083 #ifdef HAVE_UNISTD_H
9084 # include <unistd.h>
9085 #endif
9086 #ifdef HAVE_DIRECT_H
9087 # include <direct.h>
9088 #endif
9090 main ()
9092 mkdir ("foo", 0);
9094 return 0;
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>conftest.er1
9100 ac_status=$?
9101 grep -v '^ *+' conftest.er1 >conftest.err
9102 rm -f conftest.er1
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -z "$ac_c_werror_flag"
9107 || test ! -s conftest.err'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try='test -s conftest.$ac_objext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 gcc_cv_mkdir_takes_one_arg=no
9120 else
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 gcc_cv_mkdir_takes_one_arg=yes
9126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9129 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9130 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9132 cat >>confdefs.h <<\_ACEOF
9133 #define MKDIR_TAKES_ONE_ARG 1
9134 _ACEOF
9139 # File extensions
9140 manext='.1'
9141 objext='.o'
9145 # With Setjmp/Longjmp based exception handling.
9146 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9147 if test "${enable_sjlj_exceptions+set}" = set; then
9148 enableval="$enable_sjlj_exceptions"
9149 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9151 cat >>confdefs.h <<_ACEOF
9152 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9153 _ACEOF
9157 if test x$host = x$target; then
9158 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9159 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9160 if test "${ac_cv_lib_unwind_main+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 ac_check_lib_save_LIBS=$LIBS
9164 LIBS="-lunwind $LIBS"
9165 cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h. */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9174 main ()
9176 main ();
9178 return 0;
9180 _ACEOF
9181 rm -f conftest.$ac_objext conftest$ac_exeext
9182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9183 (eval $ac_link) 2>conftest.er1
9184 ac_status=$?
9185 grep -v '^ *+' conftest.er1 >conftest.err
9186 rm -f conftest.er1
9187 cat conftest.err >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } &&
9190 { ac_try='test -z "$ac_c_werror_flag"
9191 || test ! -s conftest.err'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 (eval $ac_try) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; } &&
9197 { ac_try='test -s conftest$ac_exeext'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
9203 ac_cv_lib_unwind_main=yes
9204 else
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9208 ac_cv_lib_unwind_main=no
9210 rm -f conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212 LIBS=$ac_check_lib_save_LIBS
9214 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9215 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9216 if test $ac_cv_lib_unwind_main = yes; then
9217 use_libunwind_default=yes
9218 else
9219 use_libunwind_default=no
9222 else
9223 use_libunwind_default=no
9225 # Use libunwind based exception handling.
9226 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9227 if test "${enable_libunwind_exceptions+set}" = set; then
9228 enableval="$enable_libunwind_exceptions"
9229 use_libunwind_exceptions=$enableval
9230 else
9231 use_libunwind_exceptions=$use_libunwind_default
9233 if test x"$use_libunwind_exceptions" = xyes; then
9235 cat >>confdefs.h <<\_ACEOF
9236 #define USE_LIBUNWIND_EXCEPTIONS 1
9237 _ACEOF
9241 # --------------------------------------------------------
9242 # Build, host, and target specific configuration fragments
9243 # --------------------------------------------------------
9245 # Collect build-machine-specific information.
9246 . ${srcdir}/config.build
9248 # Collect host-machine-specific information.
9249 . ${srcdir}/config.host
9251 target_gtfiles=
9253 # Collect target-machine-specific information.
9254 . ${srcdir}/config.gcc
9256 extra_objs="${host_extra_objs} ${extra_objs}"
9257 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9259 # Default the target-machine variables that were not explicitly set.
9260 if test x"$tm_file" = x
9261 then tm_file=$cpu_type/$cpu_type.h; fi
9263 if test x"$extra_headers" = x
9264 then extra_headers=; fi
9266 if test x$md_file = x
9267 then md_file=$cpu_type/$cpu_type.md; fi
9269 if test x$out_file = x
9270 then out_file=$cpu_type/$cpu_type.c; fi
9272 if test x"$tmake_file" = x
9273 then tmake_file=$cpu_type/t-$cpu_type
9276 if test x"$dwarf2" = xyes
9277 then tm_file="$tm_file tm-dwarf2.h"
9280 # Say what files are being used for the output code and MD file.
9281 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9282 echo "Using \`$srcdir/config/$md_file' as machine description file."
9284 # If any of the xm_file variables contain nonexistent files, warn
9285 # about them and drop them.
9288 for x in $build_xm_file; do
9289 if test -f $srcdir/config/$x
9290 then bx="$bx $x"
9291 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9292 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9294 done
9295 build_xm_file="$bx"
9298 for x in $host_xm_file; do
9299 if test -f $srcdir/config/$x
9300 then hx="$hx $x"
9301 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9302 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9304 done
9305 host_xm_file="$hx"
9308 for x in $xm_file; do
9309 if test -f $srcdir/config/$x
9310 then tx="$tx $x"
9311 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9312 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9314 done
9315 xm_file="$tx"
9317 count=a
9318 for f in $tm_file; do
9319 count=${count}x
9320 done
9321 if test $count = ax; then
9322 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9323 else
9324 echo "Using the following target machine macro files:"
9325 for f in $tm_file; do
9326 echo " $srcdir/config/$f"
9327 done
9330 if test x$need_64bit_hwint = xyes; then
9332 cat >>confdefs.h <<\_ACEOF
9333 #define NEED_64BIT_HOST_WIDE_INT 1
9334 _ACEOF
9338 count=a
9339 for f in $host_xm_file; do
9340 count=${count}x
9341 done
9342 if test $count = a; then
9344 elif test $count = ax; then
9345 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9346 else
9347 echo "Using the following host machine macro files:"
9348 for f in $host_xm_file; do
9349 echo " $srcdir/config/$f"
9350 done
9352 echo "Using ${out_host_hook_obj} for host machine hooks."
9354 if test "$host_xm_file" != "$build_xm_file"; then
9355 count=a
9356 for f in $build_xm_file; do
9357 count=${count}x
9358 done
9359 if test $count = a; then
9361 elif test $count = ax; then
9362 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9363 else
9364 echo "Using the following build machine macro files:"
9365 for f in $build_xm_file; do
9366 echo " $srcdir/config/$f"
9367 done
9371 # ---------
9372 # Threading
9373 # ---------
9375 # Check if a valid thread package
9376 case ${enable_threads} in
9377 "" | no)
9378 # No threads
9379 target_thread_file='single'
9381 yes)
9382 # default
9383 target_thread_file='single'
9385 aix | dce | gnat | irix | posix | rtems | \
9386 single | solaris | vxworks | win32 )
9387 target_thread_file=${enable_threads}
9390 echo "${enable_threads} is an unknown thread package" 1>&2
9391 exit 1
9393 esac
9395 if test x${thread_file} = x; then
9396 # No thread file set by target-specific clauses in config.gcc,
9397 # so use file chosen by default logic above
9398 thread_file=${target_thread_file}
9401 # Make gthr-default.h if we have a thread file.
9402 gthread_flags=
9403 if test $thread_file != single; then
9404 rm -f gthr-default.h
9405 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9406 gthread_flags=-DHAVE_GTHR_DEFAULT
9410 # --------
9411 # UNSORTED
9412 # --------
9414 if test x$enable___cxa_atexit = xyes || \
9415 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9416 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9417 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9418 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9429 #define __cxa_atexit innocuous___cxa_atexit
9431 /* System header to define __stub macros and hopefully few prototypes,
9432 which can conflict with char __cxa_atexit (); below.
9433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9434 <limits.h> exists even on freestanding compilers. */
9436 #ifdef __STDC__
9437 # include <limits.h>
9438 #else
9439 # include <assert.h>
9440 #endif
9442 #undef __cxa_atexit
9444 /* Override any gcc2 internal prototype to avoid an error. */
9445 #ifdef __cplusplus
9446 extern "C"
9448 #endif
9449 /* We use char because int might match the return type of a gcc2
9450 builtin and then its argument prototype would still apply. */
9451 char __cxa_atexit ();
9452 /* The GNU C library defines this for functions which it implements
9453 to always fail with ENOSYS. Some functions are actually named
9454 something starting with __ and the normal name is an alias. */
9455 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9456 choke me
9457 #else
9458 char (*f) () = __cxa_atexit;
9459 #endif
9460 #ifdef __cplusplus
9462 #endif
9465 main ()
9467 return f != __cxa_atexit;
9469 return 0;
9471 _ACEOF
9472 rm -f conftest.$ac_objext conftest$ac_exeext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474 (eval $ac_link) 2>conftest.er1
9475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
9481 { ac_try='test -z "$ac_c_werror_flag"
9482 || test ! -s conftest.err'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest$ac_exeext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
9494 ac_cv_func___cxa_atexit=yes
9495 else
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9499 ac_cv_func___cxa_atexit=no
9501 rm -f conftest.err conftest.$ac_objext \
9502 conftest$ac_exeext conftest.$ac_ext
9504 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9505 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9506 if test $ac_cv_func___cxa_atexit = yes; then
9508 cat >>confdefs.h <<\_ACEOF
9509 #define DEFAULT_USE_CXA_ATEXIT 1
9510 _ACEOF
9512 else
9513 echo "__cxa_atexit can't be enabled on this target"
9518 # Look for a file containing extra machine modes.
9519 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9520 extra_modes_file='$(srcdir)'/config/${extra_modes}
9523 cat >>confdefs.h <<_ACEOF
9524 #define EXTRA_MODES_FILE "config/$extra_modes"
9525 _ACEOF
9529 # auto-host.h is the file containing items generated by autoconf and is
9530 # the first file included by config.h.
9531 # If host=build, it is correct to have bconfig include auto-host.h
9532 # as well. If host!=build, we are in error and need to do more
9533 # work to find out the build config parameters.
9534 if test x$host = x$build
9535 then
9536 build_auto=auto-host.h
9537 FORBUILD=..
9538 else
9539 # We create a subdir, then run autoconf in the subdir.
9540 # To prevent recursion we set host and build for the new
9541 # invocation of configure to the build for this invocation
9542 # of configure.
9543 tempdir=build.$$
9544 rm -rf $tempdir
9545 mkdir $tempdir
9546 cd $tempdir
9547 case ${srcdir} in
9548 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9549 *) realsrcdir=../${srcdir};;
9550 esac
9551 saved_CFLAGS="${CFLAGS}"
9552 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9553 ${realsrcdir}/configure \
9554 --enable-languages=${enable_languages-all} \
9555 --target=$target_alias --host=$build_alias --build=$build_alias
9556 CFLAGS="${saved_CFLAGS}"
9558 # We just finished tests for the build machine, so rename
9559 # the file auto-build.h in the gcc directory.
9560 mv auto-host.h ../auto-build.h
9561 cd ..
9562 rm -rf $tempdir
9563 build_auto=auto-build.h
9564 FORBUILD=../${build_subdir}
9568 tm_file="${tm_file} defaults.h"
9569 tm_p_file="${tm_p_file} tm-preds.h"
9570 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9571 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9572 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9573 # put this back in temporarily.
9574 xm_file="ansidecl.h ${xm_file}"
9576 # --------
9577 # UNSORTED
9578 # --------
9580 # Get the version trigger filename from the toplevel
9581 if test "${with_gcc_version_trigger+set}" = set; then
9582 gcc_version_trigger=$with_gcc_version_trigger
9583 else
9584 gcc_version_trigger=${srcdir}/version.c
9586 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9587 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9589 # Compile in configure arguments.
9590 if test -f configargs.h ; then
9591 # Being re-configured.
9592 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9593 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9594 else
9595 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9598 # Double all backslashes and backslash all quotes to turn
9599 # gcc_config_arguments into a C string.
9600 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9601 $gcc_config_arguments
9603 gcc_config_arguments_str=`cat conftest.out`
9604 rm -f conftest.out
9606 cat > configargs.h <<EOF
9607 /* Generated automatically. */
9608 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9609 static const char thread_model[] = "$thread_file";
9611 static const struct {
9612 const char *name, *value;
9613 } configure_default_options[] = $configure_default_options;
9616 # Internationalization
9617 PACKAGE=gcc
9618 VERSION="$gcc_version"
9622 # If we haven't got the data from the intl directory,
9623 # assume NLS is disabled.
9624 USE_NLS=no
9625 LIBINTL=
9626 LIBINTL_DEP=
9627 INCINTL=
9628 XGETTEXT=
9629 GMSGFMT=
9630 POSUB=
9631 if test -f ../intl/config.intl; then
9632 . ../intl/config.intl
9634 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9635 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9636 if test x"$USE_NLS" != xyes; then
9637 echo "$as_me:$LINENO: result: no" >&5
9638 echo "${ECHO_T}no" >&6
9639 else
9640 echo "$as_me:$LINENO: result: yes" >&5
9641 echo "${ECHO_T}yes" >&6
9643 cat >>confdefs.h <<\_ACEOF
9644 #define ENABLE_NLS 1
9645 _ACEOF
9648 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9649 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9650 # Look for .po and .gmo files in the source directory.
9651 CATALOGS=
9652 XLINGUAS=
9653 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9654 # If there aren't any .gmo files the shell will give us the
9655 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9656 # weeded out.
9657 case "$cat" in *\**)
9658 continue;;
9659 esac
9660 # The quadruple backslash is collapsed to a double backslash
9661 # by the backticks, then collapsed again by the double quotes,
9662 # leaving us with one backslash in the sed expression (right
9663 # before the dot that mustn't act as a wildcard).
9664 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9665 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9666 # The user is allowed to set LINGUAS to a list of languages to
9667 # install catalogs for. If it's empty that means "all of them."
9668 if test "x$LINGUAS" = x; then
9669 CATALOGS="$CATALOGS $cat"
9670 XLINGUAS="$XLINGUAS $lang"
9671 else
9672 case "$LINGUAS" in *$lang*)
9673 CATALOGS="$CATALOGS $cat"
9674 XLINGUAS="$XLINGUAS $lang"
9676 esac
9678 done
9679 LINGUAS="$XLINGUAS"
9680 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9681 echo "${ECHO_T}$LINGUAS" >&6
9684 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9685 # -liconv on the link line twice.
9686 case "$LIBINTL" in *$LIBICONV*)
9687 LIBICONV= ;;
9688 esac
9690 # Windows32 Registry support for specifying GCC installation paths.
9691 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9692 if test "${enable_win32_registry+set}" = set; then
9693 enableval="$enable_win32_registry"
9696 case $host_os in
9697 win32 | pe | cygwin* | mingw32* | uwin*)
9698 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9699 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9700 if test "x$enable_win32_registry" != xno; then
9702 cat >>confdefs.h <<\_ACEOF
9703 #define ENABLE_WIN32_REGISTRY 1
9704 _ACEOF
9706 echo "$as_me:$LINENO: result: yes" >&5
9707 echo "${ECHO_T}yes" >&6
9708 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9709 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9710 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 ac_func_search_save_LIBS=$LIBS
9714 ac_cv_search_RegOpenKeyExA=no
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9722 /* Override any gcc2 internal prototype to avoid an error. */
9723 #ifdef __cplusplus
9724 extern "C"
9725 #endif
9726 /* We use char because int might match the return type of a gcc2
9727 builtin and then its argument prototype would still apply. */
9728 char RegOpenKeyExA ();
9730 main ()
9732 RegOpenKeyExA ();
9734 return 0;
9736 _ACEOF
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9739 (eval $ac_link) 2>conftest.er1
9740 ac_status=$?
9741 grep -v '^ *+' conftest.er1 >conftest.err
9742 rm -f conftest.er1
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -z "$ac_c_werror_flag"
9747 || test ! -s conftest.err'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } &&
9753 { ac_try='test -s conftest$ac_exeext'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; }; then
9759 ac_cv_search_RegOpenKeyExA="none required"
9760 else
9761 echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9765 rm -f conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9768 for ac_lib in advapi32; do
9769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h. */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9777 /* Override any gcc2 internal prototype to avoid an error. */
9778 #ifdef __cplusplus
9779 extern "C"
9780 #endif
9781 /* We use char because int might match the return type of a gcc2
9782 builtin and then its argument prototype would still apply. */
9783 char RegOpenKeyExA ();
9785 main ()
9787 RegOpenKeyExA ();
9789 return 0;
9791 _ACEOF
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9794 (eval $ac_link) 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -z "$ac_c_werror_flag"
9802 || test ! -s conftest.err'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 (eval $ac_try) 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; } &&
9808 { ac_try='test -s conftest$ac_exeext'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 (eval $ac_try) 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9815 break
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9821 rm -f conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 done
9825 LIBS=$ac_func_search_save_LIBS
9827 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9828 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9829 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9830 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9834 else
9835 echo "$as_me:$LINENO: result: no" >&5
9836 echo "${ECHO_T}no" >&6
9839 # Check if user specified a different registry key.
9840 case "x${enable_win32_registry}" in
9841 x | xyes)
9842 # default.
9843 gcc_cv_win32_registry_key="$VERSION"
9845 xno)
9846 # no registry lookup.
9847 gcc_cv_win32_registry_key=''
9850 # user-specified key.
9851 gcc_cv_win32_registry_key="$enable_win32_registry"
9853 esac
9855 if test "x$enable_win32_registry" != xno; then
9856 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9857 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9859 cat >>confdefs.h <<_ACEOF
9860 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9861 _ACEOF
9863 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9864 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9867 esac
9869 # Get an absolute path to the GCC top-level source directory
9870 holddir=`${PWDCMD-pwd}`
9871 cd $srcdir
9872 topdir=`${PWDCMD-pwd}`
9873 cd $holddir
9875 # Conditionalize the makefile for this host machine.
9876 xmake_file=
9877 for f in ${host_xmake_file}
9879 if test -f ${srcdir}/config/$f
9880 then
9881 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9883 done
9885 # Conditionalize the makefile for this target machine.
9886 tmake_file_=
9887 for f in ${tmake_file}
9889 if test -f ${srcdir}/config/$f
9890 then
9891 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9893 done
9894 tmake_file="${tmake_file_}"
9896 symbolic_link='ln -s'
9898 # If the host doesn't support symlinks, modify CC in
9899 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9900 # Otherwise, we can use "CC=$(CC)".
9901 rm -f symtest.tem
9902 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9903 then
9904 cc_set_by_configure="\$(CC)"
9905 quoted_cc_set_by_configure="\$(CC)"
9906 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9907 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9908 else
9909 rm -f symtest.tem
9910 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9911 then
9912 symbolic_link="cp -p"
9913 else
9914 symbolic_link="cp"
9916 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9917 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9918 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9919 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9921 rm -f symtest.tem
9923 out_object_file=`basename $out_file .c`.o
9925 tm_file_list=
9926 tm_include_list=
9927 for f in $tm_file; do
9928 case $f in
9929 defaults.h )
9930 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9931 tm_include_list="${tm_include_list} $f"
9934 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9935 tm_include_list="${tm_include_list} config/$f"
9937 esac
9938 done
9940 tm_p_file_list=
9941 tm_p_include_list=
9942 for f in $tm_p_file; do
9943 case $f in
9944 tm-preds.h )
9945 tm_p_file_list="${tm_p_file_list} $f"
9946 tm_p_include_list="${tm_p_include_list} $f"
9949 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9950 tm_p_include_list="${tm_p_include_list} config/$f"
9951 esac
9952 done
9954 xm_file_list=
9955 xm_include_list=
9956 for f in $xm_file; do
9957 case $f in
9958 ansidecl.h )
9959 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9960 xm_include_list="${xm_include_list} $f"
9962 auto-host.h )
9963 xm_file_list="${xm_file_list} $f"
9964 xm_include_list="${xm_include_list} $f"
9967 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9968 xm_include_list="${xm_include_list} config/$f"
9970 esac
9971 done
9973 host_xm_file_list=
9974 host_xm_include_list=
9975 for f in $host_xm_file; do
9976 case $f in
9977 ansidecl.h )
9978 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9979 host_xm_include_list="${host_xm_include_list} $f"
9981 auto-host.h )
9982 host_xm_file_list="${host_xm_file_list} $f"
9983 host_xm_include_list="${host_xm_include_list} $f"
9986 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9987 host_xm_include_list="${host_xm_include_list} config/$f"
9989 esac
9990 done
9992 build_xm_file_list=
9993 for f in $build_xm_file; do
9994 case $f in
9995 ansidecl.h )
9996 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9997 build_xm_include_list="${build_xm_include_list} $f"
9999 auto-build.h | auto-host.h )
10000 build_xm_file_list="${build_xm_file_list} $f"
10001 build_xm_include_list="${build_xm_include_list} $f"
10004 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10005 build_xm_include_list="${build_xm_include_list} config/$f"
10007 esac
10008 done
10010 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
10011 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10012 CROSS=
10013 ALL=all.internal
10014 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10015 if test x$host != x$target
10016 then
10017 CROSS="-DCROSS_COMPILE"
10018 ALL=all.cross
10019 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
10020 case "$host","$target" in
10021 # Darwin crosses can use the host system's libraries and headers,
10022 # because of the fat library support. Of course, it must be the
10023 # same version of Darwin on both sides. Allow the user to
10024 # just say --target=foo-darwin without a version number to mean
10025 # "the version on this system".
10026 *-*-darwin*,*-*-darwin*)
10027 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10028 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10029 if test $hostos = $targetos -o $targetos = darwin ; then
10030 CROSS=
10031 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10032 with_headers=yes
10036 i?86-*-*,x86_64-*-* \
10037 | powerpc*-*-*,powerpc64*-*-*)
10038 CROSS="$CROSS -DNATIVE_CROSS" ;;
10039 esac
10040 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10041 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
10042 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
10045 # If this is a cross-compiler that does not
10046 # have its own set of headers then define
10047 # inhibit_libc
10049 # If this is using newlib, without having the headers available now,
10050 # then define inhibit_libc in LIBGCC2_CFLAGS.
10051 # This prevents libgcc2 from containing any code which requires libc
10052 # support.
10053 inhibit_libc=
10054 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10055 test x$with_newlib = xyes ; } &&
10056 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10057 inhibit_libc=-Dinhibit_libc
10061 # When building gcc with a cross-compiler, we need to adjust things so
10062 # that the generator programs are still built with the native compiler.
10063 # Also, we cannot run fixincludes or fix-header.
10065 # These are the normal (build=host) settings:
10066 BUILD_PREFIX=
10067 BUILD_PREFIX_1=ignore-
10068 CC_FOR_BUILD='$(CC)'
10069 BUILD_CFLAGS='$(ALL_CFLAGS)'
10071 STMP_FIXINC=stmp-fixinc
10073 # Possibly disable fixproto, on a per-target basis.
10074 case ${use_fixproto} in
10076 STMP_FIXPROTO=
10078 yes)
10079 STMP_FIXPROTO=stmp-fixproto
10081 esac
10084 # And these apply if build != host, or we are generating coverage data
10085 if test x$build != x$host || test "x$coverage_flags" != x
10086 then
10087 BUILD_PREFIX=build-
10088 BUILD_PREFIX_1=build-
10089 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10091 if test "x$TARGET_SYSTEM_ROOT" = x; then
10092 STMP_FIXINC=
10093 STMP_FIXPROTO=
10097 # Expand extra_headers to include complete path.
10098 # This substitutes for lots of t-* files.
10099 extra_headers_list=
10100 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10101 for file in ${extra_headers} ; do
10102 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10103 done
10105 # Define collect2 in Makefile.
10106 case $host_can_use_collect2 in
10107 no) collect2= ;;
10108 *) collect2='collect2$(exeext)' ;;
10109 esac
10112 # Add a definition of USE_COLLECT2 if system wants one.
10113 case $use_collect2 in
10114 no) use_collect2= ;;
10115 "") ;;
10117 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10118 xm_defines="${xm_defines} USE_COLLECT2"
10119 case $host_can_use_collect2 in
10121 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10122 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10123 { (exit 1); exit 1; }; }
10125 esac
10127 esac
10129 # ---------------------------
10130 # Assembler & linker features
10131 # ---------------------------
10133 # Identify the assembler which will work hand-in-glove with the newly
10134 # built GCC, so that we can examine its features. This is the assembler
10135 # which will be driven by the driver program.
10137 # If build != host, and we aren't building gas in-tree, we identify a
10138 # build->target assembler and hope that it will have the same features
10139 # as the host->target assembler we'll be using.
10140 echo "$as_me:$LINENO: checking what assembler to use" >&5
10141 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10142 in_tree_gas=no
10143 gcc_cv_as=
10144 gcc_cv_gas_major_version=
10145 gcc_cv_gas_minor_version=
10146 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10147 if test -x "$DEFAULT_ASSEMBLER"; then
10148 gcc_cv_as="$DEFAULT_ASSEMBLER"
10149 elif test -x "$AS"; then
10150 gcc_cv_as="$AS"
10151 elif test -x as$host_exeext; then
10152 # Build using assembler in the current directory.
10153 gcc_cv_as=./as$host_exeext
10154 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10155 && test -f ../gas/Makefile; then
10156 # Single tree build which includes gas.
10157 in_tree_gas=yes
10158 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10159 for f in $gcc_cv_as_bfd_srcdir/configure \
10160 $gcc_cv_as_gas_srcdir/configure \
10161 $gcc_cv_as_gas_srcdir/configure.in \
10162 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10163 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10164 if test x$gcc_cv_gas_version != x; then
10165 break
10167 done
10168 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10169 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10170 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10171 case $gcc_cv_gas_patch_version in
10172 "") gcc_cv_gas_patch_version="0" ;;
10173 esac
10174 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10175 + $gcc_cv_gas_minor_version \) \* 1000 \
10176 + $gcc_cv_gas_patch_version`
10178 rm -f as$host_exeext
10179 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10180 in_tree_gas_is_elf=no
10181 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10182 || (grep 'obj_format = multi' ../gas/Makefile \
10183 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10184 then
10185 in_tree_gas_is_elf=yes
10189 if test "x$gcc_cv_as" = x; then
10190 # Search the same directories that the installed compiler will
10191 # search. Else we may find the wrong assembler and lose. If we
10192 # do not find a suitable assembler binary, then try the user's
10193 # path.
10195 # Also note we have to check MD_EXEC_PREFIX before checking the
10196 # user's path. Unfortunately, there is no good way to get at the
10197 # value of MD_EXEC_PREFIX here. So we do a brute force search
10198 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10199 # to be fixed as part of the make/configure rewrite too.
10201 if test "x$exec_prefix" = xNONE; then
10202 if test "x$prefix" = xNONE; then
10203 test_prefix=/usr/local
10204 else
10205 test_prefix=$prefix
10207 else
10208 test_prefix=$exec_prefix
10211 # If the loop below does not find an assembler, then use whatever
10212 # one we can find in the users's path.
10213 # user's path.
10214 if test "x$program_prefix" != xNONE; then
10215 gcc_cv_as=${program_prefix}as$host_exeext
10216 else
10217 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10220 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10221 $test_prefix/libexec/gcc/$target_noncanonical \
10222 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10223 /usr/lib/gcc/$target_noncanonical \
10224 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10225 $test_prefix/$target_noncanonical/bin"
10227 if test x$host = x$target; then
10228 test_dirs="$test_dirs \
10229 /usr/libexec \
10230 /usr/ccs/gcc \
10231 /usr/ccs/bin \
10232 /udk/usr/ccs/bin \
10233 /bsd43/usr/lib/cmplrs/cc \
10234 /usr/cross64/usr/bin \
10235 /usr/lib/cmplrs/cc \
10236 /sysv/usr/lib/cmplrs/cc \
10237 /svr4/usr/lib/cmplrs/cc \
10238 /usr/bin"
10241 for dir in $test_dirs; do
10242 if test -x $dir/as$host_exeext; then
10243 gcc_cv_as=$dir/as$host_exeext
10244 break;
10246 done
10248 case $in_tree_gas in
10249 yes)
10250 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10251 echo "${ECHO_T}\"newly built gas\"" >&6
10254 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10255 echo "${ECHO_T}$gcc_cv_as" >&6
10257 esac
10259 # Identify the linker which will work hand-in-glove with the newly
10260 # built GCC, so that we can examine its features. This is the linker
10261 # which will be driven by the driver program.
10263 # If build != host, and we aren't building gas in-tree, we identify a
10264 # build->target linker and hope that it will have the same features
10265 # as the host->target linker we'll be using.
10266 echo "$as_me:$LINENO: checking what linker to use" >&5
10267 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10268 in_tree_ld=no
10269 gcc_cv_ld=
10270 gcc_cv_gld_major_version=
10271 gcc_cv_gld_minor_version=
10272 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10273 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10274 if test -x "$DEFAULT_LINKER"; then
10275 gcc_cv_ld="$DEFAULT_LINKER"
10276 elif test -x "$LD_FOR_TARGET"; then
10277 gcc_cv_ld="$LD_FOR_TARGET"
10278 elif test -x "$LD" && test x$host = x$target; then
10279 gcc_cv_ld="$LD"
10280 elif test -x collect-ld$host_exeext; then
10281 # Build using linker in the current directory.
10282 gcc_cv_ld=./collect-ld$host_exeext
10283 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10284 && test -f ../ld/Makefile; then
10285 # Single tree build which includes ld.
10286 in_tree_ld=yes
10287 in_tree_ld_is_elf=no
10288 if (grep 'EMUL = .*elf' ../ld/Makefile \
10289 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10290 in_tree_ld_is_elf=yes
10292 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
10294 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10295 if test x$gcc_cv_gld_version != x; then
10296 break
10298 done
10299 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10300 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10301 rm -f collect-ld$host_exeext
10302 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10303 2>/dev/null
10306 if test "x$gcc_cv_ld" = x; then
10307 # Search the same directories that the installed compiler will
10308 # search. Else we may find the wrong linker and lose. If we
10309 # do not find a suitable linker binary, then try the user's
10310 # path.
10312 # Also note we have to check MD_EXEC_PREFIX before checking the
10313 # user's path. Unfortunately, there is no good way to get at the
10314 # value of MD_EXEC_PREFIX here. So we do a brute force search
10315 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10316 # to be fixed as part of the make/configure rewrite too.
10318 if test "x$exec_prefix" = xNONE; then
10319 if test "x$prefix" = xNONE; then
10320 test_prefix=/usr/local
10321 else
10322 test_prefix=$prefix
10324 else
10325 test_prefix=$exec_prefix
10328 # If the loop below does not find an linker, then use whatever
10329 # one we can find in the users's path.
10330 # user's path.
10331 if test "x$program_prefix" != xNONE; then
10332 gcc_cv_ld=${program_prefix}ld$host_exeext
10333 else
10334 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10337 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10338 $test_prefix/libexec/gcc/$target_noncanonical \
10339 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10340 /usr/lib/gcc/$target_noncanonical \
10341 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10342 $test_prefix/$target_noncanonical/bin"
10344 if test x$host = x$target; then
10345 test_dirs="$test_dirs \
10346 /usr/libexec \
10347 /usr/ccs/gcc \
10348 /usr/ccs/bin \
10349 /udk/usr/ccs/bin \
10350 /bsd43/usr/lib/cmplrs/cc \
10351 /usr/cross64/usr/bin \
10352 /usr/lib/cmplrs/cc \
10353 /sysv/usr/lib/cmplrs/cc \
10354 /svr4/usr/lib/cmplrs/cc \
10355 /usr/bin"
10358 for dir in $test_dirs; do
10359 if test -x $dir/ld$host_exeext; then
10360 gcc_cv_ld=$dir/ld$host_exeext
10361 break;
10363 done
10365 case $in_tree_ld in
10366 yes)
10367 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10368 echo "${ECHO_T}\"newly built ld\"" >&6
10371 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10372 echo "${ECHO_T}$gcc_cv_ld" >&6
10374 esac
10376 # Figure out what nm we will be using.
10377 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10378 echo "$as_me:$LINENO: checking what nm to use" >&5
10379 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10380 in_tree_nm=no
10381 if test -x nm$host_exeext; then
10382 gcc_cv_nm=./nm$host_exeext
10383 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10384 && test -f ../binutils/Makefile; then
10385 # Single tree build which includes binutils.
10386 in_tree_nm=yes
10387 gcc_cv_nm=./nm$host_exeext
10388 rm -f nm$host_exeext
10389 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10390 elif test "x$program_prefix" != xNONE; then
10391 gcc_cv_nm=${program_prefix}nm$host_exeext
10392 else
10393 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10395 case $in_tree_nm in
10396 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10397 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10398 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10399 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10400 esac
10402 # Figure out what objdump we will be using.
10403 echo "$as_me:$LINENO: checking what objdump to use" >&5
10404 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10405 in_tree_objdump=no
10406 if test -x objdump$host_exeext; then
10407 gcc_cv_objdump=./objdump$host_exeext
10408 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10409 && test -f ../binutils/Makefile; then
10410 # Single tree build which includes binutils.
10411 in_tree_objdump=yes
10412 gcc_cv_objdump=./objdump$host_exeext
10413 rm -f objdump$host_exeext
10414 $symbolic_link ../binutils/objdump$host_exeext \
10415 objdump$host_exeext 2>/dev/null
10416 elif test "x$program_prefix" != xNONE; then
10417 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10418 else
10419 gcc_cv_objdump=`echo objdump | \
10420 sed "${program_transform_name}"`$host_exeext
10422 case $in_tree_objdump in
10423 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10424 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10425 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10426 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10427 esac
10429 # Figure out what assembler alignment features are present.
10430 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10431 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10432 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 gcc_cv_as_balign_and_p2align=no
10436 if test $in_tree_gas = yes; then
10437 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10438 then gcc_cv_as_balign_and_p2align=yes
10440 elif test x$gcc_cv_as != x; then
10441 echo '.balign 4
10442 .p2align 2' > conftest.s
10443 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }
10449 then
10450 gcc_cv_as_balign_and_p2align=yes
10451 else
10452 echo "configure: failed program was" >&5
10453 cat conftest.s >&5
10455 rm -f conftest.o conftest.s
10458 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10459 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10460 if test $gcc_cv_as_balign_and_p2align = yes; then
10462 cat >>confdefs.h <<\_ACEOF
10463 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10464 _ACEOF
10468 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10469 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10470 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473 gcc_cv_as_max_skip_p2align=no
10474 if test $in_tree_gas = yes; then
10475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10476 then gcc_cv_as_max_skip_p2align=yes
10478 elif test x$gcc_cv_as != x; then
10479 echo '.p2align 4,,7' > conftest.s
10480 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }
10486 then
10487 gcc_cv_as_max_skip_p2align=yes
10488 else
10489 echo "configure: failed program was" >&5
10490 cat conftest.s >&5
10492 rm -f conftest.o conftest.s
10495 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10496 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10497 if test $gcc_cv_as_max_skip_p2align = yes; then
10499 cat >>confdefs.h <<\_ACEOF
10500 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10501 _ACEOF
10505 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10506 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10507 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510 gcc_cv_as_subsection_m1=no
10511 if test $in_tree_gas = yes; then
10512 if test $in_tree_gas_is_elf = yes \
10513 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10514 then gcc_cv_as_subsection_m1=yes
10516 elif test x$gcc_cv_as != x; then
10517 echo 'conftest_label1: .word 0
10518 .subsection -1
10519 conftest_label2: .word 0
10520 .previous' > conftest.s
10521 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }
10527 then
10528 if test x$gcc_cv_nm != x; then
10529 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10530 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10531 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10532 then :
10533 else gcc_cv_as_subsection_m1=yes
10535 rm -f conftest.nm1 conftest.nm2
10537 else
10538 echo "configure: failed program was" >&5
10539 cat conftest.s >&5
10541 rm -f conftest.o conftest.s
10544 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10545 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10546 if test $gcc_cv_as_subsection_m1 = yes; then
10548 cat >>confdefs.h <<\_ACEOF
10549 #define HAVE_GAS_SUBSECTION_ORDERING 1
10550 _ACEOF
10554 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10555 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10556 if test "${gcc_cv_as_weak+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559 gcc_cv_as_weak=no
10560 if test $in_tree_gas = yes; then
10561 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10562 then gcc_cv_as_weak=yes
10564 elif test x$gcc_cv_as != x; then
10565 echo ' .weak foobar' > conftest.s
10566 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }
10572 then
10573 gcc_cv_as_weak=yes
10574 else
10575 echo "configure: failed program was" >&5
10576 cat conftest.s >&5
10578 rm -f conftest.o conftest.s
10581 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10582 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10583 if test $gcc_cv_as_weak = yes; then
10585 cat >>confdefs.h <<\_ACEOF
10586 #define HAVE_GAS_WEAK 1
10587 _ACEOF
10591 # .hidden needs to be supported in both the assembler and the linker,
10592 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10593 # This is irritatingly difficult to feature test for; we have to check the
10594 # date string after the version number. If we've got an in-tree
10595 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10596 # to be safe.
10597 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10598 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10599 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10600 if test "${gcc_cv_as_hidden+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603 gcc_cv_as_hidden=no
10604 if test $in_tree_gas = yes; then
10605 if test $in_tree_gas_is_elf = yes \
10606 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10607 then gcc_cv_as_hidden=yes
10609 elif test x$gcc_cv_as != x; then
10610 echo ' .hidden foobar
10611 foobar:' > conftest.s
10612 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }
10618 then
10619 gcc_cv_as_hidden=yes
10620 else
10621 echo "configure: failed program was" >&5
10622 cat conftest.s >&5
10624 rm -f conftest.o conftest.s
10627 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10628 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10631 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10632 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10633 if test "${gcc_cv_ld_hidden+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636 if test $in_tree_ld = yes ; then
10637 gcc_cv_ld_hidden=no
10638 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 \
10639 && test $in_tree_ld_is_elf = yes; then
10640 gcc_cv_ld_hidden=yes
10642 else
10643 gcc_cv_ld_hidden=yes
10644 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10645 if echo "$ld_ver" | grep GNU > /dev/null; then
10646 ld_vers=`echo $ld_ver | sed -n \
10647 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10648 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10649 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10650 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10651 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10652 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10653 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'`
10654 if test 0"$ld_date" -lt 20020404; then
10655 if test -n "$ld_date"; then
10656 # If there was date string, but was earlier than 2002-04-04, fail
10657 gcc_cv_ld_hidden=no
10658 elif test -z "$ld_vers"; then
10659 # If there was no date string nor ld version number, something is wrong
10660 gcc_cv_ld_hidden=no
10661 else
10662 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10663 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10664 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10665 test -z "$ld_vers_patch" && ld_vers_patch=0
10666 if test "$ld_vers_major" -lt 2; then
10667 gcc_cv_ld_hidden=no
10668 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10669 gcc_cv_ld_hidden="no"
10670 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10671 gcc_cv_ld_hidden=no
10675 else
10676 case "${target}" in
10677 hppa64*-*-hpux* | ia64*-*-hpux*)
10678 gcc_cv_ld_hidden=yes
10681 gcc_cv_ld_hidden=no
10683 esac
10687 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10688 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10689 libgcc_visibility=no
10691 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10692 libgcc_visibility=yes
10694 cat >>confdefs.h <<\_ACEOF
10695 #define HAVE_GAS_HIDDEN 1
10696 _ACEOF
10700 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10701 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10702 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10703 if test "${gcc_cv_as_leb128+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706 gcc_cv_as_leb128=no
10707 if test $in_tree_gas = yes; then
10708 if test $in_tree_gas_is_elf = yes \
10709 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10710 then gcc_cv_as_leb128=yes
10712 elif test x$gcc_cv_as != x; then
10713 echo ' .data
10714 .uleb128 L2 - L1
10716 .uleb128 1280
10717 .sleb128 -1010
10718 L2:' > conftest.s
10719 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }
10725 then
10726 # GAS versions before 2.11 do not support uleb128,
10727 # despite appearing to.
10728 # ??? There exists an elf-specific test that will crash
10729 # the assembler. Perhaps it's better to figure out whether
10730 # arbitrary sections are supported and try the test.
10731 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10732 if echo "$as_ver" | grep GNU > /dev/null; then
10733 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10734 as_major=`echo $as_ver | sed 's/\..*//'`
10735 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10736 if test $as_major -eq 2 && test $as_minor -lt 11
10737 then :
10738 else gcc_cv_as_leb128=yes
10741 else
10742 echo "configure: failed program was" >&5
10743 cat conftest.s >&5
10745 rm -f conftest.o conftest.s
10748 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10749 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10750 if test $gcc_cv_as_leb128 = yes; then
10752 cat >>confdefs.h <<\_ACEOF
10753 #define HAVE_AS_LEB128 1
10754 _ACEOF
10758 # GAS versions up to and including 2.11.0 may mis-optimize
10759 # .eh_frame data.
10760 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10761 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10762 if test "${gcc_cv_as_eh_frame+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765 gcc_cv_as_eh_frame=no
10766 if test $in_tree_gas = yes; then
10767 if test $in_tree_gas_is_elf = yes \
10768 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10769 then gcc_cv_as_eh_frame=yes
10771 elif test x$gcc_cv_as != x; then
10772 echo ' .text
10773 .LFB1:
10774 .4byte 0
10775 .L1:
10776 .4byte 0
10777 .LFE1:
10778 .section .eh_frame,"aw",@progbits
10779 __FRAME_BEGIN__:
10780 .4byte .LECIE1-.LSCIE1
10781 .LSCIE1:
10782 .4byte 0x0
10783 .byte 0x1
10784 .ascii "z\0"
10785 .byte 0x1
10786 .byte 0x78
10787 .byte 0x1a
10788 .byte 0x0
10789 .byte 0x4
10790 .4byte 1
10791 .p2align 1
10792 .LECIE1:
10793 .LSFDE1:
10794 .4byte .LEFDE1-.LASFDE1
10795 .LASFDE1:
10796 .4byte .LASFDE1-__FRAME_BEGIN__
10797 .4byte .LFB1
10798 .4byte .LFE1-.LFB1
10799 .byte 0x4
10800 .4byte .LFE1-.LFB1
10801 .byte 0x4
10802 .4byte .L1-.LFB1
10803 .LEFDE1:' > conftest.s
10804 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }
10810 then
10811 cat > conftest.lit <<EOF
10812 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10813 0010 01000000 12000000 18000000 00000000 ................
10814 0020 08000000 04080000 0044 .........D
10816 cat > conftest.big <<EOF
10817 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10818 0010 00000001 00000012 00000018 00000000 ................
10819 0020 00000008 04000000 0844 .........D
10821 # If the assembler didn't choke, and we can objdump,
10822 # and we got the correct data, then succeed.
10823 if test x$gcc_cv_objdump != x \
10824 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10825 | tail -3 > conftest.got \
10826 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10827 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10828 then
10829 gcc_cv_as_eh_frame=yes
10830 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 gcc_cv_as_eh_frame=buggy
10837 else
10838 # Uh oh, what do we do now?
10839 gcc_cv_as_eh_frame=no
10841 else
10842 echo "configure: failed program was" >&5
10843 cat conftest.s >&5
10845 rm -f conftest.o conftest.s
10848 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10849 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10852 if test $gcc_cv_as_eh_frame = buggy; then
10854 cat >>confdefs.h <<\_ACEOF
10855 #define USE_AS_TRADITIONAL_FORMAT 1
10856 _ACEOF
10860 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10861 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10862 if test "${gcc_cv_as_shf_merge+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865 gcc_cv_as_shf_merge=no
10866 if test $in_tree_gas = yes; then
10867 if test $in_tree_gas_is_elf = yes \
10868 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10869 then gcc_cv_as_shf_merge=yes
10871 elif test x$gcc_cv_as != x; then
10872 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10873 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }
10879 then
10880 gcc_cv_as_shf_merge=yes
10881 else
10882 echo "configure: failed program was" >&5
10883 cat conftest.s >&5
10885 rm -f conftest.o conftest.s
10888 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10889 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10892 cat >>confdefs.h <<_ACEOF
10893 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10894 _ACEOF
10897 # Thread-local storage - the check is heavily parametrized.
10898 conftest_s=
10899 tls_first_major=
10900 tls_first_minor=
10901 tls_as_opt=
10902 case "$target" in
10903 alpha*-*-*)
10904 conftest_s='
10905 .section ".tdata","awT",@progbits
10906 foo: .long 25
10907 .text
10908 ldq $27,__tls_get_addr($29) !literal!1
10909 lda $16,foo($29) !tlsgd!1
10910 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10911 ldq $27,__tls_get_addr($29) !literal!2
10912 lda $16,foo($29) !tlsldm!2
10913 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10914 ldq $1,foo($29) !gotdtprel
10915 ldah $2,foo($29) !dtprelhi
10916 lda $3,foo($2) !dtprello
10917 lda $4,foo($29) !dtprel
10918 ldq $1,foo($29) !gottprel
10919 ldah $2,foo($29) !tprelhi
10920 lda $3,foo($2) !tprello
10921 lda $4,foo($29) !tprel'
10922 tls_first_major=2
10923 tls_first_minor=13
10924 tls_as_opt=--fatal-warnings
10926 i[34567]86-*-*)
10927 conftest_s='
10928 .section ".tdata","awT",@progbits
10929 foo: .long 25
10930 .text
10931 movl %gs:0, %eax
10932 leal foo@TLSGD(,%ebx,1), %eax
10933 leal foo@TLSLDM(%ebx), %eax
10934 leal foo@DTPOFF(%eax), %edx
10935 movl foo@GOTTPOFF(%ebx), %eax
10936 subl foo@GOTTPOFF(%ebx), %eax
10937 addl foo@GOTNTPOFF(%ebx), %eax
10938 movl foo@INDNTPOFF, %eax
10939 movl $foo@TPOFF, %eax
10940 subl $foo@TPOFF, %eax
10941 leal foo@NTPOFF(%ecx), %eax'
10942 tls_first_major=2
10943 tls_first_minor=14
10944 tls_as_opt=--fatal-warnings
10946 x86_64-*-*)
10947 conftest_s='
10948 .section ".tdata","awT",@progbits
10949 foo: .long 25
10950 .text
10951 movq %fs:0, %rax
10952 leaq foo@TLSGD(%rip), %rdi
10953 leaq foo@TLSLD(%rip), %rdi
10954 leaq foo@DTPOFF(%rax), %rdx
10955 movq foo@GOTTPOFF(%rip), %rax
10956 movq $foo@TPOFF, %rax'
10957 tls_first_major=2
10958 tls_first_minor=14
10959 tls_as_opt=--fatal-warnings
10961 ia64-*-*)
10962 conftest_s='
10963 .section ".tdata","awT",@progbits
10964 foo: data8 25
10965 .text
10966 addl r16 = @ltoff(@dtpmod(foo#)), gp
10967 addl r17 = @ltoff(@dtprel(foo#)), gp
10968 addl r18 = @ltoff(@tprel(foo#)), gp
10969 addl r19 = @dtprel(foo#), gp
10970 adds r21 = @dtprel(foo#), r13
10971 movl r23 = @dtprel(foo#)
10972 addl r20 = @tprel(foo#), gp
10973 adds r22 = @tprel(foo#), r13
10974 movl r24 = @tprel(foo#)'
10975 tls_first_major=2
10976 tls_first_minor=13
10977 tls_as_opt=--fatal-warnings
10979 powerpc-*-*)
10980 conftest_s='
10981 .section ".tdata","awT",@progbits
10982 .align 2
10983 ld0: .space 4
10984 ld1: .space 4
10985 x1: .space 4
10986 x2: .space 4
10987 x3: .space 4
10988 .text
10989 addi 3,31,ld0@got@tlsgd
10990 bl __tls_get_addr
10991 addi 3,31,x1@got@tlsld
10992 bl __tls_get_addr
10993 addi 9,3,x1@dtprel
10994 addis 9,3,x2@dtprel@ha
10995 addi 9,9,x2@dtprel@l
10996 lwz 9,x3@got@tprel(31)
10997 add 9,9,x@tls
10998 addi 9,2,x1@tprel
10999 addis 9,2,x2@tprel@ha
11000 addi 9,9,x2@tprel@l'
11001 tls_first_major=2
11002 tls_first_minor=14
11003 tls_as_opt="-a32 --fatal-warnings"
11005 powerpc64-*-*)
11006 conftest_s='
11007 .section ".tdata","awT",@progbits
11008 .align 3
11009 ld0: .space 8
11010 ld1: .space 8
11011 x1: .space 8
11012 x2: .space 8
11013 x3: .space 8
11014 .text
11015 addi 3,2,ld0@got@tlsgd
11016 bl .__tls_get_addr
11018 addi 3,2,ld1@toc
11019 bl .__tls_get_addr
11021 addi 3,2,x1@got@tlsld
11022 bl .__tls_get_addr
11024 addi 9,3,x1@dtprel
11025 bl .__tls_get_addr
11027 addis 9,3,x2@dtprel@ha
11028 addi 9,9,x2@dtprel@l
11029 bl .__tls_get_addr
11031 ld 9,x3@got@dtprel(2)
11032 add 9,9,3
11033 bl .__tls_get_addr
11034 nop'
11035 tls_first_major=2
11036 tls_first_minor=14
11037 tls_as_opt="-a64 --fatal-warnings"
11039 s390-*-*)
11040 conftest_s='
11041 .section ".tdata","awT",@progbits
11042 foo: .long 25
11043 .text
11044 .long foo@TLSGD
11045 .long foo@TLSLDM
11046 .long foo@DTPOFF
11047 .long foo@NTPOFF
11048 .long foo@GOTNTPOFF
11049 .long foo@INDNTPOFF
11050 l %r1,foo@GOTNTPOFF(%r12)
11051 l %r1,0(%r1):tls_load:foo
11052 bas %r14,0(%r1,%r13):tls_gdcall:foo
11053 bas %r14,0(%r1,%r13):tls_ldcall:foo'
11054 tls_first_major=2
11055 tls_first_minor=14
11056 tls_as_opt="-m31 --fatal-warnings"
11058 s390x-*-*)
11059 conftest_s='
11060 .section ".tdata","awT",@progbits
11061 foo: .long 25
11062 .text
11063 .quad foo@TLSGD
11064 .quad foo@TLSLDM
11065 .quad foo@DTPOFF
11066 .quad foo@NTPOFF
11067 .quad foo@GOTNTPOFF
11068 lg %r1,foo@GOTNTPOFF(%r12)
11069 larl %r1,foo@INDNTPOFF
11070 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
11071 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11072 tls_first_major=2
11073 tls_first_minor=14
11074 tls_as_opt="-m64 -Aesame --fatal-warnings"
11076 sh-*-* | sh[34]-*-*)
11077 conftest_s='
11078 .section ".tdata","awT",@progbits
11079 foo: .long 25
11080 .text
11081 .long foo@TLSGD
11082 .long foo@TLSLDM
11083 .long foo@DTPOFF
11084 .long foo@GOTTPOFF
11085 .long foo@TPOFF'
11086 tls_first_major=2
11087 tls_first_minor=13
11088 tls_as_opt=--fatal-warnings
11090 sparc*-*-*)
11091 case "$target" in
11092 sparc*-sun-solaris2.*)
11093 on_solaris=yes
11096 on_solaris=no
11098 esac
11099 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11100 conftest_s='
11101 .section ".tdata",#alloc,#write,#tls
11102 foo: .long 25
11103 .text
11104 sethi %tgd_hi22(foo), %o0
11105 add %o0, %tgd_lo10(foo), %o1
11106 add %l7, %o1, %o0, %tgd_add(foo)
11107 call __tls_get_addr, %tgd_call(foo)
11108 sethi %tldm_hi22(foo), %l1
11109 add %l1, %tldm_lo10(foo), %l2
11110 add %l7, %l2, %o0, %tldm_add(foo)
11111 call __tls_get_addr, %tldm_call(foo)
11112 sethi %tldo_hix22(foo), %l3
11113 xor %l3, %tldo_lox10(foo), %l4
11114 add %o0, %l4, %l5, %tldo_add(foo)
11115 sethi %tie_hi22(foo), %o3
11116 add %o3, %tie_lo10(foo), %o3
11117 ld [%l7 + %o3], %o2, %tie_ld(foo)
11118 add %g7, %o2, %o4, %tie_add(foo)
11119 sethi %tle_hix22(foo), %l1
11120 xor %l1, %tle_lox10(foo), %o5
11121 ld [%g7 + %o5], %o1'
11122 tls_first_major=0
11123 tls_first_minor=0
11124 else
11125 conftest_s='
11126 .section ".tdata","awT",@progbits
11127 foo: .long 25
11128 .text
11129 sethi %tgd_hi22(foo), %o0
11130 add %o0, %tgd_lo10(foo), %o1
11131 add %l7, %o1, %o0, %tgd_add(foo)
11132 call __tls_get_addr, %tgd_call(foo)
11133 sethi %tldm_hi22(foo), %l1
11134 add %l1, %tldm_lo10(foo), %l2
11135 add %l7, %l2, %o0, %tldm_add(foo)
11136 call __tls_get_addr, %tldm_call(foo)
11137 sethi %tldo_hix22(foo), %l3
11138 xor %l3, %tldo_lox10(foo), %l4
11139 add %o0, %l4, %l5, %tldo_add(foo)
11140 sethi %tie_hi22(foo), %o3
11141 add %o3, %tie_lo10(foo), %o3
11142 ld [%l7 + %o3], %o2, %tie_ld(foo)
11143 add %g7, %o2, %o4, %tie_add(foo)
11144 sethi %tle_hix22(foo), %l1
11145 xor %l1, %tle_lox10(foo), %o5
11146 ld [%g7 + %o5], %o1'
11147 tls_first_major=2
11148 tls_first_minor=14
11149 tls_as_opt="-32 --fatal-warnings"
11152 esac
11153 if test -z "$tls_first_major"; then
11154 : # If we don't have a check, assume no support.
11155 else
11156 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11157 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11158 if test "${gcc_cv_as_tls+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161 gcc_cv_as_tls=no
11162 if test $in_tree_gas = yes; then
11163 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11164 then gcc_cv_as_tls=yes
11166 elif test x$gcc_cv_as != x; then
11167 echo "$conftest_s" > conftest.s
11168 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }
11174 then
11175 gcc_cv_as_tls=yes
11176 else
11177 echo "configure: failed program was" >&5
11178 cat conftest.s >&5
11180 rm -f conftest.o conftest.s
11183 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11184 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11185 if test $gcc_cv_as_tls = yes; then
11187 cat >>confdefs.h <<\_ACEOF
11188 #define HAVE_AS_TLS 1
11189 _ACEOF
11194 # Target-specific assembler checks.
11196 case "$target" in
11197 # All TARGET_ABI_OSF targets.
11198 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11199 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11200 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11201 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204 gcc_cv_as_alpha_explicit_relocs=no
11205 if test $in_tree_gas = yes; then
11206 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11207 then gcc_cv_as_alpha_explicit_relocs=yes
11209 elif test x$gcc_cv_as != x; then
11210 echo ' .set nomacro
11211 .text
11212 extbl $3, $2, $3 !lituse_bytoff!1
11213 ldq $2, a($29) !literal!1
11214 ldq $4, b($29) !literal!2
11215 ldq_u $3, 0($2) !lituse_base!1
11216 ldq $27, f($29) !literal!5
11217 jsr $26, ($27), f !lituse_jsr!5
11218 ldah $29, 0($26) !gpdisp!3
11219 lda $0, c($29) !gprel
11220 ldah $1, d($29) !gprelhigh
11221 lda $1, d($1) !gprellow
11222 lda $29, 0($29) !gpdisp!3' > conftest.s
11223 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }
11229 then
11230 gcc_cv_as_alpha_explicit_relocs=yes
11231 else
11232 echo "configure: failed program was" >&5
11233 cat conftest.s >&5
11235 rm -f conftest.o conftest.s
11238 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11239 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11240 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11242 cat >>confdefs.h <<\_ACEOF
11243 #define HAVE_AS_EXPLICIT_RELOCS 1
11244 _ACEOF
11249 cris-*-*)
11250 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11251 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11252 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255 gcc_cv_as_cris_no_mul_bug=no
11256 if test $in_tree_gas = yes; then
11257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11258 then gcc_cv_as_cris_no_mul_bug=yes
11260 elif test x$gcc_cv_as != x; then
11261 echo '.text' > conftest.s
11262 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11265 ac_status=$?
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; }
11268 then
11269 gcc_cv_as_cris_no_mul_bug=yes
11270 else
11271 echo "configure: failed program was" >&5
11272 cat conftest.s >&5
11274 rm -f conftest.o conftest.s
11277 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11278 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11279 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11281 cat >>confdefs.h <<\_ACEOF
11282 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11283 _ACEOF
11288 sparc*-*-*)
11289 echo "$as_me:$LINENO: checking assembler for .register" >&5
11290 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11291 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294 gcc_cv_as_sparc_register_op=no
11295 if test x$gcc_cv_as != x; then
11296 echo '.register %g2, #scratch' > conftest.s
11297 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }
11303 then
11304 gcc_cv_as_sparc_register_op=yes
11305 else
11306 echo "configure: failed program was" >&5
11307 cat conftest.s >&5
11309 rm -f conftest.o conftest.s
11312 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11313 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11314 if test $gcc_cv_as_sparc_register_op = yes; then
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11318 _ACEOF
11322 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11323 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11324 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327 gcc_cv_as_sparc_relax=no
11328 if test x$gcc_cv_as != x; then
11329 echo '.text' > conftest.s
11330 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }
11336 then
11337 gcc_cv_as_sparc_relax=yes
11338 else
11339 echo "configure: failed program was" >&5
11340 cat conftest.s >&5
11342 rm -f conftest.o conftest.s
11345 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11346 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11347 if test $gcc_cv_as_sparc_relax = yes; then
11349 cat >>confdefs.h <<\_ACEOF
11350 #define HAVE_AS_RELAX_OPTION 1
11351 _ACEOF
11355 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11356 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11357 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360 gcc_cv_as_sparc_ua_pcrel=no
11361 if test x$gcc_cv_as != x; then
11362 echo '.text
11363 foo:
11365 .data
11366 .align 4
11367 .byte 0
11368 .uaword %r_disp32(foo)' > conftest.s
11369 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }
11375 then
11376 if test x$gcc_cv_ld != x \
11377 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11378 gcc_cv_as_sparc_ua_pcrel=yes
11380 rm -f conftest
11381 else
11382 echo "configure: failed program was" >&5
11383 cat conftest.s >&5
11385 rm -f conftest.o conftest.s
11388 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11389 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11390 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11392 cat >>confdefs.h <<\_ACEOF
11393 #define HAVE_AS_SPARC_UA_PCREL 1
11394 _ACEOF
11397 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11398 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11399 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402 gcc_cv_as_sparc_ua_pcrel_hidden=no
11403 if test x$gcc_cv_as != x; then
11404 echo '.data
11405 .align 4
11406 .byte 0x31
11407 .uaword %r_disp32(foo)
11408 .byte 0x32, 0x33, 0x34
11409 .global foo
11410 .hidden foo
11411 foo:
11412 .skip 4' > conftest.s
11413 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }
11419 then
11420 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11421 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11422 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11423 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11424 if $gcc_cv_objdump -R conftest 2> /dev/null \
11425 | grep 'DISP32' > /dev/null 2>&1; then
11427 else
11428 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11431 rm -f conftest
11432 else
11433 echo "configure: failed program was" >&5
11434 cat conftest.s >&5
11436 rm -f conftest.o conftest.s
11439 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11440 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11441 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11443 cat >>confdefs.h <<\_ACEOF
11444 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11445 _ACEOF
11449 fi # unaligned pcrel relocs
11451 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11452 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11453 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456 gcc_cv_as_sparc_offsetable_lo10=no
11457 if test x$gcc_cv_as != x; then
11458 echo '.text
11459 or %g1, %lo(ab) + 12, %g1
11460 or %g1, %lo(ab + 12), %g1' > conftest.s
11461 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }
11467 then
11468 if test x$gcc_cv_objdump != x \
11469 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11470 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11471 gcc_cv_as_offsetable_lo10=yes
11473 else
11474 echo "configure: failed program was" >&5
11475 cat conftest.s >&5
11477 rm -f conftest.o conftest.s
11480 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11481 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11482 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11484 cat >>confdefs.h <<\_ACEOF
11485 #define HAVE_AS_OFFSETABLE_LO10 1
11486 _ACEOF
11491 i[34567]86-*-* | x86_64-*-*)
11492 case $target_os in
11493 cygwin* | pe | mingw32*)
11494 # Used for DWARF 2 in PE
11495 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11496 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11497 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500 gcc_cv_as_ix86_pe_secrel32=no
11501 if test $in_tree_gas = yes; then
11502 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11503 then gcc_cv_as_ix86_pe_secrel32=yes
11505 elif test x$gcc_cv_as != x; then
11506 echo '.text
11507 foo: nop
11508 .data
11509 .secrel32 foo' > conftest.s
11510 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }
11516 then
11517 if test x$gcc_cv_ld != x \
11518 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11519 gcc_cv_as_ix86_pe_secrel32=yes
11521 rm -f conftest
11522 else
11523 echo "configure: failed program was" >&5
11524 cat conftest.s >&5
11526 rm -f conftest.o conftest.s
11529 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11530 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11531 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11533 cat >>confdefs.h <<\_ACEOF
11534 #define HAVE_GAS_PE_SECREL32_RELOC 1
11535 _ACEOF
11539 esac
11541 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11542 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11543 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 else
11546 gcc_cv_as_ix86_filds_fists=no
11547 if test $in_tree_gas = yes; then
11548 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11549 then gcc_cv_as_ix86_filds_fists=yes
11551 elif test x$gcc_cv_as != x; then
11552 echo 'filds mem; fists mem' > conftest.s
11553 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }
11559 then
11560 gcc_cv_as_ix86_filds_fists=yes
11561 else
11562 echo "configure: failed program was" >&5
11563 cat conftest.s >&5
11565 rm -f conftest.o conftest.s
11568 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11569 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11570 if test $gcc_cv_as_ix86_filds_fists = yes; then
11572 cat >>confdefs.h <<\_ACEOF
11573 #define HAVE_GAS_FILDS_FISTS 1
11574 _ACEOF
11578 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11579 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11580 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583 gcc_cv_as_ix86_cmov_sun_syntax=no
11584 if test x$gcc_cv_as != x; then
11585 echo 'cmovl.l %edx, %eax' > conftest.s
11586 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }
11592 then
11593 gcc_cv_as_ix86_cmov_sun_syntax=yes
11594 else
11595 echo "configure: failed program was" >&5
11596 cat conftest.s >&5
11598 rm -f conftest.o conftest.s
11601 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11602 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11603 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11605 cat >>confdefs.h <<\_ACEOF
11606 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11607 _ACEOF
11611 # This one is used unconditionally by i386.[ch]; it is to be defined
11612 # to 1 if the feature is present, 0 otherwise.
11613 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11614 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11615 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618 gcc_cv_as_ix86_gotoff_in_data=no
11619 if test $in_tree_gas = yes; then
11620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11621 then gcc_cv_as_ix86_gotoff_in_data=yes
11623 elif test x$gcc_cv_as != x; then
11624 echo ' .text
11625 .L0:
11627 .data
11628 .long .L0@GOTOFF' > conftest.s
11629 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }
11635 then
11636 gcc_cv_as_ix86_gotoff_in_data=yes
11637 else
11638 echo "configure: failed program was" >&5
11639 cat conftest.s >&5
11641 rm -f conftest.o conftest.s
11644 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11645 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11648 cat >>confdefs.h <<_ACEOF
11649 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11650 _ACEOF
11654 ia64*-*-*)
11655 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11656 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11657 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11661 if test $in_tree_gas = yes; then
11662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11663 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11665 elif test x$gcc_cv_as != x; then
11666 echo ' .text
11667 addl r15 = @ltoffx(x#), gp
11669 ld8.mov r16 = [r15], x#' > conftest.s
11670 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }
11676 then
11677 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11678 else
11679 echo "configure: failed program was" >&5
11680 cat conftest.s >&5
11682 rm -f conftest.o conftest.s
11685 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11686 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11687 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11689 cat >>confdefs.h <<\_ACEOF
11690 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11691 _ACEOF
11697 powerpc*-*-*)
11698 case $target in
11699 *-*-aix*) conftest_s=' .csect .text[PR]
11700 mfcr 3,128';;
11701 *-*-darwin*) conftest_s=' .text
11702 mfcr r3,128';;
11703 *) conftest_s=' .text
11704 mfcr 3,128';;
11705 esac
11707 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11708 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11709 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712 gcc_cv_as_powerpc_mfcrf=no
11713 if test $in_tree_gas = yes; then
11714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11715 then gcc_cv_as_powerpc_mfcrf=yes
11717 elif test x$gcc_cv_as != x; then
11718 echo "$conftest_s" > conftest.s
11719 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
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 then
11726 gcc_cv_as_powerpc_mfcrf=yes
11727 else
11728 echo "configure: failed program was" >&5
11729 cat conftest.s >&5
11731 rm -f conftest.o conftest.s
11734 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11735 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11736 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11738 cat >>confdefs.h <<\_ACEOF
11739 #define HAVE_AS_MFCRF 1
11740 _ACEOF
11745 mips*-*-*)
11746 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11747 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11748 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751 gcc_cv_as_mips_explicit_relocs=no
11752 if test $in_tree_gas = yes; then
11753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11754 then gcc_cv_as_mips_explicit_relocs=yes
11756 elif test x$gcc_cv_as != x; then
11757 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11758 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }
11764 then
11765 gcc_cv_as_mips_explicit_relocs=yes
11766 else
11767 echo "configure: failed program was" >&5
11768 cat conftest.s >&5
11770 rm -f conftest.o conftest.s
11773 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11774 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11775 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11776 if test x$target_cpu_default = x
11777 then target_cpu_default=MASK_EXPLICIT_RELOCS
11778 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11783 esac
11784 # ??? Not all targets support dwarf2 debug_line, even within a version
11785 # of gas. Moreover, we need to emit a valid instruction to trigger any
11786 # info to the output file. So, as supported targets are added to gas 2.11,
11787 # add some instruction here to (also) show we expect this might work.
11788 # ??? Once 2.11 is released, probably need to add first known working
11789 # version to the per-target configury.
11790 case "$target" in
11791 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11792 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11793 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11794 insn="nop"
11796 ia64*-*-* | s390*-*-*)
11797 insn="nop 0"
11799 mmix-*-*)
11800 insn="swym 0"
11802 esac
11803 if test x"$insn" != x; then
11804 conftest_s="\
11805 .file 1 \"conftest.s\"
11806 .loc 1 3 0
11807 $insn"
11808 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11809 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11810 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 else
11813 gcc_cv_as_dwarf2_debug_line=no
11814 if test $in_tree_gas = yes; then
11815 if test $in_tree_gas_is_elf = yes \
11816 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11817 then gcc_cv_as_dwarf2_debug_line=yes
11819 elif test x$gcc_cv_as != x; then
11820 echo "$conftest_s" > conftest.s
11821 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }
11827 then
11828 # ??? This fails with non-gnu grep. Maybe use objdump?
11829 if grep debug_line conftest.o > /dev/null 2>&1; then
11830 gcc_cv_as_dwarf2_debug_line=yes
11832 else
11833 echo "configure: failed program was" >&5
11834 cat conftest.s >&5
11836 rm -f conftest.o conftest.s
11839 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11840 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11843 # The .debug_line file table must be in the exact order that
11844 # we specified the files, since these indices are also used
11845 # by DW_AT_decl_file. Approximate this test by testing if
11846 # the assembler bitches if the same index is assigned twice.
11847 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11848 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11849 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852 gcc_cv_as_dwarf2_file_buggy=no
11853 if test x$gcc_cv_as != x; then
11854 echo ' .file 1 "foo.s"
11855 .file 1 "bar.s"' > conftest.s
11856 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }
11862 then
11863 gcc_cv_as_dwarf2_file_buggy=yes
11864 else
11865 echo "configure: failed program was" >&5
11866 cat conftest.s >&5
11868 rm -f conftest.o conftest.s
11871 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11872 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11875 if test $gcc_cv_as_dwarf2_debug_line = yes \
11876 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11878 cat >>confdefs.h <<\_ACEOF
11879 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11880 _ACEOF
11884 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11885 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11886 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889 gcc_cv_as_gdwarf2_flag=no
11890 if test $in_tree_gas = yes; then
11891 if test $in_tree_gas_is_elf = yes \
11892 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11893 then gcc_cv_as_gdwarf2_flag=yes
11895 elif test x$gcc_cv_as != x; then
11896 echo "$insn" > conftest.s
11897 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }
11903 then
11904 gcc_cv_as_gdwarf2_flag=yes
11905 else
11906 echo "configure: failed program was" >&5
11907 cat conftest.s >&5
11909 rm -f conftest.o conftest.s
11912 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11913 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11914 if test $gcc_cv_as_gdwarf2_flag = yes; then
11916 cat >>confdefs.h <<\_ACEOF
11917 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11918 _ACEOF
11922 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11923 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11924 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 else
11927 gcc_cv_as_gstabs_flag=no
11928 if test $in_tree_gas = yes; then
11929 if test $in_tree_gas_is_elf = yes \
11930 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11931 then gcc_cv_as_gstabs_flag=yes
11933 elif test x$gcc_cv_as != x; then
11934 echo "$insn" > conftest.s
11935 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }
11941 then
11942 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11943 # and warns about it, but still exits successfully. So check for
11944 # this.
11945 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }
11951 then :
11952 else gcc_cv_as_gstabs_flag=yes
11954 else
11955 echo "configure: failed program was" >&5
11956 cat conftest.s >&5
11958 rm -f conftest.o conftest.s
11961 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11962 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11963 if test $gcc_cv_as_gstabs_flag = yes; then
11965 cat >>confdefs.h <<\_ACEOF
11966 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11967 _ACEOF
11972 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11973 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11974 gcc_cv_ld_ro_rw_mix=unknown
11975 if test $in_tree_ld = yes ; then
11976 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 \
11977 && test $in_tree_ld_is_elf = yes; then
11978 gcc_cv_ld_ro_rw_mix=read-write
11980 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11981 echo '.section myfoosect, "a"' > conftest1.s
11982 echo '.section myfoosect, "aw"' > conftest2.s
11983 echo '.byte 1' >> conftest2.s
11984 echo '.section myfoosect, "a"' > conftest3.s
11985 echo '.byte 0' >> conftest3.s
11986 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11987 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11988 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11989 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11990 conftest2.o conftest3.o > /dev/null 2>&1; then
11991 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11992 | sed -e '/myfoosect/!d' -e N`
11993 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11994 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11995 gcc_cv_ld_ro_rw_mix=read-only
11996 else
11997 gcc_cv_ld_ro_rw_mix=read-write
12001 rm -f conftest.* conftest[123].*
12003 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
12005 cat >>confdefs.h <<\_ACEOF
12006 #define HAVE_LD_RO_RW_SECTION_MIXING 1
12007 _ACEOF
12010 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
12011 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
12013 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
12014 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
12015 gcc_cv_ld_eh_frame_hdr=no
12016 if test $in_tree_ld = yes ; then
12017 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 \
12018 && test $in_tree_ld_is_elf = yes; then
12019 gcc_cv_ld_eh_frame_hdr=yes
12021 elif test x$gcc_cv_ld != x; then
12022 # Check if linker supports --eh-frame-hdr option
12023 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
12024 gcc_cv_ld_eh_frame_hdr=yes
12027 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
12029 cat >>confdefs.h <<\_ACEOF
12030 #define HAVE_LD_EH_FRAME_HDR 1
12031 _ACEOF
12034 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12035 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12037 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12038 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12039 gcc_cv_ld_pie=no
12040 if test $in_tree_ld = yes ; then
12041 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 \
12042 && test $in_tree_ld_is_elf = yes; then
12043 gcc_cv_ld_pie=yes
12045 elif test x$gcc_cv_ld != x; then
12046 # Check if linker supports -pie option
12047 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
12048 gcc_cv_ld_pie=yes
12051 if test x"$gcc_cv_ld_pie" = xyes; then
12053 cat >>confdefs.h <<\_ACEOF
12054 #define HAVE_LD_PIE 1
12055 _ACEOF
12058 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12059 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12061 # --------
12062 # UNSORTED
12063 # --------
12065 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12066 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12067 if test "${gcc_cv_ld_as_needed+set}" = set; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 else
12070 gcc_cv_ld_as_needed=no
12071 if test $in_tree_ld = yes ; then
12072 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 \
12073 && test $in_tree_ld_is_elf = yes; then
12074 gcc_cv_ld_as_needed=yes
12076 elif test x$gcc_cv_ld != x; then
12077 # Check if linker supports --as-needed and --no-as-needed options
12078 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12079 gcc_cv_ld_as_needed=yes
12084 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12085 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12086 if test x"$gcc_cv_ld_as_needed" = xyes; then
12088 cat >>confdefs.h <<\_ACEOF
12089 #define HAVE_LD_AS_NEEDED 1
12090 _ACEOF
12094 if test x$with_sysroot = x && test x$host = x$target \
12095 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12097 cat >>confdefs.h <<_ACEOF
12098 #define PREFIX_INCLUDE_DIR "$prefix/include"
12099 _ACEOF
12103 # Find out what GC implementation we want, or may, use.
12105 # Check whether --with-gc or --without-gc was given.
12106 if test "${with_gc+set}" = set; then
12107 withval="$with_gc"
12108 case "$withval" in
12109 page | zone)
12110 GGC=ggc-$withval
12113 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12114 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12115 { (exit 1); exit 1; }; }
12117 esac
12118 else
12119 GGC=ggc-page
12122 echo "Using $GGC for garbage collection."
12124 # Use the system's zlib library.
12125 zlibdir=-L../zlib
12126 zlibinc="-I\$(srcdir)/../zlib"
12128 # Check whether --with-system-zlib or --without-system-zlib was given.
12129 if test "${with_system_zlib+set}" = set; then
12130 withval="$with_system_zlib"
12131 zlibdir=
12132 zlibinc=
12139 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12140 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12141 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12142 if test "${enable_maintainer_mode+set}" = set; then
12143 enableval="$enable_maintainer_mode"
12144 maintainer_mode=$enableval
12145 else
12146 maintainer_mode=no
12149 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12150 echo "${ECHO_T}$maintainer_mode" >&6
12152 if test "$maintainer_mode" = "yes"; then
12153 MAINT=''
12154 else
12155 MAINT='#'
12158 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
12159 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
12161 # Check whether --with-libbanshee or --without-libbanshee was given.
12162 if test "${with_libbanshee+set}" = set; then
12163 withval="$with_libbanshee"
12164 libbanshee="$with_libbanshee"
12165 else
12166 libbanshee=no
12169 if test x"$libbanshee" = xyes; then
12170 BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
12171 BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
12172 ANDER="tree-alias-ander.o"
12174 cat >>confdefs.h <<\_ACEOF
12175 #define HAVE_BANSHEE 1
12176 _ACEOF
12178 else
12179 BANSHEELIB=""
12180 BANSHEEINC=""
12181 ANDER=""
12183 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
12184 echo "${ECHO_T}$with_libbanshee" >&6
12190 # --------------
12191 # Language hooks
12192 # --------------
12194 # Make empty files to contain the specs and options for each language.
12195 # Then add #include lines to for a compiler that has specs and/or options.
12197 lang_opt_files=
12198 lang_specs_files=
12199 lang_tree_files=
12200 for subdir in . $subdirs
12202 if test -f $srcdir/$subdir/lang.opt; then
12203 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12205 if test -f $srcdir/$subdir/lang-specs.h; then
12206 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12208 if test -f $srcdir/$subdir/$subdir-tree.def; then
12209 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12211 done
12213 # These (without "all_") are set in each config-lang.in.
12214 # `language' must be a single word so is spelled singularly.
12215 all_languages=
12216 all_boot_languages=
12217 all_compilers=
12218 all_stagestuff=
12219 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
12220 # List of language makefile fragments.
12221 all_lang_makefrags=
12222 # List of language subdirectory makefiles. Deprecated.
12223 all_lang_makefiles=
12224 # Files for gengtype
12225 all_gtfiles="$target_gtfiles"
12226 # Files for gengtype with language
12227 all_gtfiles_files_langs=
12228 all_gtfiles_files_files=
12230 # Add the language fragments.
12231 # Languages are added via two mechanisms. Some information must be
12232 # recorded in makefile variables, these are defined in config-lang.in.
12233 # We accumulate them and plug them into the main Makefile.
12234 # The other mechanism is a set of hooks for each of the main targets
12235 # like `clean', `install', etc.
12237 language_hooks="Make-hooks"
12239 for s in $subdirs
12241 language=
12242 boot_language=
12243 compilers=
12244 stagestuff=
12245 outputs=
12246 gtfiles=
12247 . ${srcdir}/$s/config-lang.in
12248 if test "x$language" = x
12249 then
12250 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12251 exit 1
12253 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12254 if test -f ${srcdir}/$s/Makefile.in
12255 then all_lang_makefiles="$s/Makefile"
12257 all_languages="$all_languages $language"
12258 if test "x$boot_language" = xyes
12259 then
12260 all_boot_languages="$all_boot_languages $language"
12262 all_compilers="$all_compilers $compilers"
12263 all_stagestuff="$all_stagestuff $stagestuff"
12264 all_outputs="$all_outputs $outputs"
12265 all_gtfiles="$all_gtfiles $gtfiles"
12266 for f in $gtfiles
12268 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12269 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12270 done
12271 done
12273 # Pick up gtfiles for c
12274 gtfiles=
12275 s="c"
12276 . ${srcdir}/c-config-lang.in
12277 all_gtfiles="$all_gtfiles $gtfiles"
12278 for f in $gtfiles
12280 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12281 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12282 done
12284 check_languages=
12285 for language in $all_languages
12287 check_languages="$check_languages check-$language"
12288 done
12290 # We link each language in with a set of hooks, reached indirectly via
12291 # lang.${target}.
12293 rm -f Make-hooks
12294 touch Make-hooks
12295 target_list="all.build all.cross start.encap rest.encap tags \
12296 install-normal install-common install-man \
12297 uninstall info man srcextra srcman srcinfo \
12298 mostlyclean clean distclean maintainer-clean \
12299 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12300 for t in $target_list
12303 for lang in $all_languages
12305 x="$x $lang.$t"
12306 done
12307 echo "lang.$t: $x" >> Make-hooks
12308 done
12310 # --------
12311 # UNSORTED
12312 # --------
12314 # Create .gdbinit.
12316 echo "dir ." > .gdbinit
12317 echo "dir ${srcdir}" >> .gdbinit
12318 if test x$gdb_needs_out_file_path = xyes
12319 then
12320 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12322 if test "x$subdirs" != x; then
12323 for s in $subdirs
12325 echo "dir ${srcdir}/$s" >> .gdbinit
12326 done
12328 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12330 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12331 # absolute path for gcc_tooldir based on inserting the number of up-directory
12332 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12333 # $(libsubdir)/@(unlibsubdir) based path.
12334 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12335 # make and thus we'd get different behavior depending on where we built the
12336 # sources.
12337 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12338 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12339 else
12340 # An explanation of the sed strings:
12341 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12342 # -e 's|/$||' match a trailing forward slash and eliminates it
12343 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12344 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12346 # (*) Note this pattern overwrites the first character of the string
12347 # with a forward slash if one is not already present. This is not a
12348 # problem because the exact names of the sub-directories concerned is
12349 # unimportant, just the number of them matters.
12351 # The practical upshot of these patterns is like this:
12353 # prefix exec_prefix result
12354 # ------ ----------- ------
12355 # /foo /foo/bar ../
12356 # /foo/ /foo/bar ../
12357 # /foo /foo/bar/ ../
12358 # /foo/ /foo/bar/ ../
12359 # /foo /foo/bar/ugg ../../
12361 dollar='$$'
12362 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12367 # Find a directory in which to install a shared libgcc.
12369 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12370 if test "${enable_version_specific_runtime_libs+set}" = set; then
12371 enableval="$enable_version_specific_runtime_libs"
12376 # Check whether --with-slibdir or --without-slibdir was given.
12377 if test "${with_slibdir+set}" = set; then
12378 withval="$with_slibdir"
12379 slibdir="$with_slibdir"
12380 else
12381 if test "${enable_version_specific_runtime_libs+set}" = set; then
12382 slibdir='$(libsubdir)'
12383 elif test "$host" != "$target"; then
12384 slibdir='$(build_tooldir)/lib'
12385 else
12386 slibdir='$(libdir)'
12391 objdir=`${PWDCMD-pwd}`
12394 # Substitute configuration variables
12463 # If it doesn't already exist, create document directory
12464 echo "checking for the document directory." 1>&2
12465 if test -d doc ; then
12466 true
12467 else
12468 mkdir doc
12471 # Echo link setup.
12472 if test x${build} = x${host} ; then
12473 if test x${host} = x${target} ; then
12474 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12475 else
12476 echo "Links are now set up to build a cross-compiler" 1>&2
12477 echo " from ${host} to ${target}." 1>&2
12479 else
12480 if test x${host} = x${target} ; then
12481 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12482 echo " for ${target}." 1>&2
12483 else
12484 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12485 echo " from ${host} to ${target}." 1>&2
12492 # Configure the subdirectories
12493 # AC_CONFIG_SUBDIRS($subdirs)
12495 # Create the Makefile
12496 # and configure language subdirectories
12497 ac_config_files="$ac_config_files $all_outputs"
12500 ac_config_commands="$ac_config_commands default"
12502 cat >confcache <<\_ACEOF
12503 # This file is a shell script that caches the results of configure
12504 # tests run on this system so they can be shared between configure
12505 # scripts and configure runs, see configure's option --config-cache.
12506 # It is not useful on other systems. If it contains results you don't
12507 # want to keep, you may remove or edit it.
12509 # config.status only pays attention to the cache file if you give it
12510 # the --recheck option to rerun configure.
12512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12514 # following values.
12516 _ACEOF
12518 # The following way of writing the cache mishandles newlines in values,
12519 # but we know of no workaround that is simple, portable, and efficient.
12520 # So, don't put newlines in cache variables' values.
12521 # Ultrix sh set writes to stderr and can't be redirected directly,
12522 # and sets the high bit in the cache file unless we assign to the vars.
12524 (set) 2>&1 |
12525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12526 *ac_space=\ *)
12527 # `set' does not quote correctly, so add quotes (double-quote
12528 # substitution turns \\\\ into \\, and sed turns \\ into \).
12529 sed -n \
12530 "s/'/'\\\\''/g;
12531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12534 # `set' quotes correctly as required by POSIX, so do not add quotes.
12535 sed -n \
12536 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12538 esac;
12540 sed '
12541 t clear
12542 : clear
12543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12544 t end
12545 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12546 : end' >>confcache
12547 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12548 if test -w $cache_file; then
12549 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12550 cat confcache >$cache_file
12551 else
12552 echo "not updating unwritable cache $cache_file"
12555 rm -f confcache
12557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12558 # Let make expand exec_prefix.
12559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12561 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12562 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12563 # trailing colons and then remove the whole line if VPATH becomes empty
12564 # (actually we leave an empty line to preserve line numbers).
12565 if test "x$srcdir" = x.; then
12566 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12567 s/:*\$(srcdir):*/:/;
12568 s/:*\${srcdir}:*/:/;
12569 s/:*@srcdir@:*/:/;
12570 s/^\([^=]*=[ ]*\):*/\1/;
12571 s/:*$//;
12572 s/^[^=]*=[ ]*$//;
12576 DEFS=-DHAVE_CONFIG_H
12578 ac_libobjs=
12579 ac_ltlibobjs=
12580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12581 # 1. Remove the extension, and $U if already installed.
12582 ac_i=`echo "$ac_i" |
12583 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12584 # 2. Add them.
12585 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12586 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12587 done
12588 LIBOBJS=$ac_libobjs
12590 LTLIBOBJS=$ac_ltlibobjs
12594 : ${CONFIG_STATUS=./config.status}
12595 ac_clean_files_save=$ac_clean_files
12596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12597 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12598 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12599 cat >$CONFIG_STATUS <<_ACEOF
12600 #! $SHELL
12601 # Generated by $as_me.
12602 # Run this file to recreate the current configuration.
12603 # Compiler output produced by configure, useful for debugging
12604 # configure, is in config.log if it exists.
12606 debug=false
12607 ac_cs_recheck=false
12608 ac_cs_silent=false
12609 SHELL=\${CONFIG_SHELL-$SHELL}
12610 _ACEOF
12612 cat >>$CONFIG_STATUS <<\_ACEOF
12613 ## --------------------- ##
12614 ## M4sh Initialization. ##
12615 ## --------------------- ##
12617 # Be Bourne compatible
12618 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12619 emulate sh
12620 NULLCMD=:
12621 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12622 # is contrary to our usage. Disable this feature.
12623 alias -g '${1+"$@"}'='"$@"'
12624 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12625 set -o posix
12627 DUALCASE=1; export DUALCASE # for MKS sh
12629 # Support unset when possible.
12630 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12631 as_unset=unset
12632 else
12633 as_unset=false
12637 # Work around bugs in pre-3.0 UWIN ksh.
12638 $as_unset ENV MAIL MAILPATH
12639 PS1='$ '
12640 PS2='> '
12641 PS4='+ '
12643 # NLS nuisances.
12644 for as_var in \
12645 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12646 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12647 LC_TELEPHONE LC_TIME
12649 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12650 eval $as_var=C; export $as_var
12651 else
12652 $as_unset $as_var
12654 done
12656 # Required to use basename.
12657 if expr a : '\(a\)' >/dev/null 2>&1; then
12658 as_expr=expr
12659 else
12660 as_expr=false
12663 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12664 as_basename=basename
12665 else
12666 as_basename=false
12670 # Name of the executable.
12671 as_me=`$as_basename "$0" ||
12672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12673 X"$0" : 'X\(//\)$' \| \
12674 X"$0" : 'X\(/\)$' \| \
12675 . : '\(.\)' 2>/dev/null ||
12676 echo X/"$0" |
12677 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12678 /^X\/\(\/\/\)$/{ s//\1/; q; }
12679 /^X\/\(\/\).*/{ s//\1/; q; }
12680 s/.*/./; q'`
12683 # PATH needs CR, and LINENO needs CR and PATH.
12684 # Avoid depending upon Character Ranges.
12685 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12686 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12687 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12688 as_cr_digits='0123456789'
12689 as_cr_alnum=$as_cr_Letters$as_cr_digits
12691 # The user is always right.
12692 if test "${PATH_SEPARATOR+set}" != set; then
12693 echo "#! /bin/sh" >conf$$.sh
12694 echo "exit 0" >>conf$$.sh
12695 chmod +x conf$$.sh
12696 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12697 PATH_SEPARATOR=';'
12698 else
12699 PATH_SEPARATOR=:
12701 rm -f conf$$.sh
12705 as_lineno_1=$LINENO
12706 as_lineno_2=$LINENO
12707 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12708 test "x$as_lineno_1" != "x$as_lineno_2" &&
12709 test "x$as_lineno_3" = "x$as_lineno_2" || {
12710 # Find who we are. Look in the path if we contain no path at all
12711 # relative or not.
12712 case $0 in
12713 *[\\/]* ) as_myself=$0 ;;
12714 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12717 IFS=$as_save_IFS
12718 test -z "$as_dir" && as_dir=.
12719 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12720 done
12723 esac
12724 # We did not find ourselves, most probably we were run as `sh COMMAND'
12725 # in which case we are not to be found in the path.
12726 if test "x$as_myself" = x; then
12727 as_myself=$0
12729 if test ! -f "$as_myself"; then
12730 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12731 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12732 { (exit 1); exit 1; }; }
12734 case $CONFIG_SHELL in
12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for as_base in sh bash ksh sh5; do
12742 case $as_dir in
12744 if ("$as_dir/$as_base" -c '
12745 as_lineno_1=$LINENO
12746 as_lineno_2=$LINENO
12747 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12748 test "x$as_lineno_1" != "x$as_lineno_2" &&
12749 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12750 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12751 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12752 CONFIG_SHELL=$as_dir/$as_base
12753 export CONFIG_SHELL
12754 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12755 fi;;
12756 esac
12757 done
12758 done
12760 esac
12762 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12763 # uniformly replaced by the line number. The first 'sed' inserts a
12764 # line-number line before each line; the second 'sed' does the real
12765 # work. The second script uses 'N' to pair each line-number line
12766 # with the numbered line, and appends trailing '-' during
12767 # substitution so that $LINENO is not a special case at line end.
12768 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12769 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12770 sed '=' <$as_myself |
12771 sed '
12773 s,$,-,
12774 : loop
12775 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12776 t loop
12777 s,-$,,
12778 s,^['$as_cr_digits']*\n,,
12779 ' >$as_me.lineno &&
12780 chmod +x $as_me.lineno ||
12781 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12782 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12783 { (exit 1); exit 1; }; }
12785 # Don't try to exec as it changes $[0], causing all sort of problems
12786 # (the dirname of $[0] is not the place where we might find the
12787 # original and so on. Autoconf is especially sensible to this).
12788 . ./$as_me.lineno
12789 # Exit status is that of the last command.
12790 exit
12794 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12795 *c*,-n*) ECHO_N= ECHO_C='
12796 ' ECHO_T=' ' ;;
12797 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12798 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12799 esac
12801 if expr a : '\(a\)' >/dev/null 2>&1; then
12802 as_expr=expr
12803 else
12804 as_expr=false
12807 rm -f conf$$ conf$$.exe conf$$.file
12808 echo >conf$$.file
12809 if ln -s conf$$.file conf$$ 2>/dev/null; then
12810 # We could just check for DJGPP; but this test a) works b) is more generic
12811 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12812 if test -f conf$$.exe; then
12813 # Don't use ln at all; we don't have any links
12814 as_ln_s='cp -p'
12815 else
12816 as_ln_s='ln -s'
12818 elif ln conf$$.file conf$$ 2>/dev/null; then
12819 as_ln_s=ln
12820 else
12821 as_ln_s='cp -p'
12823 rm -f conf$$ conf$$.exe conf$$.file
12825 if mkdir -p . 2>/dev/null; then
12826 as_mkdir_p=:
12827 else
12828 test -d ./-p && rmdir ./-p
12829 as_mkdir_p=false
12832 as_executable_p="test -f"
12834 # Sed expression to map a string onto a valid CPP name.
12835 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12837 # Sed expression to map a string onto a valid variable name.
12838 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12841 # IFS
12842 # We need space, tab and new line, in precisely that order.
12843 as_nl='
12845 IFS=" $as_nl"
12847 # CDPATH.
12848 $as_unset CDPATH
12850 exec 6>&1
12852 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12853 # report actual input values of CONFIG_FILES etc. instead of their
12854 # values after options handling. Logging --version etc. is OK.
12855 exec 5>>config.log
12857 echo
12858 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12859 ## Running $as_me. ##
12860 _ASBOX
12861 } >&5
12862 cat >&5 <<_CSEOF
12864 This file was extended by $as_me, which was
12865 generated by GNU Autoconf 2.59. Invocation command line was
12867 CONFIG_FILES = $CONFIG_FILES
12868 CONFIG_HEADERS = $CONFIG_HEADERS
12869 CONFIG_LINKS = $CONFIG_LINKS
12870 CONFIG_COMMANDS = $CONFIG_COMMANDS
12871 $ $0 $@
12873 _CSEOF
12874 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12875 echo >&5
12876 _ACEOF
12878 # Files that config.status was made for.
12879 if test -n "$ac_config_files"; then
12880 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12883 if test -n "$ac_config_headers"; then
12884 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12887 if test -n "$ac_config_links"; then
12888 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12891 if test -n "$ac_config_commands"; then
12892 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12895 cat >>$CONFIG_STATUS <<\_ACEOF
12897 ac_cs_usage="\
12898 \`$as_me' instantiates files from templates according to the
12899 current configuration.
12901 Usage: $0 [OPTIONS] [FILE]...
12903 -h, --help print this help, then exit
12904 -V, --version print version number, then exit
12905 -q, --quiet do not print progress messages
12906 -d, --debug don't remove temporary files
12907 --recheck update $as_me by reconfiguring in the same conditions
12908 --file=FILE[:TEMPLATE]
12909 instantiate the configuration file FILE
12910 --header=FILE[:TEMPLATE]
12911 instantiate the configuration header FILE
12913 Configuration files:
12914 $config_files
12916 Configuration headers:
12917 $config_headers
12919 Configuration commands:
12920 $config_commands
12922 Report bugs to <bug-autoconf@gnu.org>."
12923 _ACEOF
12925 cat >>$CONFIG_STATUS <<_ACEOF
12926 ac_cs_version="\\
12927 config.status
12928 configured by $0, generated by GNU Autoconf 2.59,
12929 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12931 Copyright (C) 2003 Free Software Foundation, Inc.
12932 This config.status script is free software; the Free Software Foundation
12933 gives unlimited permission to copy, distribute and modify it."
12934 srcdir=$srcdir
12935 _ACEOF
12937 cat >>$CONFIG_STATUS <<\_ACEOF
12938 # If no file are specified by the user, then we need to provide default
12939 # value. By we need to know if files were specified by the user.
12940 ac_need_defaults=:
12941 while test $# != 0
12943 case $1 in
12944 --*=*)
12945 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12946 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12947 ac_shift=:
12950 ac_option=$1
12951 ac_optarg=$2
12952 ac_shift=shift
12954 *) # This is not an option, so the user has probably given explicit
12955 # arguments.
12956 ac_option=$1
12957 ac_need_defaults=false;;
12958 esac
12960 case $ac_option in
12961 # Handling of the options.
12962 _ACEOF
12963 cat >>$CONFIG_STATUS <<\_ACEOF
12964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12965 ac_cs_recheck=: ;;
12966 --version | --vers* | -V )
12967 echo "$ac_cs_version"; exit 0 ;;
12968 --he | --h)
12969 # Conflict between --help and --header
12970 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12971 Try \`$0 --help' for more information." >&5
12972 echo "$as_me: error: ambiguous option: $1
12973 Try \`$0 --help' for more information." >&2;}
12974 { (exit 1); exit 1; }; };;
12975 --help | --hel | -h )
12976 echo "$ac_cs_usage"; exit 0 ;;
12977 --debug | --d* | -d )
12978 debug=: ;;
12979 --file | --fil | --fi | --f )
12980 $ac_shift
12981 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12982 ac_need_defaults=false;;
12983 --header | --heade | --head | --hea )
12984 $ac_shift
12985 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12986 ac_need_defaults=false;;
12987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12988 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12989 ac_cs_silent=: ;;
12991 # This is an error.
12992 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12993 Try \`$0 --help' for more information." >&5
12994 echo "$as_me: error: unrecognized option: $1
12995 Try \`$0 --help' for more information." >&2;}
12996 { (exit 1); exit 1; }; } ;;
12998 *) ac_config_targets="$ac_config_targets $1" ;;
13000 esac
13001 shift
13002 done
13004 ac_configure_extra_args=
13006 if $ac_cs_silent; then
13007 exec 6>/dev/null
13008 ac_configure_extra_args="$ac_configure_extra_args --silent"
13011 _ACEOF
13012 cat >>$CONFIG_STATUS <<_ACEOF
13013 if \$ac_cs_recheck; then
13014 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13015 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13018 _ACEOF
13020 cat >>$CONFIG_STATUS <<_ACEOF
13022 # INIT-COMMANDS section.
13025 subdirs='$subdirs'
13026 symbolic_link='$symbolic_link'
13029 _ACEOF
13033 cat >>$CONFIG_STATUS <<\_ACEOF
13034 for ac_config_target in $ac_config_targets
13036 case "$ac_config_target" in
13037 # Handling of arguments.
13038 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13039 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13040 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13041 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13042 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13043 { (exit 1); exit 1; }; };;
13044 esac
13045 done
13047 # If the user did not use the arguments to specify the items to instantiate,
13048 # then the envvar interface is used. Set only those that are not.
13049 # We use the long form for the default assignment because of an extremely
13050 # bizarre bug on SunOS 4.1.3.
13051 if $ac_need_defaults; then
13052 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13053 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13054 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13057 # Have a temporary directory for convenience. Make it in the build tree
13058 # simply because there is no reason to put it here, and in addition,
13059 # creating and moving files from /tmp can sometimes cause problems.
13060 # Create a temporary directory, and hook for its removal unless debugging.
13061 $debug ||
13063 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13064 trap '{ (exit 1); exit 1; }' 1 2 13 15
13067 # Create a (secure) tmp directory for tmp files.
13070 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13071 test -n "$tmp" && test -d "$tmp"
13072 } ||
13074 tmp=./confstat$$-$RANDOM
13075 (umask 077 && mkdir $tmp)
13076 } ||
13078 echo "$me: cannot create a temporary directory in ." >&2
13079 { (exit 1); exit 1; }
13082 _ACEOF
13084 cat >>$CONFIG_STATUS <<_ACEOF
13087 # CONFIG_FILES section.
13090 # No need to generate the scripts if there are no CONFIG_FILES.
13091 # This happens for instance when ./config.status config.h
13092 if test -n "\$CONFIG_FILES"; then
13093 # Protect against being on the right side of a sed subst in config.status.
13094 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13095 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13096 s,@SHELL@,$SHELL,;t t
13097 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13098 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13099 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13100 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13101 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13102 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13103 s,@exec_prefix@,$exec_prefix,;t t
13104 s,@prefix@,$prefix,;t t
13105 s,@program_transform_name@,$program_transform_name,;t t
13106 s,@bindir@,$bindir,;t t
13107 s,@sbindir@,$sbindir,;t t
13108 s,@libexecdir@,$libexecdir,;t t
13109 s,@datadir@,$datadir,;t t
13110 s,@sysconfdir@,$sysconfdir,;t t
13111 s,@sharedstatedir@,$sharedstatedir,;t t
13112 s,@localstatedir@,$localstatedir,;t t
13113 s,@libdir@,$libdir,;t t
13114 s,@includedir@,$includedir,;t t
13115 s,@oldincludedir@,$oldincludedir,;t t
13116 s,@infodir@,$infodir,;t t
13117 s,@mandir@,$mandir,;t t
13118 s,@build_alias@,$build_alias,;t t
13119 s,@host_alias@,$host_alias,;t t
13120 s,@target_alias@,$target_alias,;t t
13121 s,@DEFS@,$DEFS,;t t
13122 s,@ECHO_C@,$ECHO_C,;t t
13123 s,@ECHO_N@,$ECHO_N,;t t
13124 s,@ECHO_T@,$ECHO_T,;t t
13125 s,@LIBS@,$LIBS,;t t
13126 s,@build@,$build,;t t
13127 s,@build_cpu@,$build_cpu,;t t
13128 s,@build_vendor@,$build_vendor,;t t
13129 s,@build_os@,$build_os,;t t
13130 s,@host@,$host,;t t
13131 s,@host_cpu@,$host_cpu,;t t
13132 s,@host_vendor@,$host_vendor,;t t
13133 s,@host_os@,$host_os,;t t
13134 s,@target@,$target,;t t
13135 s,@target_cpu@,$target_cpu,;t t
13136 s,@target_vendor@,$target_vendor,;t t
13137 s,@target_os@,$target_os,;t t
13138 s,@build_subdir@,$build_subdir,;t t
13139 s,@host_subdir@,$host_subdir,;t t
13140 s,@target_subdir@,$target_subdir,;t t
13141 s,@GENINSRC@,$GENINSRC,;t t
13142 s,@CC@,$CC,;t t
13143 s,@CFLAGS@,$CFLAGS,;t t
13144 s,@LDFLAGS@,$LDFLAGS,;t t
13145 s,@CPPFLAGS@,$CPPFLAGS,;t t
13146 s,@ac_ct_CC@,$ac_ct_CC,;t t
13147 s,@EXEEXT@,$EXEEXT,;t t
13148 s,@OBJEXT@,$OBJEXT,;t t
13149 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13150 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13151 s,@CPP@,$CPP,;t t
13152 s,@strict1_warn@,$strict1_warn,;t t
13153 s,@warn_cflags@,$warn_cflags,;t t
13154 s,@WERROR@,$WERROR,;t t
13155 s,@nocommon_flag@,$nocommon_flag,;t t
13156 s,@EGREP@,$EGREP,;t t
13157 s,@valgrind_path@,$valgrind_path,;t t
13158 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13159 s,@valgrind_command@,$valgrind_command,;t t
13160 s,@coverage_flags@,$coverage_flags,;t t
13161 s,@TREEBROWSER@,$TREEBROWSER,;t t
13162 s,@enable_multilib@,$enable_multilib,;t t
13163 s,@enable_shared@,$enable_shared,;t t
13164 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13165 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13166 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13167 s,@onestep@,$onestep,;t t
13168 s,@SET_MAKE@,$SET_MAKE,;t t
13169 s,@AWK@,$AWK,;t t
13170 s,@LN@,$LN,;t t
13171 s,@LN_S@,$LN_S,;t t
13172 s,@RANLIB@,$RANLIB,;t t
13173 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13174 s,@INSTALL@,$INSTALL,;t t
13175 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13176 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13177 s,@make_compare_target@,$make_compare_target,;t t
13178 s,@have_mktemp_command@,$have_mktemp_command,;t t
13179 s,@MAKEINFO@,$MAKEINFO,;t t
13180 s,@BUILD_INFO@,$BUILD_INFO,;t t
13181 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13182 s,@FLEX@,$FLEX,;t t
13183 s,@BISON@,$BISON,;t t
13184 s,@stage1_cflags@,$stage1_cflags,;t t
13185 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13186 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13187 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13188 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13189 s,@LIBICONV@,$LIBICONV,;t t
13190 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13191 s,@manext@,$manext,;t t
13192 s,@objext@,$objext,;t t
13193 s,@gthread_flags@,$gthread_flags,;t t
13194 s,@extra_modes_file@,$extra_modes_file,;t t
13195 s,@FORBUILD@,$FORBUILD,;t t
13196 s,@PACKAGE@,$PACKAGE,;t t
13197 s,@VERSION@,$VERSION,;t t
13198 s,@USE_NLS@,$USE_NLS,;t t
13199 s,@LIBINTL@,$LIBINTL,;t t
13200 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13201 s,@INCINTL@,$INCINTL,;t t
13202 s,@XGETTEXT@,$XGETTEXT,;t t
13203 s,@GMSGFMT@,$GMSGFMT,;t t
13204 s,@POSUB@,$POSUB,;t t
13205 s,@CATALOGS@,$CATALOGS,;t t
13206 s,@CROSS@,$CROSS,;t t
13207 s,@ALL@,$ALL,;t t
13208 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13209 s,@inhibit_libc@,$inhibit_libc,;t t
13210 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13211 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13212 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13213 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13214 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13215 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13216 s,@collect2@,$collect2,;t t
13217 s,@libgcc_visibility@,$libgcc_visibility,;t t
13218 s,@GGC@,$GGC,;t t
13219 s,@zlibdir@,$zlibdir,;t t
13220 s,@zlibinc@,$zlibinc,;t t
13221 s,@MAINT@,$MAINT,;t t
13222 s,@ANDER@,$ANDER,;t t
13223 s,@BANSHEEINC@,$BANSHEEINC,;t t
13224 s,@BANSHEELIB@,$BANSHEELIB,;t t
13225 s,@gcc_tooldir@,$gcc_tooldir,;t t
13226 s,@dollar@,$dollar,;t t
13227 s,@slibdir@,$slibdir,;t t
13228 s,@objdir@,$objdir,;t t
13229 s,@subdirs@,$subdirs,;t t
13230 s,@srcdir@,$srcdir,;t t
13231 s,@all_boot_languages@,$all_boot_languages,;t t
13232 s,@all_compilers@,$all_compilers,;t t
13233 s,@all_gtfiles@,$all_gtfiles,;t t
13234 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13235 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13236 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13237 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13238 s,@all_languages@,$all_languages,;t t
13239 s,@all_stagestuff@,$all_stagestuff,;t t
13240 s,@build_exeext@,$build_exeext,;t t
13241 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13242 s,@build_xm_file_list@,$build_xm_file_list,;t t
13243 s,@build_xm_include_list@,$build_xm_include_list,;t t
13244 s,@build_xm_defines@,$build_xm_defines,;t t
13245 s,@check_languages@,$check_languages,;t t
13246 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13247 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13248 s,@cpp_install_dir@,$cpp_install_dir,;t t
13249 s,@xmake_file@,$xmake_file,;t t
13250 s,@tmake_file@,$tmake_file,;t t
13251 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13252 s,@extra_headers_list@,$extra_headers_list,;t t
13253 s,@extra_objs@,$extra_objs,;t t
13254 s,@extra_parts@,$extra_parts,;t t
13255 s,@extra_passes@,$extra_passes,;t t
13256 s,@extra_programs@,$extra_programs,;t t
13257 s,@float_h_file@,$float_h_file,;t t
13258 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13259 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13260 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13261 s,@gcc_version@,$gcc_version,;t t
13262 s,@gcc_version_full@,$gcc_version_full,;t t
13263 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13264 s,@host_exeext@,$host_exeext,;t t
13265 s,@host_xm_file_list@,$host_xm_file_list,;t t
13266 s,@host_xm_include_list@,$host_xm_include_list,;t t
13267 s,@host_xm_defines@,$host_xm_defines,;t t
13268 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13269 s,@install@,$install,;t t
13270 s,@lang_opt_files@,$lang_opt_files,;t t
13271 s,@lang_specs_files@,$lang_specs_files,;t t
13272 s,@lang_tree_files@,$lang_tree_files,;t t
13273 s,@local_prefix@,$local_prefix,;t t
13274 s,@md_file@,$md_file,;t t
13275 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13276 s,@out_file@,$out_file,;t t
13277 s,@out_object_file@,$out_object_file,;t t
13278 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13279 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13280 s,@symbolic_link@,$symbolic_link,;t t
13281 s,@thread_file@,$thread_file,;t t
13282 s,@tm_file_list@,$tm_file_list,;t t
13283 s,@tm_include_list@,$tm_include_list,;t t
13284 s,@tm_defines@,$tm_defines,;t t
13285 s,@tm_p_file_list@,$tm_p_file_list,;t t
13286 s,@tm_p_include_list@,$tm_p_include_list,;t t
13287 s,@xm_file_list@,$xm_file_list,;t t
13288 s,@xm_include_list@,$xm_include_list,;t t
13289 s,@xm_defines@,$xm_defines,;t t
13290 s,@target_noncanonical@,$target_noncanonical,;t t
13291 s,@c_target_objs@,$c_target_objs,;t t
13292 s,@cxx_target_objs@,$cxx_target_objs,;t t
13293 s,@target_cpu_default@,$target_cpu_default,;t t
13294 s,@GMPLIBS@,$GMPLIBS,;t t
13295 s,@GMPINC@,$GMPINC,;t t
13296 s,@LIBOBJS@,$LIBOBJS,;t t
13297 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13298 /@language_hooks@/r $language_hooks
13299 s,@language_hooks@,,;t t
13300 CEOF
13302 _ACEOF
13304 cat >>$CONFIG_STATUS <<\_ACEOF
13305 # Split the substitutions into bite-sized pieces for seds with
13306 # small command number limits, like on Digital OSF/1 and HP-UX.
13307 ac_max_sed_lines=48
13308 ac_sed_frag=1 # Number of current file.
13309 ac_beg=1 # First line for current file.
13310 ac_end=$ac_max_sed_lines # Line after last line for current file.
13311 ac_more_lines=:
13312 ac_sed_cmds=
13313 while $ac_more_lines; do
13314 if test $ac_beg -gt 1; then
13315 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13316 else
13317 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13319 if test ! -s $tmp/subs.frag; then
13320 ac_more_lines=false
13321 else
13322 # The purpose of the label and of the branching condition is to
13323 # speed up the sed processing (if there are no `@' at all, there
13324 # is no need to browse any of the substitutions).
13325 # These are the two extra sed commands mentioned above.
13326 (echo ':t
13327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13328 if test -z "$ac_sed_cmds"; then
13329 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13330 else
13331 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13333 ac_sed_frag=`expr $ac_sed_frag + 1`
13334 ac_beg=$ac_end
13335 ac_end=`expr $ac_end + $ac_max_sed_lines`
13337 done
13338 if test -z "$ac_sed_cmds"; then
13339 ac_sed_cmds=cat
13341 fi # test -n "$CONFIG_FILES"
13343 _ACEOF
13344 cat >>$CONFIG_STATUS <<\_ACEOF
13345 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13347 case $ac_file in
13348 - | *:- | *:-:* ) # input from stdin
13349 cat >$tmp/stdin
13350 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13352 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13353 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13354 * ) ac_file_in=$ac_file.in ;;
13355 esac
13357 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13358 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13360 X"$ac_file" : 'X\(//\)[^/]' \| \
13361 X"$ac_file" : 'X\(//\)$' \| \
13362 X"$ac_file" : 'X\(/\)' \| \
13363 . : '\(.\)' 2>/dev/null ||
13364 echo X"$ac_file" |
13365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13367 /^X\(\/\/\)$/{ s//\1/; q; }
13368 /^X\(\/\).*/{ s//\1/; q; }
13369 s/.*/./; q'`
13370 { if $as_mkdir_p; then
13371 mkdir -p "$ac_dir"
13372 else
13373 as_dir="$ac_dir"
13374 as_dirs=
13375 while test ! -d "$as_dir"; do
13376 as_dirs="$as_dir $as_dirs"
13377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13379 X"$as_dir" : 'X\(//\)[^/]' \| \
13380 X"$as_dir" : 'X\(//\)$' \| \
13381 X"$as_dir" : 'X\(/\)' \| \
13382 . : '\(.\)' 2>/dev/null ||
13383 echo X"$as_dir" |
13384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13386 /^X\(\/\/\)$/{ s//\1/; q; }
13387 /^X\(\/\).*/{ s//\1/; q; }
13388 s/.*/./; q'`
13389 done
13390 test ! -n "$as_dirs" || mkdir $as_dirs
13391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13392 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13393 { (exit 1); exit 1; }; }; }
13395 ac_builddir=.
13397 if test "$ac_dir" != .; then
13398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13399 # A "../" for each directory in $ac_dir_suffix.
13400 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13401 else
13402 ac_dir_suffix= ac_top_builddir=
13405 case $srcdir in
13406 .) # No --srcdir option. We are building in place.
13407 ac_srcdir=.
13408 if test -z "$ac_top_builddir"; then
13409 ac_top_srcdir=.
13410 else
13411 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13412 fi ;;
13413 [\\/]* | ?:[\\/]* ) # Absolute path.
13414 ac_srcdir=$srcdir$ac_dir_suffix;
13415 ac_top_srcdir=$srcdir ;;
13416 *) # Relative path.
13417 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13418 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13419 esac
13421 # Do not use `cd foo && pwd` to compute absolute paths, because
13422 # the directories may not exist.
13423 case `pwd` in
13424 .) ac_abs_builddir="$ac_dir";;
13426 case "$ac_dir" in
13427 .) ac_abs_builddir=`pwd`;;
13428 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13429 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13430 esac;;
13431 esac
13432 case $ac_abs_builddir in
13433 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13435 case ${ac_top_builddir}. in
13436 .) ac_abs_top_builddir=$ac_abs_builddir;;
13437 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13438 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13439 esac;;
13440 esac
13441 case $ac_abs_builddir in
13442 .) ac_abs_srcdir=$ac_srcdir;;
13444 case $ac_srcdir in
13445 .) ac_abs_srcdir=$ac_abs_builddir;;
13446 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13447 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13448 esac;;
13449 esac
13450 case $ac_abs_builddir in
13451 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13453 case $ac_top_srcdir in
13454 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13455 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13456 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13457 esac;;
13458 esac
13462 if test x"$ac_file" != x-; then
13463 { echo "$as_me:$LINENO: creating $ac_file" >&5
13464 echo "$as_me: creating $ac_file" >&6;}
13465 rm -f "$ac_file"
13467 # Let's still pretend it is `configure' which instantiates (i.e., don't
13468 # use $as_me), people would be surprised to read:
13469 # /* config.h. Generated by config.status. */
13470 if test x"$ac_file" = x-; then
13471 configure_input=
13472 else
13473 configure_input="$ac_file. "
13475 configure_input=$configure_input"Generated from `echo $ac_file_in |
13476 sed 's,.*/,,'` by configure."
13478 # First look for the input files in the build tree, otherwise in the
13479 # src tree.
13480 ac_file_inputs=`IFS=:
13481 for f in $ac_file_in; do
13482 case $f in
13483 -) echo $tmp/stdin ;;
13484 [\\/$]*)
13485 # Absolute (can't be DOS-style, as IFS=:)
13486 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13487 echo "$as_me: error: cannot find input file: $f" >&2;}
13488 { (exit 1); exit 1; }; }
13489 echo "$f";;
13490 *) # Relative
13491 if test -f "$f"; then
13492 # Build tree
13493 echo "$f"
13494 elif test -f "$srcdir/$f"; then
13495 # Source tree
13496 echo "$srcdir/$f"
13497 else
13498 # /dev/null tree
13499 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13500 echo "$as_me: error: cannot find input file: $f" >&2;}
13501 { (exit 1); exit 1; }; }
13502 fi;;
13503 esac
13504 done` || { (exit 1); exit 1; }
13505 _ACEOF
13506 cat >>$CONFIG_STATUS <<_ACEOF
13507 sed "$ac_vpsub
13508 $extrasub
13509 _ACEOF
13510 cat >>$CONFIG_STATUS <<\_ACEOF
13512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13513 s,@configure_input@,$configure_input,;t t
13514 s,@srcdir@,$ac_srcdir,;t t
13515 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13516 s,@top_srcdir@,$ac_top_srcdir,;t t
13517 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13518 s,@builddir@,$ac_builddir,;t t
13519 s,@abs_builddir@,$ac_abs_builddir,;t t
13520 s,@top_builddir@,$ac_top_builddir,;t t
13521 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13522 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13523 rm -f $tmp/stdin
13524 if test x"$ac_file" != x-; then
13525 mv $tmp/out $ac_file
13526 else
13527 cat $tmp/out
13528 rm -f $tmp/out
13531 done
13532 _ACEOF
13533 cat >>$CONFIG_STATUS <<\_ACEOF
13536 # CONFIG_HEADER section.
13539 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13540 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13542 # ac_d sets the value in "#define NAME VALUE" lines.
13543 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13544 ac_dB='[ ].*$,\1#\2'
13545 ac_dC=' '
13546 ac_dD=',;t'
13547 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13548 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13549 ac_uB='$,\1#\2define\3'
13550 ac_uC=' '
13551 ac_uD=',;t'
13553 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13554 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13555 case $ac_file in
13556 - | *:- | *:-:* ) # input from stdin
13557 cat >$tmp/stdin
13558 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13560 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13561 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13562 * ) ac_file_in=$ac_file.in ;;
13563 esac
13565 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13566 echo "$as_me: creating $ac_file" >&6;}
13568 # First look for the input files in the build tree, otherwise in the
13569 # src tree.
13570 ac_file_inputs=`IFS=:
13571 for f in $ac_file_in; do
13572 case $f in
13573 -) echo $tmp/stdin ;;
13574 [\\/$]*)
13575 # Absolute (can't be DOS-style, as IFS=:)
13576 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13577 echo "$as_me: error: cannot find input file: $f" >&2;}
13578 { (exit 1); exit 1; }; }
13579 # Do quote $f, to prevent DOS paths from being IFS'd.
13580 echo "$f";;
13581 *) # Relative
13582 if test -f "$f"; then
13583 # Build tree
13584 echo "$f"
13585 elif test -f "$srcdir/$f"; then
13586 # Source tree
13587 echo "$srcdir/$f"
13588 else
13589 # /dev/null tree
13590 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13591 echo "$as_me: error: cannot find input file: $f" >&2;}
13592 { (exit 1); exit 1; }; }
13593 fi;;
13594 esac
13595 done` || { (exit 1); exit 1; }
13596 # Remove the trailing spaces.
13597 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13599 _ACEOF
13601 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13602 # `conftest.undefs', that substitutes the proper values into
13603 # config.h.in to produce config.h. The first handles `#define'
13604 # templates, and the second `#undef' templates.
13605 # And first: Protect against being on the right side of a sed subst in
13606 # config.status. Protect against being in an unquoted here document
13607 # in config.status.
13608 rm -f conftest.defines conftest.undefs
13609 # Using a here document instead of a string reduces the quoting nightmare.
13610 # Putting comments in sed scripts is not portable.
13612 # `end' is used to avoid that the second main sed command (meant for
13613 # 0-ary CPP macros) applies to n-ary macro definitions.
13614 # See the Autoconf documentation for `clear'.
13615 cat >confdef2sed.sed <<\_ACEOF
13616 s/[\\&,]/\\&/g
13617 s,[\\$`],\\&,g
13618 t clear
13619 : clear
13620 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13621 t end
13622 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13623 : end
13624 _ACEOF
13625 # If some macros were called several times there might be several times
13626 # the same #defines, which is useless. Nevertheless, we may not want to
13627 # sort them, since we want the *last* AC-DEFINE to be honored.
13628 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13629 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13630 rm -f confdef2sed.sed
13632 # This sed command replaces #undef with comments. This is necessary, for
13633 # example, in the case of _POSIX_SOURCE, which is predefined and required
13634 # on some systems where configure will not decide to define it.
13635 cat >>conftest.undefs <<\_ACEOF
13636 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13637 _ACEOF
13639 # Break up conftest.defines because some shells have a limit on the size
13640 # of here documents, and old seds have small limits too (100 cmds).
13641 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13642 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13643 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13644 echo ' :' >>$CONFIG_STATUS
13645 rm -f conftest.tail
13646 while grep . conftest.defines >/dev/null
13648 # Write a limited-size here document to $tmp/defines.sed.
13649 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13650 # Speed up: don't consider the non `#define' lines.
13651 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13652 # Work around the forget-to-reset-the-flag bug.
13653 echo 't clr' >>$CONFIG_STATUS
13654 echo ': clr' >>$CONFIG_STATUS
13655 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13656 echo 'CEOF
13657 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13658 rm -f $tmp/in
13659 mv $tmp/out $tmp/in
13660 ' >>$CONFIG_STATUS
13661 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13662 rm -f conftest.defines
13663 mv conftest.tail conftest.defines
13664 done
13665 rm -f conftest.defines
13666 echo ' fi # grep' >>$CONFIG_STATUS
13667 echo >>$CONFIG_STATUS
13669 # Break up conftest.undefs because some shells have a limit on the size
13670 # of here documents, and old seds have small limits too (100 cmds).
13671 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13672 rm -f conftest.tail
13673 while grep . conftest.undefs >/dev/null
13675 # Write a limited-size here document to $tmp/undefs.sed.
13676 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13677 # Speed up: don't consider the non `#undef'
13678 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13679 # Work around the forget-to-reset-the-flag bug.
13680 echo 't clr' >>$CONFIG_STATUS
13681 echo ': clr' >>$CONFIG_STATUS
13682 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13683 echo 'CEOF
13684 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13685 rm -f $tmp/in
13686 mv $tmp/out $tmp/in
13687 ' >>$CONFIG_STATUS
13688 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13689 rm -f conftest.undefs
13690 mv conftest.tail conftest.undefs
13691 done
13692 rm -f conftest.undefs
13694 cat >>$CONFIG_STATUS <<\_ACEOF
13695 # Let's still pretend it is `configure' which instantiates (i.e., don't
13696 # use $as_me), people would be surprised to read:
13697 # /* config.h. Generated by config.status. */
13698 if test x"$ac_file" = x-; then
13699 echo "/* Generated by configure. */" >$tmp/config.h
13700 else
13701 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13703 cat $tmp/in >>$tmp/config.h
13704 rm -f $tmp/in
13705 if test x"$ac_file" != x-; then
13706 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13707 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13708 echo "$as_me: $ac_file is unchanged" >&6;}
13709 else
13710 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13711 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13712 X"$ac_file" : 'X\(//\)[^/]' \| \
13713 X"$ac_file" : 'X\(//\)$' \| \
13714 X"$ac_file" : 'X\(/\)' \| \
13715 . : '\(.\)' 2>/dev/null ||
13716 echo X"$ac_file" |
13717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13719 /^X\(\/\/\)$/{ s//\1/; q; }
13720 /^X\(\/\).*/{ s//\1/; q; }
13721 s/.*/./; q'`
13722 { if $as_mkdir_p; then
13723 mkdir -p "$ac_dir"
13724 else
13725 as_dir="$ac_dir"
13726 as_dirs=
13727 while test ! -d "$as_dir"; do
13728 as_dirs="$as_dir $as_dirs"
13729 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13731 X"$as_dir" : 'X\(//\)[^/]' \| \
13732 X"$as_dir" : 'X\(//\)$' \| \
13733 X"$as_dir" : 'X\(/\)' \| \
13734 . : '\(.\)' 2>/dev/null ||
13735 echo X"$as_dir" |
13736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13738 /^X\(\/\/\)$/{ s//\1/; q; }
13739 /^X\(\/\).*/{ s//\1/; q; }
13740 s/.*/./; q'`
13741 done
13742 test ! -n "$as_dirs" || mkdir $as_dirs
13743 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13744 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13745 { (exit 1); exit 1; }; }; }
13747 rm -f $ac_file
13748 mv $tmp/config.h $ac_file
13750 else
13751 cat $tmp/config.h
13752 rm -f $tmp/config.h
13754 done
13755 _ACEOF
13756 cat >>$CONFIG_STATUS <<\_ACEOF
13759 # CONFIG_COMMANDS section.
13761 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13762 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13763 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13764 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13765 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13766 X"$ac_dest" : 'X\(//\)[^/]' \| \
13767 X"$ac_dest" : 'X\(//\)$' \| \
13768 X"$ac_dest" : 'X\(/\)' \| \
13769 . : '\(.\)' 2>/dev/null ||
13770 echo X"$ac_dest" |
13771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13773 /^X\(\/\/\)$/{ s//\1/; q; }
13774 /^X\(\/\).*/{ s//\1/; q; }
13775 s/.*/./; q'`
13776 { if $as_mkdir_p; then
13777 mkdir -p "$ac_dir"
13778 else
13779 as_dir="$ac_dir"
13780 as_dirs=
13781 while test ! -d "$as_dir"; do
13782 as_dirs="$as_dir $as_dirs"
13783 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13785 X"$as_dir" : 'X\(//\)[^/]' \| \
13786 X"$as_dir" : 'X\(//\)$' \| \
13787 X"$as_dir" : 'X\(/\)' \| \
13788 . : '\(.\)' 2>/dev/null ||
13789 echo X"$as_dir" |
13790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13792 /^X\(\/\/\)$/{ s//\1/; q; }
13793 /^X\(\/\).*/{ s//\1/; q; }
13794 s/.*/./; q'`
13795 done
13796 test ! -n "$as_dirs" || mkdir $as_dirs
13797 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13798 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13799 { (exit 1); exit 1; }; }; }
13801 ac_builddir=.
13803 if test "$ac_dir" != .; then
13804 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13805 # A "../" for each directory in $ac_dir_suffix.
13806 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13807 else
13808 ac_dir_suffix= ac_top_builddir=
13811 case $srcdir in
13812 .) # No --srcdir option. We are building in place.
13813 ac_srcdir=.
13814 if test -z "$ac_top_builddir"; then
13815 ac_top_srcdir=.
13816 else
13817 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13818 fi ;;
13819 [\\/]* | ?:[\\/]* ) # Absolute path.
13820 ac_srcdir=$srcdir$ac_dir_suffix;
13821 ac_top_srcdir=$srcdir ;;
13822 *) # Relative path.
13823 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13824 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13825 esac
13827 # Do not use `cd foo && pwd` to compute absolute paths, because
13828 # the directories may not exist.
13829 case `pwd` in
13830 .) ac_abs_builddir="$ac_dir";;
13832 case "$ac_dir" in
13833 .) ac_abs_builddir=`pwd`;;
13834 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13835 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13836 esac;;
13837 esac
13838 case $ac_abs_builddir in
13839 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13841 case ${ac_top_builddir}. in
13842 .) ac_abs_top_builddir=$ac_abs_builddir;;
13843 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13844 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13845 esac;;
13846 esac
13847 case $ac_abs_builddir in
13848 .) ac_abs_srcdir=$ac_srcdir;;
13850 case $ac_srcdir in
13851 .) ac_abs_srcdir=$ac_abs_builddir;;
13852 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13853 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13854 esac;;
13855 esac
13856 case $ac_abs_builddir in
13857 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13859 case $ac_top_srcdir in
13860 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13861 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13862 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13863 esac;;
13864 esac
13867 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13868 echo "$as_me: executing $ac_dest commands" >&6;}
13869 case $ac_dest in
13870 default )
13871 case ${CONFIG_HEADERS} in
13872 *auto-host.h:config.in*)
13873 echo > cstamp-h ;;
13874 esac
13875 # Make sure all the subdirs exist.
13876 for d in $subdirs
13878 test -d $d || mkdir $d
13879 done
13880 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13881 # bootstrapping and the installation procedure can still use
13882 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13883 # FLAGS_TO_PASS has been modified to solve the problem there.
13884 # This is virtually a duplicate of what happens in configure.lang; we do
13885 # an extra check to make sure this only happens if ln -s can be used.
13886 if test "$symbolic_link" = "ln -s"; then
13887 for d in ${subdirs} fixinc ; do
13888 STARTDIR=`${PWDCMD-pwd}`
13889 cd $d
13890 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13892 rm -f $t
13893 $symbolic_link ../$t $t 2>/dev/null
13894 done
13895 cd $STARTDIR
13896 done
13897 else true ; fi
13899 esac
13900 done
13901 _ACEOF
13903 cat >>$CONFIG_STATUS <<\_ACEOF
13905 { (exit 0); exit 0; }
13906 _ACEOF
13907 chmod +x $CONFIG_STATUS
13908 ac_clean_files=$ac_clean_files_save
13911 # configure is writing to config.log, and then calls config.status.
13912 # config.status does its own redirection, appending to config.log.
13913 # Unfortunately, on DOS this fails, as config.log is still kept open
13914 # by configure, so config.status won't be able to write to it; its
13915 # output is simply discarded. So we exec the FD to /dev/null,
13916 # effectively closing config.log, so it can be properly (re)opened and
13917 # appended to by config.status. When coming back to configure, we
13918 # need to make the FD available again.
13919 if test "$no_create" != yes; then
13920 ac_cs_success=:
13921 ac_config_status_args=
13922 test "$silent" = yes &&
13923 ac_config_status_args="$ac_config_status_args --quiet"
13924 exec 5>/dev/null
13925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13926 exec 5>>config.log
13927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13928 # would make configure fail if this is the last instruction.
13929 $ac_cs_success || { (exit 1); exit 1; }