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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
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.
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
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 TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV 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.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
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'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
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 ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
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'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
430 -help | --help | --hel | --he | -h)
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)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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)
583 -version | --version | --versio | --versi | --vers | -V)
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'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
609 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
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`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
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.
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
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 ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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}
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.
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.
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 \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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]
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
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]
854 if test -n "$ac_init_help"; then
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: fold,gc,gcac,misc,rtlflag,rtl,
871 tree,valgrind; default is gc,misc,rtlflag,tree
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler\'s code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-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
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
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-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
925 --with-gc={page,zone} choose the garbage collection mechanism to use
927 --with-system-zlib use installed libz
928 --with-libbanshee enable libbanshee
929 --with-slibdir=DIR shared libraries in DIR LIBDIR
931 Some influential environment variables:
932 CC C compiler command
933 CFLAGS C compiler flags
934 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
935 nonstandard directory <lib dir>
936 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
937 headers in a nonstandard directory <include dir>
939 GMPLIBS How to link GMP
940 GMPINC How to find GMP include files
942 Use these variables to override the choices made by `configure' or to help
943 it to find libraries and programs with nonstandard names/locations.
948 if test "$ac_init_help" = "recursive"; then
949 # If there are subdirs, report their specific --help.
951 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952 test -d $ac_dir || continue
955 if test "$ac_dir" != .; then
956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957 # A "../" for each directory in $ac_dir_suffix.
958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
960 ac_dir_suffix= ac_top_builddir=
964 .) # No --srcdir option. We are building in place.
966 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
971 [\\/]* | ?:[\\/]* ) # Absolute path.
972 ac_srcdir=$srcdir$ac_dir_suffix;
973 ac_top_srcdir=$srcdir ;;
975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 # Do not use `cd foo && pwd` to compute absolute paths, because
980 # the directories may not exist.
982 .) ac_abs_builddir="$ac_dir";;
985 .) ac_abs_builddir=`pwd`;;
986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 case $ac_abs_builddir in
991 .) ac_abs_top_builddir=${ac_top_builddir}.;;
993 case ${ac_top_builddir}. in
994 .) ac_abs_top_builddir=$ac_abs_builddir;;
995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 case $ac_abs_builddir in
1000 .) ac_abs_srcdir=$ac_srcdir;;
1003 .) ac_abs_srcdir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1011 case $ac_top_srcdir in
1012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1019 # Check for guested configure; otherwise get Cygnus style configure.
1020 if test -f $ac_srcdir/configure.gnu; then
1022 $SHELL $ac_srcdir/configure.gnu --help=recursive
1023 elif test -f $ac_srcdir/configure; then
1025 $SHELL $ac_srcdir/configure --help=recursive
1026 elif test -f $ac_srcdir/configure.ac ||
1027 test -f $ac_srcdir/configure.in; then
1029 $ac_configure --help
1031 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1037 test -n "$ac_init_help" && exit 0
1038 if $ac_init_version; then
1041 Copyright (C) 2003 Free Software Foundation, Inc.
1042 This configure script is free software; the Free Software Foundation
1043 gives unlimited permission to copy, distribute and modify it.
1049 This file contains any messages produced by compilers while
1050 running configure, to aid debugging if configure makes a mistake.
1052 It was created by $as_me, which was
1053 generated by GNU Autoconf 2.59. Invocation command line was
1064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1076 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 test -z "$as_dir" && as_dir=.
1088 echo "PATH: $as_dir"
1103 # Keep a trace of the command line.
1104 # Strip out --no-create and --no-recursion so they do not pile up.
1105 # Strip out --silent because we don't want to record it for future runs.
1106 # Also quote any args containing shell meta-characters.
1107 # Make two passes to allow for proper duplicate-argument suppression.
1112 ac_must_keep_next=false
1118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1122 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1128 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1129 if test $ac_must_keep_next = true; then
1130 ac_must_keep_next=false # Got value, back to normal.
1133 *=* | --config-cache | -C | -disable-* | --disable-* \
1134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1136 | -with-* | --with-* | -without-* | --without-* | --x)
1137 case "$ac_configure_args0 " in
1138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 -* ) ac_must_keep_next=true ;;
1144 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1145 # Get rid of the leading space.
1151 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1152 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1154 # When interrupted or exit'd, cleanup temporary files, and complete
1155 # config.log. We remove comments because anyway the quotes in there
1156 # would cause problems or look ugly.
1157 # WARNING: Be sure not to use single quotes in there, as some shells,
1158 # such as our DU 5.0 friend, will then `close' the trap.
1159 trap 'exit_status=$?
1160 # Save into config.log some information that might help in debugging.
1165 ## ---------------- ##
1166 ## Cache variables. ##
1167 ## ---------------- ##
1170 # The following way of writing the cache mishandles newlines in values,
1173 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1181 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1188 ## ----------------- ##
1189 ## Output variables. ##
1190 ## ----------------- ##
1193 for ac_var in $ac_subst_vars
1195 eval ac_val=$`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1200 if test -n "$ac_subst_files"; then
1207 for ac_var in $ac_subst_files
1209 eval ac_val=$`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1215 if test -s confdefs.h; then
1222 sed "/^$/d" confdefs.h | sort
1225 test "$ac_signal" != 0 &&
1226 echo "$as_me: caught signal $ac_signal"
1227 echo "$as_me: exit $exit_status"
1229 rm -f core *.core &&
1230 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 for ac_signal in 1 2 13 15; do
1234 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239 rm -rf conftest* confdefs.h
1240 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 # Predefined preprocessor variables.
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 # Let the site file select an alternate cache file if it wants to.
1271 # Prefer explicitly selected file to automatically selected ones.
1272 if test -z "$CONFIG_SITE"; then
1273 if test "x$prefix" != xNONE; then
1274 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1276 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 for ac_site_file in $CONFIG_SITE; do
1280 if test -r "$ac_site_file"; then
1281 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282 echo "$as_me: loading site script $ac_site_file" >&6;}
1283 sed 's/^/| /' "$ac_site_file" >&5
1288 if test -r "$cache_file"; then
1289 # Some versions of bash will fail to source /dev/null (special
1290 # files actually), so we avoid doing that.
1291 if test -f "$cache_file"; then
1292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293 echo "$as_me: loading cache $cache_file" >&6;}
1295 [\\/]* | ?:[\\/]* ) . $cache_file;;
1296 *) . ./$cache_file;;
1300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301 echo "$as_me: creating cache $cache_file" >&6;}
1305 # Check that the precious variables saved in the cache have kept the same
1307 ac_cache_corrupted=false
1308 for ac_var in `(set) 2>&1 |
1309 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311 eval ac_new_set=\$ac_env_${ac_var}_set
1312 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313 eval ac_new_val="\$ac_env_${ac_var}_value"
1314 case $ac_old_set,$ac_new_set in
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318 ac_cache_corrupted=: ;;
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1325 if test "x$ac_old_val" != "x$ac_new_val"; then
1326 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1328 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1329 echo "$as_me: former value: $ac_old_val" >&2;}
1330 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1331 echo "$as_me: current value: $ac_new_val" >&2;}
1332 ac_cache_corrupted=:
1335 # Pass precious variables to config.status.
1336 if test "$ac_new_set" = set; then
1338 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340 *) ac_arg=$ac_var=$ac_new_val ;;
1342 case " $ac_configure_args " in
1343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348 if $ac_cache_corrupted; then
1349 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353 { (exit 1); exit 1; }; }
1357 ac_cpp='$CPP $CPPFLAGS'
1358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1384 # Determine the host, build, and target systems
1386 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1387 if test -f $ac_dir/install-sh; then
1389 ac_install_sh="$ac_aux_dir/install-sh -c"
1391 elif test -f $ac_dir/install.sh; then
1393 ac_install_sh="$ac_aux_dir/install.sh -c"
1395 elif test -f $ac_dir/shtool; then
1397 ac_install_sh="$ac_aux_dir/shtool install -c"
1401 if test -z "$ac_aux_dir"; then
1402 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1404 { (exit 1); exit 1; }; }
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410 # Make sure we can run config.sub.
1411 $ac_config_sub sun4 >/dev/null 2>&1 ||
1412 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1413 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1414 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: checking build system type" >&5
1417 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1418 if test "${ac_cv_build+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 ac_cv_build_alias=$build_alias
1422 test -z "$ac_cv_build_alias" &&
1423 ac_cv_build_alias=`$ac_config_guess`
1424 test -z "$ac_cv_build_alias" &&
1425 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1426 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1427 { (exit 1); exit 1; }; }
1428 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1429 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1430 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1431 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1435 echo "${ECHO_T}$ac_cv_build" >&6
1437 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442 echo "$as_me:$LINENO: checking host system type" >&5
1443 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1444 if test "${ac_cv_host+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 ac_cv_host_alias=$host_alias
1448 test -z "$ac_cv_host_alias" &&
1449 ac_cv_host_alias=$ac_cv_build_alias
1450 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1453 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1457 echo "${ECHO_T}$ac_cv_host" >&6
1459 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464 echo "$as_me:$LINENO: checking target system type" >&5
1465 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1466 if test "${ac_cv_target+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_target_alias=$target_alias
1470 test "x$ac_cv_target_alias" = "x" &&
1471 ac_cv_target_alias=$ac_cv_host_alias
1472 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1479 echo "${ECHO_T}$ac_cv_target" >&6
1480 target=$ac_cv_target
1481 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486 # The aliases save the names the user supplied, while $host etc.
1487 # will get canonicalized.
1488 test -n "$target_alias" &&
1489 test "$program_prefix$program_suffix$program_transform_name" = \
1491 program_prefix=${target_alias}-
1493 # Determine the noncanonical target name, for directory use.
1494 case ${build_alias} in
1495 "") build_noncanonical=${build} ;;
1496 *) build_noncanonical=${build_alias} ;;
1499 case ${host_alias} in
1500 "") host_noncanonical=${build_noncanonical} ;;
1501 *) host_noncanonical=${host_alias} ;;
1504 case ${target_alias} in
1505 "") target_noncanonical=${host_noncanonical} ;;
1506 *) target_noncanonical=${target_alias} ;;
1510 # Determine the target- and build-specific subdirectories
1511 # Prefix 'build-' so this never conflicts with target_subdir.
1512 build_subdir="build-${build_noncanonical}"
1513 # Not really a subdirectory, but here for completeness.
1516 target_subdir=${target_noncanonical}
1519 # Set program_transform_name
1520 test "$program_prefix" != NONE &&
1521 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1522 # Use a double $ so make ignores it.
1523 test "$program_suffix" != NONE &&
1524 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1525 # Double any \ or $. echo might interpret backslashes.
1526 # By default was `s,x,x', remove it if useless.
1527 cat <<\_ACEOF >conftest.sed
1528 s/[\\$]/&&/g;s/;s,x,x,$//
1530 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1534 # Check for bogus environment variables.
1535 # Test if LIBRARY_PATH contains the notation for the current directory
1536 # since this would lead to problems installing/building glibc.
1537 # LIBRARY_PATH contains the current directory if one of the following
1539 # - one of the terminals (":" and ";") is the first or last sign
1540 # - two terminals occur directly after each other
1541 # - the path contains an element with a dot in it
1542 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1543 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1544 case ${LIBRARY_PATH} in
1545 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1546 library_path_setting="contains current directory"
1549 library_path_setting="ok"
1552 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1553 echo "${ECHO_T}$library_path_setting" >&6
1554 if test "$library_path_setting" != "ok"; then
1555 { { echo "$as_me:$LINENO: error:
1556 *** LIBRARY_PATH shouldn't contain the current directory when
1557 *** building gcc. Please change the environment variable
1558 *** and run configure again." >&5
1559 echo "$as_me: error:
1560 *** LIBRARY_PATH shouldn't contain the current directory when
1561 *** building gcc. Please change the environment variable
1562 *** and run configure again." >&2;}
1563 { (exit 1); exit 1; }; }
1566 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1567 # since this would lead to problems installing/building glibc.
1568 # GCC_EXEC_PREFIX contains the current directory if one of the following
1570 # - one of the terminals (":" and ";") is the first or last sign
1571 # - two terminals occur directly after each other
1572 # - the path contains an element with a dot in it
1573 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1574 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1575 case ${GCC_EXEC_PREFIX} in
1576 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1577 gcc_exec_prefix_setting="contains current directory"
1580 gcc_exec_prefix_setting="ok"
1583 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1584 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1585 if test "$gcc_exec_prefix_setting" != "ok"; then
1586 { { echo "$as_me:$LINENO: error:
1587 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1588 *** building gcc. Please change the environment variable
1589 *** and run configure again." >&5
1590 echo "$as_me: error:
1591 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1592 *** building gcc. Please change the environment variable
1593 *** and run configure again." >&2;}
1594 { (exit 1); exit 1; }; }
1601 # Specify the local prefix
1604 # Check whether --with-local-prefix or --without-local-prefix was given.
1605 if test "${with_local_prefix+set}" = set; then
1606 withval="$with_local_prefix"
1607 case "${withval}" in
1608 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1609 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1610 { (exit 1); exit 1; }; } ;;
1612 *) local_prefix=$with_local_prefix ;;
1616 # Default local prefix if it is empty
1617 if test x$local_prefix = x; then
1618 local_prefix=/usr/local
1621 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1622 # passed in by the toplevel make and thus we'd get different behavior
1623 # depending on where we built the sources.
1624 gcc_gxx_include_dir=
1625 # Specify the g++ header file directory
1627 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1628 if test "${with_gxx_include_dir+set}" = set; then
1629 withval="$with_gxx_include_dir"
1630 case "${withval}" in
1631 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1632 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1633 { (exit 1); exit 1; }; } ;;
1635 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1639 if test x${gcc_gxx_include_dir} = x; then
1640 if test x${enable_version_specific_runtime_libs} = xyes; then
1641 gcc_gxx_include_dir='${libsubdir}/include/c++'
1643 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1644 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1649 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1650 if test "${with_cpp_install_dir+set}" = set; then
1651 withval="$with_cpp_install_dir"
1652 if test x$withval = xyes; then
1653 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1654 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1655 { (exit 1); exit 1; }; }
1656 elif test x$withval != xno; then
1657 cpp_install_dir=$withval
1661 # We would like to our source tree to be readonly. However when releases or
1662 # pre-releases are generated, the flex/bison generated files as well as the
1663 # various formats of manuals need to be included along with the rest of the
1664 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1667 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1668 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1669 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1670 if test "${enable_generated_files_in_srcdir+set}" = set; then
1671 enableval="$enable_generated_files_in_srcdir"
1672 generated_files_in_srcdir=$enableval
1674 generated_files_in_srcdir=no
1677 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1678 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1680 if test "$generated_files_in_srcdir" = "yes"; then
1687 # -------------------
1688 # Find default linker
1689 # -------------------
1693 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1694 if test "${with_gnu_ld+set}" = set; then
1695 withval="$with_gnu_ld"
1696 gnu_ld_flag="$with_gnu_ld"
1701 # With pre-defined ld
1703 # Check whether --with-ld or --without-ld was given.
1704 if test "${with_ld+set}" = set; then
1706 DEFAULT_LINKER="$with_ld"
1708 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1709 if test ! -x "$DEFAULT_LINKER"; then
1710 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1711 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1712 { (exit 1); exit 1; }; }
1713 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1717 cat >>confdefs.h <<_ACEOF
1718 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1723 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1724 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1725 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1726 if test x"$gnu_ld_flag" = x"no"; then
1727 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1728 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1730 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1731 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1738 # With demangler in GNU ld
1740 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1741 if test "${with_demangler_in_ld+set}" = set; then
1742 withval="$with_demangler_in_ld"
1743 demangler_in_ld="$with_demangler_in_ld"
1748 # ----------------------
1749 # Find default assembler
1750 # ----------------------
1754 # Check whether --with-gnu-as or --without-gnu-as was given.
1755 if test "${with_gnu_as+set}" = set; then
1756 withval="$with_gnu_as"
1757 gas_flag="$with_gnu_as"
1763 # Check whether --with-as or --without-as was given.
1764 if test "${with_as+set}" = set; then
1766 DEFAULT_ASSEMBLER="$with_as"
1768 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1769 if test ! -x "$DEFAULT_ASSEMBLER"; then
1770 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1771 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1772 { (exit 1); exit 1; }; }
1773 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1777 cat >>confdefs.h <<_ACEOF
1778 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1783 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1784 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1785 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1786 if test x"$gas_flag" = x"no"; then
1787 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1788 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1790 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1791 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1802 # If a non-executable a.out is present (e.g. created by GNU as above even if
1803 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1804 # file, even when creating an executable, so an execution test fails.
1805 # Remove possible default executable files to avoid this.
1807 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1808 # Autoconf includes it.
1809 rm -f a.out a.exe b.out
1811 # Find the native compiler
1813 ac_cpp='$CPP $CPPFLAGS'
1814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1817 if test -n "$ac_tool_prefix"; then
1818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1849 echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1854 if test -z "$ac_cv_prog_CC"; then
1856 # Extract the first word of "gcc", so it can be a program name with args.
1857 set dummy gcc; ac_word=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_ac_ct_CC="gcc"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1896 if test -z "$CC"; then
1897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}cc; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 ac_cv_prog_CC="${ac_tool_prefix}cc"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 if test -n "$CC"; then
1926 echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1934 if test -z "$ac_cv_prog_CC"; then
1936 # Extract the first word of "cc", so it can be a program name with args.
1937 set dummy cc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 if test -n "$ac_ct_CC"; then
1944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_ac_ct_CC="cc"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1963 if test -n "$ac_ct_CC"; then
1964 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965 echo "${ECHO_T}$ac_ct_CC" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1977 if test -z "$CC"; then
1978 # Extract the first word of "cc", so it can be a program name with args.
1979 set dummy cc; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997 ac_prog_rejected=yes
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 if test $ac_prog_rejected = yes; then
2008 # We found a bogon in the path, so make sure we never use it.
2009 set dummy $ac_cv_prog_CC
2011 if test $# != 0; then
2012 # We chose a different compiler from the bogus one.
2013 # However, it has the same basename, so the bogon will be chosen
2014 # first if we set CC to just the basename; use the full file name.
2016 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2022 if test -n "$CC"; then
2023 echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2031 if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CC"; then
2063 echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2070 test -n "$CC" && break
2073 if test -z "$CC"; then
2077 # Extract the first word of "$ac_prog", so it can be a program name with args.
2078 set dummy $ac_prog; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 if test -n "$ac_ct_CC"; then
2085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094 ac_cv_prog_ac_ct_CC="$ac_prog"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2112 test -n "$ac_ct_CC" && break
2121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2127 # Provide some information about the compiler.
2128 echo "$as_me:$LINENO:" \
2129 "checking for C compiler version" >&5
2130 ac_compiler=`set X $ac_compile; echo $2`
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2132 (eval $ac_compiler --version </dev/null >&5) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2137 (eval $ac_compiler -v </dev/null >&5) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2142 (eval $ac_compiler -V </dev/null >&5) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2147 cat >conftest.$ac_ext <<_ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2167 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2171 (eval $ac_link_default) 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 # Find the output, starting from the most likely. This scheme is
2176 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179 # Be careful to initialize this variable, since it used to be cached.
2180 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2182 # b.out is created by i960 compilers.
2183 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2185 test -f "$ac_file" || continue
2187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190 # This is the source file.
2193 # We found the default executable, but exeext='' is most
2197 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 # FIXME: I believe we export ac_cv_exeext for Libtool,
2199 # but it would be cool to find out if it's true. Does anybody
2200 # maintain Libtool? --akim.
2208 echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215 { (exit 77); exit 77; }; }
2218 ac_exeext=$ac_cv_exeext
2219 echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6
2222 # Check the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229 if { ac_try='./$ac_file'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 if test "$cross_compiling" = maybe; then
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2250 echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check the compiler produces executables we can run. If not, either
2256 # the compiler is broken, or we cross compile.
2257 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2259 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6
2262 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2265 (eval $ac_link) 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2273 for ac_file in conftest.exe conftest conftest.*; do
2274 test -f "$ac_file" || continue
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2291 rm -f conftest$ac_cv_exeext
2292 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6
2295 rm -f conftest.$ac_ext
2296 EXEEXT=$ac_cv_exeext
2298 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300 if test "${ac_cv_objext+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2318 rm -f conftest.o conftest.obj
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6
2346 OBJEXT=$ac_cv_objext
2348 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.$ac_ext <<_ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2403 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405 GCC=`test $ac_compiler_gnu = yes && echo yes`
2406 ac_test_CFLAGS=${CFLAGS+set}
2407 ac_save_CFLAGS=$CFLAGS
2409 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411 if test "${ac_cv_prog_cc_g+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2433 grep -v '^ *+' conftest.er1 >conftest.err
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461 if test "$ac_test_CFLAGS" = set; then
2462 CFLAGS=$ac_save_CFLAGS
2463 elif test $ac_cv_prog_cc_g = yes; then
2464 if test "$GCC" = yes; then
2470 if test "$GCC" = yes; then
2476 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 ac_cv_prog_cc_stdc=no
2483 cat >conftest.$ac_ext <<_ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2491 #include <sys/types.h>
2492 #include <sys/stat.h>
2493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2494 struct buf { int x; };
2495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496 static char *e (p, i)
2502 static char *f (char * (*g) (char **, int), char **p, ...)
2507 s = g (p, va_arg (v,int));
2512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2513 function prototypes and stuff, but not '\xHH' hex character constants.
2514 These don't provoke an error unfortunately, instead are silently treated
2515 as 'x'. The following induces an error, until -std1 is added to get
2516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2517 array size at least. It's necessary to write '\x00'==0 to get something
2518 that's true only with -std1. */
2519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521 int test (int i, double x);
2522 struct s1 {int (*f) (int a);};
2523 struct s2 {int (*f) (double a);};
2524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2530 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2535 # Don't try gcc -ansi; that turns off useful extensions and
2536 # breaks some systems' header files.
2537 # AIX -qlanglvl=ansi
2538 # Ultrix and OSF/1 -std1
2539 # HP-UX 10.20 and later -Ae
2540 # HP-UX older versions -Aa -D_HPUX_SOURCE
2541 # SVR4 -Xc -D__EXTENSIONS__
2542 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544 CC="$ac_save_CC $ac_arg"
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 ac_cv_prog_cc_stdc=$ac_arg
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext
2575 rm -f conftest.$ac_ext conftest.$ac_objext
2580 case "x$ac_cv_prog_cc_stdc" in
2582 echo "$as_me:$LINENO: result: none needed" >&5
2583 echo "${ECHO_T}none needed" >&6 ;;
2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587 CC="$CC $ac_cv_prog_cc_stdc" ;;
2590 # Some people use a C++ compiler to compile C. Since we use `exit',
2591 # in C++ we need to declare it. In case someone uses the same compiler
2592 # for both compiling C and C++ we need to have the C++ compiler decide
2593 # the declaration of exit, since it's the most demanding environment.
2594 cat >conftest.$ac_ext <<_ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 for ac_declaration in \
2622 'extern "C" void std::exit (int) throw (); using std::exit;' \
2623 'extern "C" void std::exit (int); using std::exit;' \
2624 'extern "C" void exit (int) throw ();' \
2625 'extern "C" void exit (int);' \
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>conftest.er1
2692 grep -v '^ *+' conftest.er1 >conftest.err
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; } &&
2703 { ac_try='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718 if test -n "$ac_declaration"; then
2719 echo '#ifdef __cplusplus' >>confdefs.h
2720 echo $ac_declaration >>confdefs.h
2721 echo '#endif' >>confdefs.h
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 if test "x$CC" != xcc; then
2737 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2738 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2740 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2741 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2743 set dummy $CC; ac_cc=`echo $2 |
2744 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2745 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 cat >conftest.$ac_ext <<_ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2763 # Make sure it works both with $CC and with simple cc.
2764 # We do the test twice because some compilers refuse to overwrite an
2765 # existing .o file with -o, though they will create one.
2766 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2767 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); };
2778 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2779 if test "x$CC" != xcc; then
2780 # Test first that cc exists at all.
2781 if { ac_try='cc -c conftest.$ac_ext >&5'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2788 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); };
2802 # cc exists but doesn't like -o.
2803 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2808 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2813 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2814 echo "$as_me:$LINENO: result: yes" >&5
2815 echo "${ECHO_T}yes" >&6
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2820 cat >>confdefs.h <<\_ACEOF
2821 #define NO_MINUS_C_MINUS_O 1
2826 # autoconf is lame and doesn't give us any substitution variable for this.
2827 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2828 NO_MINUS_C_MINUS_O=yes
2830 OUTPUT_OPTION='-o $@'
2835 # -------------------------
2836 # Check C compiler features
2837 # -------------------------
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2845 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2846 # On Suns, sometimes $CPP names a directory.
2847 if test -n "$CPP" && test -d "$CPP"; then
2850 if test -z "$CPP"; then
2851 if test "${ac_cv_prog_CPP+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 # Double quotes because CPP needs to be expanded
2855 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2858 for ac_c_preproc_warn_flag in '' yes
2860 # Use a header file that comes with gcc, so configuring glibc
2861 # with a fresh cross-compiler works.
2862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2863 # <limits.h> exists even on freestanding compilers.
2864 # On the NeXT, cc -E runs the code through the compiler's parser,
2865 # not just through cpp. "Syntax error" is here to catch this case.
2866 cat >conftest.$ac_ext <<_ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2873 # include <limits.h>
2875 # include <assert.h>
2879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2882 grep -v '^ *+' conftest.er1 >conftest.err
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } >/dev/null; then
2887 if test -s conftest.err; then
2888 ac_cpp_err=$ac_c_preproc_warn_flag
2889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2896 if test -z "$ac_cpp_err"; then
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2902 # Broken: fails on valid input.
2905 rm -f conftest.err conftest.$ac_ext
2907 # OK, works on sane cases. Now check whether non-existent headers
2908 # can be detected and how.
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2915 #include <ac_nonexistent.h>
2917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2920 grep -v '^ *+' conftest.er1 >conftest.err
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev/null; then
2925 if test -s conftest.err; then
2926 ac_cpp_err=$ac_c_preproc_warn_flag
2927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2934 if test -z "$ac_cpp_err"; then
2935 # Broken: success on invalid input.
2938 echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2941 # Passes both tests.
2945 rm -f conftest.err conftest.$ac_ext
2948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2949 rm -f conftest.err conftest.$ac_ext
2950 if $ac_preproc_ok; then
2962 echo "$as_me:$LINENO: result: $CPP" >&5
2963 echo "${ECHO_T}$CPP" >&6
2965 for ac_c_preproc_warn_flag in '' yes
2967 # Use a header file that comes with gcc, so configuring glibc
2968 # with a fresh cross-compiler works.
2969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2970 # <limits.h> exists even on freestanding compilers.
2971 # On the NeXT, cc -E runs the code through the compiler's parser,
2972 # not just through cpp. "Syntax error" is here to catch this case.
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2980 # include <limits.h>
2982 # include <assert.h>
2986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989 grep -v '^ *+' conftest.er1 >conftest.err
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } >/dev/null; then
2994 if test -s conftest.err; then
2995 ac_cpp_err=$ac_c_preproc_warn_flag
2996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3003 if test -z "$ac_cpp_err"; then
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 # Broken: fails on valid input.
3012 rm -f conftest.err conftest.$ac_ext
3014 # OK, works on sane cases. Now check whether non-existent headers
3015 # can be detected and how.
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 #include <ac_nonexistent.h>
3024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } >/dev/null; then
3032 if test -s conftest.err; then
3033 ac_cpp_err=$ac_c_preproc_warn_flag
3034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041 if test -z "$ac_cpp_err"; then
3042 # Broken: success on invalid input.
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3048 # Passes both tests.
3052 rm -f conftest.err conftest.$ac_ext
3055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3056 rm -f conftest.err conftest.$ac_ext
3057 if $ac_preproc_ok; then
3060 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3061 See \`config.log' for more details." >&5
3062 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3063 See \`config.log' for more details." >&2;}
3064 { (exit 1); exit 1; }; }
3068 ac_cpp='$CPP $CPPFLAGS'
3069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074 echo "$as_me:$LINENO: checking for inline" >&5
3075 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3076 if test "${ac_cv_c_inline+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 for ac_kw in inline __inline__ __inline; do
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3089 static $ac_kw foo_t static_foo () {return 0; }
3090 $ac_kw foo_t foo () {return 0; }
3094 rm -f conftest.$ac_objext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; } &&
3109 { ac_try='test -s conftest.$ac_objext'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3115 ac_cv_c_inline=$ac_kw; break
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3125 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3126 echo "${ECHO_T}$ac_cv_c_inline" >&6
3129 case $ac_cv_c_inline in
3132 case $ac_cv_c_inline in
3134 *) ac_val=$ac_cv_c_inline;;
3136 cat >>confdefs.h <<_ACEOF
3138 #define inline $ac_val
3145 echo "$as_me:$LINENO: checking for long long int" >&5
3146 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3147 if test "${ac_cv_c_long_long+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167 (eval $ac_compile) 2>conftest.er1
3169 grep -v '^ *+' conftest.er1 >conftest.err
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_cv_c_long_long=yes
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 ac_cv_c_long_long=no
3193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3195 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3196 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3197 if test $ac_cv_c_long_long = yes; then
3199 cat >>confdefs.h <<\_ACEOF
3200 #define HAVE_LONG_LONG 1
3204 echo "$as_me:$LINENO: checking for __int64" >&5
3205 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3206 if test "${ac_cv_c___int64+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 cat >conftest.$ac_ext <<_ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.$ac_objext
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>conftest.er1
3228 grep -v '^ *+' conftest.er1 >conftest.err
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; } &&
3239 { ac_try='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3254 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3255 echo "${ECHO_T}$ac_cv_c___int64" >&6
3256 if test $ac_cv_c___int64 = yes; then
3258 cat >>confdefs.h <<\_ACEOF
3259 #define HAVE___INT64 1
3265 # sizeof(char) is 1 by definition.
3266 echo "$as_me:$LINENO: checking size of void *" >&5
3267 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3268 if test "${ac_cv_sizeof_void_p+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3278 #include "confdefs.h"
3279 #include <sys/types.h>
3285 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3290 rm -f conftest.$ac_objext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; } &&
3305 { ac_try='test -s conftest.$ac_objext'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 ac_cv_sizeof_void_p=$ac_size
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3323 if test x$ac_cv_sizeof_void_p = x ; then
3324 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3325 echo "$as_me: error: cannot determine a size for void *" >&2;}
3326 { (exit 1); exit 1; }; }
3328 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3329 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3331 cat >>confdefs.h <<_ACEOF
3332 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3336 echo "$as_me:$LINENO: checking size of short" >&5
3337 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3338 if test "${ac_cv_sizeof_short+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3342 cat >conftest.$ac_ext <<_ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3355 switch (0) case 0: case (sizeof (short) == $ac_size):;
3360 rm -f conftest.$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>conftest.er1
3364 grep -v '^ *+' conftest.er1 >conftest.err
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 ac_cv_sizeof_short=$ac_size
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3388 if test x$ac_cv_sizeof_short != x ; then break; fi
3393 if test x$ac_cv_sizeof_short = x ; then
3394 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3395 echo "$as_me: error: cannot determine a size for short" >&2;}
3396 { (exit 1); exit 1; }; }
3398 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3399 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3401 cat >>confdefs.h <<_ACEOF
3402 #define SIZEOF_SHORT $ac_cv_sizeof_short
3406 echo "$as_me:$LINENO: checking size of int" >&5
3407 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3408 if test "${ac_cv_sizeof_int+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 #include "confdefs.h"
3419 #include <sys/types.h>
3425 switch (0) case 0: case (sizeof (int) == $ac_size):;
3430 rm -f conftest.$ac_objext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432 (eval $ac_compile) 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } &&
3439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_sizeof_int=$ac_size
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3458 if test x$ac_cv_sizeof_int != x ; then break; fi
3463 if test x$ac_cv_sizeof_int = x ; then
3464 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3465 echo "$as_me: error: cannot determine a size for int" >&2;}
3466 { (exit 1); exit 1; }; }
3468 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3469 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3471 cat >>confdefs.h <<_ACEOF
3472 #define SIZEOF_INT $ac_cv_sizeof_int
3476 echo "$as_me:$LINENO: checking size of long" >&5
3477 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3478 if test "${ac_cv_sizeof_long+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3495 switch (0) case 0: case (sizeof (long) == $ac_size):;
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 ac_cv_sizeof_long=$ac_size
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3528 if test x$ac_cv_sizeof_long != x ; then break; fi
3533 if test x$ac_cv_sizeof_long = x ; then
3534 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3535 echo "$as_me: error: cannot determine a size for long" >&2;}
3536 { (exit 1); exit 1; }; }
3538 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3539 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3541 cat >>confdefs.h <<_ACEOF
3542 #define SIZEOF_LONG $ac_cv_sizeof_long
3546 if test $ac_cv_c_long_long = yes; then
3547 echo "$as_me:$LINENO: checking size of long long" >&5
3548 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3549 if test "${ac_cv_sizeof_long_long+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include "confdefs.h"
3560 #include <sys/types.h>
3566 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3575 grep -v '^ *+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; } &&
3586 { ac_try='test -s conftest.$ac_objext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 ac_cv_sizeof_long_long=$ac_size
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3604 if test x$ac_cv_sizeof_long_long = x ; then
3605 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3606 echo "$as_me: error: cannot determine a size for long long" >&2;}
3607 { (exit 1); exit 1; }; }
3609 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3610 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3612 cat >>confdefs.h <<_ACEOF
3613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3618 if test $ac_cv_c___int64 = yes; then
3619 echo "$as_me:$LINENO: checking size of __int64" >&5
3620 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3621 if test "${ac_cv_sizeof___int64+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3625 cat >conftest.$ac_ext <<_ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 #include "confdefs.h"
3632 #include <sys/types.h>
3638 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3643 rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3647 grep -v '^ *+' conftest.er1 >conftest.err
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 ac_cv_sizeof___int64=$ac_size
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3676 if test x$ac_cv_sizeof___int64 = x ; then
3677 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3678 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3679 { (exit 1); exit 1; }; }
3681 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3682 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3684 cat >>confdefs.h <<_ACEOF
3685 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3691 # ---------------------
3692 # Warnings and checking
3693 # ---------------------
3695 # Check $CC warning features (if it's GCC).
3696 # We want to use -pedantic, but we don't want warnings about
3699 # So, we only use -pedantic if we can disable those warnings.
3701 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3702 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3703 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 save_CFLAGS="$CFLAGS"
3707 CFLAGS="-Wno-long-long"
3708 cat >conftest.$ac_ext <<_ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3716 rm -f conftest.$ac_objext
3717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718 (eval $ac_compile) 2>conftest.er1
3720 grep -v '^ *+' conftest.er1 >conftest.err
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; } &&
3731 { ac_try='test -s conftest.$ac_objext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 ac_cv_prog_cc_w_no_long_long=yes
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 ac_cv_prog_cc_w_no_long_long=no
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 CFLAGS="$save_CFLAGS"
3748 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3749 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3751 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3752 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3753 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 save_CFLAGS="$CFLAGS"
3757 CFLAGS="-Wno-variadic-macros"
3758 cat >conftest.$ac_ext <<_ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>conftest.er1
3770 grep -v '^ *+' conftest.er1 >conftest.err
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; } &&
3781 { ac_try='test -s conftest.$ac_objext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_cv_prog_cc_w_no_variadic_macros=yes
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 ac_cv_prog_cc_w_no_variadic_macros=no
3794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3795 CFLAGS="$save_CFLAGS"
3798 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3799 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3802 if test $ac_cv_prog_cc_w_no_long_long = yes \
3803 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3804 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3808 # Add -Wold-style-definition if it's accepted
3809 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3810 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3811 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 save_CFLAGS="$CFLAGS"
3815 CFLAGS="-Wold-style-definition"
3816 cat >conftest.$ac_ext <<_ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3824 rm -f conftest.$ac_objext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826 (eval $ac_compile) 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest.$ac_objext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_cv_prog_cc_w_old_style_definition=yes
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_cv_prog_cc_w_old_style_definition=no
3852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3853 CFLAGS="$save_CFLAGS"
3856 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3857 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3858 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3859 strict1_warn="${strict1_warn} -Wold-style-definition"
3862 # Enable -Werror, period.
3863 # Check whether --enable-werror_always or --disable-werror_always was given.
3864 if test "${enable_werror_always+set}" = set; then
3865 enableval="$enable_werror_always"
3868 enable_werror_always=no
3870 if test x${enable_werror_always} = xyes ; then
3871 strict1_warn="${strict1_warn} -Werror"
3875 # If the native compiler is GCC, we can enable warnings even in stage1.
3876 # That's useful for people building cross-compilers, or just running a
3879 if test "x$GCC" = "xyes"; then
3880 warn_cflags='$(GCC_WARN_CFLAGS)'
3884 # Enable -Werror in bootstrap stage2 and later.
3885 # Change the default to "no" on release branches.
3886 # Check whether --enable-werror or --disable-werror was given.
3887 if test "${enable_werror+set}" = set; then
3888 enableval="$enable_werror"
3893 if test x$enable_werror = xyes ; then
3898 # Enable expensive internal checks
3899 # Check whether --enable-checking or --disable-checking was given.
3900 if test "${enable_checking+set}" = set; then
3901 enableval="$enable_checking"
3905 ac_rtlflag_checking=
3907 ac_gc_always_collect=
3909 case "${enableval}" in
3910 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3911 ac_rtlflag_checking=1 ;;
3913 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3914 set fnord $enableval; shift
3919 fold) ac_fold_checking=1 ;;
3920 gc) ac_gc_checking=1 ;;
3921 gcac) ac_gc_always_collect=1 ;;
3922 misc) ac_checking=1 ;;
3923 rtlflag) ac_rtlflag_checking=1 ;;
3924 rtl) ac_rtl_checking=1 ;;
3925 tree) ac_tree_checking=1 ;;
3926 valgrind) ac_checking_valgrind=1 ;;
3927 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3928 echo "$as_me: error: unknown check category $check" >&2;}
3929 { (exit 1); exit 1; }; } ;;
3936 # Enable some checks by default for development versions of GCC
3937 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3940 if test x$ac_checking != x ; then
3942 cat >>confdefs.h <<\_ACEOF
3943 #define ENABLE_CHECKING 1
3946 nocommon_flag=-fno-common
3949 if test x$ac_tree_checking != x ; then
3951 cat >>confdefs.h <<\_ACEOF
3952 #define ENABLE_TREE_CHECKING 1
3955 TREEBROWSER=tree-browser.o
3958 if test x$ac_rtl_checking != x ; then
3960 cat >>confdefs.h <<\_ACEOF
3961 #define ENABLE_RTL_CHECKING 1
3965 if test x$ac_rtlflag_checking != x ; then
3967 cat >>confdefs.h <<\_ACEOF
3968 #define ENABLE_RTL_FLAG_CHECKING 1
3972 if test x$ac_gc_checking != x ; then
3974 cat >>confdefs.h <<\_ACEOF
3975 #define ENABLE_GC_CHECKING 1
3979 if test x$ac_gc_always_collect != x ; then
3981 cat >>confdefs.h <<\_ACEOF
3982 #define ENABLE_GC_ALWAYS_COLLECT 1
3986 if test x$ac_fold_checking != x ; then
3988 cat >>confdefs.h <<\_ACEOF
3989 #define ENABLE_FOLD_CHECKING 1
3993 valgrind_path_defines=
3997 echo "$as_me:$LINENO: checking for egrep" >&5
3998 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3999 if test "${ac_cv_prog_egrep+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4003 then ac_cv_prog_egrep='grep -E'
4004 else ac_cv_prog_egrep='egrep'
4007 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4008 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4009 EGREP=$ac_cv_prog_egrep
4012 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4013 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4014 if test "${ac_cv_header_stdc+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_cv_header_stdc=yes
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 ac_cv_header_stdc=no
4064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4066 if test $ac_cv_header_stdc = yes; then
4067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "memchr" >/dev/null 2>&1; then
4081 ac_cv_header_stdc=no
4087 if test $ac_cv_header_stdc = yes; then
4088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4089 cat >conftest.$ac_ext <<_ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 $EGREP "free" >/dev/null 2>&1; then
4102 ac_cv_header_stdc=no
4108 if test $ac_cv_header_stdc = yes; then
4109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4110 if test "$cross_compiling" = yes; then
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4120 #if ((' ' & 0x0FF) == 0x020)
4121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4124 # define ISLOWER(c) \
4125 (('a' <= (c) && (c) <= 'i') \
4126 || ('j' <= (c) && (c) <= 'r') \
4127 || ('s' <= (c) && (c) <= 'z'))
4128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4136 for (i = 0; i < 256; i++)
4137 if (XOR (islower (i), ISLOWER (i))
4138 || toupper (i) != TOUPPER (i))
4143 rm -f conftest$ac_exeext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4145 (eval $ac_link) 2>&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4156 echo "$as_me: program exited with status $ac_status" >&5
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_cv_header_stdc=no
4163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4167 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4168 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4169 if test $ac_cv_header_stdc = yes; then
4171 cat >>confdefs.h <<\_ACEOF
4172 #define STDC_HEADERS 1
4177 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4187 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4188 inttypes.h stdint.h unistd.h
4190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4191 echo "$as_me:$LINENO: checking for $ac_header" >&5
4192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 $ac_includes_default
4204 #include <$ac_header>
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>conftest.er1
4210 grep -v '^ *+' conftest.er1 >conftest.err
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; } &&
4221 { ac_try='test -s conftest.$ac_objext'
4222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; }; then
4227 eval "$as_ac_Header=yes"
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4232 eval "$as_ac_Header=no"
4234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4239 cat >>confdefs.h <<_ACEOF
4240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4248 if test "${ac_cv_header_valgrind_h+set}" = set; then
4249 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4250 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4251 if test "${ac_cv_header_valgrind_h+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4255 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4257 # Is the header compilable?
4258 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4259 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 $ac_includes_default
4267 #include <valgrind.h>
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>conftest.er1
4273 grep -v '^ *+' conftest.er1 >conftest.err
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } &&
4278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_header_compiler=yes
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_header_compiler=no
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4299 echo "${ECHO_T}$ac_header_compiler" >&6
4301 # Is the header present?
4302 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4303 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4304 cat >conftest.$ac_ext <<_ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 #include <valgrind.h>
4312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4315 grep -v '^ *+' conftest.er1 >conftest.err
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } >/dev/null; then
4320 if test -s conftest.err; then
4321 ac_cpp_err=$ac_c_preproc_warn_flag
4322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4329 if test -z "$ac_cpp_err"; then
4330 ac_header_preproc=yes
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4335 ac_header_preproc=no
4337 rm -f conftest.err conftest.$ac_ext
4338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4339 echo "${ECHO_T}$ac_header_preproc" >&6
4341 # So? What about this header?
4342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4344 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4345 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4346 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4347 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4348 ac_header_preproc=yes
4351 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4352 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4353 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4354 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4355 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4356 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4357 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4358 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4359 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4360 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4361 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4362 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4365 ## ------------------------------------------ ##
4366 ## Report this to the AC_PACKAGE_NAME lists. ##
4367 ## ------------------------------------------ ##
4370 sed "s/^/$as_me: WARNING: /" >&2
4373 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4374 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4375 if test "${ac_cv_header_valgrind_h+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 ac_cv_header_valgrind_h=$ac_header_preproc
4380 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4381 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4384 if test $ac_cv_header_valgrind_h = yes; then
4392 if test x$ac_checking_valgrind != x ; then
4393 # It is certainly possible that there's valgrind but no valgrind.h.
4394 # GCC relies on making annotations so we must have both.
4395 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4396 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4397 cat >conftest.$ac_ext <<_ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 #include <valgrind/memcheck.h>
4404 #ifndef VALGRIND_DISCARD
4405 #error VALGRIND_DISCARD not defined
4408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4411 grep -v '^ *+' conftest.er1 >conftest.err
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } >/dev/null; then
4416 if test -s conftest.err; then
4417 ac_cpp_err=$ac_c_preproc_warn_flag
4418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4425 if test -z "$ac_cpp_err"; then
4426 gcc_cv_header_valgrind_memcheck_h=yes
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 gcc_cv_header_valgrind_memcheck_h=no
4433 rm -f conftest.err conftest.$ac_ext
4434 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4435 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4436 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4437 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <memcheck.h>
4445 #ifndef VALGRIND_DISCARD
4446 #error VALGRIND_DISCARD not defined
4449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } >/dev/null; then
4457 if test -s conftest.err; then
4458 ac_cpp_err=$ac_c_preproc_warn_flag
4459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4466 if test -z "$ac_cpp_err"; then
4467 gcc_cv_header_memcheck_h=yes
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 gcc_cv_header_memcheck_h=no
4474 rm -f conftest.err conftest.$ac_ext
4475 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4476 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4478 # Prepare PATH_SEPARATOR.
4479 # The user is always right.
4480 if test "${PATH_SEPARATOR+set}" != set; then
4481 echo "#! /bin/sh" >conf$$.sh
4482 echo "exit 0" >>conf$$.sh
4484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4492 # Find out how to test for executable files. Don't use a zero-byte file,
4493 # as systems may use methods other than mode bits to determine executability.
4494 cat >conf$$.file <<_ASEOF
4498 chmod +x conf$$.file
4499 if test -x conf$$.file >/dev/null 2>&1; then
4500 ac_executable_p="test -x"
4502 ac_executable_p="test -f"
4506 # Extract the first word of "valgrind", so it can be a program name with args.
4507 set dummy valgrind; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_valgrind_path+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 case "$valgrind_path" in
4515 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4518 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4519 for ac_dir in $PATH; do
4521 test -z "$ac_dir" && ac_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4524 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4525 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4535 valgrind_path="$ac_cv_path_valgrind_path"
4536 if test -n "$valgrind_path"; then
4537 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4538 echo "${ECHO_T}$valgrind_path" >&6
4540 echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6
4544 if test "x$valgrind_path" = "x" \
4545 || (test $have_valgrind_h = no \
4546 && test $gcc_cv_header_memcheck_h = no \
4547 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4548 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4549 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4550 { (exit 1); exit 1; }; }
4552 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4553 valgrind_command="$valgrind_path -q"
4555 cat >>confdefs.h <<\_ACEOF
4556 #define ENABLE_VALGRIND_CHECKING 1
4559 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4561 cat >>confdefs.h <<\_ACEOF
4562 #define HAVE_VALGRIND_MEMCHECK_H 1
4566 if test $gcc_cv_header_memcheck_h = yes; then
4568 cat >>confdefs.h <<\_ACEOF
4569 #define HAVE_MEMCHECK_H 1
4577 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4578 if test "${enable_mapped_location+set}" = set; then
4579 enableval="$enable_mapped_location"
4582 enable_mapped_location=no
4585 if test "$enable_mapped_location" = yes ; then
4587 cat >>confdefs.h <<\_ACEOF
4588 #define USE_MAPPED_LOCATION 1
4593 # Enable code coverage collection
4594 # Check whether --enable-coverage or --disable-coverage was given.
4595 if test "${enable_coverage+set}" = set; then
4596 enableval="$enable_coverage"
4597 case "${enableval}" in
4599 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4602 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4605 # a.k.a. --disable-coverage
4609 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4610 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4611 { (exit 1); exit 1; }; }
4619 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4620 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4621 enableval="$enable_gather_detailed_mem_stats"
4624 enable_gather_detailed_mem_stats=no
4626 if test x$enable_gather_detailed_mem_stats = xyes ; then
4628 cat >>confdefs.h <<\_ACEOF
4629 #define GATHER_STATISTICS 1
4634 # -------------------------------
4635 # Miscenalleous configure options
4636 # -------------------------------
4640 # Check whether --with-stabs or --without-stabs was given.
4641 if test "${with_stabs+set}" = set; then
4642 withval="$with_stabs"
4648 # Determine whether or not multilibs are enabled.
4649 # Check whether --enable-multilib or --disable-multilib was given.
4650 if test "${enable_multilib+set}" = set; then
4651 enableval="$enable_multilib"
4658 # Enable __cxa_atexit for C++.
4659 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4660 if test "${enable___cxa_atexit+set}" = set; then
4661 enableval="$enable___cxa_atexit"
4666 # Pass with no value to take the default
4667 # Pass with a value to specify a thread package
4668 # Check whether --enable-threads or --disable-threads was given.
4669 if test "${enable_threads+set}" = set; then
4670 enableval="$enable_threads"
4676 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4677 if test "${enable_objc_gc+set}" = set; then
4678 enableval="$enable_objc_gc"
4679 if test x$enable_objc_gc = xno; then
4689 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4690 if test "${with_dwarf2+set}" = set; then
4691 withval="$with_dwarf2"
4692 dwarf2="$with_dwarf2"
4697 # Check whether --enable-shared or --disable-shared was given.
4698 if test "${enable_shared+set}" = set; then
4699 enableval="$enable_shared"
4701 case $enable_shared in
4705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4706 for pkg in $enableval; do
4707 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4721 # Check whether --with-sysroot or --without-sysroot was given.
4722 if test "${with_sysroot+set}" = set; then
4723 withval="$with_sysroot"
4725 case ${with_sysroot} in
4726 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4727 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4730 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4731 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4733 if test "x$exec_prefix" = xNONE; then
4734 if test "x$prefix" = xNONE; then
4735 test_prefix=/usr/local
4740 test_prefix=$exec_prefix
4742 case ${TARGET_SYSTEM_ROOT} in
4743 "${test_prefix}"|"${test_prefix}/"*|\
4744 '${exec_prefix}'|'${exec_prefix}/'*)
4745 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4746 TARGET_SYSTEM_ROOT_DEFINE="$t"
4753 TARGET_SYSTEM_ROOT_DEFINE=
4754 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4761 # Build with intermodule optimisations
4762 # Check whether --enable-intermodule or --disable-intermodule was given.
4763 if test "${enable_intermodule+set}" = set; then
4764 enableval="$enable_intermodule"
4765 case ${enable_intermodule} in
4766 yes) onestep="-onestep";;
4774 # Sanity check enable_languages in case someone does not run the toplevel
4775 # configure # script.
4776 # Check whether --enable-languages or --disable-languages was given.
4777 if test "${enable_languages+set}" = set; then
4778 enableval="$enable_languages"
4779 case ,${enable_languages}, in
4781 # go safe -- we cannot be much sure without the toplevel
4783 # analysis of which target libs are present and usable
4787 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4788 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4789 { (exit 1); exit 1; }; }
4794 enable_languages=c,${enable_languages}
4802 for lang in ${srcdir}/*/config-lang.in
4805 # The odd quoting in the next line works around
4806 # an apparent bug in bash 1.12 on linux.
4807 ${srcdir}/[*]/config-lang.in) ;;
4809 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4810 if test "x$lang_alias" = x
4812 echo "$lang doesn't set \$language." 1>&2
4815 case ",$enable_languages," in
4817 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4824 # -------------------------
4825 # Checks for other programs
4826 # -------------------------
4828 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4829 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4830 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4831 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 cat >conftest.make <<\_ACEOF
4836 @echo 'ac_maketemp="$(MAKE)"'
4838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4839 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4840 if test -n "$ac_maketemp"; then
4841 eval ac_cv_prog_make_${ac_make}_set=yes
4843 eval ac_cv_prog_make_${ac_make}_set=no
4847 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4848 echo "$as_me:$LINENO: result: yes" >&5
4849 echo "${ECHO_T}yes" >&6
4852 echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6
4854 SET_MAKE="MAKE=${MAKE-make}"
4858 # Find some useful tools
4859 for ac_prog in gawk mawk nawk awk
4861 # Extract the first word of "$ac_prog", so it can be a program name with args.
4862 set dummy $ac_prog; ac_word=$2
4863 echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865 if test "${ac_cv_prog_AWK+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 if test -n "$AWK"; then
4869 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878 ac_cv_prog_AWK="$ac_prog"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 if test -n "$AWK"; then
4889 echo "$as_me:$LINENO: result: $AWK" >&5
4890 echo "${ECHO_T}$AWK" >&6
4892 echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6
4896 test -n "$AWK" && break
4899 # We need awk to create options.c and options.h.
4900 # Bail out if it's missing.
4902 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4903 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4907 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4908 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4909 if test "${gcc_cv_prog_LN_S+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 rm -f conftestdata_t
4913 echo >conftestdata_f
4914 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4916 gcc_cv_prog_LN_S="ln -s"
4918 if ln conftestdata_f conftestdata_t 2>/dev/null
4925 rm -f conftestdata_f conftestdata_t
4928 LN_S="$gcc_cv_prog_LN_S"
4929 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4930 echo "$as_me:$LINENO: result: yes" >&5
4931 echo "${ECHO_T}yes" >&6
4933 if test "$gcc_cv_prog_LN_S" = "ln"; then
4934 echo "$as_me:$LINENO: result: no, using ln" >&5
4935 echo "${ECHO_T}no, using ln" >&6
4937 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4938 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4942 echo "$as_me:$LINENO: checking whether ln works" >&5
4943 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4944 if test "${acx_cv_prog_LN+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 rm -f conftestdata_t
4948 echo >conftestdata_f
4949 if ln conftestdata_f conftestdata_t 2>/dev/null
4955 rm -f conftestdata_f conftestdata_t
4958 if test $acx_cv_prog_LN = no; then
4960 echo "$as_me:$LINENO: result: no, using $LN" >&5
4961 echo "${ECHO_T}no, using $LN" >&6
4963 LN="$acx_cv_prog_LN"
4964 echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6
4968 if test -n "$ac_tool_prefix"; then
4969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4971 echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4973 if test "${ac_cv_prog_RANLIB+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 if test -n "$RANLIB"; then
4977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 RANLIB=$ac_cv_prog_RANLIB
4996 if test -n "$RANLIB"; then
4997 echo "$as_me:$LINENO: result: $RANLIB" >&5
4998 echo "${ECHO_T}$RANLIB" >&6
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5005 if test -z "$ac_cv_prog_RANLIB"; then
5006 ac_ct_RANLIB=$RANLIB
5007 # Extract the first word of "ranlib", so it can be a program name with args.
5008 set dummy ranlib; ac_word=$2
5009 echo "$as_me:$LINENO: checking for $ac_word" >&5
5010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 if test -n "$ac_ct_RANLIB"; then
5015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_prog_ac_ct_RANLIB="ranlib"
5025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5035 if test -n "$ac_ct_RANLIB"; then
5036 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5037 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5039 echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6
5043 RANLIB=$ac_ct_RANLIB
5045 RANLIB="$ac_cv_prog_RANLIB"
5050 # By default, the Darwin ranlib will not treat common symbols as
5051 # definitions when building the archive table of contents. Other
5052 # ranlibs do that; pass an option to the Darwin ranlib that makes
5053 # it behave similarly.
5061 # Find a good install program. We prefer a C program (faster),
5062 # so one script is as good as another. But avoid the broken or
5063 # incompatible versions:
5064 # SysV /etc/install, /usr/sbin/install
5065 # SunOS /usr/etc/install
5066 # IRIX /sbin/install
5068 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5069 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5070 # ./install, which can be erroneously created by make from ./install.sh.
5071 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5072 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5073 if test -z "$INSTALL"; then
5074 if test "${ac_cv_path_install+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5078 for ac_dir in $PATH; do
5079 # Account for people who put trailing slashes in PATH elements.
5081 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5083 # OSF1 and SCO ODT 3.0 have their own names for install.
5084 for ac_prog in ginstall scoinst install; do
5085 if test -f $ac_dir/$ac_prog; then
5086 if test $ac_prog = install &&
5087 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5088 # AIX install. It has an incompatible calling convention.
5089 # OSF/1 installbsd also uses dspmsg, but is usable.
5092 ac_cv_path_install="$ac_dir/$ac_prog -c"
5103 if test "${ac_cv_path_install+set}" = set; then
5104 INSTALL="$ac_cv_path_install"
5106 # As a last resort, use the slow shell script. We don't cache a
5107 # path for INSTALL within a source directory, because that will
5108 # break other packages using the cache if that directory is
5109 # removed, or if the path is relative.
5110 INSTALL="$ac_install_sh"
5113 echo "$as_me:$LINENO: result: $INSTALL" >&5
5114 echo "${ECHO_T}$INSTALL" >&6
5116 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5117 # It thinks the first close brace ends the variable substitution.
5118 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5120 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5123 # See if cmp has --ignore-initial.
5124 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5125 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5126 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 gcc_cv_prog_cmp_skip=slowcompare
5132 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5133 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5136 gcc_cv_prog_cmp_skip=gnucompare
5139 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5140 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5141 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5144 gcc_cv_prog_cmp_skip=fastcompare
5151 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5152 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5153 make_compare_target=$gcc_cv_prog_cmp_skip
5157 # See if we have the mktemp command.
5158 # Extract the first word of "mktemp", so it can be a program name with args.
5159 set dummy mktemp; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test -n "$have_mktemp_command"; then
5166 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_have_mktemp_command="yes"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5185 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5186 if test -n "$have_mktemp_command"; then
5187 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5188 echo "${ECHO_T}$have_mktemp_command" >&6
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5195 # Do we have a single-tree copy of texinfo?
5196 if test -f $srcdir/../texinfo/Makefile.in; then
5197 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5198 gcc_cv_prog_makeinfo_modern=yes
5199 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5200 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5202 # See if makeinfo has been installed and is modern enough
5203 # that we can use it.
5204 # Extract the first word of "makeinfo", so it can be a program name with args.
5205 set dummy makeinfo; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 if test -n "$MAKEINFO"; then
5212 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_MAKEINFO="makeinfo"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 MAKEINFO=$ac_cv_prog_MAKEINFO
5231 if test -n "$MAKEINFO"; then
5232 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5233 echo "${ECHO_T}$MAKEINFO" >&6
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5239 if test -n "$MAKEINFO"; then
5240 # Found it, now check the version.
5241 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5242 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5243 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 ac_prog_version=`$MAKEINFO --version 2>&1 |
5247 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5248 echo "configure:5248: version of makeinfo is $ac_prog_version" >&5
5249 case $ac_prog_version in
5250 '') gcc_cv_prog_makeinfo_modern=no;;
5252 gcc_cv_prog_makeinfo_modern=yes;;
5253 *) gcc_cv_prog_makeinfo_modern=no;;
5257 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5258 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5260 gcc_cv_prog_makeinfo_modern=no
5265 if test $gcc_cv_prog_makeinfo_modern = no; then
5266 { echo "$as_me:$LINENO: WARNING:
5267 *** Makeinfo is missing or too old.
5268 *** Info documentation will not be built." >&5
5269 echo "$as_me: WARNING:
5270 *** Makeinfo is missing or too old.
5271 *** Info documentation will not be built." >&2;}
5277 # Is pod2man recent enough to regenerate manpages?
5278 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5279 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5280 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5281 echo "$as_me:$LINENO: result: yes" >&5
5282 echo "${ECHO_T}yes" >&6
5283 GENERATED_MANPAGES=generated-manpages
5285 echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5291 if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
5292 FLEX='$(objdir)/../flex/flex'
5294 # Extract the first word of "flex", so it can be a program name with args.
5295 set dummy flex; ac_word=$2
5296 echo "$as_me:$LINENO: checking for $ac_word" >&5
5297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298 if test "${ac_cv_prog_FLEX+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 if test -n "$FLEX"; then
5302 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_FLEX="flex"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5321 FLEX=$ac_cv_prog_FLEX
5322 if test -n "$FLEX"; then
5323 echo "$as_me:$LINENO: result: $FLEX" >&5
5324 echo "${ECHO_T}$FLEX" >&6
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5333 # The -L switch is so bison can find its skeleton file.
5334 if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
5335 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5337 # Extract the first word of "bison", so it can be a program name with args.
5338 set dummy bison; ac_word=$2
5339 echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5341 if test "${ac_cv_prog_BISON+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 if test -n "$BISON"; then
5345 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_prog_BISON="bison"
5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5364 BISON=$ac_cv_prog_BISON
5365 if test -n "$BISON"; then
5366 echo "$as_me:$LINENO: result: $BISON" >&5
5367 echo "${ECHO_T}$BISON" >&6
5369 echo "$as_me:$LINENO: result: no" >&5
5370 echo "${ECHO_T}no" >&6
5376 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c; then
5377 NM='$(objdir)/../binutils/nm-new'
5379 # Extract the first word of "nm", so it can be a program name with args.
5380 set dummy nm; ac_word=$2
5381 echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 if test "${ac_cv_prog_NM+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 if test -n "$NM"; then
5387 ac_cv_prog_NM="$NM" # Let the user override the test.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5407 if test -n "$NM"; then
5408 echo "$as_me:$LINENO: result: $NM" >&5
5409 echo "${ECHO_T}$NM" >&6
5411 echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5418 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c; then
5419 AR='$(objdir)/../binutils/ar'
5421 # Extract the first word of "ar", so it can be a program name with args.
5422 set dummy ar; ac_word=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_prog_AR+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 if test -n "$AR"; then
5429 ac_cv_prog_AR="$AR" # Let the user override the test.
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
5449 if test -n "$AR"; then
5450 echo "$as_me:$LINENO: result: $AR" >&5
5451 echo "${ECHO_T}$AR" >&6
5453 echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5460 # --------------------
5461 # Checks for C headers
5462 # --------------------
5464 echo "$as_me:$LINENO: checking for GNU C library" >&5
5465 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5466 if test "${gcc_cv_glibc+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <features.h>
5480 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5481 #error Not a GNU C library system
5487 rm -f conftest.$ac_objext
5488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489 (eval $ac_compile) 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } &&
5496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5518 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5519 echo "${ECHO_T}$gcc_cv_glibc" >&6
5520 if test $gcc_cv_glibc = yes; then
5522 cat >>confdefs.h <<\_ACEOF
5523 #define _GNU_SOURCE 1
5528 # Need to reject headers which give warnings, so that the -Werror bootstrap
5529 # works later. *sigh* This needs to come before all header checks.
5531 ac_c_preproc_warn_flag=yes
5533 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5534 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5535 if test "${ac_cv_header_stdc+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 cat >conftest.$ac_ext <<_ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5557 rm -f conftest.$ac_objext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>conftest.er1
5561 grep -v '^ *+' conftest.er1 >conftest.err
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_cv_header_stdc=yes
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 ac_cv_header_stdc=no
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5587 if test $ac_cv_header_stdc = yes; then
5588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599 $EGREP "memchr" >/dev/null 2>&1; then
5602 ac_cv_header_stdc=no
5608 if test $ac_cv_header_stdc = yes; then
5609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5610 cat >conftest.$ac_ext <<_ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5620 $EGREP "free" >/dev/null 2>&1; then
5623 ac_cv_header_stdc=no
5629 if test $ac_cv_header_stdc = yes; then
5630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5631 if test "$cross_compiling" = yes; then
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5641 #if ((' ' & 0x0FF) == 0x020)
5642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5645 # define ISLOWER(c) \
5646 (('a' <= (c) && (c) <= 'i') \
5647 || ('j' <= (c) && (c) <= 'r') \
5648 || ('s' <= (c) && (c) <= 'z'))
5649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5657 for (i = 0; i < 256; i++)
5658 if (XOR (islower (i), ISLOWER (i))
5659 || toupper (i) != TOUPPER (i))
5664 rm -f conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5677 echo "$as_me: program exited with status $ac_status" >&5
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5682 ac_cv_header_stdc=no
5684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5689 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5690 if test $ac_cv_header_stdc = yes; then
5692 cat >>confdefs.h <<\_ACEOF
5693 #define STDC_HEADERS 1
5698 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5699 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5700 if test "${ac_cv_header_time+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 cat >conftest.$ac_ext <<_ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #include <sys/types.h>
5710 #include <sys/time.h>
5716 if ((struct tm *) 0)
5722 rm -f conftest.$ac_objext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_header_time=yes
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5748 ac_cv_header_time=no
5750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5752 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5753 echo "${ECHO_T}$ac_cv_header_time" >&6
5754 if test $ac_cv_header_time = yes; then
5756 cat >>confdefs.h <<\_ACEOF
5757 #define TIME_WITH_SYS_TIME 1
5762 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5763 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5764 if test "${gcc_cv_header_string+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 cat >conftest.$ac_ext <<_ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5774 #include <strings.h>
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5787 grep -v '^ *+' conftest.er1 >conftest.err
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 gcc_cv_header_string=yes
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 gcc_cv_header_string=no
5811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5814 echo "${ECHO_T}$gcc_cv_header_string" >&6
5815 if test $gcc_cv_header_string = yes; then
5817 cat >>confdefs.h <<\_ACEOF
5818 #define STRING_WITH_STRINGS 1
5823 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5824 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5825 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 cat >conftest.$ac_ext <<_ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #include <sys/types.h>
5835 #include <sys/wait.h>
5837 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5840 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5848 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5853 rm -f conftest.$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_header_sys_wait_h=yes
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_header_sys_wait_h=no
5881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5884 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5885 if test $ac_cv_header_sys_wait_h = yes; then
5887 cat >>confdefs.h <<\_ACEOF
5888 #define HAVE_SYS_WAIT_H 1
5914 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5915 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5916 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5917 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5920 echo "$as_me:$LINENO: checking for $ac_header" >&5
5921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 cat >conftest.$ac_ext <<_ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 #include <$ac_header>
5933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5936 grep -v '^ *+' conftest.er1 >conftest.err
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } >/dev/null; then
5941 if test -s conftest.err; then
5942 ac_cpp_err=$ac_c_preproc_warn_flag
5943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5950 if test -z "$ac_cpp_err"; then
5951 eval "$as_ac_Header=yes"
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 eval "$as_ac_Header=no"
5958 rm -f conftest.err conftest.$ac_ext
5960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5963 cat >>confdefs.h <<_ACEOF
5964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5971 # Check for thread headers.
5972 echo "$as_me:$LINENO: checking for thread.h" >&5
5973 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5974 if test "${ac_cv_header_thread_h+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 cat >conftest.$ac_ext <<_ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5988 grep -v '^ *+' conftest.er1 >conftest.err
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } >/dev/null; then
5993 if test -s conftest.err; then
5994 ac_cpp_err=$ac_c_preproc_warn_flag
5995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6002 if test -z "$ac_cpp_err"; then
6003 ac_cv_header_thread_h=yes
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6008 ac_cv_header_thread_h=no
6010 rm -f conftest.err conftest.$ac_ext
6012 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6013 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6014 if test $ac_cv_header_thread_h = yes; then
6020 echo "$as_me:$LINENO: checking for pthread.h" >&5
6021 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6022 if test "${ac_cv_header_pthread_h+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 cat >conftest.$ac_ext <<_ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #include <pthread.h>
6033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6036 grep -v '^ *+' conftest.er1 >conftest.err
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } >/dev/null; then
6041 if test -s conftest.err; then
6042 ac_cpp_err=$ac_c_preproc_warn_flag
6043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6050 if test -z "$ac_cpp_err"; then
6051 ac_cv_header_pthread_h=yes
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 ac_cv_header_pthread_h=no
6058 rm -f conftest.err conftest.$ac_ext
6060 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6061 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6062 if test $ac_cv_header_pthread_h = yes; then
6069 # These tests can't be done till we know if we have limits.h.
6070 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6071 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6072 if test "${gcc_cv_decl_char_bit+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 cat >conftest.$ac_ext <<_ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 #ifdef HAVE_LIMITS_H
6088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6089 $EGREP "found" >/dev/null 2>&1; then
6090 gcc_cv_decl_char_bit=yes
6092 gcc_cv_decl_char_bit=no
6098 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6099 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6100 if test $gcc_cv_decl_char_bit = no; then
6101 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6102 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6103 if test "${gcc_cv_c_nbby+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 while test $i -lt 65; do
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6120 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6121 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>conftest.er1
6131 grep -v '^ *+' conftest.er1 >conftest.err
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; } &&
6142 { ac_try='test -s conftest.$ac_objext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 gcc_cv_c_nbby=$i; break
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6157 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6160 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6161 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6162 if test $gcc_cv_c_nbby = failed; then
6163 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6164 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6165 { (exit 1); exit 1; }; }
6168 cat >>confdefs.h <<_ACEOF
6169 #define CHAR_BIT $gcc_cv_c_nbby
6174 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6175 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6176 if test "${ac_cv_c_bigendian+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 ac_cv_c_bigendian=unknown
6180 # See if sys/param.h defines the BYTE_ORDER macro.
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include <sys/types.h>
6188 #include <sys/param.h>
6193 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6200 rm -f conftest.$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202 (eval $ac_compile) 2>conftest.er1
6204 grep -v '^ *+' conftest.er1 >conftest.err
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } &&
6209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 # It does; now see whether it defined to BIG_ENDIAN or not.
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #include <sys/types.h>
6229 #include <sys/param.h>
6234 #if BYTE_ORDER != BIG_ENDIAN
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; } &&
6256 { ac_try='test -s conftest.$ac_objext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 ac_cv_c_bigendian=yes
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6267 ac_cv_c_bigendian=no
6269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6276 if test $ac_cv_c_bigendian = unknown; then
6277 if test "$cross_compiling" = yes; then
6278 echo $ac_n "cross-compiling... " 2>&6
6280 cat >conftest.$ac_ext <<_ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6287 /* Are we little or big endian? From Harbison&Steele. */
6291 char c[sizeof (long)];
6294 exit (u.c[sizeof (long) - 1] == 1);
6297 rm -f conftest$ac_exeext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299 (eval $ac_link) 2>&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_c_bigendian=no
6310 echo "$as_me: program exited with status $ac_status" >&5
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6315 ac_cv_c_bigendian=yes
6317 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6321 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6322 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6323 if test $ac_cv_c_bigendian = unknown; then
6324 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6325 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6327 cat >conftest.c <<EOF
6328 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6329 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6330 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6331 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6332 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6333 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6334 int main() { _ascii (); _ebcdic (); return 0; }
6336 if test -f conftest.c ; then
6337 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6338 if test `grep -l BIGenDianSyS conftest.o` ; then
6339 echo $ac_n ' big endian probe OK, ' 1>&6
6340 ac_cv_c_bigendian=yes
6342 if test `grep -l LiTTleEnDian conftest.o` ; then
6343 echo $ac_n ' little endian probe OK, ' 1>&6
6344 if test $ac_cv_c_bigendian = yes ; then
6345 ac_cv_c_bigendian=unknown;
6347 ac_cv_c_bigendian=no
6350 echo $ac_n 'guessing bigendian ... ' >&6
6353 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6356 if test $ac_cv_c_bigendian = yes; then
6358 cat >>confdefs.h <<\_ACEOF
6359 #define WORDS_BIGENDIAN 1
6363 cat >>confdefs.h <<\_ACEOF
6364 #define HOST_WORDS_BIG_ENDIAN 1
6372 cat >>confdefs.h <<_ACEOF
6373 #define BYTEORDER $BYTEORDER
6376 if test $ac_cv_c_bigendian = unknown; then
6377 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6378 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6379 { (exit 1); exit 1; }; }
6387 # Stage specific cflags for build.
6391 if test x$GCC = xyes
6393 stage1_cflags="-Wa,-J"
6399 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6400 # sources; use -no-cpp-precomp to get to GNU cpp.
6401 # Apple's GCC has bugs in designated initializer handling, so disable
6403 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6408 # These libraries may be used by collect2.
6409 # We may need a special search path to get them linked.
6410 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6411 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6412 if test "${gcc_cv_collect2_libs+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 for libs in '' -lld -lmld \
6417 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6418 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6428 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6443 rm -f conftest.$ac_objext conftest$ac_exeext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445 (eval $ac_link) 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; } &&
6458 { ac_try='test -s conftest$ac_exeext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 gcc_cv_collect2_libs="$libs"; break
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6470 rm -f conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext conftest.$ac_ext
6474 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6476 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6477 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6478 case $gcc_cv_collect2_libs in
6480 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6484 # When building Ada code on Alpha, we need exc_resume which is usually in
6485 # -lexc. So test for it.
6488 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6489 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6490 if test "${ac_cv_search_exc_resume+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 ac_func_search_save_LIBS=$LIBS
6494 ac_cv_search_exc_resume=no
6495 cat >conftest.$ac_ext <<_ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6502 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519 (eval $ac_link) 2>conftest.er1
6521 grep -v '^ *+' conftest.er1 >conftest.err
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest$ac_exeext'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
6538 ac_cv_search_exc_resume="none required"
6540 echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6544 rm -f conftest.err conftest.$ac_objext \
6545 conftest$ac_exeext conftest.$ac_ext
6546 if test "$ac_cv_search_exc_resume" = no; then
6547 for ac_lib in exc; do
6548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6549 cat >conftest.$ac_ext <<_ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6556 /* Override any gcc2 internal prototype to avoid an error. */
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>conftest.er1
6575 grep -v '^ *+' conftest.er1 >conftest.err
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_cv_search_exc_resume="-l$ac_lib"
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6599 rm -f conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6603 LIBS=$ac_func_search_save_LIBS
6605 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6606 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6607 if test "$ac_cv_search_exc_resume" != no; then
6608 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6616 # Some systems put ldexp and frexp in libm instead of libc; assume
6617 # they're both in the same place. jcf-dump needs them.
6620 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6621 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6622 if test "${ac_cv_search_ldexp+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 ac_func_search_save_LIBS=$LIBS
6626 ac_cv_search_ldexp=no
6627 cat >conftest.$ac_ext <<_ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6634 /* Override any gcc2 internal prototype to avoid an error. */
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651 (eval $ac_link) 2>conftest.er1
6653 grep -v '^ *+' conftest.er1 >conftest.err
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; } &&
6664 { ac_try='test -s conftest$ac_exeext'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; }; then
6670 ac_cv_search_ldexp="none required"
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6676 rm -f conftest.err conftest.$ac_objext \
6677 conftest$ac_exeext conftest.$ac_ext
6678 if test "$ac_cv_search_ldexp" = no; then
6680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6681 cat >conftest.$ac_ext <<_ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6688 /* Override any gcc2 internal prototype to avoid an error. */
6692 /* We use char because int might match the return type of a gcc2
6693 builtin and then its argument prototype would still apply. */
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705 (eval $ac_link) 2>conftest.er1
6707 grep -v '^ *+' conftest.er1 >conftest.err
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest$ac_exeext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 ac_cv_search_ldexp="-l$ac_lib"
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6731 rm -f conftest.err conftest.$ac_objext \
6732 conftest$ac_exeext conftest.$ac_ext
6735 LIBS=$ac_func_search_save_LIBS
6737 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6738 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6739 if test "$ac_cv_search_ldexp" != no; then
6740 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6748 # Use <inttypes.h> only if it exists,
6749 # doesn't clash with <sys/types.h>, and declares intmax_t.
6750 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6751 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6752 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 cat >conftest.$ac_ext <<_ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 #include <sys/types.h>
6762 #include <inttypes.h>
6771 rm -f conftest.$ac_objext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6773 (eval $ac_compile) 2>conftest.er1
6775 grep -v '^ *+' conftest.er1 >conftest.err
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; } &&
6786 { ac_try='test -s conftest.$ac_objext'
6787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); }; }; then
6792 gcc_cv_header_inttypes_h=yes
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 gcc_cv_header_inttypes_h=no
6799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6802 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6803 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6804 if test $gcc_cv_header_inttypes_h = yes; then
6806 cat >>confdefs.h <<\_ACEOF
6807 #define HAVE_INTTYPES_H 1
6838 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6839 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6840 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6841 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6845 echo "$as_me:$LINENO: checking for $ac_func" >&5
6846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6847 if eval "test \"\${$as_ac_var+set}\" = set"; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 cat >conftest.$ac_ext <<_ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6858 #define $ac_func innocuous_$ac_func
6860 /* System header to define __stub macros and hopefully few prototypes,
6861 which can conflict with char $ac_func (); below.
6862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6863 <limits.h> exists even on freestanding compilers. */
6866 # include <limits.h>
6868 # include <assert.h>
6873 /* Override any gcc2 internal prototype to avoid an error. */
6878 /* We use char because int might match the return type of a gcc2
6879 builtin and then its argument prototype would still apply. */
6881 /* The GNU C library defines this for functions which it implements
6882 to always fail with ENOSYS. Some functions are actually named
6883 something starting with __ and the normal name is an alias. */
6884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6887 char (*f) () = $ac_func;
6896 return f != $ac_func;
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6903 (eval $ac_link) 2>conftest.er1
6905 grep -v '^ *+' conftest.er1 >conftest.err
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } &&
6910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 eval "$as_ac_var=yes"
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 eval "$as_ac_var=no"
6929 rm -f conftest.err conftest.$ac_objext \
6930 conftest$ac_exeext conftest.$ac_ext
6932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6934 if test `eval echo '${'$as_ac_var'}'` = yes; then
6935 cat >>confdefs.h <<_ACEOF
6936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6943 if test x$ac_cv_func_mbstowcs = xyes; then
6944 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6945 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6946 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 if test "$cross_compiling" = yes; then
6950 gcc_cv_func_mbstowcs_works=yes
6952 cat >conftest.$ac_ext <<_ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6965 rm -f conftest$ac_exeext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967 (eval $ac_link) 2>&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6976 gcc_cv_func_mbstowcs_works=yes
6978 echo "$as_me: program exited with status $ac_status" >&5
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6983 gcc_cv_func_mbstowcs_works=no
6985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6988 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6989 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6990 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6992 cat >>confdefs.h <<\_ACEOF
6993 #define HAVE_WORKING_MBSTOWCS 1
6999 echo "$as_me:$LINENO: checking for ssize_t" >&5
7000 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7001 if test "${ac_cv_type_ssize_t+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 cat >conftest.$ac_ext <<_ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 $ac_includes_default
7016 if (sizeof (ssize_t))
7022 rm -f conftest.$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7026 grep -v '^ *+' conftest.er1 >conftest.err
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; } &&
7037 { ac_try='test -s conftest.$ac_objext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_type_ssize_t=yes
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_cv_type_ssize_t=no
7050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7053 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7054 if test $ac_cv_type_ssize_t = yes; then
7058 cat >>confdefs.h <<_ACEOF
7065 # Try to determine the array type of the second argument of getgroups
7066 # for the target system (int or gid_t).
7067 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7068 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7069 if test "${ac_cv_type_uid_t+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 cat >conftest.$ac_ext <<_ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 #include <sys/types.h>
7081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7082 $EGREP "uid_t" >/dev/null 2>&1; then
7083 ac_cv_type_uid_t=yes
7090 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7091 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7092 if test $ac_cv_type_uid_t = no; then
7094 cat >>confdefs.h <<\_ACEOF
7099 cat >>confdefs.h <<\_ACEOF
7105 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7106 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7107 if test "${ac_cv_type_getgroups+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 if test "$cross_compiling" = yes; then
7111 ac_cv_type_getgroups=cross
7113 cat >conftest.$ac_ext <<_ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 /* Thanks to Mike Rendell for this test. */
7120 #include <sys/types.h>
7123 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7130 union { gid_t gval; long lval; } val;
7133 for (i = 0; i < NGID; i++)
7134 gidset[i] = val.gval;
7135 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7137 /* Exit non-zero if getgroups seems to require an array of ints. This
7138 happens when gid_t is short but getgroups modifies an array of ints. */
7139 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7142 rm -f conftest$ac_exeext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144 (eval $ac_link) 2>&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_cv_type_getgroups=gid_t
7155 echo "$as_me: program exited with status $ac_status" >&5
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7160 ac_cv_type_getgroups=int
7162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7164 if test $ac_cv_type_getgroups = cross; then
7165 cat >conftest.$ac_ext <<_ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7175 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7176 ac_cv_type_getgroups=gid_t
7178 ac_cv_type_getgroups=int
7184 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7185 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7187 cat >>confdefs.h <<_ACEOF
7188 #define GETGROUPS_T $ac_cv_type_getgroups
7192 if test "${target}" = "${build}"; then
7193 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7196 # This condition may need some tweaking. It should include all
7197 # targets where the array type of the second argument of getgroups
7198 # is int and the type of gid_t is not equivalent to int.
7199 *-*-sunos* | *-*-ultrix*)
7200 TARGET_GETGROUPS_T=int
7203 TARGET_GETGROUPS_T=gid_t
7209 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7210 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7211 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 if test "$cross_compiling" = yes; then
7215 gcc_cv_func_printf_ptr=no
7217 cat >conftest.$ac_ext <<_ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h. */
7228 char *p = buf, *q = NULL;
7229 sprintf(buf, "%p", p);
7230 sscanf(buf, "%p", &q);
7234 rm -f conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236 (eval $ac_link) 2>&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 gcc_cv_func_printf_ptr=yes
7247 echo "$as_me: program exited with status $ac_status" >&5
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7252 gcc_cv_func_printf_ptr=no
7254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7256 rm -f core core.* *.core
7258 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7259 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7260 if test $gcc_cv_func_printf_ptr = yes ; then
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_PRINTF_PTR 1
7268 if test $ac_cv_header_sys_mman_h != yes \
7269 || test $ac_cv_func_mmap != yes; then
7270 gcc_cv_func_mmap_file=no
7271 gcc_cv_func_mmap_dev_zero=no
7272 gcc_cv_func_mmap_anon=no
7274 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7275 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7276 if test "${gcc_cv_func_mmap_file+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 # Add a system to this blacklist if
7280 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7281 # memory area containing the same data that you'd get if you applied
7282 # read() to the same fd. The only system known to have a problem here
7283 # is VMS, where text files have record structure.
7286 gcc_cv_func_mmap_file=no ;;
7288 gcc_cv_func_mmap_file=yes;;
7291 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7292 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7293 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7294 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7295 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 # Add a system to this blacklist if it has mmap() but /dev/zero
7299 # does not exist, or if mmapping /dev/zero does not give anonymous
7300 # zeroed pages with both the following properties:
7301 # 1. If you map N consecutive pages in with one call, and then
7302 # unmap any subset of those pages, the pages that were not
7303 # explicitly unmapped remain accessible.
7304 # 2. If you map two adjacent blocks of memory and then unmap them
7305 # both at once, they must both go away.
7306 # Systems known to be in this category are Windows (all variants),
7309 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7310 gcc_cv_func_mmap_dev_zero=no ;;
7312 gcc_cv_func_mmap_dev_zero=yes;;
7315 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7316 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7318 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7319 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7320 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7321 if test "${gcc_cv_decl_map_anon+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 cat >conftest.$ac_ext <<_ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 #include <sys/types.h>
7331 #include <sys/mman.h>
7334 #ifndef MAP_ANONYMOUS
7335 #define MAP_ANONYMOUS MAP_ANON
7341 int n = MAP_ANONYMOUS;
7346 rm -f conftest.$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7350 grep -v '^ *+' conftest.er1 >conftest.err
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 gcc_cv_decl_map_anon=yes
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 gcc_cv_decl_map_anon=no
7374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7377 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7379 if test $gcc_cv_decl_map_anon = no; then
7380 gcc_cv_func_mmap_anon=no
7382 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7383 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7384 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7388 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7389 # doesn't give anonymous zeroed pages with the same properties listed
7390 # above for use of /dev/zero.
7391 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7393 vms* | cygwin* | pe | mingw* | sco* | udk* )
7394 gcc_cv_func_mmap_anon=no ;;
7396 gcc_cv_func_mmap_anon=yes;;
7399 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7400 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7404 if test $gcc_cv_func_mmap_file = yes; then
7406 cat >>confdefs.h <<\_ACEOF
7407 #define HAVE_MMAP_FILE 1
7411 if test $gcc_cv_func_mmap_dev_zero = yes; then
7413 cat >>confdefs.h <<\_ACEOF
7414 #define HAVE_MMAP_DEV_ZERO 1
7418 if test $gcc_cv_func_mmap_anon = yes; then
7420 cat >>confdefs.h <<\_ACEOF
7421 #define HAVE_MMAP_ANON 1
7429 # Under VMS, vfork works very differently than on Unix. The standard test
7430 # won't work, and it isn't easily adaptable. It makes more sense to
7432 ac_cv_func_vfork_works=yes
7435 echo "$as_me:$LINENO: checking for pid_t" >&5
7436 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7437 if test "${ac_cv_type_pid_t+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 cat >conftest.$ac_ext <<_ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 $ac_includes_default
7458 rm -f conftest.$ac_objext
7459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7460 (eval $ac_compile) 2>conftest.er1
7462 grep -v '^ *+' conftest.er1 >conftest.err
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; } &&
7473 { ac_try='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 ac_cv_type_pid_t=yes
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7488 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7489 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7490 if test $ac_cv_type_pid_t = yes; then
7494 cat >>confdefs.h <<_ACEOF
7502 for ac_header in unistd.h vfork.h
7504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7505 echo "$as_me:$LINENO: checking for $ac_header" >&5
7506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 cat >conftest.$ac_ext <<_ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 #include <$ac_header>
7518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7521 grep -v '^ *+' conftest.er1 >conftest.err
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } >/dev/null; then
7526 if test -s conftest.err; then
7527 ac_cpp_err=$ac_c_preproc_warn_flag
7528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7535 if test -z "$ac_cpp_err"; then
7536 eval "$as_ac_Header=yes"
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7541 eval "$as_ac_Header=no"
7543 rm -f conftest.err conftest.$ac_ext
7545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7548 cat >>confdefs.h <<_ACEOF
7549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7557 for ac_func in fork vfork
7559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7560 echo "$as_me:$LINENO: checking for $ac_func" >&5
7561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7562 if eval "test \"\${$as_ac_var+set}\" = set"; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 cat >conftest.$ac_ext <<_ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7573 #define $ac_func innocuous_$ac_func
7575 /* System header to define __stub macros and hopefully few prototypes,
7576 which can conflict with char $ac_func (); below.
7577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7578 <limits.h> exists even on freestanding compilers. */
7581 # include <limits.h>
7583 # include <assert.h>
7588 /* Override any gcc2 internal prototype to avoid an error. */
7593 /* We use char because int might match the return type of a gcc2
7594 builtin and then its argument prototype would still apply. */
7596 /* The GNU C library defines this for functions which it implements
7597 to always fail with ENOSYS. Some functions are actually named
7598 something starting with __ and the normal name is an alias. */
7599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7602 char (*f) () = $ac_func;
7611 return f != $ac_func;
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>conftest.er1
7620 grep -v '^ *+' conftest.er1 >conftest.err
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; } &&
7631 { ac_try='test -s conftest$ac_exeext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 eval "$as_ac_var=yes"
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 eval "$as_ac_var=no"
7644 rm -f conftest.err conftest.$ac_objext \
7645 conftest$ac_exeext conftest.$ac_ext
7647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7649 if test `eval echo '${'$as_ac_var'}'` = yes; then
7650 cat >>confdefs.h <<_ACEOF
7651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7657 if test "x$ac_cv_func_fork" = xyes; then
7658 echo "$as_me:$LINENO: checking for working fork" >&5
7659 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7660 if test "${ac_cv_func_fork_works+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 if test "$cross_compiling" = yes; then
7664 ac_cv_func_fork_works=cross
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* By Ruediger Kuhlmann. */
7668 #include <sys/types.h>
7670 # include <unistd.h>
7672 /* Some systems only have a dummy stub for fork() */
7680 rm -f conftest$ac_exeext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7682 (eval $ac_link) 2>&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_cv_func_fork_works=yes
7693 echo "$as_me: program exited with status $ac_status" >&5
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7698 ac_cv_func_fork_works=no
7700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7703 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7704 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7707 ac_cv_func_fork_works=$ac_cv_func_fork
7709 if test "x$ac_cv_func_fork_works" = xcross; then
7711 *-*-amigaos* | *-*-msdosdjgpp*)
7712 # Override, as these systems have only a dummy fork() stub
7713 ac_cv_func_fork_works=no
7716 ac_cv_func_fork_works=yes
7719 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7720 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7722 ac_cv_func_vfork_works=$ac_cv_func_vfork
7723 if test "x$ac_cv_func_vfork" = xyes; then
7724 echo "$as_me:$LINENO: checking for working vfork" >&5
7725 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7726 if test "${ac_cv_func_vfork_works+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 if test "$cross_compiling" = yes; then
7730 ac_cv_func_vfork_works=cross
7732 cat >conftest.$ac_ext <<_ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 /* Thanks to Paul Eggert for this test. */
7741 #include <sys/types.h>
7742 #include <sys/stat.h>
7743 #include <sys/wait.h>
7745 # include <unistd.h>
7750 /* On some sparc systems, changes by the child to local and incoming
7751 argument registers are propagated back to the parent. The compiler
7752 is told about this with #include <vfork.h>, but some compilers
7753 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7754 static variable whose address is put into a register that is
7755 clobbered by the vfork. */
7758 sparc_address_test (int arg)
7760 sparc_address_test (arg) int arg;
7781 pid_t parent = getpid ();
7784 sparc_address_test (0);
7789 /* Here is another test for sparc vfork register problems. This
7790 test uses lots of local variables, at least as many local
7791 variables as main has allocated so far including compiler
7792 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7793 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7794 reuse the register of parent for one of the local variables,
7795 since it will think that parent can't possibly be used any more
7796 in this routine. Assigning to the local variable will thus
7797 munge parent in the parent process. */
7799 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7800 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7801 /* Convince the compiler that p..p7 are live; otherwise, it might
7802 use the same hardware register for all 8 local variables. */
7803 if (p != p1 || p != p2 || p != p3 || p != p4
7804 || p != p5 || p != p6 || p != p7)
7807 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7808 from child file descriptors. If the child closes a descriptor
7809 before it execs or exits, this munges the parent's descriptor
7810 as well. Test for this by closing stdout in the child. */
7811 _exit(close(fileno(stdout)) != 0);
7816 while (wait(&status) != child)
7819 /* Was there some problem with vforking? */
7822 /* Did the child fail? (This shouldn't happen.) */
7825 /* Did the vfork/compiler bug occur? */
7826 || parent != getpid()
7828 /* Did the file descriptor bug occur? */
7829 || fstat(fileno(stdout), &st) != 0
7834 rm -f conftest$ac_exeext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7836 (eval $ac_link) 2>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_func_vfork_works=yes
7847 echo "$as_me: program exited with status $ac_status" >&5
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7852 ac_cv_func_vfork_works=no
7854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7857 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7858 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7861 if test "x$ac_cv_func_fork_works" = xcross; then
7862 ac_cv_func_vfork_works=$ac_cv_func_vfork
7863 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7864 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7867 if test "x$ac_cv_func_vfork_works" = xyes; then
7869 cat >>confdefs.h <<\_ACEOF
7870 #define HAVE_WORKING_VFORK 1
7875 cat >>confdefs.h <<\_ACEOF
7880 if test "x$ac_cv_func_fork_works" = xyes; then
7882 cat >>confdefs.h <<\_ACEOF
7883 #define HAVE_WORKING_FORK 1
7891 am_cv_lib_iconv_ldpath=
7893 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7894 if test "${with_libiconv_prefix+set}" = set; then
7895 withval="$with_libiconv_prefix"
7897 for dir in `echo "$withval" | tr : ' '`; do
7898 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7899 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7905 for ac_header in iconv.h
7907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 echo "$as_me:$LINENO: checking for $ac_header" >&5
7909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 #include <$ac_header>
7921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7924 grep -v '^ *+' conftest.er1 >conftest.err
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } >/dev/null; then
7929 if test -s conftest.err; then
7930 ac_cpp_err=$ac_c_preproc_warn_flag
7931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7938 if test -z "$ac_cpp_err"; then
7939 eval "$as_ac_Header=yes"
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7944 eval "$as_ac_Header=no"
7946 rm -f conftest.err conftest.$ac_ext
7948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7951 cat >>confdefs.h <<_ACEOF
7952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7959 echo "$as_me:$LINENO: checking for iconv" >&5
7960 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7961 if test "${am_cv_func_iconv+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 am_cv_func_iconv="no, consider installing GNU libiconv"
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7978 iconv_t cd = iconv_open("","");
7979 iconv(cd,NULL,NULL,NULL,NULL);
7985 rm -f conftest.$ac_objext conftest$ac_exeext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7987 (eval $ac_link) 2>conftest.er1
7989 grep -v '^ *+' conftest.er1 >conftest.err
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; } &&
8000 { ac_try='test -s conftest$ac_exeext'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
8006 am_cv_func_iconv=yes
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8012 rm -f conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8014 if test "$am_cv_func_iconv" != yes; then
8015 am_save_LIBS="$LIBS"
8016 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8017 cat >conftest.$ac_ext <<_ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8028 iconv_t cd = iconv_open("","");
8029 iconv(cd,NULL,NULL,NULL,NULL);
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037 (eval $ac_link) 2>conftest.er1
8039 grep -v '^ *+' conftest.er1 >conftest.err
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
8044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; } &&
8050 { ac_try='test -s conftest$ac_exeext'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8057 am_cv_func_iconv=yes
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8063 rm -f conftest.err conftest.$ac_objext \
8064 conftest$ac_exeext conftest.$ac_ext
8065 LIBS="$am_save_LIBS"
8069 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8070 echo "${ECHO_T}$am_cv_func_iconv" >&6
8071 if test "$am_cv_func_iconv" = yes; then
8073 cat >>confdefs.h <<\_ACEOF
8074 #define HAVE_ICONV 1
8077 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8078 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8079 if test "${am_cv_proto_iconv+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8096 #if defined(__STDC__) || defined(__cplusplus)
8097 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8110 rm -f conftest.$ac_objext
8111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112 (eval $ac_compile) 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 am_cv_proto_iconv_arg1=""
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 am_cv_proto_iconv_arg1="const"
8138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8139 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);"
8142 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8143 echo "$as_me:$LINENO: result: ${ac_t:-
8144 }$am_cv_proto_iconv" >&5
8145 echo "${ECHO_T}${ac_t:-
8146 }$am_cv_proto_iconv" >&6
8148 cat >>confdefs.h <<_ACEOF
8149 #define ICONV_CONST $am_cv_proto_iconv_arg1
8154 if test "$am_cv_lib_iconv" = yes; then
8155 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8159 # Until we have in-tree GNU iconv:
8164 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8165 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8166 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 cat >conftest.$ac_ext <<_ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; } &&
8199 { ac_try='test -s conftest$ac_exeext'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 am_cv_val_LC_MESSAGES=yes
8207 echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8210 am_cv_val_LC_MESSAGES=no
8212 rm -f conftest.err conftest.$ac_objext \
8213 conftest$ac_exeext conftest.$ac_ext
8215 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8216 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8217 if test $am_cv_val_LC_MESSAGES = yes; then
8219 cat >>confdefs.h <<\_ACEOF
8220 #define HAVE_LC_MESSAGES 1
8226 # We will need to find libiberty.h and ansidecl.h
8227 saved_CFLAGS="$CFLAGS"
8228 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8253 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8254 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8255 fprintf_unlocked strstr errno snprintf vasprintf \
8256 malloc realloc calloc free basename getopt clock getpagesize
8258 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8259 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8260 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8261 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 cat >conftest.$ac_ext <<_ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8271 #define $ac_tr_decl 1
8273 #include "ansidecl.h"
8280 char *(*pfn) = (char *(*)) $ac_func ;
8286 rm -f conftest.$ac_objext
8287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8288 (eval $ac_compile) 2>conftest.er1
8290 grep -v '^ *+' conftest.er1 >conftest.err
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest.$ac_objext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 eval "gcc_cv_have_decl_$ac_func=yes"
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 eval "gcc_cv_have_decl_$ac_func=no"
8314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8317 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8318 echo "$as_me:$LINENO: result: yes" >&5
8319 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8320 #define $ac_tr_decl 1
8324 echo "$as_me:$LINENO: result: no" >&5
8325 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8326 #define $ac_tr_decl 0
8337 for ac_func in getrlimit setrlimit getrusage
8339 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8340 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8341 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8342 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 cat >conftest.$ac_ext <<_ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8352 #define $ac_tr_decl 1
8354 #include "ansidecl.h"
8356 #ifdef HAVE_SYS_RESOURCE_H
8357 #include <sys/resource.h>
8365 char *(*pfn) = (char *(*)) $ac_func ;
8371 rm -f conftest.$ac_objext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373 (eval $ac_compile) 2>conftest.er1
8375 grep -v '^ *+' conftest.er1 >conftest.err
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try='test -s conftest.$ac_objext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 eval "gcc_cv_have_decl_$ac_func=yes"
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8397 eval "gcc_cv_have_decl_$ac_func=no"
8399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8402 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8403 echo "$as_me:$LINENO: result: yes" >&5
8404 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8405 #define $ac_tr_decl 1
8409 echo "$as_me:$LINENO: result: no" >&5
8410 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8411 #define $ac_tr_decl 0
8419 cat >conftest.$ac_ext <<_ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8426 #include "ansidecl.h"
8428 #ifdef HAVE_SYS_RESOURCE_H
8429 #include <sys/resource.h>
8440 rm -f conftest.$ac_objext
8441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8442 (eval $ac_compile) 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } &&
8449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest.$ac_objext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8467 cat >>confdefs.h <<\_ACEOF
8472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8475 for ac_func in ldgetname
8477 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8478 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8479 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8480 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 cat >conftest.$ac_ext <<_ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8490 #define $ac_tr_decl 1
8492 #include "ansidecl.h"
8503 char *(*pfn) = (char *(*)) $ac_func ;
8509 rm -f conftest.$ac_objext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511 (eval $ac_compile) 2>conftest.er1
8513 grep -v '^ *+' conftest.er1 >conftest.err
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; } &&
8524 { ac_try='test -s conftest.$ac_objext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 eval "gcc_cv_have_decl_$ac_func=yes"
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 eval "gcc_cv_have_decl_$ac_func=no"
8537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8540 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8541 echo "$as_me:$LINENO: result: yes" >&5
8542 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8543 #define $ac_tr_decl 1
8547 echo "$as_me:$LINENO: result: no" >&5
8548 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8549 #define $ac_tr_decl 0
8558 for ac_func in times
8560 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8561 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8562 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8563 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8573 #define $ac_tr_decl 1
8575 #include "ansidecl.h"
8577 #ifdef HAVE_SYS_TIMES_H
8578 #include <sys/times.h>
8586 char *(*pfn) = (char *(*)) $ac_func ;
8592 rm -f conftest.$ac_objext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8594 (eval $ac_compile) 2>conftest.er1
8596 grep -v '^ *+' conftest.er1 >conftest.err
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest.$ac_objext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 eval "gcc_cv_have_decl_$ac_func=yes"
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 eval "gcc_cv_have_decl_$ac_func=no"
8620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8623 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8624 echo "$as_me:$LINENO: result: yes" >&5
8625 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8626 #define $ac_tr_decl 1
8630 echo "$as_me:$LINENO: result: no" >&5
8631 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8632 #define $ac_tr_decl 0
8640 # More time-related stuff.
8641 echo "$as_me:$LINENO: checking for struct tms" >&5
8642 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8643 if test "${ac_cv_struct_tms+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 cat >conftest.$ac_ext <<_ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8654 #include "ansidecl.h"
8656 #ifdef HAVE_SYS_TIMES_H
8657 #include <sys/times.h>
8668 rm -f conftest.$ac_objext
8669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8670 (eval $ac_compile) 2>conftest.er1
8672 grep -v '^ *+' conftest.er1 >conftest.err
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } &&
8677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; } &&
8683 { ac_try='test -s conftest.$ac_objext'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8689 ac_cv_struct_tms=yes
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8698 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8699 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8700 if test $ac_cv_struct_tms = yes; then
8702 cat >>confdefs.h <<\_ACEOF
8703 #define HAVE_STRUCT_TMS 1
8708 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8709 # revisit after autoconf 2.50.
8710 echo "$as_me:$LINENO: checking for clock_t" >&5
8711 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8712 if test "${gcc_cv_type_clock_t+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 cat >conftest.$ac_ext <<_ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8723 #include "ansidecl.h"
8734 rm -f conftest.$ac_objext
8735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8736 (eval $ac_compile) 2>conftest.er1
8738 grep -v '^ *+' conftest.er1 >conftest.err
8740 cat conftest.err >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } &&
8743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; } &&
8749 { ac_try='test -s conftest.$ac_objext'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 gcc_cv_type_clock_t=yes
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 gcc_cv_type_clock_t=no
8762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8764 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8765 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8766 if test $gcc_cv_type_clock_t = yes; then
8768 cat >>confdefs.h <<\_ACEOF
8769 #define HAVE_CLOCK_T 1
8774 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8775 CFLAGS="$saved_CFLAGS"
8777 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8778 if test "${enable_initfini_array+set}" = set; then
8779 enableval="$enable_initfini_array"
8783 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8784 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8785 if test "${gcc_cv_initfini_array+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 if test "$cross_compiling" = yes; then
8789 gcc_cv_initfini_array=no
8791 cat >conftest.$ac_ext <<_ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8799 int main (void) { return x; }
8800 int foo (void) { x = 0; }
8801 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8803 rm -f conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 gcc_cv_initfini_array=yes
8816 echo "$as_me: program exited with status $ac_status" >&5
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8821 gcc_cv_initfini_array=no
8823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8826 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8827 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8828 enable_initfini_array=$gcc_cv_initfini_array
8831 if test $enable_initfini_array = yes; then
8833 cat >>confdefs.h <<\_ACEOF
8834 #define HAVE_INITFINI_ARRAY 1
8839 # mkdir takes a single argument on some systems.
8840 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8841 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8842 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 cat >conftest.$ac_ext <<_ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 #include <sys/types.h>
8853 #ifdef HAVE_SYS_STAT_H
8854 # include <sys/stat.h>
8856 #ifdef HAVE_UNISTD_H
8857 # include <unistd.h>
8859 #ifdef HAVE_DIRECT_H
8860 # include <direct.h>
8870 rm -f conftest.$ac_objext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8872 (eval $ac_compile) 2>conftest.er1
8874 grep -v '^ *+' conftest.er1 >conftest.err
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest.$ac_objext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 gcc_cv_mkdir_takes_one_arg=no
8893 echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8896 gcc_cv_mkdir_takes_one_arg=yes
8898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8900 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8901 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8902 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8904 cat >>confdefs.h <<\_ACEOF
8905 #define MKDIR_TAKES_ONE_ARG 1
8917 # With Setjmp/Longjmp based exception handling.
8918 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8919 if test "${enable_sjlj_exceptions+set}" = set; then
8920 enableval="$enable_sjlj_exceptions"
8921 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8923 cat >>confdefs.h <<_ACEOF
8924 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8929 if test x$host = x$target; then
8930 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8931 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8932 if test "${ac_cv_lib_unwind_main+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 ac_check_lib_save_LIBS=$LIBS
8936 LIBS="-lunwind $LIBS"
8937 cat >conftest.$ac_ext <<_ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8953 rm -f conftest.$ac_objext conftest$ac_exeext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>conftest.er1
8957 grep -v '^ *+' conftest.er1 >conftest.err
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; } &&
8968 { ac_try='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_cv_lib_unwind_main=yes
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_cv_lib_unwind_main=no
8981 rm -f conftest.err conftest.$ac_objext \
8982 conftest$ac_exeext conftest.$ac_ext
8983 LIBS=$ac_check_lib_save_LIBS
8985 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8986 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8987 if test $ac_cv_lib_unwind_main = yes; then
8988 use_libunwind_default=yes
8990 use_libunwind_default=no
8994 use_libunwind_default=no
8996 # Use libunwind based exception handling.
8997 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8998 if test "${enable_libunwind_exceptions+set}" = set; then
8999 enableval="$enable_libunwind_exceptions"
9000 use_libunwind_exceptions=$enableval
9002 use_libunwind_exceptions=$use_libunwind_default
9004 if test x"$use_libunwind_exceptions" = xyes; then
9006 cat >>confdefs.h <<\_ACEOF
9007 #define USE_LIBUNWIND_EXCEPTIONS 1
9012 # --------------------------------------------------------
9013 # Build, host, and target specific configuration fragments
9014 # --------------------------------------------------------
9016 # Collect build-machine-specific information.
9017 . ${srcdir}/config.build
9019 # Collect host-machine-specific information.
9020 . ${srcdir}/config.host
9024 # Collect target-machine-specific information.
9025 . ${srcdir}/config.gcc
9027 extra_objs="${host_extra_objs} ${extra_objs}"
9028 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9030 # Default the target-machine variables that were not explicitly set.
9031 if test x"$tm_file" = x
9032 then tm_file=$cpu_type/$cpu_type.h; fi
9034 if test x"$extra_headers" = x
9035 then extra_headers=; fi
9037 if test x$md_file = x
9038 then md_file=$cpu_type/$cpu_type.md; fi
9040 if test x$out_file = x
9041 then out_file=$cpu_type/$cpu_type.c; fi
9043 if test x"$tmake_file" = x
9044 then tmake_file=$cpu_type/t-$cpu_type
9047 if test x"$dwarf2" = xyes
9048 then tm_file="$tm_file tm-dwarf2.h"
9051 # Say what files are being used for the output code and MD file.
9052 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9053 echo "Using \`$srcdir/config/$md_file' as machine description file."
9055 # If any of the xm_file variables contain nonexistent files, warn
9056 # about them and drop them.
9059 for x in $build_xm_file; do
9060 if test -f $srcdir/config/$x
9062 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9063 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9069 for x in $host_xm_file; do
9070 if test -f $srcdir/config/$x
9072 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9073 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9079 for x in $xm_file; do
9080 if test -f $srcdir/config/$x
9082 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9083 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9089 for f in $tm_file; do
9092 if test $count = ax; then
9093 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9095 echo "Using the following target machine macro files:"
9096 for f in $tm_file; do
9097 echo " $srcdir/config/$f"
9101 if test x$need_64bit_hwint = xyes; then
9103 cat >>confdefs.h <<\_ACEOF
9104 #define NEED_64BIT_HOST_WIDE_INT 1
9110 for f in $host_xm_file; do
9113 if test $count = a; then
9115 elif test $count = ax; then
9116 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9118 echo "Using the following host machine macro files:"
9119 for f in $host_xm_file; do
9120 echo " $srcdir/config/$f"
9123 echo "Using ${out_host_hook_obj} for host machine hooks."
9125 if test "$host_xm_file" != "$build_xm_file"; then
9127 for f in $build_xm_file; do
9130 if test $count = a; then
9132 elif test $count = ax; then
9133 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9135 echo "Using the following build machine macro files:"
9136 for f in $build_xm_file; do
9137 echo " $srcdir/config/$f"
9146 # Check if a valid thread package
9147 case ${enable_threads} in
9150 target_thread_file='single'
9154 target_thread_file='single'
9156 aix | dce | gnat | irix | posix | rtems | \
9157 single | solaris | vxworks | win32 )
9158 target_thread_file=${enable_threads}
9161 echo "${enable_threads} is an unknown thread package" 1>&2
9166 if test x${thread_file} = x; then
9167 # No thread file set by target-specific clauses in config.gcc,
9168 # so use file chosen by default logic above
9169 thread_file=${target_thread_file}
9172 # Make gthr-default.h if we have a thread file.
9174 if test $thread_file != single; then
9175 rm -f gthr-default.h
9176 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9177 gthread_flags=-DHAVE_GTHR_DEFAULT
9185 if test x$enable___cxa_atexit = xyes || \
9186 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9187 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9188 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9189 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 cat >conftest.$ac_ext <<_ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9200 #define __cxa_atexit innocuous___cxa_atexit
9202 /* System header to define __stub macros and hopefully few prototypes,
9203 which can conflict with char __cxa_atexit (); below.
9204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9205 <limits.h> exists even on freestanding compilers. */
9208 # include <limits.h>
9210 # include <assert.h>
9215 /* Override any gcc2 internal prototype to avoid an error. */
9220 /* We use char because int might match the return type of a gcc2
9221 builtin and then its argument prototype would still apply. */
9222 char __cxa_atexit ();
9223 /* The GNU C library defines this for functions which it implements
9224 to always fail with ENOSYS. Some functions are actually named
9225 something starting with __ and the normal name is an alias. */
9226 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9229 char (*f) () = __cxa_atexit;
9238 return f != __cxa_atexit;
9243 rm -f conftest.$ac_objext conftest$ac_exeext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9245 (eval $ac_link) 2>conftest.er1
9247 grep -v '^ *+' conftest.er1 >conftest.err
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; } &&
9258 { ac_try='test -s conftest$ac_exeext'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
9264 ac_cv_func___cxa_atexit=yes
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9269 ac_cv_func___cxa_atexit=no
9271 rm -f conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9274 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9275 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9276 if test $ac_cv_func___cxa_atexit = yes; then
9278 cat >>confdefs.h <<\_ACEOF
9279 #define DEFAULT_USE_CXA_ATEXIT 1
9283 echo "__cxa_atexit can't be enabled on this target"
9288 # Look for a file containing extra machine modes.
9289 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9290 extra_modes_file='$(srcdir)'/config/${extra_modes}
9293 cat >>confdefs.h <<_ACEOF
9294 #define EXTRA_MODES_FILE "config/$extra_modes"
9299 # auto-host.h is the file containing items generated by autoconf and is
9300 # the first file included by config.h.
9301 # If host=build, it is correct to have bconfig include auto-host.h
9302 # as well. If host!=build, we are in error and need to do more
9303 # work to find out the build config parameters.
9304 if test x$host = x$build
9306 build_auto=auto-host.h
9309 # We create a subdir, then run autoconf in the subdir.
9310 # To prevent recursion we set host and build for the new
9311 # invocation of configure to the build for this invocation
9318 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9319 *) realsrcdir=../${srcdir};;
9321 saved_CFLAGS="${CFLAGS}"
9322 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9323 ${realsrcdir}/configure \
9324 --enable-languages=${enable_languages-all} \
9325 --target=$target_alias --host=$build_alias --build=$build_alias
9326 CFLAGS="${saved_CFLAGS}"
9328 # We just finished tests for the build machine, so rename
9329 # the file auto-build.h in the gcc directory.
9330 mv auto-host.h ../auto-build.h
9333 build_auto=auto-build.h
9334 FORBUILD=../${build_subdir}
9338 tm_file="${tm_file} defaults.h"
9339 tm_p_file="${tm_p_file} tm-preds.h"
9340 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9341 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9342 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9343 # put this back in temporarily.
9344 xm_file="ansidecl.h ${xm_file}"
9350 # Get the version trigger filename from the toplevel
9351 if test "${with_gcc_version_trigger+set}" = set; then
9352 gcc_version_trigger=$with_gcc_version_trigger
9354 gcc_version_trigger=${srcdir}/version.c
9356 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9357 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9359 # Compile in configure arguments.
9360 if test -f configargs.h ; then
9361 # Being re-configured.
9362 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9363 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9365 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9368 # Double all backslashes and backslash all quotes to turn
9369 # gcc_config_arguments into a C string.
9370 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9371 $gcc_config_arguments
9373 gcc_config_arguments_str=`cat conftest.out`
9376 cat > configargs.h <<EOF
9377 /* Generated automatically. */
9378 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9379 static const char thread_model[] = "$thread_file";
9381 static const struct {
9382 const char *name, *value;
9383 } configure_default_options[] = $configure_default_options;
9386 # Internationalization
9388 VERSION="$gcc_version"
9392 # If we haven't got the data from the intl directory,
9393 # assume NLS is disabled.
9401 if test -f ../intl/config.intl; then
9402 . ../intl/config.intl
9404 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9405 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9406 if test x"$USE_NLS" != xyes; then
9407 echo "$as_me:$LINENO: result: no" >&5
9408 echo "${ECHO_T}no" >&6
9410 echo "$as_me:$LINENO: result: yes" >&5
9411 echo "${ECHO_T}yes" >&6
9413 cat >>confdefs.h <<\_ACEOF
9414 #define ENABLE_NLS 1
9418 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9419 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9420 # Look for .po and .gmo files in the source directory.
9423 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9424 # If there aren't any .gmo files the shell will give us the
9425 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9427 case "$cat" in *\**)
9430 # The quadruple backslash is collapsed to a double backslash
9431 # by the backticks, then collapsed again by the double quotes,
9432 # leaving us with one backslash in the sed expression (right
9433 # before the dot that mustn't act as a wildcard).
9434 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9435 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9436 # The user is allowed to set LINGUAS to a list of languages to
9437 # install catalogs for. If it's empty that means "all of them."
9438 if test "x$LINGUAS" = x; then
9439 CATALOGS="$CATALOGS $cat"
9440 XLINGUAS="$XLINGUAS $lang"
9442 case "$LINGUAS" in *$lang*)
9443 CATALOGS="$CATALOGS $cat"
9444 XLINGUAS="$XLINGUAS $lang"
9450 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9451 echo "${ECHO_T}$LINGUAS" >&6
9454 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9455 # -liconv on the link line twice.
9456 case "$LIBINTL" in *$LIBICONV*)
9460 # Windows32 Registry support for specifying GCC installation paths.
9461 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9462 if test "${enable_win32_registry+set}" = set; then
9463 enableval="$enable_win32_registry"
9467 win32 | pe | cygwin* | mingw32* | uwin*)
9468 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9469 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9470 if test "x$enable_win32_registry" != xno; then
9472 cat >>confdefs.h <<\_ACEOF
9473 #define ENABLE_WIN32_REGISTRY 1
9476 echo "$as_me:$LINENO: result: yes" >&5
9477 echo "${ECHO_T}yes" >&6
9478 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9479 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9480 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 ac_func_search_save_LIBS=$LIBS
9484 ac_cv_search_RegOpenKeyExA=no
9485 cat >conftest.$ac_ext <<_ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9492 /* Override any gcc2 internal prototype to avoid an error. */
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9498 char RegOpenKeyExA ();
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9509 (eval $ac_link) 2>conftest.er1
9511 grep -v '^ *+' conftest.er1 >conftest.err
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
9516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; } &&
9522 { ac_try='test -s conftest$ac_exeext'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9528 ac_cv_search_RegOpenKeyExA="none required"
9530 echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9534 rm -f conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9537 for ac_lib in advapi32; do
9538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9546 /* Override any gcc2 internal prototype to avoid an error. */
9550 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9552 char RegOpenKeyExA ();
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>conftest.er1
9565 grep -v '^ *+' conftest.er1 >conftest.err
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } &&
9570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9589 rm -f conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_func_search_save_LIBS
9595 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9596 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9597 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9598 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9603 echo "$as_me:$LINENO: result: no" >&5
9604 echo "${ECHO_T}no" >&6
9607 # Check if user specified a different registry key.
9608 case "x${enable_win32_registry}" in
9611 gcc_cv_win32_registry_key="$VERSION"
9614 # no registry lookup.
9615 gcc_cv_win32_registry_key=''
9618 # user-specified key.
9619 gcc_cv_win32_registry_key="$enable_win32_registry"
9623 if test "x$enable_win32_registry" != xno; then
9624 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9625 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9627 cat >>confdefs.h <<_ACEOF
9628 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9631 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9632 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9637 # Get an absolute path to the GCC top-level source directory
9638 holddir=`${PWDCMD-pwd}`
9640 topdir=`${PWDCMD-pwd}`
9643 # Conditionalize the makefile for this host machine.
9645 for f in ${host_xmake_file}
9647 if test -f ${srcdir}/config/$f
9649 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9653 # Conditionalize the makefile for this target machine.
9655 for f in ${tmake_file}
9657 if test -f ${srcdir}/config/$f
9659 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9662 tmake_file="${tmake_file_}"
9664 symbolic_link='ln -s'
9666 # If the host doesn't support symlinks, modify CC in
9667 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9668 # Otherwise, we can use "CC=$(CC)".
9670 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9672 cc_set_by_configure="\$(CC)"
9673 quoted_cc_set_by_configure="\$(CC)"
9674 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9675 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9678 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9680 symbolic_link="cp -p"
9684 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9685 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9686 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9687 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9691 out_object_file=`basename $out_file .c`.o
9695 for f in $tm_file; do
9698 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9699 tm_include_list="${tm_include_list} $f"
9702 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9703 tm_include_list="${tm_include_list} config/$f"
9710 for f in $tm_p_file; do
9713 tm_p_file_list="${tm_p_file_list} $f"
9714 tm_p_include_list="${tm_p_include_list} $f"
9717 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9718 tm_p_include_list="${tm_p_include_list} config/$f"
9724 for f in $xm_file; do
9727 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9728 xm_include_list="${xm_include_list} $f"
9731 xm_file_list="${xm_file_list} $f"
9732 xm_include_list="${xm_include_list} $f"
9735 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9736 xm_include_list="${xm_include_list} config/$f"
9742 host_xm_include_list=
9743 for f in $host_xm_file; do
9746 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9747 host_xm_include_list="${host_xm_include_list} $f"
9750 host_xm_file_list="${host_xm_file_list} $f"
9751 host_xm_include_list="${host_xm_include_list} $f"
9754 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9755 host_xm_include_list="${host_xm_include_list} config/$f"
9761 for f in $build_xm_file; do
9764 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9765 build_xm_include_list="${build_xm_include_list} $f"
9767 auto-build.h | auto-host.h )
9768 build_xm_file_list="${build_xm_file_list} $f"
9769 build_xm_include_list="${build_xm_include_list} $f"
9772 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9773 build_xm_include_list="${build_xm_include_list} config/$f"
9778 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9779 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9782 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9783 if test x$host != x$target
9785 CROSS="-DCROSS_COMPILE"
9787 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9788 case "$host","$target" in
9789 # Darwin crosses can use the host system's libraries and headers,
9790 # because of the fat library support. Of course, it must be the
9791 # same version of Darwin on both sides. Allow the user to
9792 # just say --target=foo-darwin without a version number to mean
9793 # "the version on this system".
9794 *-*-darwin*,*-*-darwin*)
9795 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9796 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9797 if test $hostos = $targetos -o $targetos = darwin ; then
9799 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9804 i?86-*-*,x86_64-*-* \
9805 | powerpc*-*-*,powerpc64*-*-*)
9806 CROSS="$CROSS -DNATIVE_CROSS" ;;
9808 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9809 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9810 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9813 # If this is a cross-compiler that does not
9814 # have its own set of headers then define
9817 # If this is using newlib, without having the headers available now,
9818 # then define inhibit_libc in LIBGCC2_CFLAGS.
9819 # This prevents libgcc2 from containing any code which requires libc
9822 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9823 test x$with_newlib = xyes ; } &&
9824 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9825 inhibit_libc=-Dinhibit_libc
9829 # When building gcc with a cross-compiler, we need to adjust things so
9830 # that the generator programs are still built with the native compiler.
9831 # Also, we cannot run fixincludes or fix-header.
9833 # These are the normal (build=host) settings:
9835 BUILD_PREFIX_1=ignore-
9836 CC_FOR_BUILD='$(CC)'
9837 BUILD_CFLAGS='$(ALL_CFLAGS)'
9839 STMP_FIXINC=stmp-fixinc
9841 # Possibly disable fixproto, on a per-target basis.
9842 case ${use_fixproto} in
9847 STMP_FIXPROTO=stmp-fixproto
9852 # And these apply if build != host, or we are generating coverage data
9853 if test x$build != x$host || test "x$coverage_flags" != x
9856 BUILD_PREFIX_1=build-
9857 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9859 if test "x$TARGET_SYSTEM_ROOT" = x; then
9865 # Expand extra_headers to include complete path.
9866 # This substitutes for lots of t-* files.
9868 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9869 for file in ${extra_headers} ; do
9870 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9873 # Define collect2 in Makefile.
9874 case $host_can_use_collect2 in
9876 *) collect2='collect2$(exeext)' ;;
9880 # Add a definition of USE_COLLECT2 if system wants one.
9881 case $use_collect2 in
9882 no) use_collect2= ;;
9885 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9886 xm_defines="${xm_defines} USE_COLLECT2"
9887 case $host_can_use_collect2 in
9889 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
9890 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
9891 { (exit 1); exit 1; }; }
9897 # ---------------------------
9898 # Assembler & linker features
9899 # ---------------------------
9901 # Identify the assembler which will work hand-in-glove with the newly
9902 # built GCC, so that we can examine its features. This is the assembler
9903 # which will be driven by the driver program.
9905 # If build != host, and we aren't building gas in-tree, we identify a
9906 # build->target assembler and hope that it will have the same features
9907 # as the host->target assembler we'll be using.
9908 echo "$as_me:$LINENO: checking what assembler to use" >&5
9909 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9912 gcc_cv_gas_major_version=
9913 gcc_cv_gas_minor_version=
9914 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9915 if test -x "$DEFAULT_ASSEMBLER"; then
9916 gcc_cv_as="$DEFAULT_ASSEMBLER"
9917 elif test -x as$host_exeext; then
9918 # Build using assembler in the current directory.
9919 gcc_cv_as=./as$host_exeext
9920 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9921 && test -f ../gas/Makefile \
9922 && test x$build = x$host; then
9923 # Single tree build which includes gas. We want to prefer it
9924 # over whatever linker top-level may have detected, since
9925 # we'll use what we're building after installation anyway.
9927 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9928 for f in $gcc_cv_as_bfd_srcdir/configure \
9929 $gcc_cv_as_gas_srcdir/configure \
9930 $gcc_cv_as_gas_srcdir/configure.in \
9931 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9932 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9933 if test x$gcc_cv_gas_version != x; then
9937 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9938 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9939 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9940 case $gcc_cv_gas_patch_version in
9941 "") gcc_cv_gas_patch_version="0" ;;
9943 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9944 + $gcc_cv_gas_minor_version \) \* 1000 \
9945 + $gcc_cv_gas_patch_version`
9947 rm -f as$host_exeext
9948 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9949 in_tree_gas_is_elf=no
9950 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9951 || (grep 'obj_format = multi' ../gas/Makefile \
9952 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9954 in_tree_gas_is_elf=yes
9956 elif test -x "$AS_FOR_TARGET"; then
9957 gcc_cv_as="$AS_FOR_TARGET"
9958 elif test -x "$AS" && test x$host = x$target; then
9962 if test "x$gcc_cv_as" = x; then
9963 # Search the same directories that the installed compiler will
9964 # search. Else we may find the wrong assembler and lose. If we
9965 # do not find a suitable assembler binary, then try the user's
9968 # Also note we have to check MD_EXEC_PREFIX before checking the
9969 # user's path. Unfortunately, there is no good way to get at the
9970 # value of MD_EXEC_PREFIX here. So we do a brute force search
9971 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9972 # to be fixed as part of the make/configure rewrite too.
9974 if test "x$exec_prefix" = xNONE; then
9975 if test "x$prefix" = xNONE; then
9976 test_prefix=/usr/local
9981 test_prefix=$exec_prefix
9984 # If the loop below does not find an assembler, then use whatever
9985 # one we can find in the users's path.
9987 if test "x$program_prefix" != xNONE; then
9988 gcc_cv_as=${program_prefix}as$host_exeext
9990 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
9993 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9994 $test_prefix/libexec/gcc/$target_noncanonical \
9995 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9996 /usr/lib/gcc/$target_noncanonical \
9997 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9998 $test_prefix/$target_noncanonical/bin"
10000 if test x$host = x$target; then
10001 test_dirs="$test_dirs \
10006 /bsd43/usr/lib/cmplrs/cc \
10007 /usr/cross64/usr/bin \
10008 /usr/lib/cmplrs/cc \
10009 /sysv/usr/lib/cmplrs/cc \
10010 /svr4/usr/lib/cmplrs/cc \
10014 for dir in $test_dirs; do
10015 if test -x $dir/as$host_exeext; then
10016 gcc_cv_as=$dir/as$host_exeext
10021 case $in_tree_gas in
10023 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10024 echo "${ECHO_T}\"newly built gas\"" >&6
10027 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10028 echo "${ECHO_T}$gcc_cv_as" >&6
10032 # Identify the linker which will work hand-in-glove with the newly
10033 # built GCC, so that we can examine its features. This is the linker
10034 # which will be driven by the driver program.
10036 # If build != host, and we aren't building gas in-tree, we identify a
10037 # build->target linker and hope that it will have the same features
10038 # as the host->target linker we'll be using.
10039 echo "$as_me:$LINENO: checking what linker to use" >&5
10040 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10043 gcc_cv_gld_major_version=
10044 gcc_cv_gld_minor_version=
10045 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10046 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10047 if test -x "$DEFAULT_LINKER"; then
10048 gcc_cv_ld="$DEFAULT_LINKER"
10049 elif test -x collect-ld$host_exeext; then
10050 # Build using linker in the current directory.
10051 gcc_cv_ld=./collect-ld$host_exeext
10052 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10053 && test -f ../ld/Makefile \
10054 && test x$build = x$host; then
10055 # Single tree build which includes ld. We want to prefer it
10056 # over whatever linker top-level may have detected, since
10057 # we'll use what we're building after installation anyway.
10059 in_tree_ld_is_elf=no
10060 if (grep 'EMUL = .*elf' ../ld/Makefile \
10061 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10062 in_tree_ld_is_elf=yes
10064 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
10066 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10067 if test x$gcc_cv_gld_version != x; then
10071 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10072 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10073 rm -f collect-ld$host_exeext
10074 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10076 elif test -x "$LD_FOR_TARGET"; then
10077 gcc_cv_ld="$LD_FOR_TARGET"
10078 elif test -x "$LD" && test x$host = x$target; then
10082 if test "x$gcc_cv_ld" = x; then
10083 # Search the same directories that the installed compiler will
10084 # search. Else we may find the wrong linker and lose. If we
10085 # do not find a suitable linker binary, then try the user's
10088 # Also note we have to check MD_EXEC_PREFIX before checking the
10089 # user's path. Unfortunately, there is no good way to get at the
10090 # value of MD_EXEC_PREFIX here. So we do a brute force search
10091 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10092 # to be fixed as part of the make/configure rewrite too.
10094 if test "x$exec_prefix" = xNONE; then
10095 if test "x$prefix" = xNONE; then
10096 test_prefix=/usr/local
10098 test_prefix=$prefix
10101 test_prefix=$exec_prefix
10104 # If the loop below does not find an linker, then use whatever
10105 # one we can find in the users's path.
10107 if test "x$program_prefix" != xNONE; then
10108 gcc_cv_ld=${program_prefix}ld$host_exeext
10110 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10113 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10114 $test_prefix/libexec/gcc/$target_noncanonical \
10115 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10116 /usr/lib/gcc/$target_noncanonical \
10117 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10118 $test_prefix/$target_noncanonical/bin"
10120 if test x$host = x$target; then
10121 test_dirs="$test_dirs \
10126 /bsd43/usr/lib/cmplrs/cc \
10127 /usr/cross64/usr/bin \
10128 /usr/lib/cmplrs/cc \
10129 /sysv/usr/lib/cmplrs/cc \
10130 /svr4/usr/lib/cmplrs/cc \
10134 for dir in $test_dirs; do
10135 if test -x $dir/ld$host_exeext; then
10136 gcc_cv_ld=$dir/ld$host_exeext
10141 case $in_tree_ld in
10143 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10144 echo "${ECHO_T}\"newly built ld\"" >&6
10147 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10148 echo "${ECHO_T}$gcc_cv_ld" >&6
10152 # Figure out what nm we will be using.
10153 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10154 echo "$as_me:$LINENO: checking what nm to use" >&5
10155 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10157 if test -x nm$host_exeext; then
10158 gcc_cv_nm=./nm$host_exeext
10159 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10160 && test -f ../binutils/Makefile; then
10161 # Single tree build which includes binutils.
10163 gcc_cv_nm=./nm$host_exeext
10164 rm -f nm$host_exeext
10165 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10166 elif test "x$program_prefix" != xNONE; then
10167 gcc_cv_nm=${program_prefix}nm$host_exeext
10169 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10171 case $in_tree_nm in
10172 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10173 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10174 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10175 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10178 # Figure out what objdump we will be using.
10179 echo "$as_me:$LINENO: checking what objdump to use" >&5
10180 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10182 if test -x objdump$host_exeext; then
10183 gcc_cv_objdump=./objdump$host_exeext
10184 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10185 && test -f ../binutils/Makefile; then
10186 # Single tree build which includes binutils.
10187 in_tree_objdump=yes
10188 gcc_cv_objdump=./objdump$host_exeext
10189 rm -f objdump$host_exeext
10190 $symbolic_link ../binutils/objdump$host_exeext \
10191 objdump$host_exeext 2>/dev/null
10192 elif test "x$program_prefix" != xNONE; then
10193 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10195 gcc_cv_objdump=`echo objdump | \
10196 sed "${program_transform_name}"`$host_exeext
10198 case $in_tree_objdump in
10199 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10200 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10201 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10202 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10205 # Figure out what assembler alignment features are present.
10206 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10207 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10208 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 gcc_cv_as_balign_and_p2align=no
10212 if test $in_tree_gas = yes; then
10213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10214 then gcc_cv_as_balign_and_p2align=yes
10216 elif test x$gcc_cv_as != x; then
10218 .p2align 2' > conftest.s
10219 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }
10226 gcc_cv_as_balign_and_p2align=yes
10228 echo "configure: failed program was" >&5
10231 rm -f conftest.o conftest.s
10234 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10235 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10236 if test $gcc_cv_as_balign_and_p2align = yes; then
10238 cat >>confdefs.h <<\_ACEOF
10239 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10244 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10245 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10246 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 gcc_cv_as_max_skip_p2align=no
10250 if test $in_tree_gas = yes; then
10251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10252 then gcc_cv_as_max_skip_p2align=yes
10254 elif test x$gcc_cv_as != x; then
10255 echo '.p2align 4,,7' > conftest.s
10256 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }
10263 gcc_cv_as_max_skip_p2align=yes
10265 echo "configure: failed program was" >&5
10268 rm -f conftest.o conftest.s
10271 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10272 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10273 if test $gcc_cv_as_max_skip_p2align = yes; then
10275 cat >>confdefs.h <<\_ACEOF
10276 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10281 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10282 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10283 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 gcc_cv_as_subsection_m1=no
10287 if test $in_tree_gas = yes; then
10288 if test $in_tree_gas_is_elf = yes \
10289 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10290 then gcc_cv_as_subsection_m1=yes
10292 elif test x$gcc_cv_as != x; then
10293 echo 'conftest_label1: .word 0
10295 conftest_label2: .word 0
10296 .previous' > conftest.s
10297 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }
10304 if test x$gcc_cv_nm != x; then
10305 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10306 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10307 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10309 else gcc_cv_as_subsection_m1=yes
10311 rm -f conftest.nm1 conftest.nm2
10314 echo "configure: failed program was" >&5
10317 rm -f conftest.o conftest.s
10320 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10321 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10322 if test $gcc_cv_as_subsection_m1 = yes; then
10324 cat >>confdefs.h <<\_ACEOF
10325 #define HAVE_GAS_SUBSECTION_ORDERING 1
10330 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10331 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10332 if test "${gcc_cv_as_weak+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 if test $in_tree_gas = yes; then
10337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10338 then gcc_cv_as_weak=yes
10340 elif test x$gcc_cv_as != x; then
10341 echo ' .weak foobar' > conftest.s
10342 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }
10351 echo "configure: failed program was" >&5
10354 rm -f conftest.o conftest.s
10357 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10358 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10359 if test $gcc_cv_as_weak = yes; then
10361 cat >>confdefs.h <<\_ACEOF
10362 #define HAVE_GAS_WEAK 1
10367 # .hidden needs to be supported in both the assembler and the linker,
10368 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10369 # This is irritatingly difficult to feature test for; we have to check the
10370 # date string after the version number. If we've got an in-tree
10371 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10373 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10374 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10375 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10376 if test "${gcc_cv_as_hidden+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 gcc_cv_as_hidden=no
10380 if test $in_tree_gas = yes; then
10381 if test $in_tree_gas_is_elf = yes \
10382 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10383 then gcc_cv_as_hidden=yes
10385 elif test x$gcc_cv_as != x; then
10386 echo ' .hidden foobar
10387 foobar:' > conftest.s
10388 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }
10395 gcc_cv_as_hidden=yes
10397 echo "configure: failed program was" >&5
10400 rm -f conftest.o conftest.s
10403 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10404 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10407 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10408 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10409 if test "${gcc_cv_ld_hidden+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 if test $in_tree_ld = yes ; then
10413 gcc_cv_ld_hidden=no
10414 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 \
10415 && test $in_tree_ld_is_elf = yes; then
10416 gcc_cv_ld_hidden=yes
10419 gcc_cv_ld_hidden=yes
10420 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10421 if echo "$ld_ver" | grep GNU > /dev/null; then
10422 ld_vers=`echo $ld_ver | sed -n \
10423 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10424 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10425 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10426 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10427 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10428 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10429 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'`
10430 if test 0"$ld_date" -lt 20020404; then
10431 if test -n "$ld_date"; then
10432 # If there was date string, but was earlier than 2002-04-04, fail
10433 gcc_cv_ld_hidden=no
10434 elif test -z "$ld_vers"; then
10435 # If there was no date string nor ld version number, something is wrong
10436 gcc_cv_ld_hidden=no
10438 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10439 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10440 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10441 test -z "$ld_vers_patch" && ld_vers_patch=0
10442 if test "$ld_vers_major" -lt 2; then
10443 gcc_cv_ld_hidden=no
10444 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10445 gcc_cv_ld_hidden="no"
10446 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10447 gcc_cv_ld_hidden=no
10452 case "${target}" in
10453 hppa64*-*-hpux* | ia64*-*-hpux*)
10454 gcc_cv_ld_hidden=yes
10457 gcc_cv_ld_hidden=no
10463 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10464 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10465 libgcc_visibility=no
10467 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10468 libgcc_visibility=yes
10470 cat >>confdefs.h <<\_ACEOF
10471 #define HAVE_GAS_HIDDEN 1
10476 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10477 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10478 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10479 if test "${gcc_cv_as_leb128+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 gcc_cv_as_leb128=no
10483 if test $in_tree_gas = yes; then
10484 if test $in_tree_gas_is_elf = yes \
10485 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10486 then gcc_cv_as_leb128=yes
10488 elif test x$gcc_cv_as != x; then
10495 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }
10502 # GAS versions before 2.11 do not support uleb128,
10503 # despite appearing to.
10504 # ??? There exists an elf-specific test that will crash
10505 # the assembler. Perhaps it's better to figure out whether
10506 # arbitrary sections are supported and try the test.
10507 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10508 if echo "$as_ver" | grep GNU > /dev/null; then
10509 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10510 as_major=`echo $as_ver | sed 's/\..*//'`
10511 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10512 if test $as_major -eq 2 && test $as_minor -lt 11
10514 else gcc_cv_as_leb128=yes
10518 echo "configure: failed program was" >&5
10521 rm -f conftest.o conftest.s
10524 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10525 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10526 if test $gcc_cv_as_leb128 = yes; then
10528 cat >>confdefs.h <<\_ACEOF
10529 #define HAVE_AS_LEB128 1
10534 # GAS versions up to and including 2.11.0 may mis-optimize
10536 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10537 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10538 if test "${gcc_cv_as_eh_frame+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 gcc_cv_as_eh_frame=no
10542 if test $in_tree_gas = yes; then
10543 if test $in_tree_gas_is_elf = yes \
10544 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10545 then gcc_cv_as_eh_frame=yes
10547 elif test x$gcc_cv_as != x; then
10554 .section .eh_frame,"aw",@progbits
10556 .4byte .LECIE1-.LSCIE1
10570 .4byte .LEFDE1-.LASFDE1
10572 .4byte .LASFDE1-__FRAME_BEGIN__
10579 .LEFDE1:' > conftest.s
10580 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }
10587 cat > conftest.lit <<EOF
10588 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10589 0010 01000000 12000000 18000000 00000000 ................
10590 0020 08000000 04080000 0044 .........D
10592 cat > conftest.big <<EOF
10593 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10594 0010 00000001 00000012 00000018 00000000 ................
10595 0020 00000008 04000000 0844 .........D
10597 # If the assembler didn't choke, and we can objdump,
10598 # and we got the correct data, then succeed.
10599 if test x$gcc_cv_objdump != x \
10600 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10601 | tail -3 > conftest.got \
10602 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10603 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10605 gcc_cv_as_eh_frame=yes
10606 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 gcc_cv_as_eh_frame=buggy
10614 # Uh oh, what do we do now?
10615 gcc_cv_as_eh_frame=no
10618 echo "configure: failed program was" >&5
10621 rm -f conftest.o conftest.s
10624 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10625 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10628 if test $gcc_cv_as_eh_frame = buggy; then
10630 cat >>confdefs.h <<\_ACEOF
10631 #define USE_AS_TRADITIONAL_FORMAT 1
10636 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10637 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10638 if test "${gcc_cv_as_shf_merge+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 gcc_cv_as_shf_merge=no
10642 if test $in_tree_gas = yes; then
10643 if test $in_tree_gas_is_elf = yes \
10644 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10645 then gcc_cv_as_shf_merge=yes
10647 elif test x$gcc_cv_as != x; then
10648 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10649 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }
10656 gcc_cv_as_shf_merge=yes
10658 echo "configure: failed program was" >&5
10661 rm -f conftest.o conftest.s
10664 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10665 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10668 cat >>confdefs.h <<_ACEOF
10669 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10673 # Thread-local storage - the check is heavily parametrized.
10681 .section ".tdata","awT",@progbits
10684 ldq $27,__tls_get_addr($29) !literal!1
10685 lda $16,foo($29) !tlsgd!1
10686 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10687 ldq $27,__tls_get_addr($29) !literal!2
10688 lda $16,foo($29) !tlsldm!2
10689 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10690 ldq $1,foo($29) !gotdtprel
10691 ldah $2,foo($29) !dtprelhi
10692 lda $3,foo($2) !dtprello
10693 lda $4,foo($29) !dtprel
10694 ldq $1,foo($29) !gottprel
10695 ldah $2,foo($29) !tprelhi
10696 lda $3,foo($2) !tprello
10697 lda $4,foo($29) !tprel'
10700 tls_as_opt=--fatal-warnings
10704 .section ".tdata","awT",@progbits
10708 leal foo@TLSGD(,%ebx,1), %eax
10709 leal foo@TLSLDM(%ebx), %eax
10710 leal foo@DTPOFF(%eax), %edx
10711 movl foo@GOTTPOFF(%ebx), %eax
10712 subl foo@GOTTPOFF(%ebx), %eax
10713 addl foo@GOTNTPOFF(%ebx), %eax
10714 movl foo@INDNTPOFF, %eax
10715 movl $foo@TPOFF, %eax
10716 subl $foo@TPOFF, %eax
10717 leal foo@NTPOFF(%ecx), %eax'
10720 tls_as_opt=--fatal-warnings
10724 .section ".tdata","awT",@progbits
10728 leaq foo@TLSGD(%rip), %rdi
10729 leaq foo@TLSLD(%rip), %rdi
10730 leaq foo@DTPOFF(%rax), %rdx
10731 movq foo@GOTTPOFF(%rip), %rax
10732 movq $foo@TPOFF, %rax'
10735 tls_as_opt=--fatal-warnings
10739 .section ".tdata","awT",@progbits
10742 addl r16 = @ltoff(@dtpmod(foo#)), gp
10743 addl r17 = @ltoff(@dtprel(foo#)), gp
10744 addl r18 = @ltoff(@tprel(foo#)), gp
10745 addl r19 = @dtprel(foo#), gp
10746 adds r21 = @dtprel(foo#), r13
10747 movl r23 = @dtprel(foo#)
10748 addl r20 = @tprel(foo#), gp
10749 adds r22 = @tprel(foo#), r13
10750 movl r24 = @tprel(foo#)'
10753 tls_as_opt=--fatal-warnings
10757 .section ".tdata","awT",@progbits
10765 addi 3,31,ld0@got@tlsgd
10767 addi 3,31,x1@got@tlsld
10770 addis 9,3,x2@dtprel@ha
10771 addi 9,9,x2@dtprel@l
10772 lwz 9,x3@got@tprel(31)
10775 addis 9,2,x2@tprel@ha
10776 addi 9,9,x2@tprel@l'
10779 tls_as_opt="-a32 --fatal-warnings"
10783 .section ".tdata","awT",@progbits
10791 addi 3,2,ld0@got@tlsgd
10797 addi 3,2,x1@got@tlsld
10803 addis 9,3,x2@dtprel@ha
10804 addi 9,9,x2@dtprel@l
10807 ld 9,x3@got@dtprel(2)
10813 tls_as_opt="-a64 --fatal-warnings"
10817 .section ".tdata","awT",@progbits
10824 .long foo@GOTNTPOFF
10825 .long foo@INDNTPOFF
10826 l %r1,foo@GOTNTPOFF(%r12)
10827 l %r1,0(%r1):tls_load:foo
10828 bas %r14,0(%r1,%r13):tls_gdcall:foo
10829 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10832 tls_as_opt="-m31 --fatal-warnings"
10836 .section ".tdata","awT",@progbits
10843 .quad foo@GOTNTPOFF
10844 lg %r1,foo@GOTNTPOFF(%r12)
10845 larl %r1,foo@INDNTPOFF
10846 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10847 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10850 tls_as_opt="-m64 -Aesame --fatal-warnings"
10852 sh-*-* | sh[34]-*-*)
10854 .section ".tdata","awT",@progbits
10864 tls_as_opt=--fatal-warnings
10868 sparc*-sun-solaris2.*)
10875 if test x$on_solaris = xyes && test x$gas_flag = xno; then
10877 .section ".tdata",#alloc,#write,#tls
10880 sethi %tgd_hi22(foo), %o0
10881 add %o0, %tgd_lo10(foo), %o1
10882 add %l7, %o1, %o0, %tgd_add(foo)
10883 call __tls_get_addr, %tgd_call(foo)
10884 sethi %tldm_hi22(foo), %l1
10885 add %l1, %tldm_lo10(foo), %l2
10886 add %l7, %l2, %o0, %tldm_add(foo)
10887 call __tls_get_addr, %tldm_call(foo)
10888 sethi %tldo_hix22(foo), %l3
10889 xor %l3, %tldo_lox10(foo), %l4
10890 add %o0, %l4, %l5, %tldo_add(foo)
10891 sethi %tie_hi22(foo), %o3
10892 add %o3, %tie_lo10(foo), %o3
10893 ld [%l7 + %o3], %o2, %tie_ld(foo)
10894 add %g7, %o2, %o4, %tie_add(foo)
10895 sethi %tle_hix22(foo), %l1
10896 xor %l1, %tle_lox10(foo), %o5
10897 ld [%g7 + %o5], %o1'
10902 .section ".tdata","awT",@progbits
10905 sethi %tgd_hi22(foo), %o0
10906 add %o0, %tgd_lo10(foo), %o1
10907 add %l7, %o1, %o0, %tgd_add(foo)
10908 call __tls_get_addr, %tgd_call(foo)
10909 sethi %tldm_hi22(foo), %l1
10910 add %l1, %tldm_lo10(foo), %l2
10911 add %l7, %l2, %o0, %tldm_add(foo)
10912 call __tls_get_addr, %tldm_call(foo)
10913 sethi %tldo_hix22(foo), %l3
10914 xor %l3, %tldo_lox10(foo), %l4
10915 add %o0, %l4, %l5, %tldo_add(foo)
10916 sethi %tie_hi22(foo), %o3
10917 add %o3, %tie_lo10(foo), %o3
10918 ld [%l7 + %o3], %o2, %tie_ld(foo)
10919 add %g7, %o2, %o4, %tie_add(foo)
10920 sethi %tle_hix22(foo), %l1
10921 xor %l1, %tle_lox10(foo), %o5
10922 ld [%g7 + %o5], %o1'
10925 tls_as_opt="-32 --fatal-warnings"
10929 if test -z "$tls_first_major"; then
10930 : # If we don't have a check, assume no support.
10932 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10933 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10934 if test "${gcc_cv_as_tls+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 if test $in_tree_gas = yes; then
10939 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10940 then gcc_cv_as_tls=yes
10942 elif test x$gcc_cv_as != x; then
10943 echo "$conftest_s" > conftest.s
10944 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }
10953 echo "configure: failed program was" >&5
10956 rm -f conftest.o conftest.s
10959 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10960 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10961 if test $gcc_cv_as_tls = yes; then
10963 cat >>confdefs.h <<\_ACEOF
10964 #define HAVE_AS_TLS 1
10970 # Target-specific assembler checks.
10972 if test x"$demangler_in_ld" = xyes; then
10973 echo "$as_me:$LINENO: checking linker --demangle support" >&5
10974 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
10975 gcc_cv_ld_demangle=no
10976 if test $in_tree_ld = yes; then
10977 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
10978 gcc_cv_ld_demangle=yes
10980 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
10981 # Check if the GNU linker supports --demangle option
10982 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
10983 gcc_cv_ld_demangle=yes
10986 if test x"$gcc_cv_ld_demangle" = xyes; then
10988 cat >>confdefs.h <<\_ACEOF
10989 #define HAVE_LD_DEMANGLE 1
10993 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
10994 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
10998 # All TARGET_ABI_OSF targets.
10999 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11000 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11001 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11002 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 gcc_cv_as_alpha_explicit_relocs=no
11006 if test $in_tree_gas = yes; then
11007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11008 then gcc_cv_as_alpha_explicit_relocs=yes
11010 elif test x$gcc_cv_as != x; then
11011 echo ' .set nomacro
11013 extbl $3, $2, $3 !lituse_bytoff!1
11014 ldq $2, a($29) !literal!1
11015 ldq $4, b($29) !literal!2
11016 ldq_u $3, 0($2) !lituse_base!1
11017 ldq $27, f($29) !literal!5
11018 jsr $26, ($27), f !lituse_jsr!5
11019 ldah $29, 0($26) !gpdisp!3
11020 lda $0, c($29) !gprel
11021 ldah $1, d($29) !gprelhigh
11022 lda $1, d($1) !gprellow
11023 lda $29, 0($29) !gpdisp!3' > conftest.s
11024 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }
11031 gcc_cv_as_alpha_explicit_relocs=yes
11033 echo "configure: failed program was" >&5
11036 rm -f conftest.o conftest.s
11039 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11040 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11041 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11043 cat >>confdefs.h <<\_ACEOF
11044 #define HAVE_AS_EXPLICIT_RELOCS 1
11051 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11052 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11053 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 gcc_cv_as_cris_no_mul_bug=no
11057 if test $in_tree_gas = yes; then
11058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11059 then gcc_cv_as_cris_no_mul_bug=yes
11061 elif test x$gcc_cv_as != x; then
11062 echo '.text' > conftest.s
11063 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; }
11070 gcc_cv_as_cris_no_mul_bug=yes
11072 echo "configure: failed program was" >&5
11075 rm -f conftest.o conftest.s
11078 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11079 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11080 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11082 cat >>confdefs.h <<\_ACEOF
11083 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11090 echo "$as_me:$LINENO: checking assembler for .register" >&5
11091 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11092 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 gcc_cv_as_sparc_register_op=no
11096 if test x$gcc_cv_as != x; then
11097 echo '.register %g2, #scratch' > conftest.s
11098 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }
11105 gcc_cv_as_sparc_register_op=yes
11107 echo "configure: failed program was" >&5
11110 rm -f conftest.o conftest.s
11113 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11114 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11115 if test $gcc_cv_as_sparc_register_op = yes; then
11117 cat >>confdefs.h <<\_ACEOF
11118 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11123 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11124 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11125 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 gcc_cv_as_sparc_relax=no
11129 if test x$gcc_cv_as != x; then
11130 echo '.text' > conftest.s
11131 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }
11138 gcc_cv_as_sparc_relax=yes
11140 echo "configure: failed program was" >&5
11143 rm -f conftest.o conftest.s
11146 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11147 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11148 if test $gcc_cv_as_sparc_relax = yes; then
11150 cat >>confdefs.h <<\_ACEOF
11151 #define HAVE_AS_RELAX_OPTION 1
11156 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11157 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11158 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 gcc_cv_as_sparc_ua_pcrel=no
11162 if test x$gcc_cv_as != x; then
11169 .uaword %r_disp32(foo)' > conftest.s
11170 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }
11177 if test x$gcc_cv_ld != x \
11178 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11179 gcc_cv_as_sparc_ua_pcrel=yes
11183 echo "configure: failed program was" >&5
11186 rm -f conftest.o conftest.s
11189 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11190 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11191 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11193 cat >>confdefs.h <<\_ACEOF
11194 #define HAVE_AS_SPARC_UA_PCREL 1
11198 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11199 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11200 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 gcc_cv_as_sparc_ua_pcrel_hidden=no
11204 if test x$gcc_cv_as != x; then
11208 .uaword %r_disp32(foo)
11209 .byte 0x32, 0x33, 0x34
11213 .skip 4' > conftest.s
11214 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216 (eval $ac_try) 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }
11221 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11222 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11223 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11224 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11225 if $gcc_cv_objdump -R conftest 2> /dev/null \
11226 | grep 'DISP32' > /dev/null 2>&1; then
11229 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11234 echo "configure: failed program was" >&5
11237 rm -f conftest.o conftest.s
11240 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11241 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11242 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11244 cat >>confdefs.h <<\_ACEOF
11245 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11250 fi # unaligned pcrel relocs
11252 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11253 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11254 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 gcc_cv_as_sparc_offsetable_lo10=no
11258 if test x$gcc_cv_as != x; then
11260 or %g1, %lo(ab) + 12, %g1
11261 or %g1, %lo(ab + 12), %g1' > conftest.s
11262 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; }
11269 if test x$gcc_cv_objdump != x \
11270 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11271 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11272 gcc_cv_as_offsetable_lo10=yes
11275 echo "configure: failed program was" >&5
11278 rm -f conftest.o conftest.s
11281 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11282 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11283 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11285 cat >>confdefs.h <<\_ACEOF
11286 #define HAVE_AS_OFFSETABLE_LO10 1
11292 i[34567]86-*-* | x86_64-*-*)
11294 cygwin* | pe | mingw32*)
11295 # Used for DWARF 2 in PE
11296 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11297 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11298 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 gcc_cv_as_ix86_pe_secrel32=no
11302 if test $in_tree_gas = yes; then
11303 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11304 then gcc_cv_as_ix86_pe_secrel32=yes
11306 elif test x$gcc_cv_as != x; then
11310 .secrel32 foo' > conftest.s
11311 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }
11318 if test x$gcc_cv_ld != x \
11319 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11320 gcc_cv_as_ix86_pe_secrel32=yes
11324 echo "configure: failed program was" >&5
11327 rm -f conftest.o conftest.s
11330 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11331 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11332 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11334 cat >>confdefs.h <<\_ACEOF
11335 #define HAVE_GAS_PE_SECREL32_RELOC 1
11342 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11343 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11344 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 gcc_cv_as_ix86_filds_fists=no
11348 if test $in_tree_gas = yes; then
11349 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11350 then gcc_cv_as_ix86_filds_fists=yes
11352 elif test x$gcc_cv_as != x; then
11353 echo 'filds mem; fists mem' > conftest.s
11354 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }
11361 gcc_cv_as_ix86_filds_fists=yes
11363 echo "configure: failed program was" >&5
11366 rm -f conftest.o conftest.s
11369 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11370 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11371 if test $gcc_cv_as_ix86_filds_fists = yes; then
11373 cat >>confdefs.h <<\_ACEOF
11374 #define HAVE_GAS_FILDS_FISTS 1
11379 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11380 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11381 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 gcc_cv_as_ix86_cmov_sun_syntax=no
11385 if test x$gcc_cv_as != x; then
11386 echo 'cmovl.l %edx, %eax' > conftest.s
11387 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; }
11394 gcc_cv_as_ix86_cmov_sun_syntax=yes
11396 echo "configure: failed program was" >&5
11399 rm -f conftest.o conftest.s
11402 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11403 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11404 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11406 cat >>confdefs.h <<\_ACEOF
11407 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11412 # This one is used unconditionally by i386.[ch]; it is to be defined
11413 # to 1 if the feature is present, 0 otherwise.
11414 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11415 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11416 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 gcc_cv_as_ix86_gotoff_in_data=no
11420 if test $in_tree_gas = yes; then
11421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11422 then gcc_cv_as_ix86_gotoff_in_data=yes
11424 elif test x$gcc_cv_as != x; then
11429 .long .L0@GOTOFF' > conftest.s
11430 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }
11437 gcc_cv_as_ix86_gotoff_in_data=yes
11439 echo "configure: failed program was" >&5
11442 rm -f conftest.o conftest.s
11445 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11446 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11449 cat >>confdefs.h <<_ACEOF
11450 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11456 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11457 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11458 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11462 if test $in_tree_gas = yes; then
11463 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11464 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11466 elif test x$gcc_cv_as != x; then
11468 addl r15 = @ltoffx(x#), gp
11470 ld8.mov r16 = [r15], x#' > conftest.s
11471 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }
11478 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11480 echo "configure: failed program was" >&5
11483 rm -f conftest.o conftest.s
11486 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11487 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11488 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11490 cat >>confdefs.h <<\_ACEOF
11491 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11500 *-*-aix*) conftest_s=' .csect .text[PR]
11502 *-*-darwin*) conftest_s=' .text
11504 *) conftest_s=' .text
11508 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11509 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11510 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 gcc_cv_as_powerpc_mfcrf=no
11514 if test $in_tree_gas = yes; then
11515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11516 then gcc_cv_as_powerpc_mfcrf=yes
11518 elif test x$gcc_cv_as != x; then
11519 echo "$conftest_s" > conftest.s
11520 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }
11527 gcc_cv_as_powerpc_mfcrf=yes
11529 echo "configure: failed program was" >&5
11532 rm -f conftest.o conftest.s
11535 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11536 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11537 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_AS_MFCRF 1
11547 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11548 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11549 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 gcc_cv_as_mips_explicit_relocs=no
11553 if test $in_tree_gas = yes; then
11554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11555 then gcc_cv_as_mips_explicit_relocs=yes
11557 elif test x$gcc_cv_as != x; then
11558 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11559 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }
11566 gcc_cv_as_mips_explicit_relocs=yes
11568 echo "configure: failed program was" >&5
11571 rm -f conftest.o conftest.s
11574 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11575 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11576 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11577 if test x$target_cpu_default = x
11578 then target_cpu_default=MASK_EXPLICIT_RELOCS
11579 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11585 # ??? Not all targets support dwarf2 debug_line, even within a version
11586 # of gas. Moreover, we need to emit a valid instruction to trigger any
11587 # info to the output file. So, as supported targets are added to gas 2.11,
11588 # add some instruction here to (also) show we expect this might work.
11589 # ??? Once 2.11 is released, probably need to add first known working
11590 # version to the per-target configury.
11592 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11593 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11594 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11597 ia64*-*-* | s390*-*-*)
11604 if test x"$insn" != x; then
11606 .file 1 \"conftest.s\"
11609 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11610 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11611 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 gcc_cv_as_dwarf2_debug_line=no
11615 if test $in_tree_gas = yes; then
11616 if test $in_tree_gas_is_elf = yes \
11617 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11618 then gcc_cv_as_dwarf2_debug_line=yes
11620 elif test x$gcc_cv_as != x; then
11621 echo "$conftest_s" > conftest.s
11622 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }
11629 # ??? This fails with non-gnu grep. Maybe use objdump?
11630 if grep debug_line conftest.o > /dev/null 2>&1; then
11631 gcc_cv_as_dwarf2_debug_line=yes
11634 echo "configure: failed program was" >&5
11637 rm -f conftest.o conftest.s
11640 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11641 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11644 # The .debug_line file table must be in the exact order that
11645 # we specified the files, since these indices are also used
11646 # by DW_AT_decl_file. Approximate this test by testing if
11647 # the assembler bitches if the same index is assigned twice.
11648 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11649 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11650 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 gcc_cv_as_dwarf2_file_buggy=no
11654 if test x$gcc_cv_as != x; then
11655 echo ' .file 1 "foo.s"
11656 .file 1 "bar.s"' > conftest.s
11657 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }
11664 gcc_cv_as_dwarf2_file_buggy=yes
11666 echo "configure: failed program was" >&5
11669 rm -f conftest.o conftest.s
11672 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11673 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11676 if test $gcc_cv_as_dwarf2_debug_line = yes \
11677 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11679 cat >>confdefs.h <<\_ACEOF
11680 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11685 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11686 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11687 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 gcc_cv_as_gdwarf2_flag=no
11691 if test $in_tree_gas = yes; then
11692 if test $in_tree_gas_is_elf = yes \
11693 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11694 then gcc_cv_as_gdwarf2_flag=yes
11696 elif test x$gcc_cv_as != x; then
11697 echo "$insn" > conftest.s
11698 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }
11705 gcc_cv_as_gdwarf2_flag=yes
11707 echo "configure: failed program was" >&5
11710 rm -f conftest.o conftest.s
11713 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11714 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11715 if test $gcc_cv_as_gdwarf2_flag = yes; then
11717 cat >>confdefs.h <<\_ACEOF
11718 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11723 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11724 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11725 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 gcc_cv_as_gstabs_flag=no
11729 if test $in_tree_gas = yes; then
11730 if test $in_tree_gas_is_elf = yes \
11731 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11732 then gcc_cv_as_gstabs_flag=yes
11734 elif test x$gcc_cv_as != x; then
11735 echo "$insn" > conftest.s
11736 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }
11743 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11744 # and warns about it, but still exits successfully. So check for
11746 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }
11753 else gcc_cv_as_gstabs_flag=yes
11756 echo "configure: failed program was" >&5
11759 rm -f conftest.o conftest.s
11762 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11763 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11764 if test $gcc_cv_as_gstabs_flag = yes; then
11766 cat >>confdefs.h <<\_ACEOF
11767 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11773 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11774 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11775 gcc_cv_ld_ro_rw_mix=unknown
11776 if test $in_tree_ld = yes ; then
11777 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 \
11778 && test $in_tree_ld_is_elf = yes; then
11779 gcc_cv_ld_ro_rw_mix=read-write
11781 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11782 echo '.section myfoosect, "a"' > conftest1.s
11783 echo '.section myfoosect, "aw"' > conftest2.s
11784 echo '.byte 1' >> conftest2.s
11785 echo '.section myfoosect, "a"' > conftest3.s
11786 echo '.byte 0' >> conftest3.s
11787 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11788 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11789 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11790 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11791 conftest2.o conftest3.o > /dev/null 2>&1; then
11792 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11793 | sed -e '/myfoosect/!d' -e N`
11794 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11795 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11796 gcc_cv_ld_ro_rw_mix=read-only
11798 gcc_cv_ld_ro_rw_mix=read-write
11802 rm -f conftest.* conftest[123].*
11804 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11806 cat >>confdefs.h <<\_ACEOF
11807 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11811 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11812 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11814 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11815 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11816 gcc_cv_ld_eh_frame_hdr=no
11817 if test $in_tree_ld = yes ; then
11818 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 \
11819 && test $in_tree_ld_is_elf = yes; then
11820 gcc_cv_ld_eh_frame_hdr=yes
11822 elif test x$gcc_cv_ld != x; then
11823 # Check if linker supports --eh-frame-hdr option
11824 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11825 gcc_cv_ld_eh_frame_hdr=yes
11828 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11830 cat >>confdefs.h <<\_ACEOF
11831 #define HAVE_LD_EH_FRAME_HDR 1
11835 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11836 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11838 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11839 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11841 if test $in_tree_ld = yes ; then
11842 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 \
11843 && test $in_tree_ld_is_elf = yes; then
11846 elif test x$gcc_cv_ld != x; then
11847 # Check if linker supports -pie option
11848 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11852 if test x"$gcc_cv_ld_pie" = xyes; then
11854 cat >>confdefs.h <<\_ACEOF
11855 #define HAVE_LD_PIE 1
11859 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11860 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11866 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11867 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11868 if test "${gcc_cv_ld_as_needed+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 gcc_cv_ld_as_needed=no
11872 if test $in_tree_ld = yes ; then
11873 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 \
11874 && test $in_tree_ld_is_elf = yes; then
11875 gcc_cv_ld_as_needed=yes
11877 elif test x$gcc_cv_ld != x; then
11878 # Check if linker supports --as-needed and --no-as-needed options
11879 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11880 gcc_cv_ld_as_needed=yes
11885 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11886 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11887 if test x"$gcc_cv_ld_as_needed" = xyes; then
11889 cat >>confdefs.h <<\_ACEOF
11890 #define HAVE_LD_AS_NEEDED 1
11895 if test x$with_sysroot = x && test x$host = x$target \
11896 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11898 cat >>confdefs.h <<_ACEOF
11899 #define PREFIX_INCLUDE_DIR "$prefix/include"
11904 # Find out what GC implementation we want, or may, use.
11906 # Check whether --with-gc or --without-gc was given.
11907 if test "${with_gc+set}" = set; then
11914 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11915 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11916 { (exit 1); exit 1; }; }
11923 echo "Using $GGC for garbage collection."
11925 # Use the system's zlib library.
11927 zlibinc="-I\$(srcdir)/../zlib"
11929 # Check whether --with-system-zlib or --without-system-zlib was given.
11930 if test "${with_system_zlib+set}" = set; then
11931 withval="$with_system_zlib"
11940 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11941 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11942 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11943 if test "${enable_maintainer_mode+set}" = set; then
11944 enableval="$enable_maintainer_mode"
11945 maintainer_mode=$enableval
11950 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11951 echo "${ECHO_T}$maintainer_mode" >&6
11953 if test "$maintainer_mode" = "yes"; then
11959 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
11960 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
11962 # Check whether --with-libbanshee or --without-libbanshee was given.
11963 if test "${with_libbanshee+set}" = set; then
11964 withval="$with_libbanshee"
11965 libbanshee="$with_libbanshee"
11970 if test x"$libbanshee" = xyes; then
11971 BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
11972 BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
11973 ANDER="tree-alias-ander.o"
11975 cat >>confdefs.h <<\_ACEOF
11976 #define HAVE_BANSHEE 1
11984 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
11985 echo "${ECHO_T}$with_libbanshee" >&6
11995 # Make empty files to contain the specs and options for each language.
11996 # Then add #include lines to for a compiler that has specs and/or options.
12001 for subdir in . $subdirs
12003 if test -f $srcdir/$subdir/lang.opt; then
12004 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12006 if test -f $srcdir/$subdir/lang-specs.h; then
12007 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12009 if test -f $srcdir/$subdir/$subdir-tree.def; then
12010 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12014 # These (without "all_") are set in each config-lang.in.
12015 # `language' must be a single word so is spelled singularly.
12017 all_boot_languages=
12020 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
12021 # List of language makefile fragments.
12022 all_lang_makefrags=
12023 # List of language subdirectory makefiles. Deprecated.
12024 all_lang_makefiles=
12025 # Files for gengtype
12026 all_gtfiles="$target_gtfiles"
12027 # Files for gengtype with language
12028 all_gtfiles_files_langs=
12029 all_gtfiles_files_files=
12031 # Add the language fragments.
12032 # Languages are added via two mechanisms. Some information must be
12033 # recorded in makefile variables, these are defined in config-lang.in.
12034 # We accumulate them and plug them into the main Makefile.
12035 # The other mechanism is a set of hooks for each of the main targets
12036 # like `clean', `install', etc.
12038 language_hooks="Make-hooks"
12048 . ${srcdir}/$s/config-lang.in
12049 if test "x$language" = x
12051 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12054 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12055 if test -f ${srcdir}/$s/Makefile.in
12056 then all_lang_makefiles="$s/Makefile"
12058 all_languages="$all_languages $language"
12059 if test "x$boot_language" = xyes
12061 all_boot_languages="$all_boot_languages $language"
12063 all_compilers="$all_compilers $compilers"
12064 all_stagestuff="$all_stagestuff $stagestuff"
12065 all_outputs="$all_outputs $outputs"
12066 all_gtfiles="$all_gtfiles $gtfiles"
12069 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12070 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12074 # Pick up gtfiles for c
12077 . ${srcdir}/c-config-lang.in
12078 all_gtfiles="$all_gtfiles $gtfiles"
12081 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12082 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12086 for language in $all_languages
12088 check_languages="$check_languages check-$language"
12091 # We link each language in with a set of hooks, reached indirectly via
12096 target_list="all.build all.cross start.encap rest.encap tags \
12097 install-normal install-common install-man \
12098 uninstall info man srcextra srcman srcinfo \
12099 mostlyclean clean distclean maintainer-clean \
12100 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12101 for t in $target_list
12104 for lang in $all_languages
12108 echo "lang.$t: $x" >> Make-hooks
12117 echo "dir ." > .gdbinit
12118 echo "dir ${srcdir}" >> .gdbinit
12119 if test x$gdb_needs_out_file_path = xyes
12121 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12123 if test "x$subdirs" != x; then
12126 echo "dir ${srcdir}/$s" >> .gdbinit
12129 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12131 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12132 # absolute path for gcc_tooldir based on inserting the number of up-directory
12133 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12134 # $(libsubdir)/@(unlibsubdir) based path.
12135 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12136 # make and thus we'd get different behavior depending on where we built the
12138 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12139 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12141 # An explanation of the sed strings:
12142 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12143 # -e 's|/$||' match a trailing forward slash and eliminates it
12144 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12145 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12147 # (*) Note this pattern overwrites the first character of the string
12148 # with a forward slash if one is not already present. This is not a
12149 # problem because the exact names of the sub-directories concerned is
12150 # unimportant, just the number of them matters.
12152 # The practical upshot of these patterns is like this:
12154 # prefix exec_prefix result
12155 # ------ ----------- ------
12156 # /foo /foo/bar ../
12157 # /foo/ /foo/bar ../
12158 # /foo /foo/bar/ ../
12159 # /foo/ /foo/bar/ ../
12160 # /foo /foo/bar/ugg ../../
12163 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12168 # Find a directory in which to install a shared libgcc.
12170 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12171 if test "${enable_version_specific_runtime_libs+set}" = set; then
12172 enableval="$enable_version_specific_runtime_libs"
12177 # Check whether --with-slibdir or --without-slibdir was given.
12178 if test "${with_slibdir+set}" = set; then
12179 withval="$with_slibdir"
12180 slibdir="$with_slibdir"
12182 if test "${enable_version_specific_runtime_libs+set}" = set; then
12183 slibdir='$(libsubdir)'
12184 elif test "$host" != "$target"; then
12185 slibdir='$(build_tooldir)/lib'
12187 slibdir='$(libdir)'
12192 objdir=`${PWDCMD-pwd}`
12195 # Substitute configuration variables
12264 # If it doesn't already exist, create document directory
12265 echo "checking for the document directory." 1>&2
12266 if test -d doc ; then
12273 if test x${build} = x${host} ; then
12274 if test x${host} = x${target} ; then
12275 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12277 echo "Links are now set up to build a cross-compiler" 1>&2
12278 echo " from ${host} to ${target}." 1>&2
12281 if test x${host} = x${target} ; then
12282 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12283 echo " for ${target}." 1>&2
12285 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12286 echo " from ${host} to ${target}." 1>&2
12293 # Configure the subdirectories
12294 # AC_CONFIG_SUBDIRS($subdirs)
12296 # Create the Makefile
12297 # and configure language subdirectories
12298 ac_config_files="$ac_config_files $all_outputs"
12301 ac_config_commands="$ac_config_commands default"
12303 cat >confcache <<\_ACEOF
12304 # This file is a shell script that caches the results of configure
12305 # tests run on this system so they can be shared between configure
12306 # scripts and configure runs, see configure's option --config-cache.
12307 # It is not useful on other systems. If it contains results you don't
12308 # want to keep, you may remove or edit it.
12310 # config.status only pays attention to the cache file if you give it
12311 # the --recheck option to rerun configure.
12313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12315 # following values.
12319 # The following way of writing the cache mishandles newlines in values,
12320 # but we know of no workaround that is simple, portable, and efficient.
12321 # So, don't put newlines in cache variables' values.
12322 # Ultrix sh set writes to stderr and can't be redirected directly,
12323 # and sets the high bit in the cache file unless we assign to the vars.
12326 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12328 # `set' does not quote correctly, so add quotes (double-quote
12329 # substitution turns \\\\ into \\, and sed turns \\ into \).
12332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12335 # `set' quotes correctly as required by POSIX, so do not add quotes.
12337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12346 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12348 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12349 if test -w $cache_file; then
12350 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12351 cat confcache >$cache_file
12353 echo "not updating unwritable cache $cache_file"
12358 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12359 # Let make expand exec_prefix.
12360 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12364 # trailing colons and then remove the whole line if VPATH becomes empty
12365 # (actually we leave an empty line to preserve line numbers).
12366 if test "x$srcdir" = x.; then
12367 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12368 s/:*\$(srcdir):*/:/;
12369 s/:*\${srcdir}:*/:/;
12371 s/^\([^=]*=[ ]*\):*/\1/;
12377 DEFS=-DHAVE_CONFIG_H
12381 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12382 # 1. Remove the extension, and $U if already installed.
12383 ac_i=`echo "$ac_i" |
12384 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12386 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12387 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12389 LIBOBJS=$ac_libobjs
12391 LTLIBOBJS=$ac_ltlibobjs
12395 : ${CONFIG_STATUS=./config.status}
12396 ac_clean_files_save=$ac_clean_files
12397 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12398 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12399 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12400 cat >$CONFIG_STATUS <<_ACEOF
12402 # Generated by $as_me.
12403 # Run this file to recreate the current configuration.
12404 # Compiler output produced by configure, useful for debugging
12405 # configure, is in config.log if it exists.
12408 ac_cs_recheck=false
12410 SHELL=\${CONFIG_SHELL-$SHELL}
12413 cat >>$CONFIG_STATUS <<\_ACEOF
12414 ## --------------------- ##
12415 ## M4sh Initialization. ##
12416 ## --------------------- ##
12418 # Be Bourne compatible
12419 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12422 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12423 # is contrary to our usage. Disable this feature.
12424 alias -g '${1+"$@"}'='"$@"'
12425 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12428 DUALCASE=1; export DUALCASE # for MKS sh
12430 # Support unset when possible.
12431 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12438 # Work around bugs in pre-3.0 UWIN ksh.
12439 $as_unset ENV MAIL MAILPATH
12446 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12447 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12448 LC_TELEPHONE LC_TIME
12450 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12451 eval $as_var=C; export $as_var
12457 # Required to use basename.
12458 if expr a : '\(a\)' >/dev/null 2>&1; then
12464 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12465 as_basename=basename
12471 # Name of the executable.
12472 as_me=`$as_basename "$0" ||
12473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12474 X"$0" : 'X\(//\)$' \| \
12475 X"$0" : 'X\(/\)$' \| \
12476 . : '\(.\)' 2>/dev/null ||
12478 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12479 /^X\/\(\/\/\)$/{ s//\1/; q; }
12480 /^X\/\(\/\).*/{ s//\1/; q; }
12484 # PATH needs CR, and LINENO needs CR and PATH.
12485 # Avoid depending upon Character Ranges.
12486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12489 as_cr_digits='0123456789'
12490 as_cr_alnum=$as_cr_Letters$as_cr_digits
12492 # The user is always right.
12493 if test "${PATH_SEPARATOR+set}" != set; then
12494 echo "#! /bin/sh" >conf$$.sh
12495 echo "exit 0" >>conf$$.sh
12497 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12506 as_lineno_1=$LINENO
12507 as_lineno_2=$LINENO
12508 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12509 test "x$as_lineno_1" != "x$as_lineno_2" &&
12510 test "x$as_lineno_3" = "x$as_lineno_2" || {
12511 # Find who we are. Look in the path if we contain no path at all
12514 *[\\/]* ) as_myself=$0 ;;
12515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12519 test -z "$as_dir" && as_dir=.
12520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12525 # We did not find ourselves, most probably we were run as `sh COMMAND'
12526 # in which case we are not to be found in the path.
12527 if test "x$as_myself" = x; then
12530 if test ! -f "$as_myself"; then
12531 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12532 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12533 { (exit 1); exit 1; }; }
12535 case $CONFIG_SHELL in
12537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12541 test -z "$as_dir" && as_dir=.
12542 for as_base in sh bash ksh sh5; do
12545 if ("$as_dir/$as_base" -c '
12546 as_lineno_1=$LINENO
12547 as_lineno_2=$LINENO
12548 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12549 test "x$as_lineno_1" != "x$as_lineno_2" &&
12550 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12551 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12552 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12553 CONFIG_SHELL=$as_dir/$as_base
12554 export CONFIG_SHELL
12555 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12563 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12564 # uniformly replaced by the line number. The first 'sed' inserts a
12565 # line-number line before each line; the second 'sed' does the real
12566 # work. The second script uses 'N' to pair each line-number line
12567 # with the numbered line, and appends trailing '-' during
12568 # substitution so that $LINENO is not a special case at line end.
12569 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12570 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12571 sed '=' <$as_myself |
12576 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12579 s,^['$as_cr_digits']*\n,,
12580 ' >$as_me.lineno &&
12581 chmod +x $as_me.lineno ||
12582 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12583 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12584 { (exit 1); exit 1; }; }
12586 # Don't try to exec as it changes $[0], causing all sort of problems
12587 # (the dirname of $[0] is not the place where we might find the
12588 # original and so on. Autoconf is especially sensible to this).
12590 # Exit status is that of the last command.
12595 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12596 *c*,-n*) ECHO_N= ECHO_C='
12598 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12599 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12602 if expr a : '\(a\)' >/dev/null 2>&1; then
12608 rm -f conf$$ conf$$.exe conf$$.file
12610 if ln -s conf$$.file conf$$ 2>/dev/null; then
12611 # We could just check for DJGPP; but this test a) works b) is more generic
12612 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12613 if test -f conf$$.exe; then
12614 # Don't use ln at all; we don't have any links
12619 elif ln conf$$.file conf$$ 2>/dev/null; then
12624 rm -f conf$$ conf$$.exe conf$$.file
12626 if mkdir -p . 2>/dev/null; then
12629 test -d ./-p && rmdir ./-p
12633 as_executable_p="test -f"
12635 # Sed expression to map a string onto a valid CPP name.
12636 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12638 # Sed expression to map a string onto a valid variable name.
12639 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12643 # We need space, tab and new line, in precisely that order.
12653 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12654 # report actual input values of CONFIG_FILES etc. instead of their
12655 # values after options handling. Logging --version etc. is OK.
12659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12660 ## Running $as_me. ##
12665 This file was extended by $as_me, which was
12666 generated by GNU Autoconf 2.59. Invocation command line was
12668 CONFIG_FILES = $CONFIG_FILES
12669 CONFIG_HEADERS = $CONFIG_HEADERS
12670 CONFIG_LINKS = $CONFIG_LINKS
12671 CONFIG_COMMANDS = $CONFIG_COMMANDS
12675 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12679 # Files that config.status was made for.
12680 if test -n "$ac_config_files"; then
12681 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12684 if test -n "$ac_config_headers"; then
12685 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12688 if test -n "$ac_config_links"; then
12689 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12692 if test -n "$ac_config_commands"; then
12693 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12696 cat >>$CONFIG_STATUS <<\_ACEOF
12699 \`$as_me' instantiates files from templates according to the
12700 current configuration.
12702 Usage: $0 [OPTIONS] [FILE]...
12704 -h, --help print this help, then exit
12705 -V, --version print version number, then exit
12706 -q, --quiet do not print progress messages
12707 -d, --debug don't remove temporary files
12708 --recheck update $as_me by reconfiguring in the same conditions
12709 --file=FILE[:TEMPLATE]
12710 instantiate the configuration file FILE
12711 --header=FILE[:TEMPLATE]
12712 instantiate the configuration header FILE
12714 Configuration files:
12717 Configuration headers:
12720 Configuration commands:
12723 Report bugs to <bug-autoconf@gnu.org>."
12726 cat >>$CONFIG_STATUS <<_ACEOF
12729 configured by $0, generated by GNU Autoconf 2.59,
12730 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12732 Copyright (C) 2003 Free Software Foundation, Inc.
12733 This config.status script is free software; the Free Software Foundation
12734 gives unlimited permission to copy, distribute and modify it."
12738 cat >>$CONFIG_STATUS <<\_ACEOF
12739 # If no file are specified by the user, then we need to provide default
12740 # value. By we need to know if files were specified by the user.
12746 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12747 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12755 *) # This is not an option, so the user has probably given explicit
12758 ac_need_defaults=false;;
12762 # Handling of the options.
12764 cat >>$CONFIG_STATUS <<\_ACEOF
12765 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12767 --version | --vers* | -V )
12768 echo "$ac_cs_version"; exit 0 ;;
12770 # Conflict between --help and --header
12771 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12772 Try \`$0 --help' for more information." >&5
12773 echo "$as_me: error: ambiguous option: $1
12774 Try \`$0 --help' for more information." >&2;}
12775 { (exit 1); exit 1; }; };;
12776 --help | --hel | -h )
12777 echo "$ac_cs_usage"; exit 0 ;;
12778 --debug | --d* | -d )
12780 --file | --fil | --fi | --f )
12782 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12783 ac_need_defaults=false;;
12784 --header | --heade | --head | --hea )
12786 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12787 ac_need_defaults=false;;
12788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12789 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12792 # This is an error.
12793 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12794 Try \`$0 --help' for more information." >&5
12795 echo "$as_me: error: unrecognized option: $1
12796 Try \`$0 --help' for more information." >&2;}
12797 { (exit 1); exit 1; }; } ;;
12799 *) ac_config_targets="$ac_config_targets $1" ;;
12805 ac_configure_extra_args=
12807 if $ac_cs_silent; then
12809 ac_configure_extra_args="$ac_configure_extra_args --silent"
12813 cat >>$CONFIG_STATUS <<_ACEOF
12814 if \$ac_cs_recheck; then
12815 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12816 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12821 cat >>$CONFIG_STATUS <<_ACEOF
12823 # INIT-COMMANDS section.
12827 symbolic_link='$symbolic_link'
12834 cat >>$CONFIG_STATUS <<\_ACEOF
12835 for ac_config_target in $ac_config_targets
12837 case "$ac_config_target" in
12838 # Handling of arguments.
12839 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12840 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12841 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12842 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12843 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12844 { (exit 1); exit 1; }; };;
12848 # If the user did not use the arguments to specify the items to instantiate,
12849 # then the envvar interface is used. Set only those that are not.
12850 # We use the long form for the default assignment because of an extremely
12851 # bizarre bug on SunOS 4.1.3.
12852 if $ac_need_defaults; then
12853 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12854 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12855 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12858 # Have a temporary directory for convenience. Make it in the build tree
12859 # simply because there is no reason to put it here, and in addition,
12860 # creating and moving files from /tmp can sometimes cause problems.
12861 # Create a temporary directory, and hook for its removal unless debugging.
12864 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12865 trap '{ (exit 1); exit 1; }' 1 2 13 15
12868 # Create a (secure) tmp directory for tmp files.
12871 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12872 test -n "$tmp" && test -d "$tmp"
12875 tmp=./confstat$$-$RANDOM
12876 (umask 077 && mkdir $tmp)
12879 echo "$me: cannot create a temporary directory in ." >&2
12880 { (exit 1); exit 1; }
12885 cat >>$CONFIG_STATUS <<_ACEOF
12888 # CONFIG_FILES section.
12891 # No need to generate the scripts if there are no CONFIG_FILES.
12892 # This happens for instance when ./config.status config.h
12893 if test -n "\$CONFIG_FILES"; then
12894 # Protect against being on the right side of a sed subst in config.status.
12895 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12896 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12897 s,@SHELL@,$SHELL,;t t
12898 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12899 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12900 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12901 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12902 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12903 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12904 s,@exec_prefix@,$exec_prefix,;t t
12905 s,@prefix@,$prefix,;t t
12906 s,@program_transform_name@,$program_transform_name,;t t
12907 s,@bindir@,$bindir,;t t
12908 s,@sbindir@,$sbindir,;t t
12909 s,@libexecdir@,$libexecdir,;t t
12910 s,@datadir@,$datadir,;t t
12911 s,@sysconfdir@,$sysconfdir,;t t
12912 s,@sharedstatedir@,$sharedstatedir,;t t
12913 s,@localstatedir@,$localstatedir,;t t
12914 s,@libdir@,$libdir,;t t
12915 s,@includedir@,$includedir,;t t
12916 s,@oldincludedir@,$oldincludedir,;t t
12917 s,@infodir@,$infodir,;t t
12918 s,@mandir@,$mandir,;t t
12919 s,@build_alias@,$build_alias,;t t
12920 s,@host_alias@,$host_alias,;t t
12921 s,@target_alias@,$target_alias,;t t
12922 s,@DEFS@,$DEFS,;t t
12923 s,@ECHO_C@,$ECHO_C,;t t
12924 s,@ECHO_N@,$ECHO_N,;t t
12925 s,@ECHO_T@,$ECHO_T,;t t
12926 s,@LIBS@,$LIBS,;t t
12927 s,@build@,$build,;t t
12928 s,@build_cpu@,$build_cpu,;t t
12929 s,@build_vendor@,$build_vendor,;t t
12930 s,@build_os@,$build_os,;t t
12931 s,@host@,$host,;t t
12932 s,@host_cpu@,$host_cpu,;t t
12933 s,@host_vendor@,$host_vendor,;t t
12934 s,@host_os@,$host_os,;t t
12935 s,@target@,$target,;t t
12936 s,@target_cpu@,$target_cpu,;t t
12937 s,@target_vendor@,$target_vendor,;t t
12938 s,@target_os@,$target_os,;t t
12939 s,@build_subdir@,$build_subdir,;t t
12940 s,@host_subdir@,$host_subdir,;t t
12941 s,@target_subdir@,$target_subdir,;t t
12942 s,@GENINSRC@,$GENINSRC,;t t
12944 s,@CFLAGS@,$CFLAGS,;t t
12945 s,@LDFLAGS@,$LDFLAGS,;t t
12946 s,@CPPFLAGS@,$CPPFLAGS,;t t
12947 s,@ac_ct_CC@,$ac_ct_CC,;t t
12948 s,@EXEEXT@,$EXEEXT,;t t
12949 s,@OBJEXT@,$OBJEXT,;t t
12950 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12951 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12953 s,@strict1_warn@,$strict1_warn,;t t
12954 s,@warn_cflags@,$warn_cflags,;t t
12955 s,@WERROR@,$WERROR,;t t
12956 s,@nocommon_flag@,$nocommon_flag,;t t
12957 s,@TREEBROWSER@,$TREEBROWSER,;t t
12958 s,@EGREP@,$EGREP,;t t
12959 s,@valgrind_path@,$valgrind_path,;t t
12960 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12961 s,@valgrind_command@,$valgrind_command,;t t
12962 s,@coverage_flags@,$coverage_flags,;t t
12963 s,@enable_multilib@,$enable_multilib,;t t
12964 s,@enable_shared@,$enable_shared,;t t
12965 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12966 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12967 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12968 s,@onestep@,$onestep,;t t
12969 s,@SET_MAKE@,$SET_MAKE,;t t
12971 s,@LN_S@,$LN_S,;t t
12973 s,@RANLIB@,$RANLIB,;t t
12974 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12975 s,@ranlib_flags@,$ranlib_flags,;t t
12976 s,@INSTALL@,$INSTALL,;t t
12977 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12978 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12979 s,@make_compare_target@,$make_compare_target,;t t
12980 s,@have_mktemp_command@,$have_mktemp_command,;t t
12981 s,@MAKEINFO@,$MAKEINFO,;t t
12982 s,@BUILD_INFO@,$BUILD_INFO,;t t
12983 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12984 s,@FLEX@,$FLEX,;t t
12985 s,@BISON@,$BISON,;t t
12988 s,@stage1_cflags@,$stage1_cflags,;t t
12989 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12990 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12991 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12992 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12993 s,@LIBICONV@,$LIBICONV,;t t
12994 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12995 s,@manext@,$manext,;t t
12996 s,@objext@,$objext,;t t
12997 s,@gthread_flags@,$gthread_flags,;t t
12998 s,@extra_modes_file@,$extra_modes_file,;t t
12999 s,@FORBUILD@,$FORBUILD,;t t
13000 s,@PACKAGE@,$PACKAGE,;t t
13001 s,@VERSION@,$VERSION,;t t
13002 s,@USE_NLS@,$USE_NLS,;t t
13003 s,@LIBINTL@,$LIBINTL,;t t
13004 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13005 s,@INCINTL@,$INCINTL,;t t
13006 s,@XGETTEXT@,$XGETTEXT,;t t
13007 s,@GMSGFMT@,$GMSGFMT,;t t
13008 s,@POSUB@,$POSUB,;t t
13009 s,@CATALOGS@,$CATALOGS,;t t
13010 s,@CROSS@,$CROSS,;t t
13012 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13013 s,@inhibit_libc@,$inhibit_libc,;t t
13014 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13015 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13016 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13017 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13018 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13019 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13020 s,@collect2@,$collect2,;t t
13021 s,@libgcc_visibility@,$libgcc_visibility,;t t
13023 s,@zlibdir@,$zlibdir,;t t
13024 s,@zlibinc@,$zlibinc,;t t
13025 s,@MAINT@,$MAINT,;t t
13026 s,@ANDER@,$ANDER,;t t
13027 s,@BANSHEEINC@,$BANSHEEINC,;t t
13028 s,@BANSHEELIB@,$BANSHEELIB,;t t
13029 s,@gcc_tooldir@,$gcc_tooldir,;t t
13030 s,@dollar@,$dollar,;t t
13031 s,@slibdir@,$slibdir,;t t
13032 s,@objdir@,$objdir,;t t
13033 s,@subdirs@,$subdirs,;t t
13034 s,@srcdir@,$srcdir,;t t
13035 s,@all_boot_languages@,$all_boot_languages,;t t
13036 s,@all_compilers@,$all_compilers,;t t
13037 s,@all_gtfiles@,$all_gtfiles,;t t
13038 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13039 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13040 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13041 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13042 s,@all_languages@,$all_languages,;t t
13043 s,@all_stagestuff@,$all_stagestuff,;t t
13044 s,@build_exeext@,$build_exeext,;t t
13045 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13046 s,@build_xm_file_list@,$build_xm_file_list,;t t
13047 s,@build_xm_include_list@,$build_xm_include_list,;t t
13048 s,@build_xm_defines@,$build_xm_defines,;t t
13049 s,@check_languages@,$check_languages,;t t
13050 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13051 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13052 s,@cpp_install_dir@,$cpp_install_dir,;t t
13053 s,@xmake_file@,$xmake_file,;t t
13054 s,@tmake_file@,$tmake_file,;t t
13055 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13056 s,@extra_headers_list@,$extra_headers_list,;t t
13057 s,@extra_objs@,$extra_objs,;t t
13058 s,@extra_parts@,$extra_parts,;t t
13059 s,@extra_passes@,$extra_passes,;t t
13060 s,@extra_programs@,$extra_programs,;t t
13061 s,@float_h_file@,$float_h_file,;t t
13062 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13063 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13064 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13065 s,@gcc_version@,$gcc_version,;t t
13066 s,@gcc_version_full@,$gcc_version_full,;t t
13067 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13068 s,@host_exeext@,$host_exeext,;t t
13069 s,@host_xm_file_list@,$host_xm_file_list,;t t
13070 s,@host_xm_include_list@,$host_xm_include_list,;t t
13071 s,@host_xm_defines@,$host_xm_defines,;t t
13072 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13073 s,@install@,$install,;t t
13074 s,@lang_opt_files@,$lang_opt_files,;t t
13075 s,@lang_specs_files@,$lang_specs_files,;t t
13076 s,@lang_tree_files@,$lang_tree_files,;t t
13077 s,@local_prefix@,$local_prefix,;t t
13078 s,@md_file@,$md_file,;t t
13079 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13080 s,@out_file@,$out_file,;t t
13081 s,@out_object_file@,$out_object_file,;t t
13082 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13083 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13084 s,@symbolic_link@,$symbolic_link,;t t
13085 s,@thread_file@,$thread_file,;t t
13086 s,@tm_file_list@,$tm_file_list,;t t
13087 s,@tm_include_list@,$tm_include_list,;t t
13088 s,@tm_defines@,$tm_defines,;t t
13089 s,@tm_p_file_list@,$tm_p_file_list,;t t
13090 s,@tm_p_include_list@,$tm_p_include_list,;t t
13091 s,@xm_file_list@,$xm_file_list,;t t
13092 s,@xm_include_list@,$xm_include_list,;t t
13093 s,@xm_defines@,$xm_defines,;t t
13094 s,@target_noncanonical@,$target_noncanonical,;t t
13095 s,@c_target_objs@,$c_target_objs,;t t
13096 s,@cxx_target_objs@,$cxx_target_objs,;t t
13097 s,@target_cpu_default@,$target_cpu_default,;t t
13098 s,@GMPLIBS@,$GMPLIBS,;t t
13099 s,@GMPINC@,$GMPINC,;t t
13100 s,@LIBOBJS@,$LIBOBJS,;t t
13101 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13102 /@language_hooks@/r $language_hooks
13103 s,@language_hooks@,,;t t
13108 cat >>$CONFIG_STATUS <<\_ACEOF
13109 # Split the substitutions into bite-sized pieces for seds with
13110 # small command number limits, like on Digital OSF/1 and HP-UX.
13111 ac_max_sed_lines=48
13112 ac_sed_frag=1 # Number of current file.
13113 ac_beg=1 # First line for current file.
13114 ac_end=$ac_max_sed_lines # Line after last line for current file.
13117 while $ac_more_lines; do
13118 if test $ac_beg -gt 1; then
13119 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13121 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13123 if test ! -s $tmp/subs.frag; then
13124 ac_more_lines=false
13126 # The purpose of the label and of the branching condition is to
13127 # speed up the sed processing (if there are no `@' at all, there
13128 # is no need to browse any of the substitutions).
13129 # These are the two extra sed commands mentioned above.
13131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13132 if test -z "$ac_sed_cmds"; then
13133 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13135 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13137 ac_sed_frag=`expr $ac_sed_frag + 1`
13139 ac_end=`expr $ac_end + $ac_max_sed_lines`
13142 if test -z "$ac_sed_cmds"; then
13145 fi # test -n "$CONFIG_FILES"
13148 cat >>$CONFIG_STATUS <<\_ACEOF
13149 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13150 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13152 - | *:- | *:-:* ) # input from stdin
13154 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13155 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13156 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13157 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13158 * ) ac_file_in=$ac_file.in ;;
13161 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13162 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13163 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13164 X"$ac_file" : 'X\(//\)[^/]' \| \
13165 X"$ac_file" : 'X\(//\)$' \| \
13166 X"$ac_file" : 'X\(/\)' \| \
13167 . : '\(.\)' 2>/dev/null ||
13169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13171 /^X\(\/\/\)$/{ s//\1/; q; }
13172 /^X\(\/\).*/{ s//\1/; q; }
13174 { if $as_mkdir_p; then
13179 while test ! -d "$as_dir"; do
13180 as_dirs="$as_dir $as_dirs"
13181 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13183 X"$as_dir" : 'X\(//\)[^/]' \| \
13184 X"$as_dir" : 'X\(//\)$' \| \
13185 X"$as_dir" : 'X\(/\)' \| \
13186 . : '\(.\)' 2>/dev/null ||
13188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13189 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13190 /^X\(\/\/\)$/{ s//\1/; q; }
13191 /^X\(\/\).*/{ s//\1/; q; }
13194 test ! -n "$as_dirs" || mkdir $as_dirs
13195 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13196 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13197 { (exit 1); exit 1; }; }; }
13201 if test "$ac_dir" != .; then
13202 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13203 # A "../" for each directory in $ac_dir_suffix.
13204 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13206 ac_dir_suffix= ac_top_builddir=
13210 .) # No --srcdir option. We are building in place.
13212 if test -z "$ac_top_builddir"; then
13215 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13217 [\\/]* | ?:[\\/]* ) # Absolute path.
13218 ac_srcdir=$srcdir$ac_dir_suffix;
13219 ac_top_srcdir=$srcdir ;;
13220 *) # Relative path.
13221 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13222 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13225 # Do not use `cd foo && pwd` to compute absolute paths, because
13226 # the directories may not exist.
13228 .) ac_abs_builddir="$ac_dir";;
13231 .) ac_abs_builddir=`pwd`;;
13232 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13233 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13236 case $ac_abs_builddir in
13237 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13239 case ${ac_top_builddir}. in
13240 .) ac_abs_top_builddir=$ac_abs_builddir;;
13241 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13242 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13245 case $ac_abs_builddir in
13246 .) ac_abs_srcdir=$ac_srcdir;;
13249 .) ac_abs_srcdir=$ac_abs_builddir;;
13250 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13251 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13254 case $ac_abs_builddir in
13255 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13257 case $ac_top_srcdir in
13258 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13259 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13260 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13266 # Let's still pretend it is `configure' which instantiates (i.e., don't
13267 # use $as_me), people would be surprised to read:
13268 # /* config.h. Generated by config.status. */
13269 if test x"$ac_file" = x-; then
13272 configure_input="$ac_file. "
13274 configure_input=$configure_input"Generated from `echo $ac_file_in |
13275 sed 's,.*/,,'` by configure."
13277 # First look for the input files in the build tree, otherwise in the
13279 ac_file_inputs=`IFS=:
13280 for f in $ac_file_in; do
13282 -) echo $tmp/stdin ;;
13284 # Absolute (can't be DOS-style, as IFS=:)
13285 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13286 echo "$as_me: error: cannot find input file: $f" >&2;}
13287 { (exit 1); exit 1; }; }
13290 if test -f "$f"; then
13293 elif test -f "$srcdir/$f"; then
13298 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13299 echo "$as_me: error: cannot find input file: $f" >&2;}
13300 { (exit 1); exit 1; }; }
13303 done` || { (exit 1); exit 1; }
13305 if test x"$ac_file" != x-; then
13306 { echo "$as_me:$LINENO: creating $ac_file" >&5
13307 echo "$as_me: creating $ac_file" >&6;}
13311 cat >>$CONFIG_STATUS <<_ACEOF
13315 cat >>$CONFIG_STATUS <<\_ACEOF
13317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13318 s,@configure_input@,$configure_input,;t t
13319 s,@srcdir@,$ac_srcdir,;t t
13320 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13321 s,@top_srcdir@,$ac_top_srcdir,;t t
13322 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13323 s,@builddir@,$ac_builddir,;t t
13324 s,@abs_builddir@,$ac_abs_builddir,;t t
13325 s,@top_builddir@,$ac_top_builddir,;t t
13326 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13327 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13329 if test x"$ac_file" != x-; then
13330 mv $tmp/out $ac_file
13338 cat >>$CONFIG_STATUS <<\_ACEOF
13341 # CONFIG_HEADER section.
13344 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13345 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13347 # ac_d sets the value in "#define NAME VALUE" lines.
13348 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13349 ac_dB='[ ].*$,\1#\2'
13352 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13353 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13354 ac_uB='$,\1#\2define\3'
13358 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13359 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13361 - | *:- | *:-:* ) # input from stdin
13363 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13364 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13365 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13366 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13367 * ) ac_file_in=$ac_file.in ;;
13370 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13371 echo "$as_me: creating $ac_file" >&6;}
13373 # First look for the input files in the build tree, otherwise in the
13375 ac_file_inputs=`IFS=:
13376 for f in $ac_file_in; do
13378 -) echo $tmp/stdin ;;
13380 # Absolute (can't be DOS-style, as IFS=:)
13381 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13382 echo "$as_me: error: cannot find input file: $f" >&2;}
13383 { (exit 1); exit 1; }; }
13384 # Do quote $f, to prevent DOS paths from being IFS'd.
13387 if test -f "$f"; then
13390 elif test -f "$srcdir/$f"; then
13395 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13396 echo "$as_me: error: cannot find input file: $f" >&2;}
13397 { (exit 1); exit 1; }; }
13400 done` || { (exit 1); exit 1; }
13401 # Remove the trailing spaces.
13402 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13406 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13407 # `conftest.undefs', that substitutes the proper values into
13408 # config.h.in to produce config.h. The first handles `#define'
13409 # templates, and the second `#undef' templates.
13410 # And first: Protect against being on the right side of a sed subst in
13411 # config.status. Protect against being in an unquoted here document
13412 # in config.status.
13413 rm -f conftest.defines conftest.undefs
13414 # Using a here document instead of a string reduces the quoting nightmare.
13415 # Putting comments in sed scripts is not portable.
13417 # `end' is used to avoid that the second main sed command (meant for
13418 # 0-ary CPP macros) applies to n-ary macro definitions.
13419 # See the Autoconf documentation for `clear'.
13420 cat >confdef2sed.sed <<\_ACEOF
13425 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13427 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13430 # If some macros were called several times there might be several times
13431 # the same #defines, which is useless. Nevertheless, we may not want to
13432 # sort them, since we want the *last* AC-DEFINE to be honored.
13433 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13434 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13435 rm -f confdef2sed.sed
13437 # This sed command replaces #undef with comments. This is necessary, for
13438 # example, in the case of _POSIX_SOURCE, which is predefined and required
13439 # on some systems where configure will not decide to define it.
13440 cat >>conftest.undefs <<\_ACEOF
13441 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13444 # Break up conftest.defines because some shells have a limit on the size
13445 # of here documents, and old seds have small limits too (100 cmds).
13446 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13447 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13448 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13449 echo ' :' >>$CONFIG_STATUS
13450 rm -f conftest.tail
13451 while grep . conftest.defines >/dev/null
13453 # Write a limited-size here document to $tmp/defines.sed.
13454 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13455 # Speed up: don't consider the non `#define' lines.
13456 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13457 # Work around the forget-to-reset-the-flag bug.
13458 echo 't clr' >>$CONFIG_STATUS
13459 echo ': clr' >>$CONFIG_STATUS
13460 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13462 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13464 mv $tmp/out $tmp/in
13466 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13467 rm -f conftest.defines
13468 mv conftest.tail conftest.defines
13470 rm -f conftest.defines
13471 echo ' fi # grep' >>$CONFIG_STATUS
13472 echo >>$CONFIG_STATUS
13474 # Break up conftest.undefs because some shells have a limit on the size
13475 # of here documents, and old seds have small limits too (100 cmds).
13476 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13477 rm -f conftest.tail
13478 while grep . conftest.undefs >/dev/null
13480 # Write a limited-size here document to $tmp/undefs.sed.
13481 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13482 # Speed up: don't consider the non `#undef'
13483 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13484 # Work around the forget-to-reset-the-flag bug.
13485 echo 't clr' >>$CONFIG_STATUS
13486 echo ': clr' >>$CONFIG_STATUS
13487 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13489 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13491 mv $tmp/out $tmp/in
13493 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13494 rm -f conftest.undefs
13495 mv conftest.tail conftest.undefs
13497 rm -f conftest.undefs
13499 cat >>$CONFIG_STATUS <<\_ACEOF
13500 # Let's still pretend it is `configure' which instantiates (i.e., don't
13501 # use $as_me), people would be surprised to read:
13502 # /* config.h. Generated by config.status. */
13503 if test x"$ac_file" = x-; then
13504 echo "/* Generated by configure. */" >$tmp/config.h
13506 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13508 cat $tmp/in >>$tmp/config.h
13510 if test x"$ac_file" != x-; then
13511 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13512 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13513 echo "$as_me: $ac_file is unchanged" >&6;}
13515 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13516 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13517 X"$ac_file" : 'X\(//\)[^/]' \| \
13518 X"$ac_file" : 'X\(//\)$' \| \
13519 X"$ac_file" : 'X\(/\)' \| \
13520 . : '\(.\)' 2>/dev/null ||
13522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13524 /^X\(\/\/\)$/{ s//\1/; q; }
13525 /^X\(\/\).*/{ s//\1/; q; }
13527 { if $as_mkdir_p; then
13532 while test ! -d "$as_dir"; do
13533 as_dirs="$as_dir $as_dirs"
13534 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13536 X"$as_dir" : 'X\(//\)[^/]' \| \
13537 X"$as_dir" : 'X\(//\)$' \| \
13538 X"$as_dir" : 'X\(/\)' \| \
13539 . : '\(.\)' 2>/dev/null ||
13541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13542 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13543 /^X\(\/\/\)$/{ s//\1/; q; }
13544 /^X\(\/\).*/{ s//\1/; q; }
13547 test ! -n "$as_dirs" || mkdir $as_dirs
13548 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13549 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13550 { (exit 1); exit 1; }; }; }
13553 mv $tmp/config.h $ac_file
13557 rm -f $tmp/config.h
13561 cat >>$CONFIG_STATUS <<\_ACEOF
13564 # CONFIG_COMMANDS section.
13566 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13567 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13568 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13569 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13570 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13571 X"$ac_dest" : 'X\(//\)[^/]' \| \
13572 X"$ac_dest" : 'X\(//\)$' \| \
13573 X"$ac_dest" : 'X\(/\)' \| \
13574 . : '\(.\)' 2>/dev/null ||
13576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13578 /^X\(\/\/\)$/{ s//\1/; q; }
13579 /^X\(\/\).*/{ s//\1/; q; }
13581 { if $as_mkdir_p; then
13586 while test ! -d "$as_dir"; do
13587 as_dirs="$as_dir $as_dirs"
13588 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13590 X"$as_dir" : 'X\(//\)[^/]' \| \
13591 X"$as_dir" : 'X\(//\)$' \| \
13592 X"$as_dir" : 'X\(/\)' \| \
13593 . : '\(.\)' 2>/dev/null ||
13595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13597 /^X\(\/\/\)$/{ s//\1/; q; }
13598 /^X\(\/\).*/{ s//\1/; q; }
13601 test ! -n "$as_dirs" || mkdir $as_dirs
13602 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13604 { (exit 1); exit 1; }; }; }
13608 if test "$ac_dir" != .; then
13609 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13610 # A "../" for each directory in $ac_dir_suffix.
13611 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13613 ac_dir_suffix= ac_top_builddir=
13617 .) # No --srcdir option. We are building in place.
13619 if test -z "$ac_top_builddir"; then
13622 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13624 [\\/]* | ?:[\\/]* ) # Absolute path.
13625 ac_srcdir=$srcdir$ac_dir_suffix;
13626 ac_top_srcdir=$srcdir ;;
13627 *) # Relative path.
13628 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13629 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13632 # Do not use `cd foo && pwd` to compute absolute paths, because
13633 # the directories may not exist.
13635 .) ac_abs_builddir="$ac_dir";;
13638 .) ac_abs_builddir=`pwd`;;
13639 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13640 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13643 case $ac_abs_builddir in
13644 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13646 case ${ac_top_builddir}. in
13647 .) ac_abs_top_builddir=$ac_abs_builddir;;
13648 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13649 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13652 case $ac_abs_builddir in
13653 .) ac_abs_srcdir=$ac_srcdir;;
13656 .) ac_abs_srcdir=$ac_abs_builddir;;
13657 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13658 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13661 case $ac_abs_builddir in
13662 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13664 case $ac_top_srcdir in
13665 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13666 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13667 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13672 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13673 echo "$as_me: executing $ac_dest commands" >&6;}
13676 case ${CONFIG_HEADERS} in
13677 *auto-host.h:config.in*)
13680 # Make sure all the subdirs exist.
13683 test -d $d || mkdir $d
13685 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13686 # bootstrapping and the installation procedure can still use
13687 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13688 # FLAGS_TO_PASS has been modified to solve the problem there.
13689 # This is virtually a duplicate of what happens in configure.lang; we do
13690 # an extra check to make sure this only happens if ln -s can be used.
13691 if test "$symbolic_link" = "ln -s"; then
13692 for d in ${subdirs} fixinc ; do
13693 STARTDIR=`${PWDCMD-pwd}`
13695 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13698 $symbolic_link ../$t $t 2>/dev/null
13708 cat >>$CONFIG_STATUS <<\_ACEOF
13710 { (exit 0); exit 0; }
13712 chmod +x $CONFIG_STATUS
13713 ac_clean_files=$ac_clean_files_save
13716 # configure is writing to config.log, and then calls config.status.
13717 # config.status does its own redirection, appending to config.log.
13718 # Unfortunately, on DOS this fails, as config.log is still kept open
13719 # by configure, so config.status won't be able to write to it; its
13720 # output is simply discarded. So we exec the FD to /dev/null,
13721 # effectively closing config.log, so it can be properly (re)opened and
13722 # appended to by config.status. When coming back to configure, we
13723 # need to make the FD available again.
13724 if test "$no_create" != yes; then
13726 ac_config_status_args=
13727 test "$silent" = yes &&
13728 ac_config_status_args="$ac_config_status_args --quiet"
13730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13733 # would make configure fail if this is the last instruction.
13734 $ac_cs_success || { (exit 1); exit 1; }