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 target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP 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 PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc 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 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: none,assert,fold,gc,gcac,misc,
871 rtlflag,rtl,tree,valgrind;
872 default is assert,gc,misc,rtlflag,tree
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-objc-gc enable the use of Boehm's garbage collector with
886 the GNU Objective-C runtime
887 --disable-shared don't provide a shared libgcc
888 --enable-intermodule build the compiler in one step
889 --enable-languages=LIST specify which front-ends to build
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --enable-libunwind-exceptions force use libunwind for exceptions
894 --disable-win32-registry
895 disable lookup of installation paths in the
896 Registry on Windows hosts
897 --enable-win32-registry enable registry lookup (default)
898 --enable-win32-registry=KEY
899 use KEY instead of GCC version as the last portion
901 --enable-maintainer-mode
902 enable make rules and dependencies not useful
903 (and sometimes confusing) to the casual installer
904 --enable-version-specific-runtime-libs
905 specify that runtime libraries should be
906 installed in a compiler-specific directory
909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
911 --with-local-prefix=DIR specifies directory to put local include
912 --with-gxx-include-dir=DIR
913 specifies directory to put g++ header files
914 --with-cpp-install-dir=DIR
915 install the user visible C preprocessor in DIR
916 (relative to PREFIX) as well as PREFIX/bin
917 --with-gnu-ld arrange to work with GNU ld.
918 --with-ld arrange to use the specified ld (full pathname)
919 --with-demangler-in-ld try to use demangler in GNU ld.
920 --with-gnu-as arrange to work with GNU as
921 --with-as arrange to use the specified as (full pathname)
922 --with-stabs arrange to use stabs instead of host debug format
923 --with-dwarf2 force the default debug format to be DWARF 2
924 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
925 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
926 --with-gc={page,zone} choose the garbage collection mechanism to use
928 --with-system-zlib use installed libz
929 --with-libbanshee enable libbanshee
930 --with-slibdir=DIR shared libraries in DIR LIBDIR
932 Some influential environment variables:
933 CC C compiler command
934 CFLAGS C compiler flags
935 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
936 nonstandard directory <lib dir>
937 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
938 headers in a nonstandard directory <include dir>
940 GMPLIBS How to link GMP
941 GMPINC How to find GMP include files
943 Use these variables to override the choices made by `configure' or to help
944 it to find libraries and programs with nonstandard names/locations.
949 if test "$ac_init_help" = "recursive"; then
950 # If there are subdirs, report their specific --help.
952 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
953 test -d $ac_dir || continue
956 if test "$ac_dir" != .; then
957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
958 # A "../" for each directory in $ac_dir_suffix.
959 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961 ac_dir_suffix= ac_top_builddir=
965 .) # No --srcdir option. We are building in place.
967 if test -z "$ac_top_builddir"; then
970 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972 [\\/]* | ?:[\\/]* ) # Absolute path.
973 ac_srcdir=$srcdir$ac_dir_suffix;
974 ac_top_srcdir=$srcdir ;;
976 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
977 ac_top_srcdir=$ac_top_builddir$srcdir ;;
980 # Do not use `cd foo && pwd` to compute absolute paths, because
981 # the directories may not exist.
983 .) ac_abs_builddir="$ac_dir";;
986 .) ac_abs_builddir=`pwd`;;
987 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
988 *) ac_abs_builddir=`pwd`/"$ac_dir";;
991 case $ac_abs_builddir in
992 .) ac_abs_top_builddir=${ac_top_builddir}.;;
994 case ${ac_top_builddir}. in
995 .) ac_abs_top_builddir=$ac_abs_builddir;;
996 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
997 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1000 case $ac_abs_builddir in
1001 .) ac_abs_srcdir=$ac_srcdir;;
1004 .) ac_abs_srcdir=$ac_abs_builddir;;
1005 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1006 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1009 case $ac_abs_builddir in
1010 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1012 case $ac_top_srcdir in
1013 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1014 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1015 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1020 # Check for guested configure; otherwise get Cygnus style configure.
1021 if test -f $ac_srcdir/configure.gnu; then
1023 $SHELL $ac_srcdir/configure.gnu --help=recursive
1024 elif test -f $ac_srcdir/configure; then
1026 $SHELL $ac_srcdir/configure --help=recursive
1027 elif test -f $ac_srcdir/configure.ac ||
1028 test -f $ac_srcdir/configure.in; then
1030 $ac_configure --help
1032 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1038 test -n "$ac_init_help" && exit 0
1039 if $ac_init_version; then
1042 Copyright (C) 2003 Free Software Foundation, Inc.
1043 This configure script is free software; the Free Software Foundation
1044 gives unlimited permission to copy, distribute and modify it.
1050 This file contains any messages produced by compilers while
1051 running configure, to aid debugging if configure makes a mistake.
1053 It was created by $as_me, which was
1054 generated by GNU Autoconf 2.59. Invocation command line was
1065 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1066 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1067 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1068 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1069 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1071 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1072 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1074 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1075 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1076 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1077 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1078 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1079 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1080 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1088 test -z "$as_dir" && as_dir=.
1089 echo "PATH: $as_dir"
1104 # Keep a trace of the command line.
1105 # Strip out --no-create and --no-recursion so they do not pile up.
1106 # Strip out --silent because we don't want to record it for future runs.
1107 # Also quote any args containing shell meta-characters.
1108 # Make two passes to allow for proper duplicate-argument suppression.
1113 ac_must_keep_next=false
1119 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1123 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1124 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1127 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1129 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1130 if test $ac_must_keep_next = true; then
1131 ac_must_keep_next=false # Got value, back to normal.
1134 *=* | --config-cache | -C | -disable-* | --disable-* \
1135 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1136 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1137 | -with-* | --with-* | -without-* | --without-* | --x)
1138 case "$ac_configure_args0 " in
1139 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1142 -* ) ac_must_keep_next=true ;;
1145 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1146 # Get rid of the leading space.
1152 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1153 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1155 # When interrupted or exit'd, cleanup temporary files, and complete
1156 # config.log. We remove comments because anyway the quotes in there
1157 # would cause problems or look ugly.
1158 # WARNING: Be sure not to use single quotes in there, as some shells,
1159 # such as our DU 5.0 friend, will then `close' the trap.
1160 trap 'exit_status=$?
1161 # Save into config.log some information that might help in debugging.
1166 ## ---------------- ##
1167 ## Cache variables. ##
1168 ## ---------------- ##
1171 # The following way of writing the cache mishandles newlines in values,
1174 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1177 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1182 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1189 ## ----------------- ##
1190 ## Output variables. ##
1191 ## ----------------- ##
1194 for ac_var in $ac_subst_vars
1196 eval ac_val=$`echo $ac_var`
1197 echo "$ac_var='"'"'$ac_val'"'"'"
1201 if test -n "$ac_subst_files"; then
1208 for ac_var in $ac_subst_files
1210 eval ac_val=$`echo $ac_var`
1211 echo "$ac_var='"'"'$ac_val'"'"'"
1216 if test -s confdefs.h; then
1223 sed "/^$/d" confdefs.h | sort
1226 test "$ac_signal" != 0 &&
1227 echo "$as_me: caught signal $ac_signal"
1228 echo "$as_me: exit $exit_status"
1230 rm -f core *.core &&
1231 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1234 for ac_signal in 1 2 13 15; do
1235 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1239 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1240 rm -rf conftest* confdefs.h
1241 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1244 # Predefined preprocessor variables.
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_NAME "$PACKAGE_NAME"
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_STRING "$PACKAGE_STRING"
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1271 # Let the site file select an alternate cache file if it wants to.
1272 # Prefer explicitly selected file to automatically selected ones.
1273 if test -z "$CONFIG_SITE"; then
1274 if test "x$prefix" != xNONE; then
1275 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1280 for ac_site_file in $CONFIG_SITE; do
1281 if test -r "$ac_site_file"; then
1282 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1283 echo "$as_me: loading site script $ac_site_file" >&6;}
1284 sed 's/^/| /' "$ac_site_file" >&5
1289 if test -r "$cache_file"; then
1290 # Some versions of bash will fail to source /dev/null (special
1291 # files actually), so we avoid doing that.
1292 if test -f "$cache_file"; then
1293 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1294 echo "$as_me: loading cache $cache_file" >&6;}
1296 [\\/]* | ?:[\\/]* ) . $cache_file;;
1297 *) . ./$cache_file;;
1301 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1302 echo "$as_me: creating cache $cache_file" >&6;}
1306 # Check that the precious variables saved in the cache have kept the same
1308 ac_cache_corrupted=false
1309 for ac_var in `(set) 2>&1 |
1310 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1311 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1312 eval ac_new_set=\$ac_env_${ac_var}_set
1313 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1314 eval ac_new_val="\$ac_env_${ac_var}_value"
1315 case $ac_old_set,$ac_new_set in
1317 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1318 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1319 ac_cache_corrupted=: ;;
1321 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1322 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1323 ac_cache_corrupted=: ;;
1326 if test "x$ac_old_val" != "x$ac_new_val"; then
1327 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1328 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1329 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1330 echo "$as_me: former value: $ac_old_val" >&2;}
1331 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1332 echo "$as_me: current value: $ac_new_val" >&2;}
1333 ac_cache_corrupted=:
1336 # Pass precious variables to config.status.
1337 if test "$ac_new_set" = set; then
1339 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1340 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1341 *) ac_arg=$ac_var=$ac_new_val ;;
1343 case " $ac_configure_args " in
1344 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1345 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1349 if $ac_cache_corrupted; then
1350 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1351 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1352 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1353 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1354 { (exit 1); exit 1; }; }
1358 ac_cpp='$CPP $CPPFLAGS'
1359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1382 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1385 #Set to 1 on a release branch
1388 # Determine the host, build, and target systems
1390 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1391 if test -f $ac_dir/install-sh; then
1393 ac_install_sh="$ac_aux_dir/install-sh -c"
1395 elif test -f $ac_dir/install.sh; then
1397 ac_install_sh="$ac_aux_dir/install.sh -c"
1399 elif test -f $ac_dir/shtool; then
1401 ac_install_sh="$ac_aux_dir/shtool install -c"
1405 if test -z "$ac_aux_dir"; then
1406 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1407 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1408 { (exit 1); exit 1; }; }
1410 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1411 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1412 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1414 # Make sure we can run config.sub.
1415 $ac_config_sub sun4 >/dev/null 2>&1 ||
1416 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1417 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1418 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: checking build system type" >&5
1421 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1422 if test "${ac_cv_build+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 ac_cv_build_alias=$build_alias
1426 test -z "$ac_cv_build_alias" &&
1427 ac_cv_build_alias=`$ac_config_guess`
1428 test -z "$ac_cv_build_alias" &&
1429 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1430 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1431 { (exit 1); exit 1; }; }
1432 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1433 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1434 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1435 { (exit 1); exit 1; }; }
1438 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1439 echo "${ECHO_T}$ac_cv_build" >&6
1441 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1442 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1443 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446 echo "$as_me:$LINENO: checking host system type" >&5
1447 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1448 if test "${ac_cv_host+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 ac_cv_host_alias=$host_alias
1452 test -z "$ac_cv_host_alias" &&
1453 ac_cv_host_alias=$ac_cv_build_alias
1454 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1455 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1456 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1457 { (exit 1); exit 1; }; }
1460 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1461 echo "${ECHO_T}$ac_cv_host" >&6
1463 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1464 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1465 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1468 echo "$as_me:$LINENO: checking target system type" >&5
1469 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1470 if test "${ac_cv_target+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 ac_cv_target_alias=$target_alias
1474 test "x$ac_cv_target_alias" = "x" &&
1475 ac_cv_target_alias=$ac_cv_host_alias
1476 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1477 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1479 { (exit 1); exit 1; }; }
1482 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1483 echo "${ECHO_T}$ac_cv_target" >&6
1484 target=$ac_cv_target
1485 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490 # The aliases save the names the user supplied, while $host etc.
1491 # will get canonicalized.
1492 test -n "$target_alias" &&
1493 test "$program_prefix$program_suffix$program_transform_name" = \
1495 program_prefix=${target_alias}-
1497 # Determine the noncanonical target name, for directory use.
1498 case ${build_alias} in
1499 "") build_noncanonical=${build} ;;
1500 *) build_noncanonical=${build_alias} ;;
1503 case ${host_alias} in
1504 "") host_noncanonical=${build_noncanonical} ;;
1505 *) host_noncanonical=${host_alias} ;;
1508 case ${target_alias} in
1509 "") target_noncanonical=${host_noncanonical} ;;
1510 *) target_noncanonical=${target_alias} ;;
1516 # Determine the target- and build-specific subdirectories
1517 # Prefix 'build-' so this never conflicts with target_subdir.
1518 build_subdir="build-${build_noncanonical}"
1519 # Not really a subdirectory, but here for completeness.
1522 target_subdir=${target_noncanonical}
1525 # Set program_transform_name
1526 test "$program_prefix" != NONE &&
1527 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1528 # Use a double $ so make ignores it.
1529 test "$program_suffix" != NONE &&
1530 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1531 # Double any \ or $. echo might interpret backslashes.
1532 # By default was `s,x,x', remove it if useless.
1533 cat <<\_ACEOF >conftest.sed
1534 s/[\\$]/&&/g;s/;s,x,x,$//
1536 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1540 # Check for bogus environment variables.
1541 # Test if LIBRARY_PATH contains the notation for the current directory
1542 # since this would lead to problems installing/building glibc.
1543 # LIBRARY_PATH contains the current directory if one of the following
1545 # - one of the terminals (":" and ";") is the first or last sign
1546 # - two terminals occur directly after each other
1547 # - the path contains an element with a dot in it
1548 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1549 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1550 case ${LIBRARY_PATH} in
1551 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1552 library_path_setting="contains current directory"
1555 library_path_setting="ok"
1558 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1559 echo "${ECHO_T}$library_path_setting" >&6
1560 if test "$library_path_setting" != "ok"; then
1561 { { echo "$as_me:$LINENO: error:
1562 *** LIBRARY_PATH shouldn't contain the current directory when
1563 *** building gcc. Please change the environment variable
1564 *** and run configure again." >&5
1565 echo "$as_me: error:
1566 *** LIBRARY_PATH shouldn't contain the current directory when
1567 *** building gcc. Please change the environment variable
1568 *** and run configure again." >&2;}
1569 { (exit 1); exit 1; }; }
1572 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1573 # since this would lead to problems installing/building glibc.
1574 # GCC_EXEC_PREFIX contains the current directory if one of the following
1576 # - one of the terminals (":" and ";") is the first or last sign
1577 # - two terminals occur directly after each other
1578 # - the path contains an element with a dot in it
1579 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1580 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1581 case ${GCC_EXEC_PREFIX} in
1582 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1583 gcc_exec_prefix_setting="contains current directory"
1586 gcc_exec_prefix_setting="ok"
1589 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1590 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1591 if test "$gcc_exec_prefix_setting" != "ok"; then
1592 { { echo "$as_me:$LINENO: error:
1593 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1594 *** building gcc. Please change the environment variable
1595 *** and run configure again." >&5
1596 echo "$as_me: error:
1597 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1598 *** building gcc. Please change the environment variable
1599 *** and run configure again." >&2;}
1600 { (exit 1); exit 1; }; }
1607 # Specify the local prefix
1610 # Check whether --with-local-prefix or --without-local-prefix was given.
1611 if test "${with_local_prefix+set}" = set; then
1612 withval="$with_local_prefix"
1613 case "${withval}" in
1614 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1615 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1616 { (exit 1); exit 1; }; } ;;
1618 *) local_prefix=$with_local_prefix ;;
1622 # Default local prefix if it is empty
1623 if test x$local_prefix = x; then
1624 local_prefix=/usr/local
1627 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1628 # passed in by the toplevel make and thus we'd get different behavior
1629 # depending on where we built the sources.
1630 gcc_gxx_include_dir=
1631 # Specify the g++ header file directory
1633 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1634 if test "${with_gxx_include_dir+set}" = set; then
1635 withval="$with_gxx_include_dir"
1636 case "${withval}" in
1637 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1638 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1639 { (exit 1); exit 1; }; } ;;
1641 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1645 if test x${gcc_gxx_include_dir} = x; then
1646 if test x${enable_version_specific_runtime_libs} = xyes; then
1647 gcc_gxx_include_dir='${libsubdir}/include/c++'
1649 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1650 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1655 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1656 if test "${with_cpp_install_dir+set}" = set; then
1657 withval="$with_cpp_install_dir"
1658 if test x$withval = xyes; then
1659 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1660 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1661 { (exit 1); exit 1; }; }
1662 elif test x$withval != xno; then
1663 cpp_install_dir=$withval
1667 # We would like to our source tree to be readonly. However when releases or
1668 # pre-releases are generated, the flex/bison generated files as well as the
1669 # various formats of manuals need to be included along with the rest of the
1670 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1673 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1674 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1675 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1676 if test "${enable_generated_files_in_srcdir+set}" = set; then
1677 enableval="$enable_generated_files_in_srcdir"
1678 generated_files_in_srcdir=$enableval
1680 generated_files_in_srcdir=no
1683 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1684 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1686 if test "$generated_files_in_srcdir" = "yes"; then
1693 # -------------------
1694 # Find default linker
1695 # -------------------
1699 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1700 if test "${with_gnu_ld+set}" = set; then
1701 withval="$with_gnu_ld"
1702 gnu_ld_flag="$with_gnu_ld"
1707 # With pre-defined ld
1709 # Check whether --with-ld or --without-ld was given.
1710 if test "${with_ld+set}" = set; then
1712 DEFAULT_LINKER="$with_ld"
1714 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1715 if test ! -x "$DEFAULT_LINKER"; then
1716 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1717 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1718 { (exit 1); exit 1; }; }
1719 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1723 cat >>confdefs.h <<_ACEOF
1724 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1729 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1730 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1731 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1732 if test x"$gnu_ld_flag" = x"no"; then
1733 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1734 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1736 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1737 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1744 # With demangler in GNU ld
1746 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1747 if test "${with_demangler_in_ld+set}" = set; then
1748 withval="$with_demangler_in_ld"
1749 demangler_in_ld="$with_demangler_in_ld"
1754 # ----------------------
1755 # Find default assembler
1756 # ----------------------
1760 # Check whether --with-gnu-as or --without-gnu-as was given.
1761 if test "${with_gnu_as+set}" = set; then
1762 withval="$with_gnu_as"
1763 gas_flag="$with_gnu_as"
1769 # Check whether --with-as or --without-as was given.
1770 if test "${with_as+set}" = set; then
1772 DEFAULT_ASSEMBLER="$with_as"
1774 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1775 if test ! -x "$DEFAULT_ASSEMBLER"; then
1776 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1777 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1778 { (exit 1); exit 1; }; }
1779 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1783 cat >>confdefs.h <<_ACEOF
1784 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1789 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1790 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1791 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1792 if test x"$gas_flag" = x"no"; then
1793 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1794 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1796 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1797 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1808 # If a non-executable a.out is present (e.g. created by GNU as above even if
1809 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1810 # file, even when creating an executable, so an execution test fails.
1811 # Remove possible default executable files to avoid this.
1813 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1814 # Autoconf includes it.
1815 rm -f a.out a.exe b.out
1817 # Find the native compiler
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 if test -n "$ac_tool_prefix"; then
1824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1825 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 if test -n "$CC"; then
1852 echo "$as_me:$LINENO: result: $CC" >&5
1853 echo "${ECHO_T}$CC" >&6
1855 echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1860 if test -z "$ac_cv_prog_CC"; then
1862 # Extract the first word of "gcc", so it can be a program name with args.
1863 set dummy gcc; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 if test -n "$ac_ct_CC"; then
1870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_ac_ct_CC="gcc"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889 if test -n "$ac_ct_CC"; then
1890 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1891 echo "${ECHO_T}$ac_ct_CC" >&6
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1902 if test -z "$CC"; then
1903 if test -n "$ac_tool_prefix"; then
1904 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1905 set dummy ${ac_tool_prefix}cc; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_CC+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 if test -n "$CC"; then
1912 ac_cv_prog_CC="$CC" # Let the user override the test.
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 ac_cv_prog_CC="${ac_tool_prefix}cc"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 if test -n "$CC"; then
1932 echo "$as_me:$LINENO: result: $CC" >&5
1933 echo "${ECHO_T}$CC" >&6
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1940 if test -z "$ac_cv_prog_CC"; then
1942 # Extract the first word of "cc", so it can be a program name with args.
1943 set dummy cc; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 if test -n "$ac_ct_CC"; then
1950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959 ac_cv_prog_ac_ct_CC="cc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1969 if test -n "$ac_ct_CC"; then
1970 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1971 echo "${ECHO_T}$ac_ct_CC" >&6
1973 echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1983 if test -z "$CC"; then
1984 # Extract the first word of "cc", so it can be a program name with args.
1985 set dummy cc; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2003 ac_prog_rejected=yes
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 if test $ac_prog_rejected = yes; then
2014 # We found a bogon in the path, so make sure we never use it.
2015 set dummy $ac_cv_prog_CC
2017 if test $# != 0; then
2018 # We chose a different compiler from the bogus one.
2019 # However, it has the same basename, so the bogon will be chosen
2020 # first if we set CC to just the basename; use the full file name.
2022 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2028 if test -n "$CC"; then
2029 echo "$as_me:$LINENO: result: $CC" >&5
2030 echo "${ECHO_T}$CC" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2037 if test -z "$CC"; then
2038 if test -n "$ac_tool_prefix"; then
2041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC="$CC" # Let the user override the test.
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 if test -n "$CC"; then
2069 echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2076 test -n "$CC" && break
2079 if test -z "$CC"; then
2083 # Extract the first word of "$ac_prog", so it can be a program name with args.
2084 set dummy $ac_prog; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 if test -n "$ac_ct_CC"; then
2091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 ac_cv_prog_ac_ct_CC="$ac_prog"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6
2114 echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2118 test -n "$ac_ct_CC" && break
2127 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&5
2129 echo "$as_me: error: no acceptable C compiler found in \$PATH
2130 See \`config.log' for more details." >&2;}
2131 { (exit 1); exit 1; }; }
2133 # Provide some information about the compiler.
2134 echo "$as_me:$LINENO:" \
2135 "checking for C compiler version" >&5
2136 ac_compiler=`set X $ac_compile; echo $2`
2137 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2138 (eval $ac_compiler --version </dev/null >&5) 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2142 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2143 (eval $ac_compiler -v </dev/null >&5) 2>&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }
2147 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2148 (eval $ac_compiler -V </dev/null >&5) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2153 cat >conftest.$ac_ext <<_ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2173 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2177 (eval $ac_link_default) 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 # Find the output, starting from the most likely. This scheme is
2182 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2185 # Be careful to initialize this variable, since it used to be cached.
2186 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2188 # b.out is created by i960 compilers.
2189 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2191 test -f "$ac_file" || continue
2193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2196 # This is the source file.
2199 # We found the default executable, but exeext='' is most
2203 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204 # FIXME: I believe we export ac_cv_exeext for Libtool,
2205 # but it would be cool to find out if it's true. Does anybody
2206 # maintain Libtool? --akim.
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2217 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&2;}
2221 { (exit 77); exit 77; }; }
2224 ac_exeext=$ac_cv_exeext
2225 echo "$as_me:$LINENO: result: $ac_file" >&5
2226 echo "${ECHO_T}$ac_file" >&6
2228 # Check the compiler produces executables we can run. If not, either
2229 # the compiler is broken, or we cross compile.
2230 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2231 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2232 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233 # If not cross compiling, check that we can run a simple program.
2234 if test "$cross_compiling" != yes; then
2235 if { ac_try='./$ac_file'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2243 if test "$cross_compiling" = maybe; then
2246 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2247 If you meant to cross compile, use \`--host'.
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot run C compiled programs.
2250 If you meant to cross compile, use \`--host'.
2251 See \`config.log' for more details." >&2;}
2252 { (exit 1); exit 1; }; }
2256 echo "$as_me:$LINENO: result: yes" >&5
2257 echo "${ECHO_T}yes" >&6
2259 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2260 ac_clean_files=$ac_clean_files_save
2261 # Check the compiler produces executables we can run. If not, either
2262 # the compiler is broken, or we cross compile.
2263 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2264 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2265 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2266 echo "${ECHO_T}$cross_compiling" >&6
2268 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2269 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2271 (eval $ac_link) 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&2;}
2294 { (exit 1); exit 1; }; }
2297 rm -f conftest$ac_cv_exeext
2298 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299 echo "${ECHO_T}$ac_cv_exeext" >&6
2301 rm -f conftest.$ac_ext
2302 EXEEXT=$ac_cv_exeext
2304 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2306 if test "${ac_cv_objext+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 cat >conftest.$ac_ext <<_ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h. */
2324 rm -f conftest.o conftest.obj
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; then
2330 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2333 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2341 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2348 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2351 echo "${ECHO_T}$ac_cv_objext" >&6
2352 OBJEXT=$ac_cv_objext
2354 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2356 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 cat >conftest.$ac_ext <<_ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2409 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2415 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2416 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2417 if test "${ac_cv_prog_cc_g+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 cat >conftest.$ac_ext <<_ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2435 rm -f conftest.$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>conftest.er1
2439 grep -v '^ *+' conftest.er1 >conftest.err
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2467 if test "$ac_test_CFLAGS" = set; then
2468 CFLAGS=$ac_save_CFLAGS
2469 elif test $ac_cv_prog_cc_g = yes; then
2470 if test "$GCC" = yes; then
2476 if test "$GCC" = yes; then
2482 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2483 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2484 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 ac_cv_prog_cc_stdc=no
2489 cat >conftest.$ac_ext <<_ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2497 #include <sys/types.h>
2498 #include <sys/stat.h>
2499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2500 struct buf { int x; };
2501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502 static char *e (p, i)
2508 static char *f (char * (*g) (char **, int), char **p, ...)
2513 s = g (p, va_arg (v,int));
2518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2519 function prototypes and stuff, but not '\xHH' hex character constants.
2520 These don't provoke an error unfortunately, instead are silently treated
2521 as 'x'. The following induces an error, until -std1 is added to get
2522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2523 array size at least. It's necessary to write '\x00'==0 to get something
2524 that's true only with -std1. */
2525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX -qlanglvl=ansi
2544 # Ultrix and OSF/1 -std1
2545 # HP-UX 10.20 and later -Ae
2546 # HP-UX older versions -Aa -D_HPUX_SOURCE
2547 # SVR4 -Xc -D__EXTENSIONS__
2548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2550 CC="$ac_save_CC $ac_arg"
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>conftest.er1
2555 grep -v '^ *+' conftest.er1 >conftest.err
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 ac_cv_prog_cc_stdc=$ac_arg
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2579 rm -f conftest.err conftest.$ac_objext
2581 rm -f conftest.$ac_ext conftest.$ac_objext
2586 case "x$ac_cv_prog_cc_stdc" in
2588 echo "$as_me:$LINENO: result: none needed" >&5
2589 echo "${ECHO_T}none needed" >&6 ;;
2591 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2592 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2593 CC="$CC $ac_cv_prog_cc_stdc" ;;
2596 # Some people use a C++ compiler to compile C. Since we use `exit',
2597 # in C++ we need to declare it. In case someone uses the same compiler
2598 # for both compiling C and C++ we need to have the C++ compiler decide
2599 # the declaration of exit, since it's the most demanding environment.
2600 cat >conftest.$ac_ext <<_ACEOF
2605 rm -f conftest.$ac_objext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607 (eval $ac_compile) 2>conftest.er1
2609 grep -v '^ *+' conftest.er1 >conftest.err
2611 cat conftest.err >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 for ac_declaration in \
2628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2634 cat >conftest.$ac_ext <<_ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>conftest.er1
2654 grep -v '^ *+' conftest.er1 >conftest.err
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; } &&
2665 { ac_try='test -s conftest.$ac_objext'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696 (eval $ac_compile) 2>conftest.er1
2698 grep -v '^ *+' conftest.er1 >conftest.err
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 if test -n "$ac_declaration"; then
2725 echo '#ifdef __cplusplus' >>confdefs.h
2726 echo $ac_declaration >>confdefs.h
2727 echo '#endif' >>confdefs.h
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 if test "x$CC" != xcc; then
2743 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2744 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2746 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2747 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2749 set dummy $CC; ac_cc=`echo $2 |
2750 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2751 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 cat >conftest.$ac_ext <<_ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2769 # Make sure it works both with $CC and with simple cc.
2770 # We do the test twice because some compilers refuse to overwrite an
2771 # existing .o file with -o, though they will create one.
2772 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2773 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); };
2784 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2785 if test "x$CC" != xcc; then
2786 # Test first that cc exists at all.
2787 if { ac_try='cc -c conftest.$ac_ext >&5'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2794 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); };
2808 # cc exists but doesn't like -o.
2809 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2814 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2819 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2820 echo "$as_me:$LINENO: result: yes" >&5
2821 echo "${ECHO_T}yes" >&6
2823 echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2826 cat >>confdefs.h <<\_ACEOF
2827 #define NO_MINUS_C_MINUS_O 1
2832 # autoconf is lame and doesn't give us any substitution variable for this.
2833 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2834 NO_MINUS_C_MINUS_O=yes
2836 OUTPUT_OPTION='-o $@'
2841 # -------------------------
2842 # Check C compiler features
2843 # -------------------------
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2851 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2852 # On Suns, sometimes $CPP names a directory.
2853 if test -n "$CPP" && test -d "$CPP"; then
2856 if test -z "$CPP"; then
2857 if test "${ac_cv_prog_CPP+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 # Double quotes because CPP needs to be expanded
2861 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2864 for ac_c_preproc_warn_flag in '' yes
2866 # Use a header file that comes with gcc, so configuring glibc
2867 # with a fresh cross-compiler works.
2868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2869 # <limits.h> exists even on freestanding compilers.
2870 # On the NeXT, cc -E runs the code through the compiler's parser,
2871 # not just through cpp. "Syntax error" is here to catch this case.
2872 cat >conftest.$ac_ext <<_ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2879 # include <limits.h>
2881 # include <assert.h>
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_c_preproc_warn_flag
2895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902 if test -z "$ac_cpp_err"; then
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 # Broken: fails on valid input.
2911 rm -f conftest.err conftest.$ac_ext
2913 # OK, works on sane cases. Now check whether non-existent headers
2914 # can be detected and how.
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #include <ac_nonexistent.h>
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1 >conftest.err
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_c_preproc_warn_flag
2933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2940 if test -z "$ac_cpp_err"; then
2941 # Broken: success on invalid input.
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 # Passes both tests.
2951 rm -f conftest.err conftest.$ac_ext
2954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955 rm -f conftest.err conftest.$ac_ext
2956 if $ac_preproc_ok; then
2968 echo "$as_me:$LINENO: result: $CPP" >&5
2969 echo "${ECHO_T}$CPP" >&6
2971 for ac_c_preproc_warn_flag in '' yes
2973 # Use a header file that comes with gcc, so configuring glibc
2974 # with a fresh cross-compiler works.
2975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2976 # <limits.h> exists even on freestanding compilers.
2977 # On the NeXT, cc -E runs the code through the compiler's parser,
2978 # not just through cpp. "Syntax error" is here to catch this case.
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2986 # include <limits.h>
2988 # include <assert.h>
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null; then
3000 if test -s conftest.err; then
3001 ac_cpp_err=$ac_c_preproc_warn_flag
3002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3009 if test -z "$ac_cpp_err"; then
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 # Broken: fails on valid input.
3018 rm -f conftest.err conftest.$ac_ext
3020 # OK, works on sane cases. Now check whether non-existent headers
3021 # can be detected and how.
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 #include <ac_nonexistent.h>
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3047 if test -z "$ac_cpp_err"; then
3048 # Broken: success on invalid input.
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 # Passes both tests.
3058 rm -f conftest.err conftest.$ac_ext
3061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3062 rm -f conftest.err conftest.$ac_ext
3063 if $ac_preproc_ok; then
3066 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3067 See \`config.log' for more details." >&5
3068 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 echo "$as_me:$LINENO: checking for inline" >&5
3081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3082 if test "${ac_cv_c_inline+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 for ac_kw in inline __inline__ __inline; do
3087 cat >conftest.$ac_ext <<_ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3095 static $ac_kw foo_t static_foo () {return 0; }
3096 $ac_kw foo_t foo () {return 0; }
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102 (eval $ac_compile) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 ac_cv_c_inline=$ac_kw; break
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3131 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3132 echo "${ECHO_T}$ac_cv_c_inline" >&6
3135 case $ac_cv_c_inline in
3138 case $ac_cv_c_inline in
3140 *) ac_val=$ac_cv_c_inline;;
3142 cat >>confdefs.h <<_ACEOF
3144 #define inline $ac_val
3151 echo "$as_me:$LINENO: checking for long long int" >&5
3152 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3153 if test "${ac_cv_c_long_long+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>conftest.er1
3175 grep -v '^ *+' conftest.er1 >conftest.err
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } &&
3180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_cv_c_long_long=yes
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 ac_cv_c_long_long=no
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3201 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3202 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3203 if test $ac_cv_c_long_long = yes; then
3205 cat >>confdefs.h <<\_ACEOF
3206 #define HAVE_LONG_LONG 1
3210 echo "$as_me:$LINENO: checking for __int64" >&5
3211 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3212 if test "${ac_cv_c___int64+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3230 rm -f conftest.$ac_objext
3231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3232 (eval $ac_compile) 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3260 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3261 echo "${ECHO_T}$ac_cv_c___int64" >&6
3262 if test $ac_cv_c___int64 = yes; then
3264 cat >>confdefs.h <<\_ACEOF
3265 #define HAVE___INT64 1
3271 # sizeof(char) is 1 by definition.
3272 echo "$as_me:$LINENO: checking size of void *" >&5
3273 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3274 if test "${ac_cv_sizeof_void_p+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3284 #include "confdefs.h"
3285 #include <sys/types.h>
3291 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3296 rm -f conftest.$ac_objext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3298 (eval $ac_compile) 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
3305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; } &&
3311 { ac_try='test -s conftest.$ac_objext'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 ac_cv_sizeof_void_p=$ac_size
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3324 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3329 if test x$ac_cv_sizeof_void_p = x ; then
3330 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3331 echo "$as_me: error: cannot determine a size for void *" >&2;}
3332 { (exit 1); exit 1; }; }
3334 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3335 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3337 cat >>confdefs.h <<_ACEOF
3338 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3342 echo "$as_me:$LINENO: checking size of short" >&5
3343 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3344 if test "${ac_cv_sizeof_short+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3348 cat >conftest.$ac_ext <<_ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3354 #include "confdefs.h"
3355 #include <sys/types.h>
3361 switch (0) case 0: case (sizeof (short) == $ac_size):;
3366 rm -f conftest.$ac_objext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368 (eval $ac_compile) 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
3387 ac_cv_sizeof_short=$ac_size
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3394 if test x$ac_cv_sizeof_short != x ; then break; fi
3399 if test x$ac_cv_sizeof_short = x ; then
3400 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3401 echo "$as_me: error: cannot determine a size for short" >&2;}
3402 { (exit 1); exit 1; }; }
3404 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3405 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3407 cat >>confdefs.h <<_ACEOF
3408 #define SIZEOF_SHORT $ac_cv_sizeof_short
3412 echo "$as_me:$LINENO: checking size of int" >&5
3413 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3414 if test "${ac_cv_sizeof_int+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #include "confdefs.h"
3425 #include <sys/types.h>
3431 switch (0) case 0: case (sizeof (int) == $ac_size):;
3436 rm -f conftest.$ac_objext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438 (eval $ac_compile) 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 ac_cv_sizeof_int=$ac_size
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3464 if test x$ac_cv_sizeof_int != x ; then break; fi
3469 if test x$ac_cv_sizeof_int = x ; then
3470 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3471 echo "$as_me: error: cannot determine a size for int" >&2;}
3472 { (exit 1); exit 1; }; }
3474 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3475 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3477 cat >>confdefs.h <<_ACEOF
3478 #define SIZEOF_INT $ac_cv_sizeof_int
3482 echo "$as_me:$LINENO: checking size of long" >&5
3483 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3484 if test "${ac_cv_sizeof_long+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 #include "confdefs.h"
3495 #include <sys/types.h>
3501 switch (0) case 0: case (sizeof (long) == $ac_size):;
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_cv_sizeof_long=$ac_size
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3534 if test x$ac_cv_sizeof_long != x ; then break; fi
3539 if test x$ac_cv_sizeof_long = x ; then
3540 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3541 echo "$as_me: error: cannot determine a size for long" >&2;}
3542 { (exit 1); exit 1; }; }
3544 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3545 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3547 cat >>confdefs.h <<_ACEOF
3548 #define SIZEOF_LONG $ac_cv_sizeof_long
3552 if test $ac_cv_c_long_long = yes; then
3553 echo "$as_me:$LINENO: checking size of long long" >&5
3554 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3555 if test "${ac_cv_sizeof_long_long+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3559 cat >conftest.$ac_ext <<_ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 #include "confdefs.h"
3566 #include <sys/types.h>
3572 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; } &&
3592 { ac_try='test -s conftest.$ac_objext'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
3598 ac_cv_sizeof_long_long=$ac_size
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3605 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3610 if test x$ac_cv_sizeof_long_long = x ; then
3611 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3612 echo "$as_me: error: cannot determine a size for long long" >&2;}
3613 { (exit 1); exit 1; }; }
3615 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3616 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3618 cat >>confdefs.h <<_ACEOF
3619 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3624 if test $ac_cv_c___int64 = yes; then
3625 echo "$as_me:$LINENO: checking size of __int64" >&5
3626 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3627 if test "${ac_cv_sizeof___int64+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3631 cat >conftest.$ac_ext <<_ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637 #include "confdefs.h"
3638 #include <sys/types.h>
3644 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3649 rm -f conftest.$ac_objext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3651 (eval $ac_compile) 2>conftest.er1
3653 grep -v '^ *+' conftest.er1 >conftest.err
3655 cat conftest.err >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
3658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; } &&
3664 { ac_try='test -s conftest.$ac_objext'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3670 ac_cv_sizeof___int64=$ac_size
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3677 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3682 if test x$ac_cv_sizeof___int64 = x ; then
3683 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3684 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3685 { (exit 1); exit 1; }; }
3687 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3688 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3690 cat >>confdefs.h <<_ACEOF
3691 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3697 # ---------------------
3698 # Warnings and checking
3699 # ---------------------
3701 # Check $CC warning features (if it's GCC).
3702 # We want to use -pedantic, but we don't want warnings about
3705 # So, we only use -pedantic if we can disable those warnings.
3707 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3708 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3709 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 save_CFLAGS="$CFLAGS"
3713 CFLAGS="-Wno-long-long"
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3722 rm -f conftest.$ac_objext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3724 (eval $ac_compile) 2>conftest.er1
3726 grep -v '^ *+' conftest.er1 >conftest.err
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } &&
3731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; } &&
3737 { ac_try='test -s conftest.$ac_objext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 ac_cv_prog_cc_w_no_long_long=yes
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3748 ac_cv_prog_cc_w_no_long_long=no
3750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3751 CFLAGS="$save_CFLAGS"
3754 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3755 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3757 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3758 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3759 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 save_CFLAGS="$CFLAGS"
3763 CFLAGS="-Wno-variadic-macros"
3764 cat >conftest.$ac_ext <<_ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3772 rm -f conftest.$ac_objext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
3781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try='test -s conftest.$ac_objext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 ac_cv_prog_cc_w_no_variadic_macros=yes
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 ac_cv_prog_cc_w_no_variadic_macros=no
3800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3801 CFLAGS="$save_CFLAGS"
3804 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3805 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3808 if test $ac_cv_prog_cc_w_no_long_long = yes \
3809 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3810 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3814 # Add -Wold-style-definition if it's accepted
3815 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3816 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3817 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 save_CFLAGS="$CFLAGS"
3821 CFLAGS="-Wold-style-definition"
3822 cat >conftest.$ac_ext <<_ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_cv_prog_cc_w_old_style_definition=yes
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 ac_cv_prog_cc_w_old_style_definition=no
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 CFLAGS="$save_CFLAGS"
3862 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3863 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3864 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3865 strict1_warn="${strict1_warn} -Wold-style-definition"
3868 # Enable -Werror, period.
3869 # Check whether --enable-werror_always or --disable-werror_always was given.
3870 if test "${enable_werror_always+set}" = set; then
3871 enableval="$enable_werror_always"
3874 enable_werror_always=no
3876 if test x${enable_werror_always} = xyes ; then
3877 strict1_warn="${strict1_warn} -Werror"
3881 # If the native compiler is GCC, we can enable warnings even in stage1.
3882 # That's useful for people building cross-compilers, or just running a
3885 if test "x$GCC" = "xyes"; then
3886 warn_cflags='$(GCC_WARN_CFLAGS)'
3890 # Enable -Werror in bootstrap stage2 and later.
3891 # Check whether --enable-werror or --disable-werror was given.
3892 if test "${enable_werror+set}" = set; then
3893 enableval="$enable_werror"
3896 if test x$is_release = x ; then
3897 # Default to "yes" on development branches.
3900 # Default to "no" on release branches.
3904 if test x$enable_werror = xyes ; then
3909 # Enable expensive internal checks
3910 # Check whether --enable-checking or --disable-checking was given.
3911 if test "${enable_checking+set}" = set; then
3912 enableval="$enable_checking"
3916 ac_rtlflag_checking=
3918 ac_gc_always_collect=
3921 case "${enableval}" in
3922 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3923 ac_rtlflag_checking=1 ; ac_assert_checking=1 ;;
3925 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3926 set fnord $enableval; shift
3928 ac_assert_checking=1
3932 assert) ac_assert_checking=1 ;;
3933 fold) ac_fold_checking=1 ;;
3934 gc) ac_gc_checking=1 ;;
3935 gcac) ac_gc_always_collect=1 ;;
3936 misc) ac_checking=1 ;;
3937 rtlflag) ac_rtlflag_checking=1 ;;
3938 rtl) ac_rtl_checking=1 ;;
3939 tree) ac_tree_checking=1 ;;
3940 valgrind) ac_checking_valgrind=1 ;;
3941 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3942 echo "$as_me: error: unknown check category $check" >&2;}
3943 { (exit 1); exit 1; }; } ;;
3951 # Determine the default checks.
3952 if test x$is_release = x ; then
3953 # Enable some checks for development versions of GCC
3954 ac_assert_checking=1;
3955 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3957 # Disable all but assertions for release versions of GCC.
3958 ac_assert_checking=1;
3962 if test x$ac_checking != x ; then
3964 cat >>confdefs.h <<\_ACEOF
3965 #define ENABLE_CHECKING 1
3968 nocommon_flag=-fno-common
3971 if test x$ac_assert_checking != x ; then
3973 cat >>confdefs.h <<\_ACEOF
3974 #define ENABLE_ASSERT_CHECKING 1
3978 if test x$ac_tree_checking != x ; then
3980 cat >>confdefs.h <<\_ACEOF
3981 #define ENABLE_TREE_CHECKING 1
3984 TREEBROWSER=tree-browser.o
3987 if test x$ac_rtl_checking != x ; then
3989 cat >>confdefs.h <<\_ACEOF
3990 #define ENABLE_RTL_CHECKING 1
3994 if test x$ac_rtlflag_checking != x ; then
3996 cat >>confdefs.h <<\_ACEOF
3997 #define ENABLE_RTL_FLAG_CHECKING 1
4001 if test x$ac_gc_checking != x ; then
4003 cat >>confdefs.h <<\_ACEOF
4004 #define ENABLE_GC_CHECKING 1
4008 if test x$ac_gc_always_collect != x ; then
4010 cat >>confdefs.h <<\_ACEOF
4011 #define ENABLE_GC_ALWAYS_COLLECT 1
4015 if test x$ac_fold_checking != x ; then
4017 cat >>confdefs.h <<\_ACEOF
4018 #define ENABLE_FOLD_CHECKING 1
4022 valgrind_path_defines=
4026 echo "$as_me:$LINENO: checking for egrep" >&5
4027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4028 if test "${ac_cv_prog_egrep+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4032 then ac_cv_prog_egrep='grep -E'
4033 else ac_cv_prog_egrep='egrep'
4036 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4037 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4038 EGREP=$ac_cv_prog_egrep
4041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4043 if test "${ac_cv_header_stdc+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>conftest.er1
4069 grep -v '^ *+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_cv_header_stdc=yes
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 ac_cv_header_stdc=no
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 if test $ac_cv_header_stdc = yes; then
4096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4097 cat >conftest.$ac_ext <<_ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4107 $EGREP "memchr" >/dev/null 2>&1; then
4110 ac_cv_header_stdc=no
4116 if test $ac_cv_header_stdc = yes; then
4117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4118 cat >conftest.$ac_ext <<_ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4128 $EGREP "free" >/dev/null 2>&1; then
4131 ac_cv_header_stdc=no
4137 if test $ac_cv_header_stdc = yes; then
4138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4139 if test "$cross_compiling" = yes; then
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4149 #if ((' ' & 0x0FF) == 0x020)
4150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4153 # define ISLOWER(c) \
4154 (('a' <= (c) && (c) <= 'i') \
4155 || ('j' <= (c) && (c) <= 'r') \
4156 || ('s' <= (c) && (c) <= 'z'))
4157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4165 for (i = 0; i < 256; i++)
4166 if (XOR (islower (i), ISLOWER (i))
4167 || toupper (i) != TOUPPER (i))
4172 rm -f conftest$ac_exeext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4174 (eval $ac_link) 2>&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4185 echo "$as_me: program exited with status $ac_status" >&5
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4190 ac_cv_header_stdc=no
4192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4196 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4197 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4198 if test $ac_cv_header_stdc = yes; then
4200 cat >>confdefs.h <<\_ACEOF
4201 #define STDC_HEADERS 1
4206 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4216 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4217 inttypes.h stdint.h unistd.h
4219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4220 echo "$as_me:$LINENO: checking for $ac_header" >&5
4221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 $ac_includes_default
4233 #include <$ac_header>
4235 rm -f conftest.$ac_objext
4236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4237 (eval $ac_compile) 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try='test -s conftest.$ac_objext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 eval "$as_ac_Header=yes"
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 eval "$as_ac_Header=no"
4263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4268 cat >>confdefs.h <<_ACEOF
4269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4277 if test "${ac_cv_header_valgrind_h+set}" = set; then
4278 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4279 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4280 if test "${ac_cv_header_valgrind_h+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4284 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4286 # Is the header compilable?
4287 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4288 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 $ac_includes_default
4296 #include <valgrind.h>
4298 rm -f conftest.$ac_objext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300 (eval $ac_compile) 2>conftest.er1
4302 grep -v '^ *+' conftest.er1 >conftest.err
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } &&
4307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_header_compiler=yes
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 ac_header_compiler=no
4326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4328 echo "${ECHO_T}$ac_header_compiler" >&6
4330 # Is the header present?
4331 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4332 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4333 cat >conftest.$ac_ext <<_ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 #include <valgrind.h>
4341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4344 grep -v '^ *+' conftest.er1 >conftest.err
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } >/dev/null; then
4349 if test -s conftest.err; then
4350 ac_cpp_err=$ac_c_preproc_warn_flag
4351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4358 if test -z "$ac_cpp_err"; then
4359 ac_header_preproc=yes
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4364 ac_header_preproc=no
4366 rm -f conftest.err conftest.$ac_ext
4367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4368 echo "${ECHO_T}$ac_header_preproc" >&6
4370 # So? What about this header?
4371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4373 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4374 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4375 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4376 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4377 ac_header_preproc=yes
4380 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4381 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4382 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4383 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4384 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4385 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4386 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4387 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4388 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4389 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4390 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4391 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4394 ## ------------------------------------------ ##
4395 ## Report this to the AC_PACKAGE_NAME lists. ##
4396 ## ------------------------------------------ ##
4399 sed "s/^/$as_me: WARNING: /" >&2
4402 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4403 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4404 if test "${ac_cv_header_valgrind_h+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 ac_cv_header_valgrind_h=$ac_header_preproc
4409 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4410 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4413 if test $ac_cv_header_valgrind_h = yes; then
4421 if test x$ac_checking_valgrind != x ; then
4422 # It is certainly possible that there's valgrind but no valgrind.h.
4423 # GCC relies on making annotations so we must have both.
4424 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4425 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <valgrind/memcheck.h>
4433 #ifndef VALGRIND_DISCARD
4434 #error VALGRIND_DISCARD not defined
4437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4440 grep -v '^ *+' conftest.er1 >conftest.err
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } >/dev/null; then
4445 if test -s conftest.err; then
4446 ac_cpp_err=$ac_c_preproc_warn_flag
4447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4454 if test -z "$ac_cpp_err"; then
4455 gcc_cv_header_valgrind_memcheck_h=yes
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 gcc_cv_header_valgrind_memcheck_h=no
4462 rm -f conftest.err conftest.$ac_ext
4463 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4464 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4465 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4466 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4467 cat >conftest.$ac_ext <<_ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 #include <memcheck.h>
4474 #ifndef VALGRIND_DISCARD
4475 #error VALGRIND_DISCARD not defined
4478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4481 grep -v '^ *+' conftest.er1 >conftest.err
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } >/dev/null; then
4486 if test -s conftest.err; then
4487 ac_cpp_err=$ac_c_preproc_warn_flag
4488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4495 if test -z "$ac_cpp_err"; then
4496 gcc_cv_header_memcheck_h=yes
4498 echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 gcc_cv_header_memcheck_h=no
4503 rm -f conftest.err conftest.$ac_ext
4504 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4505 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4507 # Prepare PATH_SEPARATOR.
4508 # The user is always right.
4509 if test "${PATH_SEPARATOR+set}" != set; then
4510 echo "#! /bin/sh" >conf$$.sh
4511 echo "exit 0" >>conf$$.sh
4513 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4521 # Find out how to test for executable files. Don't use a zero-byte file,
4522 # as systems may use methods other than mode bits to determine executability.
4523 cat >conf$$.file <<_ASEOF
4527 chmod +x conf$$.file
4528 if test -x conf$$.file >/dev/null 2>&1; then
4529 ac_executable_p="test -x"
4531 ac_executable_p="test -f"
4535 # Extract the first word of "valgrind", so it can be a program name with args.
4536 set dummy valgrind; ac_word=$2
4537 echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539 if test "${ac_cv_path_valgrind_path+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 case "$valgrind_path" in
4544 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4547 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4548 for ac_dir in $PATH; do
4550 test -z "$ac_dir" && ac_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4553 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4554 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4564 valgrind_path="$ac_cv_path_valgrind_path"
4565 if test -n "$valgrind_path"; then
4566 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4567 echo "${ECHO_T}$valgrind_path" >&6
4569 echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4573 if test "x$valgrind_path" = "x" \
4574 || (test $have_valgrind_h = no \
4575 && test $gcc_cv_header_memcheck_h = no \
4576 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4577 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4578 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4579 { (exit 1); exit 1; }; }
4581 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4582 valgrind_command="$valgrind_path -q"
4584 cat >>confdefs.h <<\_ACEOF
4585 #define ENABLE_VALGRIND_CHECKING 1
4588 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4590 cat >>confdefs.h <<\_ACEOF
4591 #define HAVE_VALGRIND_MEMCHECK_H 1
4595 if test $gcc_cv_header_memcheck_h = yes; then
4597 cat >>confdefs.h <<\_ACEOF
4598 #define HAVE_MEMCHECK_H 1
4606 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4607 if test "${enable_mapped_location+set}" = set; then
4608 enableval="$enable_mapped_location"
4611 enable_mapped_location=no
4614 if test "$enable_mapped_location" = yes ; then
4616 cat >>confdefs.h <<\_ACEOF
4617 #define USE_MAPPED_LOCATION 1
4622 # Enable code coverage collection
4623 # Check whether --enable-coverage or --disable-coverage was given.
4624 if test "${enable_coverage+set}" = set; then
4625 enableval="$enable_coverage"
4626 case "${enableval}" in
4628 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4631 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4634 # a.k.a. --disable-coverage
4638 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4639 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4640 { (exit 1); exit 1; }; }
4648 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4649 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4650 enableval="$enable_gather_detailed_mem_stats"
4653 enable_gather_detailed_mem_stats=no
4655 if test x$enable_gather_detailed_mem_stats = xyes ; then
4657 cat >>confdefs.h <<\_ACEOF
4658 #define GATHER_STATISTICS 1
4663 # -------------------------------
4664 # Miscenalleous configure options
4665 # -------------------------------
4669 # Check whether --with-stabs or --without-stabs was given.
4670 if test "${with_stabs+set}" = set; then
4671 withval="$with_stabs"
4677 # Determine whether or not multilibs are enabled.
4678 # Check whether --enable-multilib or --disable-multilib was given.
4679 if test "${enable_multilib+set}" = set; then
4680 enableval="$enable_multilib"
4687 # Enable __cxa_atexit for C++.
4688 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4689 if test "${enable___cxa_atexit+set}" = set; then
4690 enableval="$enable___cxa_atexit"
4695 # Pass with no value to take the default
4696 # Pass with a value to specify a thread package
4697 # Check whether --enable-threads or --disable-threads was given.
4698 if test "${enable_threads+set}" = set; then
4699 enableval="$enable_threads"
4705 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4706 if test "${enable_objc_gc+set}" = set; then
4707 enableval="$enable_objc_gc"
4708 if test x$enable_objc_gc = xno; then
4718 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4719 if test "${with_dwarf2+set}" = set; then
4720 withval="$with_dwarf2"
4721 dwarf2="$with_dwarf2"
4726 # Check whether --enable-shared or --disable-shared was given.
4727 if test "${enable_shared+set}" = set; then
4728 enableval="$enable_shared"
4730 case $enable_shared in
4734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4735 for pkg in $enableval; do
4736 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4750 # Check whether --with-sysroot or --without-sysroot was given.
4751 if test "${with_sysroot+set}" = set; then
4752 withval="$with_sysroot"
4754 case ${with_sysroot} in
4755 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4756 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4759 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4760 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4762 if test "x$exec_prefix" = xNONE; then
4763 if test "x$prefix" = xNONE; then
4764 test_prefix=/usr/local
4769 test_prefix=$exec_prefix
4771 case ${TARGET_SYSTEM_ROOT} in
4772 "${test_prefix}"|"${test_prefix}/"*|\
4773 '${exec_prefix}'|'${exec_prefix}/'*)
4774 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4775 TARGET_SYSTEM_ROOT_DEFINE="$t"
4782 TARGET_SYSTEM_ROOT_DEFINE=
4783 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4790 # Build with intermodule optimisations
4791 # Check whether --enable-intermodule or --disable-intermodule was given.
4792 if test "${enable_intermodule+set}" = set; then
4793 enableval="$enable_intermodule"
4794 case ${enable_intermodule} in
4795 yes) onestep="-onestep";;
4803 # Sanity check enable_languages in case someone does not run the toplevel
4804 # configure # script.
4805 # Check whether --enable-languages or --disable-languages was given.
4806 if test "${enable_languages+set}" = set; then
4807 enableval="$enable_languages"
4808 case ,${enable_languages}, in
4810 # go safe -- we cannot be much sure without the toplevel
4812 # analysis of which target libs are present and usable
4816 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4817 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4818 { (exit 1); exit 1; }; }
4823 enable_languages=c,${enable_languages}
4831 for lang in ${srcdir}/*/config-lang.in
4834 # The odd quoting in the next line works around
4835 # an apparent bug in bash 1.12 on linux.
4836 ${srcdir}/[*]/config-lang.in) ;;
4838 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4839 if test "x$lang_alias" = x
4841 echo "$lang doesn't set \$language." 1>&2
4844 case ",$enable_languages," in
4846 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4853 # -------------------------
4854 # Checks for other programs
4855 # -------------------------
4857 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4858 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4859 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4860 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 cat >conftest.make <<\_ACEOF
4865 @echo 'ac_maketemp="$(MAKE)"'
4867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4868 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4869 if test -n "$ac_maketemp"; then
4870 eval ac_cv_prog_make_${ac_make}_set=yes
4872 eval ac_cv_prog_make_${ac_make}_set=no
4876 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4877 echo "$as_me:$LINENO: result: yes" >&5
4878 echo "${ECHO_T}yes" >&6
4881 echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6
4883 SET_MAKE="MAKE=${MAKE-make}"
4887 # Find some useful tools
4888 for ac_prog in gawk mawk nawk awk
4890 # Extract the first word of "$ac_prog", so it can be a program name with args.
4891 set dummy $ac_prog; ac_word=$2
4892 echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4894 if test "${ac_cv_prog_AWK+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 if test -n "$AWK"; then
4898 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_prog_AWK="$ac_prog"
4908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 if test -n "$AWK"; then
4918 echo "$as_me:$LINENO: result: $AWK" >&5
4919 echo "${ECHO_T}$AWK" >&6
4921 echo "$as_me:$LINENO: result: no" >&5
4922 echo "${ECHO_T}no" >&6
4925 test -n "$AWK" && break
4928 # We need awk to create options.c and options.h.
4929 # Bail out if it's missing.
4931 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4932 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4933 { (exit 1); exit 1; }; } ;;
4936 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4937 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4938 if test "${gcc_cv_prog_LN_S+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 rm -f conftestdata_t
4942 echo >conftestdata_f
4943 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4945 gcc_cv_prog_LN_S="ln -s"
4947 if ln conftestdata_f conftestdata_t 2>/dev/null
4954 rm -f conftestdata_f conftestdata_t
4957 LN_S="$gcc_cv_prog_LN_S"
4958 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4959 echo "$as_me:$LINENO: result: yes" >&5
4960 echo "${ECHO_T}yes" >&6
4962 if test "$gcc_cv_prog_LN_S" = "ln"; then
4963 echo "$as_me:$LINENO: result: no, using ln" >&5
4964 echo "${ECHO_T}no, using ln" >&6
4966 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4967 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4971 echo "$as_me:$LINENO: checking whether ln works" >&5
4972 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4973 if test "${acx_cv_prog_LN+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 rm -f conftestdata_t
4977 echo >conftestdata_f
4978 if ln conftestdata_f conftestdata_t 2>/dev/null
4984 rm -f conftestdata_f conftestdata_t
4987 if test $acx_cv_prog_LN = no; then
4989 echo "$as_me:$LINENO: result: no, using $LN" >&5
4990 echo "${ECHO_T}no, using $LN" >&6
4992 LN="$acx_cv_prog_LN"
4993 echo "$as_me:$LINENO: result: yes" >&5
4994 echo "${ECHO_T}yes" >&6
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5000 echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 RANLIB=$ac_cv_prog_RANLIB
5025 if test -n "$RANLIB"; then
5026 echo "$as_me:$LINENO: result: $RANLIB" >&5
5027 echo "${ECHO_T}$RANLIB" >&6
5029 echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6
5034 if test -z "$ac_cv_prog_RANLIB"; then
5035 ac_ct_RANLIB=$RANLIB
5036 # Extract the first word of "ranlib", so it can be a program name with args.
5037 set dummy ranlib; ac_word=$2
5038 echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 if test -n "$ac_ct_RANLIB"; then
5044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_ac_ct_RANLIB="ranlib"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5064 if test -n "$ac_ct_RANLIB"; then
5065 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5072 RANLIB=$ac_ct_RANLIB
5074 RANLIB="$ac_cv_prog_RANLIB"
5079 # By default, the Darwin ranlib will not treat common symbols as
5080 # definitions when building the archive table of contents. Other
5081 # ranlibs do that; pass an option to the Darwin ranlib that makes
5082 # it behave similarly.
5090 # Find a good install program. We prefer a C program (faster),
5091 # so one script is as good as another. But avoid the broken or
5092 # incompatible versions:
5093 # SysV /etc/install, /usr/sbin/install
5094 # SunOS /usr/etc/install
5095 # IRIX /sbin/install
5097 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5098 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5099 # ./install, which can be erroneously created by make from ./install.sh.
5100 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5101 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5102 if test -z "$INSTALL"; then
5103 if test "${ac_cv_path_install+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5107 for ac_dir in $PATH; do
5108 # Account for people who put trailing slashes in PATH elements.
5110 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5112 # OSF1 and SCO ODT 3.0 have their own names for install.
5113 for ac_prog in ginstall scoinst install; do
5114 if test -f $ac_dir/$ac_prog; then
5115 if test $ac_prog = install &&
5116 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5117 # AIX install. It has an incompatible calling convention.
5118 # OSF/1 installbsd also uses dspmsg, but is usable.
5121 ac_cv_path_install="$ac_dir/$ac_prog -c"
5132 if test "${ac_cv_path_install+set}" = set; then
5133 INSTALL="$ac_cv_path_install"
5135 # As a last resort, use the slow shell script. We don't cache a
5136 # path for INSTALL within a source directory, because that will
5137 # break other packages using the cache if that directory is
5138 # removed, or if the path is relative.
5139 INSTALL="$ac_install_sh"
5142 echo "$as_me:$LINENO: result: $INSTALL" >&5
5143 echo "${ECHO_T}$INSTALL" >&6
5145 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5146 # It thinks the first close brace ends the variable substitution.
5147 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5152 # See if cmp has --ignore-initial.
5153 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5154 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5155 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 gcc_cv_prog_cmp_skip=slowcompare
5161 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5162 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5165 gcc_cv_prog_cmp_skip=gnucompare
5168 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5169 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5170 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5173 gcc_cv_prog_cmp_skip=fastcompare
5180 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5181 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5182 make_compare_target=$gcc_cv_prog_cmp_skip
5186 # See if we have the mktemp command.
5187 # Extract the first word of "mktemp", so it can be a program name with args.
5188 set dummy mktemp; ac_word=$2
5189 echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 if test -n "$have_mktemp_command"; then
5195 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_have_mktemp_command="yes"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5214 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5215 if test -n "$have_mktemp_command"; then
5216 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5217 echo "${ECHO_T}$have_mktemp_command" >&6
5219 echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5224 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
5226 # See if makeinfo has been installed and is modern enough
5227 # that we can use it.
5228 # Extract the first word of "makeinfo", so it can be a program name with args.
5229 set dummy makeinfo; ac_word=$2
5230 echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5232 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 if test -n "$MAKEINFO"; then
5236 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245 ac_cv_prog_MAKEINFO="makeinfo"
5246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 MAKEINFO=$ac_cv_prog_MAKEINFO
5255 if test -n "$MAKEINFO"; then
5256 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5257 echo "${ECHO_T}$MAKEINFO" >&6
5259 echo "$as_me:$LINENO: result: no" >&5
5260 echo "${ECHO_T}no" >&6
5263 if test -n "$MAKEINFO"; then
5264 # Found it, now check the version.
5265 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5266 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5267 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 ac_prog_version=`$MAKEINFO --version 2>&1 |
5271 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5272 echo "configure:5272: version of makeinfo is $ac_prog_version" >&5
5273 case $ac_prog_version in
5274 '') gcc_cv_prog_makeinfo_modern=no;;
5276 gcc_cv_prog_makeinfo_modern=yes;;
5277 *) gcc_cv_prog_makeinfo_modern=no;;
5281 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5282 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5284 gcc_cv_prog_makeinfo_modern=no
5287 if test $gcc_cv_prog_makeinfo_modern = no; then
5288 MAKEINFO="$MISSING makeinfo"
5289 { echo "$as_me:$LINENO: WARNING:
5290 *** Makeinfo is missing or too old.
5291 *** Info documentation will not be built." >&5
5292 echo "$as_me: WARNING:
5293 *** Makeinfo is missing or too old.
5294 *** Info documentation will not be built." >&2;}
5301 # Is pod2man recent enough to regenerate manpages?
5302 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5303 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5304 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5305 echo "$as_me:$LINENO: result: yes" >&5
5306 echo "${ECHO_T}yes" >&6
5307 GENERATED_MANPAGES=generated-manpages
5309 echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5318 # Extract the first word of "$ac_prog", so it can be a program name with args.
5319 set dummy $ac_prog; ac_word=$2
5320 echo "$as_me:$LINENO: checking for $ac_word" >&5
5321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5322 if test "${ac_cv_prog_FLEX+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 if test -n "$FLEX"; then
5326 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_FLEX="$ac_prog"
5336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 FLEX=$ac_cv_prog_FLEX
5345 if test -n "$FLEX"; then
5346 echo "$as_me:$LINENO: result: $FLEX" >&5
5347 echo "${ECHO_T}$FLEX" >&6
5349 echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6
5353 test -n "$FLEX" && break
5355 test -n "$FLEX" || FLEX="$MISSING flex"
5359 for ac_prog in bison
5361 # Extract the first word of "$ac_prog", so it can be a program name with args.
5362 set dummy $ac_prog; ac_word=$2
5363 echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5365 if test "${ac_cv_prog_BISON+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 if test -n "$BISON"; then
5369 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_prog_BISON="$ac_prog"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 BISON=$ac_cv_prog_BISON
5388 if test -n "$BISON"; then
5389 echo "$as_me:$LINENO: result: $BISON" >&5
5390 echo "${ECHO_T}$BISON" >&6
5392 echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5396 test -n "$BISON" && break
5398 test -n "$BISON" || BISON="$MISSING bison"
5401 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
5402 # check for build == host before using them.
5405 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
5406 && test -d ../binutils ; then
5407 NM='$(objdir)/../binutils/nm-new'
5409 # Extract the first word of "nm", so it can be a program name with args.
5410 set dummy nm; ac_word=$2
5411 echo "$as_me:$LINENO: checking for $ac_word" >&5
5412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5413 if test "${ac_cv_prog_NM+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 if test -n "$NM"; then
5417 ac_cv_prog_NM="$NM" # Let the user override the test.
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5437 if test -n "$NM"; then
5438 echo "$as_me:$LINENO: result: $NM" >&5
5439 echo "${ECHO_T}$NM" >&6
5441 echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6
5448 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
5449 && test -d ../binutils ; then
5450 AR='$(objdir)/../binutils/ar'
5452 # Extract the first word of "ar", so it can be a program name with args.
5453 set dummy ar; ac_word=$2
5454 echo "$as_me:$LINENO: checking for $ac_word" >&5
5455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5456 if test "${ac_cv_prog_AR+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 if test -n "$AR"; then
5460 ac_cv_prog_AR="$AR" # Let the user override the test.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
5480 if test -n "$AR"; then
5481 echo "$as_me:$LINENO: result: $AR" >&5
5482 echo "${ECHO_T}$AR" >&6
5484 echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6
5491 # --------------------
5492 # Checks for C headers
5493 # --------------------
5495 echo "$as_me:$LINENO: checking for GNU C library" >&5
5496 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5497 if test "${gcc_cv_glibc+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 cat >conftest.$ac_ext <<_ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 #include <features.h>
5511 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5512 #error Not a GNU C library system
5518 rm -f conftest.$ac_objext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5520 (eval $ac_compile) 2>conftest.er1
5522 grep -v '^ *+' conftest.er1 >conftest.err
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; } &&
5533 { ac_try='test -s conftest.$ac_objext'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5549 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5550 echo "${ECHO_T}$gcc_cv_glibc" >&6
5551 if test $gcc_cv_glibc = yes; then
5553 cat >>confdefs.h <<\_ACEOF
5554 #define _GNU_SOURCE 1
5559 # Need to reject headers which give warnings, so that the -Werror bootstrap
5560 # works later. *sigh* This needs to come before all header checks.
5562 ac_c_preproc_warn_flag=yes
5564 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5565 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5566 if test "${ac_cv_header_stdc+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 cat >conftest.$ac_ext <<_ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5588 rm -f conftest.$ac_objext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590 (eval $ac_compile) 2>conftest.er1
5592 grep -v '^ *+' conftest.er1 >conftest.err
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; } &&
5603 { ac_try='test -s conftest.$ac_objext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_header_stdc=yes
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5614 ac_cv_header_stdc=no
5616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5618 if test $ac_cv_header_stdc = yes; then
5619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5620 cat >conftest.$ac_ext <<_ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "memchr" >/dev/null 2>&1; then
5633 ac_cv_header_stdc=no
5639 if test $ac_cv_header_stdc = yes; then
5640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 $EGREP "free" >/dev/null 2>&1; then
5654 ac_cv_header_stdc=no
5660 if test $ac_cv_header_stdc = yes; then
5661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5662 if test "$cross_compiling" = yes; then
5665 cat >conftest.$ac_ext <<_ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5672 #if ((' ' & 0x0FF) == 0x020)
5673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5676 # define ISLOWER(c) \
5677 (('a' <= (c) && (c) <= 'i') \
5678 || ('j' <= (c) && (c) <= 'r') \
5679 || ('s' <= (c) && (c) <= 'z'))
5680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5688 for (i = 0; i < 256; i++)
5689 if (XOR (islower (i), ISLOWER (i))
5690 || toupper (i) != TOUPPER (i))
5695 rm -f conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5708 echo "$as_me: program exited with status $ac_status" >&5
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5713 ac_cv_header_stdc=no
5715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5721 if test $ac_cv_header_stdc = yes; then
5723 cat >>confdefs.h <<\_ACEOF
5724 #define STDC_HEADERS 1
5729 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5730 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5731 if test "${ac_cv_header_time+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 #include <sys/time.h>
5747 if ((struct tm *) 0)
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5757 grep -v '^ *+' conftest.er1 >conftest.err
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest.$ac_objext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_cv_header_time=yes
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 ac_cv_header_time=no
5781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5783 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5784 echo "${ECHO_T}$ac_cv_header_time" >&6
5785 if test $ac_cv_header_time = yes; then
5787 cat >>confdefs.h <<\_ACEOF
5788 #define TIME_WITH_SYS_TIME 1
5793 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5794 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5795 if test "${gcc_cv_header_string+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5805 #include <strings.h>
5814 rm -f conftest.$ac_objext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816 (eval $ac_compile) 2>conftest.er1
5818 grep -v '^ *+' conftest.er1 >conftest.err
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; } &&
5829 { ac_try='test -s conftest.$ac_objext'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
5835 gcc_cv_header_string=yes
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5840 gcc_cv_header_string=no
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5845 echo "${ECHO_T}$gcc_cv_header_string" >&6
5846 if test $gcc_cv_header_string = yes; then
5848 cat >>confdefs.h <<\_ACEOF
5849 #define STRING_WITH_STRINGS 1
5854 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5855 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5856 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 cat >conftest.$ac_ext <<_ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 #include <sys/types.h>
5866 #include <sys/wait.h>
5868 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5871 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5879 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5884 rm -f conftest.$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886 (eval $ac_compile) 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; } &&
5899 { ac_try='test -s conftest.$ac_objext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 ac_cv_header_sys_wait_h=yes
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 ac_cv_header_sys_wait_h=no
5912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5914 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5915 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5916 if test $ac_cv_header_sys_wait_h = yes; then
5918 cat >>confdefs.h <<\_ACEOF
5919 #define HAVE_SYS_WAIT_H 1
5945 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5946 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5947 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5948 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5951 echo "$as_me:$LINENO: checking for $ac_header" >&5
5952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 cat >conftest.$ac_ext <<_ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <$ac_header>
5964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5967 grep -v '^ *+' conftest.er1 >conftest.err
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } >/dev/null; then
5972 if test -s conftest.err; then
5973 ac_cpp_err=$ac_c_preproc_warn_flag
5974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5981 if test -z "$ac_cpp_err"; then
5982 eval "$as_ac_Header=yes"
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987 eval "$as_ac_Header=no"
5989 rm -f conftest.err conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5994 cat >>confdefs.h <<_ACEOF
5995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6002 # Check for thread headers.
6003 echo "$as_me:$LINENO: checking for thread.h" >&5
6004 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6005 if test "${ac_cv_header_thread_h+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6019 grep -v '^ *+' conftest.er1 >conftest.err
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } >/dev/null; then
6024 if test -s conftest.err; then
6025 ac_cpp_err=$ac_c_preproc_warn_flag
6026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6033 if test -z "$ac_cpp_err"; then
6034 ac_cv_header_thread_h=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_cv_header_thread_h=no
6041 rm -f conftest.err conftest.$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6044 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6045 if test $ac_cv_header_thread_h = yes; then
6051 echo "$as_me:$LINENO: checking for pthread.h" >&5
6052 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6053 if test "${ac_cv_header_pthread_h+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <pthread.h>
6064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6067 grep -v '^ *+' conftest.er1 >conftest.err
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } >/dev/null; then
6072 if test -s conftest.err; then
6073 ac_cpp_err=$ac_c_preproc_warn_flag
6074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6081 if test -z "$ac_cpp_err"; then
6082 ac_cv_header_pthread_h=yes
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 ac_cv_header_pthread_h=no
6089 rm -f conftest.err conftest.$ac_ext
6091 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6092 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6093 if test $ac_cv_header_pthread_h = yes; then
6100 # These tests can't be done till we know if we have limits.h.
6101 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6102 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6103 if test "${gcc_cv_decl_char_bit+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 #ifdef HAVE_LIMITS_H
6119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6120 $EGREP "found" >/dev/null 2>&1; then
6121 gcc_cv_decl_char_bit=yes
6123 gcc_cv_decl_char_bit=no
6129 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6130 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6131 if test $gcc_cv_decl_char_bit = no; then
6132 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6133 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6134 if test "${gcc_cv_c_nbby+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 while test $i -lt 65; do
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6151 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6152 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6158 rm -f conftest.$ac_objext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>conftest.er1
6162 grep -v '^ *+' conftest.er1 >conftest.err
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest.$ac_objext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 gcc_cv_c_nbby=$i; break
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6188 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6191 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6192 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6193 if test $gcc_cv_c_nbby = failed; then
6194 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6195 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6196 { (exit 1); exit 1; }; }
6199 cat >>confdefs.h <<_ACEOF
6200 #define CHAR_BIT $gcc_cv_c_nbby
6205 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6206 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6207 if test "${ac_cv_c_bigendian+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 ac_cv_c_bigendian=unknown
6211 # See if sys/param.h defines the BYTE_ORDER macro.
6212 cat >conftest.$ac_ext <<_ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <sys/types.h>
6219 #include <sys/param.h>
6224 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6235 grep -v '^ *+' conftest.er1 >conftest.err
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 # It does; now see whether it defined to BIG_ENDIAN or not.
6253 cat >conftest.$ac_ext <<_ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 #include <sys/types.h>
6260 #include <sys/param.h>
6265 #if BYTE_ORDER != BIG_ENDIAN
6272 rm -f conftest.$ac_objext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>conftest.er1
6276 grep -v '^ *+' conftest.er1 >conftest.err
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_cv_c_bigendian=yes
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6298 ac_cv_c_bigendian=no
6300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6307 if test $ac_cv_c_bigendian = unknown; then
6308 if test "$cross_compiling" = yes; then
6309 echo $ac_n "cross-compiling... " 2>&6
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6318 /* Are we little or big endian? From Harbison&Steele. */
6322 char c[sizeof (long)];
6325 exit (u.c[sizeof (long) - 1] == 1);
6328 rm -f conftest$ac_exeext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330 (eval $ac_link) 2>&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_c_bigendian=no
6341 echo "$as_me: program exited with status $ac_status" >&5
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6346 ac_cv_c_bigendian=yes
6348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6354 if test $ac_cv_c_bigendian = unknown; then
6355 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6356 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6358 cat >conftest.c <<EOF
6359 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6360 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6361 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6362 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6363 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6364 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6365 int main() { _ascii (); _ebcdic (); return 0; }
6367 if test -f conftest.c ; then
6368 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6369 if test `grep -l BIGenDianSyS conftest.o` ; then
6370 echo $ac_n ' big endian probe OK, ' 1>&6
6371 ac_cv_c_bigendian=yes
6373 if test `grep -l LiTTleEnDian conftest.o` ; then
6374 echo $ac_n ' little endian probe OK, ' 1>&6
6375 if test $ac_cv_c_bigendian = yes ; then
6376 ac_cv_c_bigendian=unknown;
6378 ac_cv_c_bigendian=no
6381 echo $ac_n 'guessing bigendian ... ' >&6
6384 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6385 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6387 if test $ac_cv_c_bigendian = yes; then
6389 cat >>confdefs.h <<\_ACEOF
6390 #define WORDS_BIGENDIAN 1
6394 cat >>confdefs.h <<\_ACEOF
6395 #define HOST_WORDS_BIG_ENDIAN 1
6403 cat >>confdefs.h <<_ACEOF
6404 #define BYTEORDER $BYTEORDER
6407 if test $ac_cv_c_bigendian = unknown; then
6408 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6409 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6410 { (exit 1); exit 1; }; }
6418 # Stage specific cflags for build.
6422 if test x$GCC = xyes
6424 stage1_cflags="-Wa,-J"
6430 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6431 # sources; use -no-cpp-precomp to get to GNU cpp.
6432 # Apple's GCC has bugs in designated initializer handling, so disable
6434 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6439 # These libraries may be used by collect2.
6440 # We may need a special search path to get them linked.
6441 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6442 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6443 if test "${gcc_cv_collect2_libs+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 for libs in '' -lld -lmld \
6448 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6449 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6459 /* Override any gcc2 internal prototype to avoid an error. */
6463 /* We use char because int might match the return type of a gcc2
6464 builtin and then its argument prototype would still apply. */
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>conftest.er1
6478 grep -v '^ *+' conftest.er1 >conftest.err
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; } &&
6489 { ac_try='test -s conftest$ac_exeext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 gcc_cv_collect2_libs="$libs"; break
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6501 rm -f conftest.err conftest.$ac_objext \
6502 conftest$ac_exeext conftest.$ac_ext
6505 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6507 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6508 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6509 case $gcc_cv_collect2_libs in
6511 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6515 # When building Ada code on Alpha, we need exc_resume which is usually in
6516 # -lexc. So test for it.
6519 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6520 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6521 if test "${ac_cv_search_exc_resume+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 ac_func_search_save_LIBS=$LIBS
6525 ac_cv_search_exc_resume=no
6526 cat >conftest.$ac_ext <<_ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6533 /* Override any gcc2 internal prototype to avoid an error. */
6537 /* We use char because int might match the return type of a gcc2
6538 builtin and then its argument prototype would still apply. */
6548 rm -f conftest.$ac_objext conftest$ac_exeext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6550 (eval $ac_link) 2>conftest.er1
6552 grep -v '^ *+' conftest.er1 >conftest.err
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_cv_search_exc_resume="none required"
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6575 rm -f conftest.err conftest.$ac_objext \
6576 conftest$ac_exeext conftest.$ac_ext
6577 if test "$ac_cv_search_exc_resume" = no; then
6578 for ac_lib in exc; do
6579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6587 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604 (eval $ac_link) 2>conftest.er1
6606 grep -v '^ *+' conftest.er1 >conftest.err
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } &&
6611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try='test -s conftest$ac_exeext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_search_exc_resume="-l$ac_lib"
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6630 rm -f conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6634 LIBS=$ac_func_search_save_LIBS
6636 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6637 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6638 if test "$ac_cv_search_exc_resume" != no; then
6639 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6647 # Some systems put ldexp and frexp in libm instead of libc; assume
6648 # they're both in the same place. jcf-dump needs them.
6651 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6652 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6653 if test "${ac_cv_search_ldexp+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 ac_func_search_save_LIBS=$LIBS
6657 ac_cv_search_ldexp=no
6658 cat >conftest.$ac_ext <<_ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6665 /* Override any gcc2 internal prototype to avoid an error. */
6669 /* We use char because int might match the return type of a gcc2
6670 builtin and then its argument prototype would still apply. */
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6682 (eval $ac_link) 2>conftest.er1
6684 grep -v '^ *+' conftest.er1 >conftest.err
6686 cat conftest.err >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest$ac_exeext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 ac_cv_search_ldexp="none required"
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6707 rm -f conftest.err conftest.$ac_objext \
6708 conftest$ac_exeext conftest.$ac_ext
6709 if test "$ac_cv_search_ldexp" = no; then
6711 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6712 cat >conftest.$ac_ext <<_ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6719 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6736 (eval $ac_link) 2>conftest.er1
6738 grep -v '^ *+' conftest.er1 >conftest.err
6740 cat conftest.err >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try='test -s conftest$ac_exeext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_cv_search_ldexp="-l$ac_lib"
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6762 rm -f conftest.err conftest.$ac_objext \
6763 conftest$ac_exeext conftest.$ac_ext
6766 LIBS=$ac_func_search_save_LIBS
6768 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6769 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6770 if test "$ac_cv_search_ldexp" != no; then
6771 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6779 # Use <inttypes.h> only if it exists,
6780 # doesn't clash with <sys/types.h>, and declares intmax_t.
6781 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6782 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6783 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 cat >conftest.$ac_ext <<_ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792 #include <sys/types.h>
6793 #include <inttypes.h>
6802 rm -f conftest.$ac_objext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 (eval $ac_compile) 2>conftest.er1
6806 grep -v '^ *+' conftest.er1 >conftest.err
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; } &&
6817 { ac_try='test -s conftest.$ac_objext'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6823 gcc_cv_header_inttypes_h=yes
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6828 gcc_cv_header_inttypes_h=no
6830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6833 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6834 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6835 if test $gcc_cv_header_inttypes_h = yes; then
6837 cat >>confdefs.h <<\_ACEOF
6838 #define HAVE_INTTYPES_H 1
6869 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6870 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6871 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6872 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6876 echo "$as_me:$LINENO: checking for $ac_func" >&5
6877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6878 if eval "test \"\${$as_ac_var+set}\" = set"; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 cat >conftest.$ac_ext <<_ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6889 #define $ac_func innocuous_$ac_func
6891 /* System header to define __stub macros and hopefully few prototypes,
6892 which can conflict with char $ac_func (); below.
6893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6894 <limits.h> exists even on freestanding compilers. */
6897 # include <limits.h>
6899 # include <assert.h>
6904 /* Override any gcc2 internal prototype to avoid an error. */
6909 /* We use char because int might match the return type of a gcc2
6910 builtin and then its argument prototype would still apply. */
6912 /* The GNU C library defines this for functions which it implements
6913 to always fail with ENOSYS. Some functions are actually named
6914 something starting with __ and the normal name is an alias. */
6915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6918 char (*f) () = $ac_func;
6927 return f != $ac_func;
6932 rm -f conftest.$ac_objext conftest$ac_exeext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934 (eval $ac_link) 2>conftest.er1
6936 grep -v '^ *+' conftest.er1 >conftest.err
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 eval "$as_ac_var=yes"
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 eval "$as_ac_var=no"
6960 rm -f conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6965 if test `eval echo '${'$as_ac_var'}'` = yes; then
6966 cat >>confdefs.h <<_ACEOF
6967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6974 if test x$ac_cv_func_mbstowcs = xyes; then
6975 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6976 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6977 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 if test "$cross_compiling" = yes; then
6981 gcc_cv_func_mbstowcs_works=yes
6983 cat >conftest.$ac_ext <<_ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6996 rm -f conftest$ac_exeext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6998 (eval $ac_link) 2>&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 gcc_cv_func_mbstowcs_works=yes
7009 echo "$as_me: program exited with status $ac_status" >&5
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7014 gcc_cv_func_mbstowcs_works=no
7016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7019 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7020 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7021 if test x$gcc_cv_func_mbstowcs_works = xyes; then
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_WORKING_MBSTOWCS 1
7030 echo "$as_me:$LINENO: checking for ssize_t" >&5
7031 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7032 if test "${ac_cv_type_ssize_t+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 cat >conftest.$ac_ext <<_ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041 $ac_includes_default
7047 if (sizeof (ssize_t))
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7057 grep -v '^ *+' conftest.er1 >conftest.err
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_type_ssize_t=yes
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_type_ssize_t=no
7081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7083 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7084 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7085 if test $ac_cv_type_ssize_t = yes; then
7089 cat >>confdefs.h <<_ACEOF
7096 # Try to determine the array type of the second argument of getgroups
7097 # for the target system (int or gid_t).
7098 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7099 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7100 if test "${ac_cv_type_uid_t+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 cat >conftest.$ac_ext <<_ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 #include <sys/types.h>
7112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7113 $EGREP "uid_t" >/dev/null 2>&1; then
7114 ac_cv_type_uid_t=yes
7121 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7122 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7123 if test $ac_cv_type_uid_t = no; then
7125 cat >>confdefs.h <<\_ACEOF
7130 cat >>confdefs.h <<\_ACEOF
7136 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7137 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7138 if test "${ac_cv_type_getgroups+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 if test "$cross_compiling" = yes; then
7142 ac_cv_type_getgroups=cross
7144 cat >conftest.$ac_ext <<_ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 /* Thanks to Mike Rendell for this test. */
7151 #include <sys/types.h>
7154 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7161 union { gid_t gval; long lval; } val;
7164 for (i = 0; i < NGID; i++)
7165 gidset[i] = val.gval;
7166 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7168 /* Exit non-zero if getgroups seems to require an array of ints. This
7169 happens when gid_t is short but getgroups modifies an array of ints. */
7170 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7173 rm -f conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175 (eval $ac_link) 2>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7184 ac_cv_type_getgroups=gid_t
7186 echo "$as_me: program exited with status $ac_status" >&5
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7191 ac_cv_type_getgroups=int
7193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7195 if test $ac_cv_type_getgroups = cross; then
7196 cat >conftest.$ac_ext <<_ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7207 ac_cv_type_getgroups=gid_t
7209 ac_cv_type_getgroups=int
7215 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7216 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7218 cat >>confdefs.h <<_ACEOF
7219 #define GETGROUPS_T $ac_cv_type_getgroups
7223 if test "${target}" = "${build}"; then
7224 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7227 # This condition may need some tweaking. It should include all
7228 # targets where the array type of the second argument of getgroups
7229 # is int and the type of gid_t is not equivalent to int.
7230 *-*-sunos* | *-*-ultrix*)
7231 TARGET_GETGROUPS_T=int
7234 TARGET_GETGROUPS_T=gid_t
7240 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7241 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7242 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 if test "$cross_compiling" = yes; then
7246 gcc_cv_func_printf_ptr=no
7248 cat >conftest.$ac_ext <<_ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7259 char *p = buf, *q = NULL;
7260 sprintf(buf, "%p", p);
7261 sscanf(buf, "%p", &q);
7265 rm -f conftest$ac_exeext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7267 (eval $ac_link) 2>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7276 gcc_cv_func_printf_ptr=yes
7278 echo "$as_me: program exited with status $ac_status" >&5
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7283 gcc_cv_func_printf_ptr=no
7285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7287 rm -f core core.* *.core
7289 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7290 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7291 if test $gcc_cv_func_printf_ptr = yes ; then
7293 cat >>confdefs.h <<\_ACEOF
7294 #define HAVE_PRINTF_PTR 1
7300 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
7301 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
7302 if test "${ac_cv_header_sys_mman_h+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 cat >conftest.$ac_ext <<_ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 #include <sys/mman.h>
7313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7316 grep -v '^ *+' conftest.er1 >conftest.err
7318 cat conftest.err >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } >/dev/null; then
7321 if test -s conftest.err; then
7322 ac_cpp_err=$ac_c_preproc_warn_flag
7323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7330 if test -z "$ac_cpp_err"; then
7331 ac_cv_header_sys_mman_h=yes
7333 echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7336 ac_cv_header_sys_mman_h=no
7338 rm -f conftest.err conftest.$ac_ext
7340 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
7341 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
7342 if test $ac_cv_header_sys_mman_h = yes; then
7343 gcc_header_sys_mman_h=yes
7345 gcc_header_sys_mman_h=no
7348 echo "$as_me:$LINENO: checking for mmap" >&5
7349 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
7350 if test "${ac_cv_func_mmap+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
7360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7361 #define mmap innocuous_mmap
7363 /* System header to define __stub macros and hopefully few prototypes,
7364 which can conflict with char mmap (); below.
7365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7366 <limits.h> exists even on freestanding compilers. */
7369 # include <limits.h>
7371 # include <assert.h>
7376 /* Override any gcc2 internal prototype to avoid an error. */
7381 /* We use char because int might match the return type of a gcc2
7382 builtin and then its argument prototype would still apply. */
7384 /* The GNU C library defines this for functions which it implements
7385 to always fail with ENOSYS. Some functions are actually named
7386 something starting with __ and the normal name is an alias. */
7387 #if defined (__stub_mmap) || defined (__stub___mmap)
7390 char (*f) () = mmap;
7404 rm -f conftest.$ac_objext conftest$ac_exeext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406 (eval $ac_link) 2>conftest.er1
7408 grep -v '^ *+' conftest.er1 >conftest.err
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } &&
7413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; } &&
7419 { ac_try='test -s conftest$ac_exeext'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7432 rm -f conftest.err conftest.$ac_objext \
7433 conftest$ac_exeext conftest.$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
7436 echo "${ECHO_T}$ac_cv_func_mmap" >&6
7437 if test $ac_cv_func_mmap = yes; then
7443 if test "$gcc_header_sys_mman_h" != yes \
7444 || test "$gcc_func_mmap" != yes; then
7445 gcc_cv_func_mmap_file=no
7446 gcc_cv_func_mmap_dev_zero=no
7447 gcc_cv_func_mmap_anon=no
7449 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7450 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7451 if test "${gcc_cv_func_mmap_file+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 # Add a system to this blacklist if
7455 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7456 # memory area containing the same data that you'd get if you applied
7457 # read() to the same fd. The only system known to have a problem here
7458 # is VMS, where text files have record structure.
7461 gcc_cv_func_mmap_file=no ;;
7463 gcc_cv_func_mmap_file=yes;;
7466 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7467 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7468 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7469 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7470 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 # Add a system to this blacklist if it has mmap() but /dev/zero
7474 # does not exist, or if mmapping /dev/zero does not give anonymous
7475 # zeroed pages with both the following properties:
7476 # 1. If you map N consecutive pages in with one call, and then
7477 # unmap any subset of those pages, the pages that were not
7478 # explicitly unmapped remain accessible.
7479 # 2. If you map two adjacent blocks of memory and then unmap them
7480 # both at once, they must both go away.
7481 # Systems known to be in this category are Windows (all variants),
7484 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7485 gcc_cv_func_mmap_dev_zero=no ;;
7487 gcc_cv_func_mmap_dev_zero=yes;;
7490 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7491 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7493 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7494 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7495 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7496 if test "${gcc_cv_decl_map_anon+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 #include <sys/types.h>
7506 #include <sys/mman.h>
7509 #ifndef MAP_ANONYMOUS
7510 #define MAP_ANONYMOUS MAP_ANON
7516 int n = MAP_ANONYMOUS;
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7525 grep -v '^ *+' conftest.er1 >conftest.err
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; } &&
7536 { ac_try='test -s conftest.$ac_objext'
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; }; then
7542 gcc_cv_decl_map_anon=yes
7544 echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7547 gcc_cv_decl_map_anon=no
7549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7551 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7552 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7554 if test $gcc_cv_decl_map_anon = no; then
7555 gcc_cv_func_mmap_anon=no
7557 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7558 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7559 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7563 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7564 # doesn't give anonymous zeroed pages with the same properties listed
7565 # above for use of /dev/zero.
7566 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7568 vms* | cygwin* | pe | mingw* | sco* | udk* )
7569 gcc_cv_func_mmap_anon=no ;;
7571 gcc_cv_func_mmap_anon=yes;;
7574 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7575 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7579 if test $gcc_cv_func_mmap_file = yes; then
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_MMAP_FILE 1
7586 if test $gcc_cv_func_mmap_dev_zero = yes; then
7588 cat >>confdefs.h <<\_ACEOF
7589 #define HAVE_MMAP_DEV_ZERO 1
7593 if test $gcc_cv_func_mmap_anon = yes; then
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_MMAP_ANON 1
7604 # Under VMS, vfork works very differently than on Unix. The standard test
7605 # won't work, and it isn't easily adaptable. It makes more sense to
7607 ac_cv_func_vfork_works=yes
7610 echo "$as_me:$LINENO: checking for pid_t" >&5
7611 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7612 if test "${ac_cv_type_pid_t+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 cat >conftest.$ac_ext <<_ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 $ac_includes_default
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>conftest.er1
7637 grep -v '^ *+' conftest.er1 >conftest.err
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; } &&
7648 { ac_try='test -s conftest.$ac_objext'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_cv_type_pid_t=yes
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7663 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7664 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7665 if test $ac_cv_type_pid_t = yes; then
7669 cat >>confdefs.h <<_ACEOF
7677 for ac_header in unistd.h vfork.h
7679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7680 echo "$as_me:$LINENO: checking for $ac_header" >&5
7681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 #include <$ac_header>
7693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7696 grep -v '^ *+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } >/dev/null; then
7701 if test -s conftest.err; then
7702 ac_cpp_err=$ac_c_preproc_warn_flag
7703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7710 if test -z "$ac_cpp_err"; then
7711 eval "$as_ac_Header=yes"
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7716 eval "$as_ac_Header=no"
7718 rm -f conftest.err conftest.$ac_ext
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7723 cat >>confdefs.h <<_ACEOF
7724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7732 for ac_func in fork vfork
7734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7735 echo "$as_me:$LINENO: checking for $ac_func" >&5
7736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7737 if eval "test \"\${$as_ac_var+set}\" = set"; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 cat >conftest.$ac_ext <<_ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7748 #define $ac_func innocuous_$ac_func
7750 /* System header to define __stub macros and hopefully few prototypes,
7751 which can conflict with char $ac_func (); below.
7752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7753 <limits.h> exists even on freestanding compilers. */
7756 # include <limits.h>
7758 # include <assert.h>
7763 /* Override any gcc2 internal prototype to avoid an error. */
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7771 /* The GNU C library defines this for functions which it implements
7772 to always fail with ENOSYS. Some functions are actually named
7773 something starting with __ and the normal name is an alias. */
7774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7777 char (*f) () = $ac_func;
7786 return f != $ac_func;
7791 rm -f conftest.$ac_objext conftest$ac_exeext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7793 (eval $ac_link) 2>conftest.er1
7795 grep -v '^ *+' conftest.er1 >conftest.err
7797 cat conftest.err >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } &&
7800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; } &&
7806 { ac_try='test -s conftest$ac_exeext'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; }; then
7812 eval "$as_ac_var=yes"
7814 echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7817 eval "$as_ac_var=no"
7819 rm -f conftest.err conftest.$ac_objext \
7820 conftest$ac_exeext conftest.$ac_ext
7822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7824 if test `eval echo '${'$as_ac_var'}'` = yes; then
7825 cat >>confdefs.h <<_ACEOF
7826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7832 if test "x$ac_cv_func_fork" = xyes; then
7833 echo "$as_me:$LINENO: checking for working fork" >&5
7834 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7835 if test "${ac_cv_func_fork_works+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 if test "$cross_compiling" = yes; then
7839 ac_cv_func_fork_works=cross
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* By Ruediger Kuhlmann. */
7843 #include <sys/types.h>
7845 # include <unistd.h>
7847 /* Some systems only have a dummy stub for fork() */
7855 rm -f conftest$ac_exeext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857 (eval $ac_link) 2>&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 ac_cv_func_fork_works=yes
7868 echo "$as_me: program exited with status $ac_status" >&5
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7873 ac_cv_func_fork_works=no
7875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7878 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7879 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7882 ac_cv_func_fork_works=$ac_cv_func_fork
7884 if test "x$ac_cv_func_fork_works" = xcross; then
7886 *-*-amigaos* | *-*-msdosdjgpp*)
7887 # Override, as these systems have only a dummy fork() stub
7888 ac_cv_func_fork_works=no
7891 ac_cv_func_fork_works=yes
7894 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7895 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7897 ac_cv_func_vfork_works=$ac_cv_func_vfork
7898 if test "x$ac_cv_func_vfork" = xyes; then
7899 echo "$as_me:$LINENO: checking for working vfork" >&5
7900 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7901 if test "${ac_cv_func_vfork_works+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 if test "$cross_compiling" = yes; then
7905 ac_cv_func_vfork_works=cross
7907 cat >conftest.$ac_ext <<_ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7913 /* Thanks to Paul Eggert for this test. */
7916 #include <sys/types.h>
7917 #include <sys/stat.h>
7918 #include <sys/wait.h>
7920 # include <unistd.h>
7925 /* On some sparc systems, changes by the child to local and incoming
7926 argument registers are propagated back to the parent. The compiler
7927 is told about this with #include <vfork.h>, but some compilers
7928 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7929 static variable whose address is put into a register that is
7930 clobbered by the vfork. */
7933 sparc_address_test (int arg)
7935 sparc_address_test (arg) int arg;
7956 pid_t parent = getpid ();
7959 sparc_address_test (0);
7964 /* Here is another test for sparc vfork register problems. This
7965 test uses lots of local variables, at least as many local
7966 variables as main has allocated so far including compiler
7967 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7968 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7969 reuse the register of parent for one of the local variables,
7970 since it will think that parent can't possibly be used any more
7971 in this routine. Assigning to the local variable will thus
7972 munge parent in the parent process. */
7974 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7975 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7976 /* Convince the compiler that p..p7 are live; otherwise, it might
7977 use the same hardware register for all 8 local variables. */
7978 if (p != p1 || p != p2 || p != p3 || p != p4
7979 || p != p5 || p != p6 || p != p7)
7982 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7983 from child file descriptors. If the child closes a descriptor
7984 before it execs or exits, this munges the parent's descriptor
7985 as well. Test for this by closing stdout in the child. */
7986 _exit(close(fileno(stdout)) != 0);
7991 while (wait(&status) != child)
7994 /* Was there some problem with vforking? */
7997 /* Did the child fail? (This shouldn't happen.) */
8000 /* Did the vfork/compiler bug occur? */
8001 || parent != getpid()
8003 /* Did the file descriptor bug occur? */
8004 || fstat(fileno(stdout), &st) != 0
8009 rm -f conftest$ac_exeext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8011 (eval $ac_link) 2>&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_cv_func_vfork_works=yes
8022 echo "$as_me: program exited with status $ac_status" >&5
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8027 ac_cv_func_vfork_works=no
8029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8032 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8033 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8036 if test "x$ac_cv_func_fork_works" = xcross; then
8037 ac_cv_func_vfork_works=$ac_cv_func_vfork
8038 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8039 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8042 if test "x$ac_cv_func_vfork_works" = xyes; then
8044 cat >>confdefs.h <<\_ACEOF
8045 #define HAVE_WORKING_VFORK 1
8050 cat >>confdefs.h <<\_ACEOF
8055 if test "x$ac_cv_func_fork_works" = xyes; then
8057 cat >>confdefs.h <<\_ACEOF
8058 #define HAVE_WORKING_FORK 1
8066 am_cv_lib_iconv_ldpath=
8068 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8069 if test "${with_libiconv_prefix+set}" = set; then
8070 withval="$with_libiconv_prefix"
8072 for dir in `echo "$withval" | tr : ' '`; do
8073 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8074 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
8080 for ac_header in iconv.h
8082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8083 echo "$as_me:$LINENO: checking for $ac_header" >&5
8084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 #include <$ac_header>
8096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } >/dev/null; then
8104 if test -s conftest.err; then
8105 ac_cpp_err=$ac_c_preproc_warn_flag
8106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8113 if test -z "$ac_cpp_err"; then
8114 eval "$as_ac_Header=yes"
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 eval "$as_ac_Header=no"
8121 rm -f conftest.err conftest.$ac_ext
8123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8126 cat >>confdefs.h <<_ACEOF
8127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8134 echo "$as_me:$LINENO: checking for iconv" >&5
8135 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8136 if test "${am_cv_func_iconv+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 am_cv_func_iconv="no, consider installing GNU libiconv"
8142 cat >conftest.$ac_ext <<_ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8153 iconv_t cd = iconv_open("","");
8154 iconv(cd,NULL,NULL,NULL,NULL);
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; } &&
8175 { ac_try='test -s conftest$ac_exeext'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 am_cv_func_iconv=yes
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8187 rm -f conftest.err conftest.$ac_objext \
8188 conftest$ac_exeext conftest.$ac_ext
8189 if test "$am_cv_func_iconv" != yes; then
8190 am_save_LIBS="$LIBS"
8191 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8192 cat >conftest.$ac_ext <<_ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8203 iconv_t cd = iconv_open("","");
8204 iconv(cd,NULL,NULL,NULL,NULL);
8210 rm -f conftest.$ac_objext conftest$ac_exeext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8212 (eval $ac_link) 2>conftest.er1
8214 grep -v '^ *+' conftest.er1 >conftest.err
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try='test -s conftest$ac_exeext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8232 am_cv_func_iconv=yes
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8238 rm -f conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 LIBS="$am_save_LIBS"
8244 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8245 echo "${ECHO_T}$am_cv_func_iconv" >&6
8246 if test "$am_cv_func_iconv" = yes; then
8248 cat >>confdefs.h <<\_ACEOF
8249 #define HAVE_ICONV 1
8252 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8253 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8254 if test "${am_cv_proto_iconv+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 cat >conftest.$ac_ext <<_ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8271 #if defined(__STDC__) || defined(__cplusplus)
8272 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8285 rm -f conftest.$ac_objext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8287 (eval $ac_compile) 2>conftest.er1
8289 grep -v '^ *+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest.$ac_objext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 am_cv_proto_iconv_arg1=""
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 am_cv_proto_iconv_arg1="const"
8313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8314 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);"
8317 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8318 echo "$as_me:$LINENO: result: ${ac_t:-
8319 }$am_cv_proto_iconv" >&5
8320 echo "${ECHO_T}${ac_t:-
8321 }$am_cv_proto_iconv" >&6
8323 cat >>confdefs.h <<_ACEOF
8324 #define ICONV_CONST $am_cv_proto_iconv_arg1
8329 if test "$am_cv_lib_iconv" = yes; then
8330 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8334 # Until we have in-tree GNU iconv:
8339 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8340 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8341 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8359 rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361 (eval $ac_link) 2>conftest.er1
8363 grep -v '^ *+' conftest.er1 >conftest.err
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try='test -s conftest$ac_exeext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 am_cv_val_LC_MESSAGES=yes
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 am_cv_val_LC_MESSAGES=no
8387 rm -f conftest.err conftest.$ac_objext \
8388 conftest$ac_exeext conftest.$ac_ext
8390 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8391 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8392 if test $am_cv_val_LC_MESSAGES = yes; then
8394 cat >>confdefs.h <<\_ACEOF
8395 #define HAVE_LC_MESSAGES 1
8401 # We will need to find libiberty.h and ansidecl.h
8402 saved_CFLAGS="$CFLAGS"
8403 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8428 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8429 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8430 fprintf_unlocked strstr errno snprintf vasprintf \
8431 malloc realloc calloc free basename getopt clock getpagesize
8433 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8434 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8435 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8436 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 cat >conftest.$ac_ext <<_ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8446 #define $ac_tr_decl 1
8448 #include "ansidecl.h"
8455 char *(*pfn) = (char *(*)) $ac_func ;
8461 rm -f conftest.$ac_objext
8462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8463 (eval $ac_compile) 2>conftest.er1
8465 grep -v '^ *+' conftest.er1 >conftest.err
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } &&
8470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; } &&
8476 { ac_try='test -s conftest.$ac_objext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 eval "gcc_cv_have_decl_$ac_func=yes"
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8487 eval "gcc_cv_have_decl_$ac_func=no"
8489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8492 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8493 echo "$as_me:$LINENO: result: yes" >&5
8494 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8495 #define $ac_tr_decl 1
8499 echo "$as_me:$LINENO: result: no" >&5
8500 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8501 #define $ac_tr_decl 0
8512 for ac_func in getrlimit setrlimit getrusage
8514 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8515 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8516 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8517 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 cat >conftest.$ac_ext <<_ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8527 #define $ac_tr_decl 1
8529 #include "ansidecl.h"
8531 #ifdef HAVE_SYS_RESOURCE_H
8532 #include <sys/resource.h>
8540 char *(*pfn) = (char *(*)) $ac_func ;
8546 rm -f conftest.$ac_objext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8548 (eval $ac_compile) 2>conftest.er1
8550 grep -v '^ *+' conftest.er1 >conftest.err
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
8555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 eval "gcc_cv_have_decl_$ac_func=yes"
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 eval "gcc_cv_have_decl_$ac_func=no"
8574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8577 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8578 echo "$as_me:$LINENO: result: yes" >&5
8579 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8580 #define $ac_tr_decl 1
8584 echo "$as_me:$LINENO: result: no" >&5
8585 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8586 #define $ac_tr_decl 0
8594 cat >conftest.$ac_ext <<_ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8601 #include "ansidecl.h"
8603 #ifdef HAVE_SYS_RESOURCE_H
8604 #include <sys/resource.h>
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617 (eval $ac_compile) 2>conftest.er1
8619 grep -v '^ *+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest.$ac_objext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8642 cat >>confdefs.h <<\_ACEOF
8647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8650 for ac_func in ldgetname
8652 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8653 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8654 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8655 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 cat >conftest.$ac_ext <<_ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8665 #define $ac_tr_decl 1
8667 #include "ansidecl.h"
8678 char *(*pfn) = (char *(*)) $ac_func ;
8684 rm -f conftest.$ac_objext
8685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8686 (eval $ac_compile) 2>conftest.er1
8688 grep -v '^ *+' conftest.er1 >conftest.err
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; } &&
8699 { ac_try='test -s conftest.$ac_objext'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 eval "gcc_cv_have_decl_$ac_func=yes"
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8710 eval "gcc_cv_have_decl_$ac_func=no"
8712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8715 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8716 echo "$as_me:$LINENO: result: yes" >&5
8717 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8718 #define $ac_tr_decl 1
8722 echo "$as_me:$LINENO: result: no" >&5
8723 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8724 #define $ac_tr_decl 0
8733 for ac_func in times
8735 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8736 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8737 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8738 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8748 #define $ac_tr_decl 1
8750 #include "ansidecl.h"
8752 #ifdef HAVE_SYS_TIMES_H
8753 #include <sys/times.h>
8761 char *(*pfn) = (char *(*)) $ac_func ;
8767 rm -f conftest.$ac_objext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8769 (eval $ac_compile) 2>conftest.er1
8771 grep -v '^ *+' conftest.er1 >conftest.err
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; } &&
8782 { ac_try='test -s conftest.$ac_objext'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 eval "gcc_cv_have_decl_$ac_func=yes"
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8793 eval "gcc_cv_have_decl_$ac_func=no"
8795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8798 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8799 echo "$as_me:$LINENO: result: yes" >&5
8800 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8801 #define $ac_tr_decl 1
8805 echo "$as_me:$LINENO: result: no" >&5
8806 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8807 #define $ac_tr_decl 0
8815 # More time-related stuff.
8816 echo "$as_me:$LINENO: checking for struct tms" >&5
8817 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8818 if test "${ac_cv_struct_tms+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 #include "ansidecl.h"
8831 #ifdef HAVE_SYS_TIMES_H
8832 #include <sys/times.h>
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try='test -s conftest.$ac_objext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 ac_cv_struct_tms=yes
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8873 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8874 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8875 if test $ac_cv_struct_tms = yes; then
8877 cat >>confdefs.h <<\_ACEOF
8878 #define HAVE_STRUCT_TMS 1
8883 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8884 # revisit after autoconf 2.50.
8885 echo "$as_me:$LINENO: checking for clock_t" >&5
8886 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8887 if test "${gcc_cv_type_clock_t+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 cat >conftest.$ac_ext <<_ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8898 #include "ansidecl.h"
8909 rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911 (eval $ac_compile) 2>conftest.er1
8913 grep -v '^ *+' conftest.er1 >conftest.err
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; } &&
8924 { ac_try='test -s conftest.$ac_objext'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; }; then
8930 gcc_cv_type_clock_t=yes
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8935 gcc_cv_type_clock_t=no
8937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8940 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8941 if test $gcc_cv_type_clock_t = yes; then
8943 cat >>confdefs.h <<\_ACEOF
8944 #define HAVE_CLOCK_T 1
8949 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8950 CFLAGS="$saved_CFLAGS"
8952 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8953 if test "${enable_initfini_array+set}" = set; then
8954 enableval="$enable_initfini_array"
8958 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8959 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8960 if test "${gcc_cv_initfini_array+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 if test "$cross_compiling" = yes; then
8964 gcc_cv_initfini_array=no
8966 cat >conftest.$ac_ext <<_ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8974 int main (void) { return x; }
8975 int foo (void) { x = 0; }
8976 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8978 rm -f conftest$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 gcc_cv_initfini_array=yes
8991 echo "$as_me: program exited with status $ac_status" >&5
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8996 gcc_cv_initfini_array=no
8998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9001 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9002 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9003 enable_initfini_array=$gcc_cv_initfini_array
9006 if test $enable_initfini_array = yes; then
9008 cat >>confdefs.h <<\_ACEOF
9009 #define HAVE_INITFINI_ARRAY 1
9014 # mkdir takes a single argument on some systems.
9015 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9016 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9017 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 cat >conftest.$ac_ext <<_ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9027 #include <sys/types.h>
9028 #ifdef HAVE_SYS_STAT_H
9029 # include <sys/stat.h>
9031 #ifdef HAVE_UNISTD_H
9032 # include <unistd.h>
9034 #ifdef HAVE_DIRECT_H
9035 # include <direct.h>
9045 rm -f conftest.$ac_objext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047 (eval $ac_compile) 2>conftest.er1
9049 grep -v '^ *+' conftest.er1 >conftest.err
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest.$ac_objext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 gcc_cv_mkdir_takes_one_arg=no
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 gcc_cv_mkdir_takes_one_arg=yes
9073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9075 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9076 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9077 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9079 cat >>confdefs.h <<\_ACEOF
9080 #define MKDIR_TAKES_ONE_ARG 1
9092 # With Setjmp/Longjmp based exception handling.
9093 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9094 if test "${enable_sjlj_exceptions+set}" = set; then
9095 enableval="$enable_sjlj_exceptions"
9096 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9098 cat >>confdefs.h <<_ACEOF
9099 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9104 if test x$host = x$target; then
9105 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9106 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9107 if test "${ac_cv_lib_unwind_main+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 ac_check_lib_save_LIBS=$LIBS
9111 LIBS="-lunwind $LIBS"
9112 cat >conftest.$ac_ext <<_ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9130 (eval $ac_link) 2>conftest.er1
9132 grep -v '^ *+' conftest.er1 >conftest.err
9134 cat conftest.err >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; } &&
9143 { ac_try='test -s conftest$ac_exeext'
9144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; }; then
9149 ac_cv_lib_unwind_main=yes
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9154 ac_cv_lib_unwind_main=no
9156 rm -f conftest.err conftest.$ac_objext \
9157 conftest$ac_exeext conftest.$ac_ext
9158 LIBS=$ac_check_lib_save_LIBS
9160 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9161 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9162 if test $ac_cv_lib_unwind_main = yes; then
9163 use_libunwind_default=yes
9165 use_libunwind_default=no
9169 use_libunwind_default=no
9171 # Use libunwind based exception handling.
9172 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9173 if test "${enable_libunwind_exceptions+set}" = set; then
9174 enableval="$enable_libunwind_exceptions"
9175 use_libunwind_exceptions=$enableval
9177 use_libunwind_exceptions=$use_libunwind_default
9179 if test x"$use_libunwind_exceptions" = xyes; then
9181 cat >>confdefs.h <<\_ACEOF
9182 #define USE_LIBUNWIND_EXCEPTIONS 1
9187 # --------------------------------------------------------
9188 # Build, host, and target specific configuration fragments
9189 # --------------------------------------------------------
9191 # Collect build-machine-specific information.
9192 . ${srcdir}/config.build
9194 # Collect host-machine-specific information.
9195 . ${srcdir}/config.host
9199 # Collect target-machine-specific information.
9200 . ${srcdir}/config.gcc
9202 extra_objs="${host_extra_objs} ${extra_objs}"
9203 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9205 # Default the target-machine variables that were not explicitly set.
9206 if test x"$tm_file" = x
9207 then tm_file=$cpu_type/$cpu_type.h; fi
9209 if test x"$extra_headers" = x
9210 then extra_headers=; fi
9212 if test x$md_file = x
9213 then md_file=$cpu_type/$cpu_type.md; fi
9215 if test x$out_file = x
9216 then out_file=$cpu_type/$cpu_type.c; fi
9218 if test x"$tmake_file" = x
9219 then tmake_file=$cpu_type/t-$cpu_type
9222 if test x"$dwarf2" = xyes
9223 then tm_file="$tm_file tm-dwarf2.h"
9226 # Say what files are being used for the output code and MD file.
9227 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9228 echo "Using \`$srcdir/config/$md_file' as machine description file."
9230 # If any of the xm_file variables contain nonexistent files, warn
9231 # about them and drop them.
9234 for x in $build_xm_file; do
9235 if test -f $srcdir/config/$x
9237 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9238 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9244 for x in $host_xm_file; do
9245 if test -f $srcdir/config/$x
9247 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9248 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9254 for x in $xm_file; do
9255 if test -f $srcdir/config/$x
9257 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9258 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9264 for f in $tm_file; do
9267 if test $count = ax; then
9268 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9270 echo "Using the following target machine macro files:"
9271 for f in $tm_file; do
9272 echo " $srcdir/config/$f"
9276 if test x$need_64bit_hwint = xyes; then
9278 cat >>confdefs.h <<\_ACEOF
9279 #define NEED_64BIT_HOST_WIDE_INT 1
9284 if test x$use_long_long_for_widest_fast_int = xyes; then
9286 cat >>confdefs.h <<\_ACEOF
9287 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
9293 for f in $host_xm_file; do
9296 if test $count = a; then
9298 elif test $count = ax; then
9299 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9301 echo "Using the following host machine macro files:"
9302 for f in $host_xm_file; do
9303 echo " $srcdir/config/$f"
9306 echo "Using ${out_host_hook_obj} for host machine hooks."
9308 if test "$host_xm_file" != "$build_xm_file"; then
9310 for f in $build_xm_file; do
9313 if test $count = a; then
9315 elif test $count = ax; then
9316 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9318 echo "Using the following build machine macro files:"
9319 for f in $build_xm_file; do
9320 echo " $srcdir/config/$f"
9329 # Check if a valid thread package
9330 case ${enable_threads} in
9333 target_thread_file='single'
9337 target_thread_file='single'
9339 aix | dce | gnat | irix | posix | rtems | \
9340 single | solaris | vxworks | win32 )
9341 target_thread_file=${enable_threads}
9344 echo "${enable_threads} is an unknown thread package" 1>&2
9349 if test x${thread_file} = x; then
9350 # No thread file set by target-specific clauses in config.gcc,
9351 # so use file chosen by default logic above
9352 thread_file=${target_thread_file}
9355 # Make gthr-default.h if we have a thread file.
9357 if test $thread_file != single; then
9358 rm -f gthr-default.h
9359 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9360 gthread_flags=-DHAVE_GTHR_DEFAULT
9368 if test x$enable___cxa_atexit = xyes || \
9369 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9370 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9371 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9372 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9383 #define __cxa_atexit innocuous___cxa_atexit
9385 /* System header to define __stub macros and hopefully few prototypes,
9386 which can conflict with char __cxa_atexit (); below.
9387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9388 <limits.h> exists even on freestanding compilers. */
9391 # include <limits.h>
9393 # include <assert.h>
9398 /* Override any gcc2 internal prototype to avoid an error. */
9403 /* We use char because int might match the return type of a gcc2
9404 builtin and then its argument prototype would still apply. */
9405 char __cxa_atexit ();
9406 /* The GNU C library defines this for functions which it implements
9407 to always fail with ENOSYS. Some functions are actually named
9408 something starting with __ and the normal name is an alias. */
9409 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9412 char (*f) () = __cxa_atexit;
9421 return f != __cxa_atexit;
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9428 (eval $ac_link) 2>conftest.er1
9430 grep -v '^ *+' conftest.er1 >conftest.err
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } &&
9435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; } &&
9441 { ac_try='test -s conftest$ac_exeext'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; }; then
9447 ac_cv_func___cxa_atexit=yes
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9452 ac_cv_func___cxa_atexit=no
9454 rm -f conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9457 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9458 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9459 if test $ac_cv_func___cxa_atexit = yes; then
9461 cat >>confdefs.h <<\_ACEOF
9462 #define DEFAULT_USE_CXA_ATEXIT 1
9466 echo "__cxa_atexit can't be enabled on this target"
9471 # Look for a file containing extra machine modes.
9472 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9473 extra_modes_file='$(srcdir)'/config/${extra_modes}
9476 cat >>confdefs.h <<_ACEOF
9477 #define EXTRA_MODES_FILE "config/$extra_modes"
9482 # auto-host.h is the file containing items generated by autoconf and is
9483 # the first file included by config.h.
9484 # If host=build, it is correct to have bconfig include auto-host.h
9485 # as well. If host!=build, we are in error and need to do more
9486 # work to find out the build config parameters.
9487 if test x$host = x$build
9489 build_auto=auto-host.h
9491 # We create a subdir, then run autoconf in the subdir.
9492 # To prevent recursion we set host and build for the new
9493 # invocation of configure to the build for this invocation
9500 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9501 *) realsrcdir=../${srcdir};;
9503 saved_CFLAGS="${CFLAGS}"
9504 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9505 ${realsrcdir}/configure \
9506 --enable-languages=${enable_languages-all} \
9507 --target=$target_alias --host=$build_alias --build=$build_alias
9508 CFLAGS="${saved_CFLAGS}"
9510 # We just finished tests for the build machine, so rename
9511 # the file auto-build.h in the gcc directory.
9512 mv auto-host.h ../auto-build.h
9515 build_auto=auto-build.h
9519 tm_file="${tm_file} defaults.h"
9520 tm_p_file="${tm_p_file} tm-preds.h"
9521 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9522 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9523 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9524 # put this back in temporarily.
9525 xm_file="ansidecl.h ${xm_file}"
9531 # Get the version trigger filename from the toplevel
9532 if test "${with_gcc_version_trigger+set}" = set; then
9533 gcc_version_trigger=$with_gcc_version_trigger
9535 gcc_version_trigger=${srcdir}/version.c
9537 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9538 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9540 # Compile in configure arguments.
9541 if test -f configargs.h ; then
9542 # Being re-configured.
9543 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9544 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9546 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9549 # Double all backslashes and backslash all quotes to turn
9550 # gcc_config_arguments into a C string.
9551 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9552 $gcc_config_arguments
9554 gcc_config_arguments_str=`cat conftest.out`
9557 cat > configargs.h <<EOF
9558 /* Generated automatically. */
9559 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9560 static const char thread_model[] = "$thread_file";
9562 static const struct {
9563 const char *name, *value;
9564 } configure_default_options[] = $configure_default_options;
9567 # Internationalization
9569 VERSION="$gcc_version"
9571 cat >>confdefs.h <<_ACEOF
9572 #define PACKAGE "$PACKAGE"
9578 # If we haven't got the data from the intl directory,
9579 # assume NLS is disabled.
9587 if test -f ../intl/config.intl; then
9588 . ../intl/config.intl
9590 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9591 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9592 if test x"$USE_NLS" != xyes; then
9593 echo "$as_me:$LINENO: result: no" >&5
9594 echo "${ECHO_T}no" >&6
9596 echo "$as_me:$LINENO: result: yes" >&5
9597 echo "${ECHO_T}yes" >&6
9599 cat >>confdefs.h <<\_ACEOF
9600 #define ENABLE_NLS 1
9604 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9605 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9606 # Look for .po and .gmo files in the source directory.
9609 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9610 # If there aren't any .gmo files the shell will give us the
9611 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9613 case "$cat" in *\**)
9616 # The quadruple backslash is collapsed to a double backslash
9617 # by the backticks, then collapsed again by the double quotes,
9618 # leaving us with one backslash in the sed expression (right
9619 # before the dot that mustn't act as a wildcard).
9620 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9621 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9622 # The user is allowed to set LINGUAS to a list of languages to
9623 # install catalogs for. If it's empty that means "all of them."
9624 if test "x$LINGUAS" = x; then
9625 CATALOGS="$CATALOGS $cat"
9626 XLINGUAS="$XLINGUAS $lang"
9628 case "$LINGUAS" in *$lang*)
9629 CATALOGS="$CATALOGS $cat"
9630 XLINGUAS="$XLINGUAS $lang"
9636 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9637 echo "${ECHO_T}$LINGUAS" >&6
9640 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9641 # -liconv on the link line twice.
9642 case "$LIBINTL" in *$LIBICONV*)
9646 # Windows32 Registry support for specifying GCC installation paths.
9647 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9648 if test "${enable_win32_registry+set}" = set; then
9649 enableval="$enable_win32_registry"
9653 win32 | pe | cygwin* | mingw32* | uwin*)
9654 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9655 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9656 if test "x$enable_win32_registry" != xno; then
9658 cat >>confdefs.h <<\_ACEOF
9659 #define ENABLE_WIN32_REGISTRY 1
9662 echo "$as_me:$LINENO: result: yes" >&5
9663 echo "${ECHO_T}yes" >&6
9664 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9665 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9666 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 ac_func_search_save_LIBS=$LIBS
9670 ac_cv_search_RegOpenKeyExA=no
9671 cat >conftest.$ac_ext <<_ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9678 /* Override any gcc2 internal prototype to avoid an error. */
9682 /* We use char because int might match the return type of a gcc2
9683 builtin and then its argument prototype would still apply. */
9684 char RegOpenKeyExA ();
9693 rm -f conftest.$ac_objext conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695 (eval $ac_link) 2>conftest.er1
9697 grep -v '^ *+' conftest.er1 >conftest.err
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_search_RegOpenKeyExA="none required"
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9720 rm -f conftest.err conftest.$ac_objext \
9721 conftest$ac_exeext conftest.$ac_ext
9722 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9723 for ac_lib in advapi32; do
9724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9732 /* Override any gcc2 internal prototype to avoid an error. */
9736 /* We use char because int might match the return type of a gcc2
9737 builtin and then its argument prototype would still apply. */
9738 char RegOpenKeyExA ();
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9749 (eval $ac_link) 2>conftest.er1
9751 grep -v '^ *+' conftest.er1 >conftest.err
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try='test -s conftest$ac_exeext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9775 rm -f conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9779 LIBS=$ac_func_search_save_LIBS
9781 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9782 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9783 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9784 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9789 echo "$as_me:$LINENO: result: no" >&5
9790 echo "${ECHO_T}no" >&6
9793 # Check if user specified a different registry key.
9794 case "x${enable_win32_registry}" in
9797 gcc_cv_win32_registry_key="$VERSION"
9800 # no registry lookup.
9801 gcc_cv_win32_registry_key=''
9804 # user-specified key.
9805 gcc_cv_win32_registry_key="$enable_win32_registry"
9809 if test "x$enable_win32_registry" != xno; then
9810 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9811 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9813 cat >>confdefs.h <<_ACEOF
9814 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9817 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9818 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9823 # Get an absolute path to the GCC top-level source directory
9824 holddir=`${PWDCMD-pwd}`
9826 topdir=`${PWDCMD-pwd}`
9829 # Conditionalize the makefile for this host machine.
9831 for f in ${host_xmake_file}
9833 if test -f ${srcdir}/config/$f
9835 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9839 # Conditionalize the makefile for this target machine.
9841 for f in ${tmake_file}
9843 if test -f ${srcdir}/config/$f
9845 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9848 tmake_file="${tmake_file_}"
9850 symbolic_link='ln -s'
9852 # If the host doesn't support symlinks, modify CC in
9853 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9854 # Otherwise, we can use "CC=$(CC)".
9856 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9858 cc_set_by_configure="\$(CC)"
9859 quoted_cc_set_by_configure="\$(CC)"
9860 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9861 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9864 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9866 symbolic_link="cp -p"
9870 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9871 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9872 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9873 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9877 out_object_file=`basename $out_file .c`.o
9881 for f in $tm_file; do
9884 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9885 tm_include_list="${tm_include_list} $f"
9888 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9889 tm_include_list="${tm_include_list} config/$f"
9896 for f in $tm_p_file; do
9899 tm_p_file_list="${tm_p_file_list} $f"
9900 tm_p_include_list="${tm_p_include_list} $f"
9903 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9904 tm_p_include_list="${tm_p_include_list} config/$f"
9910 for f in $xm_file; do
9913 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9914 xm_include_list="${xm_include_list} $f"
9917 xm_file_list="${xm_file_list} $f"
9918 xm_include_list="${xm_include_list} $f"
9921 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9922 xm_include_list="${xm_include_list} config/$f"
9928 host_xm_include_list=
9929 for f in $host_xm_file; do
9932 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9933 host_xm_include_list="${host_xm_include_list} $f"
9936 host_xm_file_list="${host_xm_file_list} $f"
9937 host_xm_include_list="${host_xm_include_list} $f"
9940 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9941 host_xm_include_list="${host_xm_include_list} config/$f"
9947 for f in $build_xm_file; do
9950 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9951 build_xm_include_list="${build_xm_include_list} $f"
9953 auto-build.h | auto-host.h )
9954 build_xm_file_list="${build_xm_file_list} $f"
9955 build_xm_include_list="${build_xm_include_list} $f"
9958 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9959 build_xm_include_list="${build_xm_include_list} config/$f"
9964 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9965 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9968 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9969 if test x$host != x$target
9971 CROSS="-DCROSS_COMPILE"
9973 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9974 case "$host","$target" in
9975 # Darwin crosses can use the host system's libraries and headers,
9976 # because of the fat library support. Of course, it must be the
9977 # same version of Darwin on both sides. Allow the user to
9978 # just say --target=foo-darwin without a version number to mean
9979 # "the version on this system".
9980 *-*-darwin*,*-*-darwin*)
9981 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9982 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9983 if test $hostos = $targetos -o $targetos = darwin ; then
9985 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9990 i?86-*-*,x86_64-*-* \
9991 | powerpc*-*-*,powerpc64*-*-*)
9992 CROSS="$CROSS -DNATIVE_CROSS" ;;
9994 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9995 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9996 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9999 # If this is a cross-compiler that does not
10000 # have its own set of headers then define
10003 # If this is using newlib, without having the headers available now,
10004 # then define inhibit_libc in LIBGCC2_CFLAGS.
10005 # This prevents libgcc2 from containing any code which requires libc
10008 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10009 test x$with_newlib = xyes ; } &&
10010 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10011 inhibit_libc=-Dinhibit_libc
10015 # When building gcc with a cross-compiler, we need to adjust things so
10016 # that the generator programs are still built with the native compiler.
10017 # Also, we cannot run fixincludes or fix-header.
10019 # These are the normal (build=host) settings:
10020 CC_FOR_BUILD='$(CC)'
10021 BUILD_CFLAGS='$(ALL_CFLAGS)'
10022 STMP_FIXINC=stmp-fixinc
10024 # Possibly disable fixproto, on a per-target basis.
10025 case ${use_fixproto} in
10030 STMP_FIXPROTO=stmp-fixproto
10035 # And these apply if build != host, or we are generating coverage data
10036 if test x$build != x$host || test "x$coverage_flags" != x
10038 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10040 if test "x$TARGET_SYSTEM_ROOT" = x; then
10046 # When bootstrapping from the toplevel, only run fixincludes during stage1
10047 if test -d ../prev-gcc
10050 cp -R ../prev-gcc/include include
10053 # Expand extra_headers to include complete path.
10054 # This substitutes for lots of t-* files.
10055 extra_headers_list=
10056 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10057 for file in ${extra_headers} ; do
10058 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10061 # Define collect2 in Makefile.
10062 case $host_can_use_collect2 in
10064 *) collect2='collect2$(exeext)' ;;
10068 # Add a definition of USE_COLLECT2 if system wants one.
10069 case $use_collect2 in
10070 no) use_collect2= ;;
10073 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10074 xm_defines="${xm_defines} USE_COLLECT2"
10075 case $host_can_use_collect2 in
10077 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10078 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10079 { (exit 1); exit 1; }; }
10085 # ---------------------------
10086 # Assembler & linker features
10087 # ---------------------------
10089 # Identify the assembler which will work hand-in-glove with the newly
10090 # built GCC, so that we can examine its features. This is the assembler
10091 # which will be driven by the driver program.
10093 # If build != host, and we aren't building gas in-tree, we identify a
10094 # build->target assembler and hope that it will have the same features
10095 # as the host->target assembler we'll be using.
10096 echo "$as_me:$LINENO: checking what assembler to use" >&5
10097 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10100 gcc_cv_gas_major_version=
10101 gcc_cv_gas_minor_version=
10102 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10103 if test -x "$DEFAULT_ASSEMBLER"; then
10104 gcc_cv_as="$DEFAULT_ASSEMBLER"
10105 elif test -x as$host_exeext; then
10106 # Build using assembler in the current directory.
10107 gcc_cv_as=./as$host_exeext
10108 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10109 && test -f ../gas/Makefile \
10110 && test x$build = x$host; then
10111 # Single tree build which includes gas. We want to prefer it
10112 # over whatever linker top-level may have detected, since
10113 # we'll use what we're building after installation anyway.
10115 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10116 for f in $gcc_cv_as_bfd_srcdir/configure \
10117 $gcc_cv_as_gas_srcdir/configure \
10118 $gcc_cv_as_gas_srcdir/configure.in \
10119 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10120 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10121 if test x$gcc_cv_gas_version != x; then
10125 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10126 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10127 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10128 case $gcc_cv_gas_patch_version in
10129 "") gcc_cv_gas_patch_version="0" ;;
10131 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10132 + $gcc_cv_gas_minor_version \) \* 1000 \
10133 + $gcc_cv_gas_patch_version`
10135 rm -f as$host_exeext
10136 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10137 in_tree_gas_is_elf=no
10138 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10139 || (grep 'obj_format = multi' ../gas/Makefile \
10140 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10142 in_tree_gas_is_elf=yes
10144 elif test -x "$AS_FOR_TARGET"; then
10145 gcc_cv_as="$AS_FOR_TARGET"
10146 elif test -x "$AS" && test x$host = x$target; then
10150 if test "x$gcc_cv_as" = x; then
10151 # Search the same directories that the installed compiler will
10152 # search. Else we may find the wrong assembler and lose. If we
10153 # do not find a suitable assembler binary, then try the user's
10156 # Also note we have to check MD_EXEC_PREFIX before checking the
10157 # user's path. Unfortunately, there is no good way to get at the
10158 # value of MD_EXEC_PREFIX here. So we do a brute force search
10159 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10160 # to be fixed as part of the make/configure rewrite too.
10162 if test "x$exec_prefix" = xNONE; then
10163 if test "x$prefix" = xNONE; then
10164 test_prefix=/usr/local
10166 test_prefix=$prefix
10169 test_prefix=$exec_prefix
10172 # If the loop below does not find an assembler, then use whatever
10173 # one we can find in the users's path.
10175 if test "x$program_prefix" != xNONE; then
10176 gcc_cv_as=${program_prefix}as$host_exeext
10178 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10181 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10182 $test_prefix/libexec/gcc/$target_noncanonical \
10183 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10184 /usr/lib/gcc/$target_noncanonical \
10185 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10186 $test_prefix/$target_noncanonical/bin"
10188 if test x$host = x$target; then
10189 test_dirs="$test_dirs \
10194 /bsd43/usr/lib/cmplrs/cc \
10195 /usr/cross64/usr/bin \
10196 /usr/lib/cmplrs/cc \
10197 /sysv/usr/lib/cmplrs/cc \
10198 /svr4/usr/lib/cmplrs/cc \
10202 for dir in $test_dirs; do
10203 if test -x $dir/as$host_exeext; then
10204 gcc_cv_as=$dir/as$host_exeext
10209 case $in_tree_gas in
10211 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10212 echo "${ECHO_T}\"newly built gas\"" >&6
10215 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10216 echo "${ECHO_T}$gcc_cv_as" >&6
10220 # Identify the linker which will work hand-in-glove with the newly
10221 # built GCC, so that we can examine its features. This is the linker
10222 # which will be driven by the driver program.
10224 # If build != host, and we aren't building gas in-tree, we identify a
10225 # build->target linker and hope that it will have the same features
10226 # as the host->target linker we'll be using.
10227 echo "$as_me:$LINENO: checking what linker to use" >&5
10228 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10231 gcc_cv_gld_major_version=
10232 gcc_cv_gld_minor_version=
10233 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10234 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10235 if test -x "$DEFAULT_LINKER"; then
10236 gcc_cv_ld="$DEFAULT_LINKER"
10237 elif test -x collect-ld$host_exeext; then
10238 # Build using linker in the current directory.
10239 gcc_cv_ld=./collect-ld$host_exeext
10240 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10241 && test -f ../ld/Makefile \
10242 && test x$build = x$host; then
10243 # Single tree build which includes ld. We want to prefer it
10244 # over whatever linker top-level may have detected, since
10245 # we'll use what we're building after installation anyway.
10247 in_tree_ld_is_elf=no
10248 if (grep 'EMUL = .*elf' ../ld/Makefile \
10249 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10250 in_tree_ld_is_elf=yes
10252 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
10254 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10255 if test x$gcc_cv_gld_version != x; then
10259 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10260 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10261 rm -f collect-ld$host_exeext
10262 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10264 elif test -x "$LD_FOR_TARGET"; then
10265 gcc_cv_ld="$LD_FOR_TARGET"
10266 elif test -x "$LD" && test x$host = x$target; then
10270 if test "x$gcc_cv_ld" = x; then
10271 # Search the same directories that the installed compiler will
10272 # search. Else we may find the wrong linker and lose. If we
10273 # do not find a suitable linker binary, then try the user's
10276 # Also note we have to check MD_EXEC_PREFIX before checking the
10277 # user's path. Unfortunately, there is no good way to get at the
10278 # value of MD_EXEC_PREFIX here. So we do a brute force search
10279 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10280 # to be fixed as part of the make/configure rewrite too.
10282 if test "x$exec_prefix" = xNONE; then
10283 if test "x$prefix" = xNONE; then
10284 test_prefix=/usr/local
10286 test_prefix=$prefix
10289 test_prefix=$exec_prefix
10292 # If the loop below does not find an linker, then use whatever
10293 # one we can find in the users's path.
10295 if test "x$program_prefix" != xNONE; then
10296 gcc_cv_ld=${program_prefix}ld$host_exeext
10298 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10301 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10302 $test_prefix/libexec/gcc/$target_noncanonical \
10303 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10304 /usr/lib/gcc/$target_noncanonical \
10305 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10306 $test_prefix/$target_noncanonical/bin"
10308 if test x$host = x$target; then
10309 test_dirs="$test_dirs \
10314 /bsd43/usr/lib/cmplrs/cc \
10315 /usr/cross64/usr/bin \
10316 /usr/lib/cmplrs/cc \
10317 /sysv/usr/lib/cmplrs/cc \
10318 /svr4/usr/lib/cmplrs/cc \
10322 for dir in $test_dirs; do
10323 if test -x $dir/ld$host_exeext; then
10324 gcc_cv_ld=$dir/ld$host_exeext
10329 case $in_tree_ld in
10331 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10332 echo "${ECHO_T}\"newly built ld\"" >&6
10335 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10336 echo "${ECHO_T}$gcc_cv_ld" >&6
10340 # Figure out what nm we will be using.
10341 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10342 echo "$as_me:$LINENO: checking what nm to use" >&5
10343 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10345 if test -x nm$host_exeext; then
10346 gcc_cv_nm=./nm$host_exeext
10347 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10348 && test -f ../binutils/Makefile; then
10349 # Single tree build which includes binutils.
10351 gcc_cv_nm=./nm$host_exeext
10352 rm -f nm$host_exeext
10353 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10354 elif test "x$program_prefix" != xNONE; then
10355 gcc_cv_nm=${program_prefix}nm$host_exeext
10357 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10359 case $in_tree_nm in
10360 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10361 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10362 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10363 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10366 # Figure out what objdump we will be using.
10367 echo "$as_me:$LINENO: checking what objdump to use" >&5
10368 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10370 if test -x objdump$host_exeext; then
10371 gcc_cv_objdump=./objdump$host_exeext
10372 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10373 && test -f ../binutils/Makefile; then
10374 # Single tree build which includes binutils.
10375 in_tree_objdump=yes
10376 gcc_cv_objdump=./objdump$host_exeext
10377 rm -f objdump$host_exeext
10378 $symbolic_link ../binutils/objdump$host_exeext \
10379 objdump$host_exeext 2>/dev/null
10380 elif test "x$program_prefix" != xNONE; then
10381 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10383 gcc_cv_objdump=`echo objdump | \
10384 sed "${program_transform_name}"`$host_exeext
10386 case $in_tree_objdump in
10387 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10388 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10389 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10390 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10393 # Figure out what assembler alignment features are present.
10394 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10395 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10396 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 gcc_cv_as_balign_and_p2align=no
10400 if test $in_tree_gas = yes; then
10401 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10402 then gcc_cv_as_balign_and_p2align=yes
10404 elif test x$gcc_cv_as != x; then
10406 .p2align 2' > conftest.s
10407 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }
10414 gcc_cv_as_balign_and_p2align=yes
10416 echo "configure: failed program was" >&5
10419 rm -f conftest.o conftest.s
10422 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10423 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10424 if test $gcc_cv_as_balign_and_p2align = yes; then
10426 cat >>confdefs.h <<\_ACEOF
10427 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10432 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10433 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10434 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 gcc_cv_as_max_skip_p2align=no
10438 if test $in_tree_gas = yes; then
10439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10440 then gcc_cv_as_max_skip_p2align=yes
10442 elif test x$gcc_cv_as != x; then
10443 echo '.p2align 4,,7' > conftest.s
10444 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }
10451 gcc_cv_as_max_skip_p2align=yes
10453 echo "configure: failed program was" >&5
10456 rm -f conftest.o conftest.s
10459 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10460 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10461 if test $gcc_cv_as_max_skip_p2align = yes; then
10463 cat >>confdefs.h <<\_ACEOF
10464 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10469 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10470 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10471 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 gcc_cv_as_subsection_m1=no
10475 if test $in_tree_gas = yes; then
10476 if test $in_tree_gas_is_elf = yes \
10477 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10478 then gcc_cv_as_subsection_m1=yes
10480 elif test x$gcc_cv_as != x; then
10481 echo 'conftest_label1: .word 0
10483 conftest_label2: .word 0
10484 .previous' > conftest.s
10485 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }
10492 if test x$gcc_cv_nm != x; then
10493 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10494 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10495 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10497 else gcc_cv_as_subsection_m1=yes
10499 rm -f conftest.nm1 conftest.nm2
10502 echo "configure: failed program was" >&5
10505 rm -f conftest.o conftest.s
10508 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10509 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10510 if test $gcc_cv_as_subsection_m1 = yes; then
10512 cat >>confdefs.h <<\_ACEOF
10513 #define HAVE_GAS_SUBSECTION_ORDERING 1
10518 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10519 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10520 if test "${gcc_cv_as_weak+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 if test $in_tree_gas = yes; then
10525 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10526 then gcc_cv_as_weak=yes
10528 elif test x$gcc_cv_as != x; then
10529 echo ' .weak foobar' > conftest.s
10530 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; }
10539 echo "configure: failed program was" >&5
10542 rm -f conftest.o conftest.s
10545 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10546 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10547 if test $gcc_cv_as_weak = yes; then
10549 cat >>confdefs.h <<\_ACEOF
10550 #define HAVE_GAS_WEAK 1
10555 # .hidden needs to be supported in both the assembler and the linker,
10556 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10557 # This is irritatingly difficult to feature test for; we have to check the
10558 # date string after the version number. If we've got an in-tree
10559 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10561 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10562 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10563 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10564 if test "${gcc_cv_as_hidden+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 gcc_cv_as_hidden=no
10568 if test $in_tree_gas = yes; then
10569 if test $in_tree_gas_is_elf = yes \
10570 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10571 then gcc_cv_as_hidden=yes
10573 elif test x$gcc_cv_as != x; then
10574 echo ' .hidden foobar
10575 foobar:' > conftest.s
10576 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }
10583 gcc_cv_as_hidden=yes
10585 echo "configure: failed program was" >&5
10588 rm -f conftest.o conftest.s
10591 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10592 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10595 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10596 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10597 if test "${gcc_cv_ld_hidden+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 if test $in_tree_ld = yes ; then
10601 gcc_cv_ld_hidden=no
10602 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 \
10603 && test $in_tree_ld_is_elf = yes; then
10604 gcc_cv_ld_hidden=yes
10607 gcc_cv_ld_hidden=yes
10608 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10609 if echo "$ld_ver" | grep GNU > /dev/null; then
10610 ld_vers=`echo $ld_ver | sed -n \
10611 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10612 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10613 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10614 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10615 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10616 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10617 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'`
10618 if test 0"$ld_date" -lt 20020404; then
10619 if test -n "$ld_date"; then
10620 # If there was date string, but was earlier than 2002-04-04, fail
10621 gcc_cv_ld_hidden=no
10622 elif test -z "$ld_vers"; then
10623 # If there was no date string nor ld version number, something is wrong
10624 gcc_cv_ld_hidden=no
10626 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10627 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10628 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10629 test -z "$ld_vers_patch" && ld_vers_patch=0
10630 if test "$ld_vers_major" -lt 2; then
10631 gcc_cv_ld_hidden=no
10632 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10633 gcc_cv_ld_hidden="no"
10634 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10635 gcc_cv_ld_hidden=no
10640 case "${target}" in
10641 hppa64*-*-hpux* | ia64*-*-hpux*)
10642 gcc_cv_ld_hidden=yes
10645 gcc_cv_ld_hidden=no
10651 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10652 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10653 libgcc_visibility=no
10655 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10656 libgcc_visibility=yes
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_GAS_HIDDEN 1
10664 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10665 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10666 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10667 if test "${gcc_cv_as_leb128+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 gcc_cv_as_leb128=no
10671 if test $in_tree_gas = yes; then
10672 if test $in_tree_gas_is_elf = yes \
10673 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10674 then gcc_cv_as_leb128=yes
10676 elif test x$gcc_cv_as != x; then
10683 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }
10690 # GAS versions before 2.11 do not support uleb128,
10691 # despite appearing to.
10692 # ??? There exists an elf-specific test that will crash
10693 # the assembler. Perhaps it's better to figure out whether
10694 # arbitrary sections are supported and try the test.
10695 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10696 if echo "$as_ver" | grep GNU > /dev/null; then
10697 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10698 as_major=`echo $as_ver | sed 's/\..*//'`
10699 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10700 if test $as_major -eq 2 && test $as_minor -lt 11
10702 else gcc_cv_as_leb128=yes
10706 echo "configure: failed program was" >&5
10709 rm -f conftest.o conftest.s
10712 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10713 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10714 if test $gcc_cv_as_leb128 = yes; then
10716 cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_AS_LEB128 1
10722 # GAS versions up to and including 2.11.0 may mis-optimize
10724 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10725 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10726 if test "${gcc_cv_as_eh_frame+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 gcc_cv_as_eh_frame=no
10730 if test $in_tree_gas = yes; then
10731 if test $in_tree_gas_is_elf = yes \
10732 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10733 then gcc_cv_as_eh_frame=yes
10735 elif test x$gcc_cv_as != x; then
10742 .section .eh_frame,"aw",@progbits
10744 .4byte .LECIE1-.LSCIE1
10758 .4byte .LEFDE1-.LASFDE1
10760 .4byte .LASFDE1-__FRAME_BEGIN__
10767 .LEFDE1:' > conftest.s
10768 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }
10775 cat > conftest.lit <<EOF
10776 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10777 0010 01000000 12000000 18000000 00000000 ................
10778 0020 08000000 04080000 0044 .........D
10780 cat > conftest.big <<EOF
10781 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10782 0010 00000001 00000012 00000018 00000000 ................
10783 0020 00000008 04000000 0844 .........D
10785 # If the assembler didn't choke, and we can objdump,
10786 # and we got the correct data, then succeed.
10787 if test x$gcc_cv_objdump != x \
10788 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10789 | tail -3 > conftest.got \
10790 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10791 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10793 gcc_cv_as_eh_frame=yes
10794 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 gcc_cv_as_eh_frame=buggy
10802 # Uh oh, what do we do now?
10803 gcc_cv_as_eh_frame=no
10806 echo "configure: failed program was" >&5
10809 rm -f conftest.o conftest.s
10812 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10813 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10816 if test $gcc_cv_as_eh_frame = buggy; then
10818 cat >>confdefs.h <<\_ACEOF
10819 #define USE_AS_TRADITIONAL_FORMAT 1
10824 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10825 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10826 if test "${gcc_cv_as_shf_merge+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 gcc_cv_as_shf_merge=no
10830 if test $in_tree_gas = yes; then
10831 if test $in_tree_gas_is_elf = yes \
10832 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10833 then gcc_cv_as_shf_merge=yes
10835 elif test x$gcc_cv_as != x; then
10836 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10837 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }
10844 gcc_cv_as_shf_merge=yes
10846 echo "configure: failed program was" >&5
10849 rm -f conftest.o conftest.s
10852 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10853 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10856 cat >>confdefs.h <<_ACEOF
10857 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10861 # Thread-local storage - the check is heavily parametrized.
10869 .section ".tdata","awT",@progbits
10872 ldq $27,__tls_get_addr($29) !literal!1
10873 lda $16,foo($29) !tlsgd!1
10874 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10875 ldq $27,__tls_get_addr($29) !literal!2
10876 lda $16,foo($29) !tlsldm!2
10877 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10878 ldq $1,foo($29) !gotdtprel
10879 ldah $2,foo($29) !dtprelhi
10880 lda $3,foo($2) !dtprello
10881 lda $4,foo($29) !dtprel
10882 ldq $1,foo($29) !gottprel
10883 ldah $2,foo($29) !tprelhi
10884 lda $3,foo($2) !tprello
10885 lda $4,foo($29) !tprel'
10888 tls_as_opt=--fatal-warnings
10892 .section ".tdata","awT",@progbits
10896 leal foo@TLSGD(,%ebx,1), %eax
10897 leal foo@TLSLDM(%ebx), %eax
10898 leal foo@DTPOFF(%eax), %edx
10899 movl foo@GOTTPOFF(%ebx), %eax
10900 subl foo@GOTTPOFF(%ebx), %eax
10901 addl foo@GOTNTPOFF(%ebx), %eax
10902 movl foo@INDNTPOFF, %eax
10903 movl $foo@TPOFF, %eax
10904 subl $foo@TPOFF, %eax
10905 leal foo@NTPOFF(%ecx), %eax'
10908 tls_as_opt=--fatal-warnings
10912 .section ".tdata","awT",@progbits
10916 leaq foo@TLSGD(%rip), %rdi
10917 leaq foo@TLSLD(%rip), %rdi
10918 leaq foo@DTPOFF(%rax), %rdx
10919 movq foo@GOTTPOFF(%rip), %rax
10920 movq $foo@TPOFF, %rax'
10923 tls_as_opt=--fatal-warnings
10927 .section ".tdata","awT",@progbits
10930 addl r16 = @ltoff(@dtpmod(foo#)), gp
10931 addl r17 = @ltoff(@dtprel(foo#)), gp
10932 addl r18 = @ltoff(@tprel(foo#)), gp
10933 addl r19 = @dtprel(foo#), gp
10934 adds r21 = @dtprel(foo#), r13
10935 movl r23 = @dtprel(foo#)
10936 addl r20 = @tprel(foo#), gp
10937 adds r22 = @tprel(foo#), r13
10938 movl r24 = @tprel(foo#)'
10941 tls_as_opt=--fatal-warnings
10945 .section ".tdata","awT",@progbits
10953 addi 3,31,ld0@got@tlsgd
10955 addi 3,31,x1@got@tlsld
10958 addis 9,3,x2@dtprel@ha
10959 addi 9,9,x2@dtprel@l
10960 lwz 9,x3@got@tprel(31)
10963 addis 9,2,x2@tprel@ha
10964 addi 9,9,x2@tprel@l'
10967 tls_as_opt="-a32 --fatal-warnings"
10971 .section ".tdata","awT",@progbits
10979 addi 3,2,ld0@got@tlsgd
10985 addi 3,2,x1@got@tlsld
10991 addis 9,3,x2@dtprel@ha
10992 addi 9,9,x2@dtprel@l
10995 ld 9,x3@got@dtprel(2)
11001 tls_as_opt="-a64 --fatal-warnings"
11005 .section ".tdata","awT",@progbits
11012 .long foo@GOTNTPOFF
11013 .long foo@INDNTPOFF
11014 l %r1,foo@GOTNTPOFF(%r12)
11015 l %r1,0(%r1):tls_load:foo
11016 bas %r14,0(%r1,%r13):tls_gdcall:foo
11017 bas %r14,0(%r1,%r13):tls_ldcall:foo'
11020 tls_as_opt="-m31 --fatal-warnings"
11024 .section ".tdata","awT",@progbits
11031 .quad foo@GOTNTPOFF
11032 lg %r1,foo@GOTNTPOFF(%r12)
11033 larl %r1,foo@INDNTPOFF
11034 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
11035 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11038 tls_as_opt="-m64 -Aesame --fatal-warnings"
11040 sh-*-* | sh[34]-*-*)
11042 .section ".tdata","awT",@progbits
11052 tls_as_opt=--fatal-warnings
11056 sparc*-sun-solaris2.*)
11063 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11065 .section ".tdata",#alloc,#write,#tls
11068 sethi %tgd_hi22(foo), %o0
11069 add %o0, %tgd_lo10(foo), %o1
11070 add %l7, %o1, %o0, %tgd_add(foo)
11071 call __tls_get_addr, %tgd_call(foo)
11072 sethi %tldm_hi22(foo), %l1
11073 add %l1, %tldm_lo10(foo), %l2
11074 add %l7, %l2, %o0, %tldm_add(foo)
11075 call __tls_get_addr, %tldm_call(foo)
11076 sethi %tldo_hix22(foo), %l3
11077 xor %l3, %tldo_lox10(foo), %l4
11078 add %o0, %l4, %l5, %tldo_add(foo)
11079 sethi %tie_hi22(foo), %o3
11080 add %o3, %tie_lo10(foo), %o3
11081 ld [%l7 + %o3], %o2, %tie_ld(foo)
11082 add %g7, %o2, %o4, %tie_add(foo)
11083 sethi %tle_hix22(foo), %l1
11084 xor %l1, %tle_lox10(foo), %o5
11085 ld [%g7 + %o5], %o1'
11090 .section ".tdata","awT",@progbits
11093 sethi %tgd_hi22(foo), %o0
11094 add %o0, %tgd_lo10(foo), %o1
11095 add %l7, %o1, %o0, %tgd_add(foo)
11096 call __tls_get_addr, %tgd_call(foo)
11097 sethi %tldm_hi22(foo), %l1
11098 add %l1, %tldm_lo10(foo), %l2
11099 add %l7, %l2, %o0, %tldm_add(foo)
11100 call __tls_get_addr, %tldm_call(foo)
11101 sethi %tldo_hix22(foo), %l3
11102 xor %l3, %tldo_lox10(foo), %l4
11103 add %o0, %l4, %l5, %tldo_add(foo)
11104 sethi %tie_hi22(foo), %o3
11105 add %o3, %tie_lo10(foo), %o3
11106 ld [%l7 + %o3], %o2, %tie_ld(foo)
11107 add %g7, %o2, %o4, %tie_add(foo)
11108 sethi %tle_hix22(foo), %l1
11109 xor %l1, %tle_lox10(foo), %o5
11110 ld [%g7 + %o5], %o1'
11113 tls_as_opt="-32 --fatal-warnings"
11117 if test -z "$tls_first_major"; then
11118 : # If we don't have a check, assume no support.
11120 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11121 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11122 if test "${gcc_cv_as_tls+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 if test $in_tree_gas = yes; then
11127 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11128 then gcc_cv_as_tls=yes
11130 elif test x$gcc_cv_as != x; then
11131 echo "$conftest_s" > conftest.s
11132 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }
11141 echo "configure: failed program was" >&5
11144 rm -f conftest.o conftest.s
11147 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11148 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11149 if test $gcc_cv_as_tls = yes; then
11151 cat >>confdefs.h <<\_ACEOF
11152 #define HAVE_AS_TLS 1
11158 # Target-specific assembler checks.
11160 if test x"$demangler_in_ld" = xyes; then
11161 echo "$as_me:$LINENO: checking linker --demangle support" >&5
11162 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
11163 gcc_cv_ld_demangle=no
11164 if test $in_tree_ld = yes; then
11165 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 \
11166 gcc_cv_ld_demangle=yes
11168 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
11169 # Check if the GNU linker supports --demangle option
11170 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
11171 gcc_cv_ld_demangle=yes
11174 if test x"$gcc_cv_ld_demangle" = xyes; then
11176 cat >>confdefs.h <<\_ACEOF
11177 #define HAVE_LD_DEMANGLE 1
11181 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
11182 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
11186 # All TARGET_ABI_OSF targets.
11187 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11188 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11189 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11190 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 gcc_cv_as_alpha_explicit_relocs=no
11194 if test $in_tree_gas = yes; then
11195 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11196 then gcc_cv_as_alpha_explicit_relocs=yes
11198 elif test x$gcc_cv_as != x; then
11199 echo ' .set nomacro
11201 extbl $3, $2, $3 !lituse_bytoff!1
11202 ldq $2, a($29) !literal!1
11203 ldq $4, b($29) !literal!2
11204 ldq_u $3, 0($2) !lituse_base!1
11205 ldq $27, f($29) !literal!5
11206 jsr $26, ($27), f !lituse_jsr!5
11207 ldah $29, 0($26) !gpdisp!3
11208 lda $0, c($29) !gprel
11209 ldah $1, d($29) !gprelhigh
11210 lda $1, d($1) !gprellow
11211 lda $29, 0($29) !gpdisp!3' > conftest.s
11212 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; }
11219 gcc_cv_as_alpha_explicit_relocs=yes
11221 echo "configure: failed program was" >&5
11224 rm -f conftest.o conftest.s
11227 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11228 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11229 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_AS_EXPLICIT_RELOCS 1
11239 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11240 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11241 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 gcc_cv_as_cris_no_mul_bug=no
11245 if test $in_tree_gas = yes; then
11246 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11247 then gcc_cv_as_cris_no_mul_bug=yes
11249 elif test x$gcc_cv_as != x; then
11250 echo '.text' > conftest.s
11251 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; }
11258 gcc_cv_as_cris_no_mul_bug=yes
11260 echo "configure: failed program was" >&5
11263 rm -f conftest.o conftest.s
11266 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11267 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11268 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11270 cat >>confdefs.h <<\_ACEOF
11271 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11278 echo "$as_me:$LINENO: checking assembler for .register" >&5
11279 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11280 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 gcc_cv_as_sparc_register_op=no
11284 if test x$gcc_cv_as != x; then
11285 echo '.register %g2, #scratch' > conftest.s
11286 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }
11293 gcc_cv_as_sparc_register_op=yes
11295 echo "configure: failed program was" >&5
11298 rm -f conftest.o conftest.s
11301 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11302 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11303 if test $gcc_cv_as_sparc_register_op = yes; then
11305 cat >>confdefs.h <<\_ACEOF
11306 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11311 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11312 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11313 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 gcc_cv_as_sparc_relax=no
11317 if test x$gcc_cv_as != x; then
11318 echo '.text' > conftest.s
11319 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }
11326 gcc_cv_as_sparc_relax=yes
11328 echo "configure: failed program was" >&5
11331 rm -f conftest.o conftest.s
11334 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11335 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11336 if test $gcc_cv_as_sparc_relax = yes; then
11338 cat >>confdefs.h <<\_ACEOF
11339 #define HAVE_AS_RELAX_OPTION 1
11344 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11345 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11346 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 gcc_cv_as_sparc_ua_pcrel=no
11350 if test x$gcc_cv_as != x; then
11357 .uaword %r_disp32(foo)' > conftest.s
11358 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }
11365 if test x$gcc_cv_ld != x \
11366 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11367 gcc_cv_as_sparc_ua_pcrel=yes
11371 echo "configure: failed program was" >&5
11374 rm -f conftest.o conftest.s
11377 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11378 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11379 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11381 cat >>confdefs.h <<\_ACEOF
11382 #define HAVE_AS_SPARC_UA_PCREL 1
11386 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11387 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11388 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 gcc_cv_as_sparc_ua_pcrel_hidden=no
11392 if test x$gcc_cv_as != x; then
11396 .uaword %r_disp32(foo)
11397 .byte 0x32, 0x33, 0x34
11401 .skip 4' > conftest.s
11402 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; }
11409 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11410 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11411 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11412 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11413 if $gcc_cv_objdump -R conftest 2> /dev/null \
11414 | grep 'DISP32' > /dev/null 2>&1; then
11417 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11422 echo "configure: failed program was" >&5
11425 rm -f conftest.o conftest.s
11428 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11429 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11430 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11432 cat >>confdefs.h <<\_ACEOF
11433 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11438 fi # unaligned pcrel relocs
11440 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11441 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11442 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 gcc_cv_as_sparc_offsetable_lo10=no
11446 if test x$gcc_cv_as != x; then
11448 or %g1, %lo(ab) + 12, %g1
11449 or %g1, %lo(ab + 12), %g1' > conftest.s
11450 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }
11457 if test x$gcc_cv_objdump != x \
11458 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11459 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11460 gcc_cv_as_offsetable_lo10=yes
11463 echo "configure: failed program was" >&5
11466 rm -f conftest.o conftest.s
11469 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11470 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11471 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11473 cat >>confdefs.h <<\_ACEOF
11474 #define HAVE_AS_OFFSETABLE_LO10 1
11480 i[34567]86-*-* | x86_64-*-*)
11482 cygwin* | pe | mingw32*)
11483 # Used for DWARF 2 in PE
11484 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11485 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11486 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 gcc_cv_as_ix86_pe_secrel32=no
11490 if test $in_tree_gas = yes; then
11491 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11492 then gcc_cv_as_ix86_pe_secrel32=yes
11494 elif test x$gcc_cv_as != x; then
11498 .secrel32 foo' > conftest.s
11499 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }
11506 if test x$gcc_cv_ld != x \
11507 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11508 gcc_cv_as_ix86_pe_secrel32=yes
11512 echo "configure: failed program was" >&5
11515 rm -f conftest.o conftest.s
11518 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11519 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11520 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11522 cat >>confdefs.h <<\_ACEOF
11523 #define HAVE_GAS_PE_SECREL32_RELOC 1
11530 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11531 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11532 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 gcc_cv_as_ix86_filds_fists=no
11536 if test $in_tree_gas = yes; then
11537 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11538 then gcc_cv_as_ix86_filds_fists=yes
11540 elif test x$gcc_cv_as != x; then
11541 echo 'filds mem; fists mem' > conftest.s
11542 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }
11549 gcc_cv_as_ix86_filds_fists=yes
11551 echo "configure: failed program was" >&5
11554 rm -f conftest.o conftest.s
11557 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11558 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11559 if test $gcc_cv_as_ix86_filds_fists = yes; then
11561 cat >>confdefs.h <<\_ACEOF
11562 #define HAVE_GAS_FILDS_FISTS 1
11567 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11568 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11569 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 gcc_cv_as_ix86_cmov_sun_syntax=no
11573 if test x$gcc_cv_as != x; then
11574 echo 'cmovl.l %edx, %eax' > conftest.s
11575 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; }
11582 gcc_cv_as_ix86_cmov_sun_syntax=yes
11584 echo "configure: failed program was" >&5
11587 rm -f conftest.o conftest.s
11590 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11591 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11592 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11594 cat >>confdefs.h <<\_ACEOF
11595 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11600 # This one is used unconditionally by i386.[ch]; it is to be defined
11601 # to 1 if the feature is present, 0 otherwise.
11602 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11603 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11604 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 gcc_cv_as_ix86_gotoff_in_data=no
11608 if test $in_tree_gas = yes; then
11609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11610 then gcc_cv_as_ix86_gotoff_in_data=yes
11612 elif test x$gcc_cv_as != x; then
11617 .long .L0@GOTOFF' > conftest.s
11618 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }
11625 gcc_cv_as_ix86_gotoff_in_data=yes
11627 echo "configure: failed program was" >&5
11630 rm -f conftest.o conftest.s
11633 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11634 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11637 cat >>confdefs.h <<_ACEOF
11638 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11644 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11645 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11646 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11650 if test $in_tree_gas = yes; then
11651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11652 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11654 elif test x$gcc_cv_as != x; then
11656 addl r15 = @ltoffx(x#), gp
11658 ld8.mov r16 = [r15], x#' > conftest.s
11659 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }
11666 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11668 echo "configure: failed program was" >&5
11671 rm -f conftest.o conftest.s
11674 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11675 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11676 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11678 cat >>confdefs.h <<\_ACEOF
11679 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11688 *-*-aix*) conftest_s=' .csect .text[PR]
11690 *-*-darwin*) conftest_s=' .text
11692 *) conftest_s=' .text
11696 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11697 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11698 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 gcc_cv_as_powerpc_mfcrf=no
11702 if test $in_tree_gas = yes; then
11703 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11704 then gcc_cv_as_powerpc_mfcrf=yes
11706 elif test x$gcc_cv_as != x; then
11707 echo "$conftest_s" > conftest.s
11708 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }
11715 gcc_cv_as_powerpc_mfcrf=yes
11717 echo "configure: failed program was" >&5
11720 rm -f conftest.o conftest.s
11723 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11724 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11725 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11727 cat >>confdefs.h <<\_ACEOF
11728 #define HAVE_AS_MFCRF 1
11735 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11736 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11737 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 gcc_cv_as_mips_explicit_relocs=no
11741 if test $in_tree_gas = yes; then
11742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11743 then gcc_cv_as_mips_explicit_relocs=yes
11745 elif test x$gcc_cv_as != x; then
11746 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11747 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }
11754 gcc_cv_as_mips_explicit_relocs=yes
11756 echo "configure: failed program was" >&5
11759 rm -f conftest.o conftest.s
11762 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11763 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11764 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11765 if test x$target_cpu_default = x
11766 then target_cpu_default=MASK_EXPLICIT_RELOCS
11767 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11771 if test x$gas_flag = xyes \
11772 || test x"$host" != x"$build" \
11773 || test ! -x "$gcc_cv_as" \
11774 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
11777 echo "*** This configuration requires the GNU assembler" >&2
11782 # ??? Not all targets support dwarf2 debug_line, even within a version
11783 # of gas. Moreover, we need to emit a valid instruction to trigger any
11784 # info to the output file. So, as supported targets are added to gas 2.11,
11785 # add some instruction here to (also) show we expect this might work.
11786 # ??? Once 2.11 is released, probably need to add first known working
11787 # version to the per-target configury.
11789 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11790 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11791 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11794 ia64*-*-* | s390*-*-*)
11801 if test x"$insn" != x; then
11803 .file 1 \"conftest.s\"
11806 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11807 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11808 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 gcc_cv_as_dwarf2_debug_line=no
11812 if test $in_tree_gas = yes; then
11813 if test $in_tree_gas_is_elf = yes \
11814 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11815 then gcc_cv_as_dwarf2_debug_line=yes
11817 elif test x$gcc_cv_as != x; then
11818 echo "$conftest_s" > conftest.s
11819 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }
11826 # ??? This fails with non-gnu grep. Maybe use objdump?
11827 if grep debug_line conftest.o > /dev/null 2>&1; then
11828 gcc_cv_as_dwarf2_debug_line=yes
11831 echo "configure: failed program was" >&5
11834 rm -f conftest.o conftest.s
11837 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11838 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11841 # The .debug_line file table must be in the exact order that
11842 # we specified the files, since these indices are also used
11843 # by DW_AT_decl_file. Approximate this test by testing if
11844 # the assembler bitches if the same index is assigned twice.
11845 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11846 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11847 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 gcc_cv_as_dwarf2_file_buggy=no
11851 if test x$gcc_cv_as != x; then
11852 echo ' .file 1 "foo.s"
11853 .file 1 "bar.s"' > conftest.s
11854 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }
11861 gcc_cv_as_dwarf2_file_buggy=yes
11863 echo "configure: failed program was" >&5
11866 rm -f conftest.o conftest.s
11869 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11870 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11873 if test $gcc_cv_as_dwarf2_debug_line = yes \
11874 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11876 cat >>confdefs.h <<\_ACEOF
11877 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11882 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11883 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11884 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 gcc_cv_as_gdwarf2_flag=no
11888 if test $in_tree_gas = yes; then
11889 if test $in_tree_gas_is_elf = yes \
11890 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11891 then gcc_cv_as_gdwarf2_flag=yes
11893 elif test x$gcc_cv_as != x; then
11894 echo "$insn" > conftest.s
11895 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }
11902 gcc_cv_as_gdwarf2_flag=yes
11904 echo "configure: failed program was" >&5
11907 rm -f conftest.o conftest.s
11910 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11911 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11912 if test $gcc_cv_as_gdwarf2_flag = yes; then
11914 cat >>confdefs.h <<\_ACEOF
11915 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11920 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11921 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11922 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 gcc_cv_as_gstabs_flag=no
11926 if test $in_tree_gas = yes; then
11927 if test $in_tree_gas_is_elf = yes \
11928 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11929 then gcc_cv_as_gstabs_flag=yes
11931 elif test x$gcc_cv_as != x; then
11932 echo "$insn" > conftest.s
11933 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }
11940 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11941 # and warns about it, but still exits successfully. So check for
11943 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }
11950 else gcc_cv_as_gstabs_flag=yes
11953 echo "configure: failed program was" >&5
11956 rm -f conftest.o conftest.s
11959 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11960 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11961 if test $gcc_cv_as_gstabs_flag = yes; then
11963 cat >>confdefs.h <<\_ACEOF
11964 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11970 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11971 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11972 gcc_cv_ld_ro_rw_mix=unknown
11973 if test $in_tree_ld = yes ; then
11974 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 \
11975 && test $in_tree_ld_is_elf = yes; then
11976 gcc_cv_ld_ro_rw_mix=read-write
11978 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11979 echo '.section myfoosect, "a"' > conftest1.s
11980 echo '.section myfoosect, "aw"' > conftest2.s
11981 echo '.byte 1' >> conftest2.s
11982 echo '.section myfoosect, "a"' > conftest3.s
11983 echo '.byte 0' >> conftest3.s
11984 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11985 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11986 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11987 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11988 conftest2.o conftest3.o > /dev/null 2>&1; then
11989 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11990 | sed -e '/myfoosect/!d' -e N`
11991 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11992 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11993 gcc_cv_ld_ro_rw_mix=read-only
11995 gcc_cv_ld_ro_rw_mix=read-write
11999 rm -f conftest.* conftest[123].*
12001 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
12003 cat >>confdefs.h <<\_ACEOF
12004 #define HAVE_LD_RO_RW_SECTION_MIXING 1
12008 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
12009 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
12011 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
12012 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
12013 gcc_cv_ld_eh_frame_hdr=no
12014 if test $in_tree_ld = yes ; then
12015 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 \
12016 && test $in_tree_ld_is_elf = yes; then
12017 gcc_cv_ld_eh_frame_hdr=yes
12019 elif test x$gcc_cv_ld != x; then
12020 # Check if linker supports --eh-frame-hdr option
12021 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
12022 gcc_cv_ld_eh_frame_hdr=yes
12025 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
12027 cat >>confdefs.h <<\_ACEOF
12028 #define HAVE_LD_EH_FRAME_HDR 1
12032 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12033 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12035 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12036 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12038 if test $in_tree_ld = yes ; then
12039 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 \
12040 && test $in_tree_ld_is_elf = yes; then
12043 elif test x$gcc_cv_ld != x; then
12044 # Check if linker supports -pie option
12045 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
12049 if test x"$gcc_cv_ld_pie" = xyes; then
12051 cat >>confdefs.h <<\_ACEOF
12052 #define HAVE_LD_PIE 1
12056 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12057 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12063 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12064 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12065 if test "${gcc_cv_ld_as_needed+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 gcc_cv_ld_as_needed=no
12069 if test $in_tree_ld = yes ; then
12070 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 \
12071 && test $in_tree_ld_is_elf = yes; then
12072 gcc_cv_ld_as_needed=yes
12074 elif test x$gcc_cv_ld != x; then
12075 # Check if linker supports --as-needed and --no-as-needed options
12076 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12077 gcc_cv_ld_as_needed=yes
12082 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12083 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12084 if test x"$gcc_cv_ld_as_needed" = xyes; then
12086 cat >>confdefs.h <<\_ACEOF
12087 #define HAVE_LD_AS_NEEDED 1
12093 powerpc64*-*-linux*)
12094 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
12095 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
12096 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 gcc_cv_ld_no_dot_syms=no
12100 if test $in_tree_ld = yes ; then
12101 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
12102 gcc_cv_ld_no_dot_syms=yes
12104 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
12105 cat > conftest1.s <<EOF
12109 cat > conftest2.s <<EOF
12110 .section ".opd","aw"
12113 .type foo,@function
12115 .quad .LEfoo,.TOC.@tocbase,0
12121 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
12122 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
12123 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
12124 gcc_cv_ld_no_dot_syms=yes
12126 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
12130 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
12131 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
12132 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
12134 cat >>confdefs.h <<\_ACEOF
12135 #define HAVE_LD_NO_DOT_SYMS 1
12142 if test x$with_sysroot = x && test x$host = x$target \
12143 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12145 cat >>confdefs.h <<_ACEOF
12146 #define PREFIX_INCLUDE_DIR "$prefix/include"
12151 # Find out what GC implementation we want, or may, use.
12153 # Check whether --with-gc or --without-gc was given.
12154 if test "${with_gc+set}" = set; then
12161 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12162 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12163 { (exit 1); exit 1; }; }
12170 echo "Using $GGC for garbage collection."
12172 # Use the system's zlib library.
12174 zlibinc="-I\$(srcdir)/../zlib"
12176 # Check whether --with-system-zlib or --without-system-zlib was given.
12177 if test "${with_system_zlib+set}" = set; then
12178 withval="$with_system_zlib"
12187 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12188 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12189 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12190 if test "${enable_maintainer_mode+set}" = set; then
12191 enableval="$enable_maintainer_mode"
12192 maintainer_mode=$enableval
12197 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12198 echo "${ECHO_T}$maintainer_mode" >&6
12200 if test "$maintainer_mode" = "yes"; then
12206 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
12207 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
12209 # Check whether --with-libbanshee or --without-libbanshee was given.
12210 if test "${with_libbanshee+set}" = set; then
12211 withval="$with_libbanshee"
12212 libbanshee="$with_libbanshee"
12217 if test x"$libbanshee" = xyes; then
12218 BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
12219 BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
12220 ANDER="tree-alias-ander.o"
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_BANSHEE 1
12231 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
12232 echo "${ECHO_T}$with_libbanshee" >&6
12242 # Make empty files to contain the specs and options for each language.
12243 # Then add #include lines to for a compiler that has specs and/or options.
12248 for subdir in . $subdirs
12250 if test -f $srcdir/$subdir/lang.opt; then
12251 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12253 if test -f $srcdir/$subdir/lang-specs.h; then
12254 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12256 if test -f $srcdir/$subdir/$subdir-tree.def; then
12257 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12261 # These (without "all_") are set in each config-lang.in.
12262 # `language' must be a single word so is spelled singularly.
12264 all_boot_languages=
12267 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
12268 # List of language makefile fragments.
12269 all_lang_makefrags=
12270 # List of language subdirectory makefiles. Deprecated.
12271 all_lang_makefiles=
12272 # Files for gengtype
12273 all_gtfiles="$target_gtfiles"
12274 # Files for gengtype with language
12275 all_gtfiles_files_langs=
12276 all_gtfiles_files_files=
12278 # Add the language fragments.
12279 # Languages are added via two mechanisms. Some information must be
12280 # recorded in makefile variables, these are defined in config-lang.in.
12281 # We accumulate them and plug them into the main Makefile.
12282 # The other mechanism is a set of hooks for each of the main targets
12283 # like `clean', `install', etc.
12285 language_hooks="Make-hooks"
12295 . ${srcdir}/$s/config-lang.in
12296 if test "x$language" = x
12298 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12301 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12302 if test -f ${srcdir}/$s/Makefile.in
12303 then all_lang_makefiles="$s/Makefile"
12305 all_languages="$all_languages $language"
12306 if test "x$boot_language" = xyes
12308 all_boot_languages="$all_boot_languages $language"
12310 all_compilers="$all_compilers $compilers"
12311 all_stagestuff="$all_stagestuff $stagestuff"
12312 all_outputs="$all_outputs $outputs"
12313 all_gtfiles="$all_gtfiles $gtfiles"
12316 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12317 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12321 # Pick up gtfiles for c
12324 . ${srcdir}/c-config-lang.in
12325 all_gtfiles="$all_gtfiles $gtfiles"
12328 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12329 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12333 for language in $all_languages
12335 check_languages="$check_languages check-$language"
12338 # We link each language in with a set of hooks, reached indirectly via
12343 target_list="all.build all.cross start.encap rest.encap tags \
12344 install-normal install-common install-man \
12345 uninstall info man srcextra srcman srcinfo \
12346 mostlyclean clean distclean maintainer-clean \
12347 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12348 for t in $target_list
12351 for lang in $all_languages
12355 echo "lang.$t: $x" >> Make-hooks
12364 echo "dir ." > .gdbinit
12365 echo "dir ${srcdir}" >> .gdbinit
12366 if test x$gdb_needs_out_file_path = xyes
12368 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12370 if test "x$subdirs" != x; then
12373 echo "dir ${srcdir}/$s" >> .gdbinit
12376 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12378 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12379 # absolute path for gcc_tooldir based on inserting the number of up-directory
12380 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12381 # $(libsubdir)/@(unlibsubdir) based path.
12382 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12383 # make and thus we'd get different behavior depending on where we built the
12385 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12386 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12388 # An explanation of the sed strings:
12389 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12390 # -e 's|/$||' match a trailing forward slash and eliminates it
12391 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12392 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12394 # (*) Note this pattern overwrites the first character of the string
12395 # with a forward slash if one is not already present. This is not a
12396 # problem because the exact names of the sub-directories concerned is
12397 # unimportant, just the number of them matters.
12399 # The practical upshot of these patterns is like this:
12401 # prefix exec_prefix result
12402 # ------ ----------- ------
12403 # /foo /foo/bar ../
12404 # /foo/ /foo/bar ../
12405 # /foo /foo/bar/ ../
12406 # /foo/ /foo/bar/ ../
12407 # /foo /foo/bar/ugg ../../
12410 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12415 # Find a directory in which to install a shared libgcc.
12417 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12418 if test "${enable_version_specific_runtime_libs+set}" = set; then
12419 enableval="$enable_version_specific_runtime_libs"
12424 # Check whether --with-slibdir or --without-slibdir was given.
12425 if test "${with_slibdir+set}" = set; then
12426 withval="$with_slibdir"
12427 slibdir="$with_slibdir"
12429 if test "${enable_version_specific_runtime_libs+set}" = set; then
12430 slibdir='$(libsubdir)'
12431 elif test "$host" != "$target"; then
12432 slibdir='$(build_tooldir)/lib'
12434 slibdir='$(libdir)'
12439 objdir=`${PWDCMD-pwd}`
12442 # Substitute configuration variables
12510 # If it doesn't already exist, create document directory
12511 echo "checking for the document directory." 1>&2
12512 if test -d doc ; then
12519 if test x${build} = x${host} ; then
12520 if test x${host} = x${target} ; then
12521 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12523 echo "Links are now set up to build a cross-compiler" 1>&2
12524 echo " from ${host} to ${target}." 1>&2
12527 if test x${host} = x${target} ; then
12528 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12529 echo " for ${target}." 1>&2
12531 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12532 echo " from ${host} to ${target}." 1>&2
12539 # Configure the subdirectories
12540 # AC_CONFIG_SUBDIRS($subdirs)
12542 # Create the Makefile
12543 # and configure language subdirectories
12544 ac_config_files="$ac_config_files $all_outputs"
12547 ac_config_commands="$ac_config_commands default"
12549 cat >confcache <<\_ACEOF
12550 # This file is a shell script that caches the results of configure
12551 # tests run on this system so they can be shared between configure
12552 # scripts and configure runs, see configure's option --config-cache.
12553 # It is not useful on other systems. If it contains results you don't
12554 # want to keep, you may remove or edit it.
12556 # config.status only pays attention to the cache file if you give it
12557 # the --recheck option to rerun configure.
12559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12561 # following values.
12565 # The following way of writing the cache mishandles newlines in values,
12566 # but we know of no workaround that is simple, portable, and efficient.
12567 # So, don't put newlines in cache variables' values.
12568 # Ultrix sh set writes to stderr and can't be redirected directly,
12569 # and sets the high bit in the cache file unless we assign to the vars.
12572 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12574 # `set' does not quote correctly, so add quotes (double-quote
12575 # substitution turns \\\\ into \\, and sed turns \\ into \).
12578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12581 # `set' quotes correctly as required by POSIX, so do not add quotes.
12583 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12592 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12594 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12595 if test -w $cache_file; then
12596 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12597 cat confcache >$cache_file
12599 echo "not updating unwritable cache $cache_file"
12604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12605 # Let make expand exec_prefix.
12606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12608 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12609 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12610 # trailing colons and then remove the whole line if VPATH becomes empty
12611 # (actually we leave an empty line to preserve line numbers).
12612 if test "x$srcdir" = x.; then
12613 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12614 s/:*\$(srcdir):*/:/;
12615 s/:*\${srcdir}:*/:/;
12617 s/^\([^=]*=[ ]*\):*/\1/;
12623 DEFS=-DHAVE_CONFIG_H
12627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12628 # 1. Remove the extension, and $U if already installed.
12629 ac_i=`echo "$ac_i" |
12630 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12632 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12633 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12635 LIBOBJS=$ac_libobjs
12637 LTLIBOBJS=$ac_ltlibobjs
12641 : ${CONFIG_STATUS=./config.status}
12642 ac_clean_files_save=$ac_clean_files
12643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12644 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12645 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12646 cat >$CONFIG_STATUS <<_ACEOF
12648 # Generated by $as_me.
12649 # Run this file to recreate the current configuration.
12650 # Compiler output produced by configure, useful for debugging
12651 # configure, is in config.log if it exists.
12654 ac_cs_recheck=false
12656 SHELL=\${CONFIG_SHELL-$SHELL}
12659 cat >>$CONFIG_STATUS <<\_ACEOF
12660 ## --------------------- ##
12661 ## M4sh Initialization. ##
12662 ## --------------------- ##
12664 # Be Bourne compatible
12665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12668 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12669 # is contrary to our usage. Disable this feature.
12670 alias -g '${1+"$@"}'='"$@"'
12671 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12674 DUALCASE=1; export DUALCASE # for MKS sh
12676 # Support unset when possible.
12677 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12684 # Work around bugs in pre-3.0 UWIN ksh.
12685 $as_unset ENV MAIL MAILPATH
12692 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12693 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12694 LC_TELEPHONE LC_TIME
12696 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12697 eval $as_var=C; export $as_var
12703 # Required to use basename.
12704 if expr a : '\(a\)' >/dev/null 2>&1; then
12710 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12711 as_basename=basename
12717 # Name of the executable.
12718 as_me=`$as_basename "$0" ||
12719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12720 X"$0" : 'X\(//\)$' \| \
12721 X"$0" : 'X\(/\)$' \| \
12722 . : '\(.\)' 2>/dev/null ||
12724 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12725 /^X\/\(\/\/\)$/{ s//\1/; q; }
12726 /^X\/\(\/\).*/{ s//\1/; q; }
12730 # PATH needs CR, and LINENO needs CR and PATH.
12731 # Avoid depending upon Character Ranges.
12732 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12733 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12734 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12735 as_cr_digits='0123456789'
12736 as_cr_alnum=$as_cr_Letters$as_cr_digits
12738 # The user is always right.
12739 if test "${PATH_SEPARATOR+set}" != set; then
12740 echo "#! /bin/sh" >conf$$.sh
12741 echo "exit 0" >>conf$$.sh
12743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12752 as_lineno_1=$LINENO
12753 as_lineno_2=$LINENO
12754 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12755 test "x$as_lineno_1" != "x$as_lineno_2" &&
12756 test "x$as_lineno_3" = "x$as_lineno_2" || {
12757 # Find who we are. Look in the path if we contain no path at all
12760 *[\\/]* ) as_myself=$0 ;;
12761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762 for as_dir in $PATH
12765 test -z "$as_dir" && as_dir=.
12766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12771 # We did not find ourselves, most probably we were run as `sh COMMAND'
12772 # in which case we are not to be found in the path.
12773 if test "x$as_myself" = x; then
12776 if test ! -f "$as_myself"; then
12777 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12778 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12779 { (exit 1); exit 1; }; }
12781 case $CONFIG_SHELL in
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12787 test -z "$as_dir" && as_dir=.
12788 for as_base in sh bash ksh sh5; do
12791 if ("$as_dir/$as_base" -c '
12792 as_lineno_1=$LINENO
12793 as_lineno_2=$LINENO
12794 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12795 test "x$as_lineno_1" != "x$as_lineno_2" &&
12796 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12797 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12798 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12799 CONFIG_SHELL=$as_dir/$as_base
12800 export CONFIG_SHELL
12801 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12809 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12810 # uniformly replaced by the line number. The first 'sed' inserts a
12811 # line-number line before each line; the second 'sed' does the real
12812 # work. The second script uses 'N' to pair each line-number line
12813 # with the numbered line, and appends trailing '-' during
12814 # substitution so that $LINENO is not a special case at line end.
12815 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12816 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12817 sed '=' <$as_myself |
12822 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12825 s,^['$as_cr_digits']*\n,,
12826 ' >$as_me.lineno &&
12827 chmod +x $as_me.lineno ||
12828 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12829 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12830 { (exit 1); exit 1; }; }
12832 # Don't try to exec as it changes $[0], causing all sort of problems
12833 # (the dirname of $[0] is not the place where we might find the
12834 # original and so on. Autoconf is especially sensible to this).
12836 # Exit status is that of the last command.
12841 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12842 *c*,-n*) ECHO_N= ECHO_C='
12844 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12845 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12848 if expr a : '\(a\)' >/dev/null 2>&1; then
12854 rm -f conf$$ conf$$.exe conf$$.file
12856 if ln -s conf$$.file conf$$ 2>/dev/null; then
12857 # We could just check for DJGPP; but this test a) works b) is more generic
12858 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12859 if test -f conf$$.exe; then
12860 # Don't use ln at all; we don't have any links
12865 elif ln conf$$.file conf$$ 2>/dev/null; then
12870 rm -f conf$$ conf$$.exe conf$$.file
12872 if mkdir -p . 2>/dev/null; then
12875 test -d ./-p && rmdir ./-p
12879 as_executable_p="test -f"
12881 # Sed expression to map a string onto a valid CPP name.
12882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12884 # Sed expression to map a string onto a valid variable name.
12885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12889 # We need space, tab and new line, in precisely that order.
12899 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12900 # report actual input values of CONFIG_FILES etc. instead of their
12901 # values after options handling. Logging --version etc. is OK.
12905 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12906 ## Running $as_me. ##
12911 This file was extended by $as_me, which was
12912 generated by GNU Autoconf 2.59. Invocation command line was
12914 CONFIG_FILES = $CONFIG_FILES
12915 CONFIG_HEADERS = $CONFIG_HEADERS
12916 CONFIG_LINKS = $CONFIG_LINKS
12917 CONFIG_COMMANDS = $CONFIG_COMMANDS
12921 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12925 # Files that config.status was made for.
12926 if test -n "$ac_config_files"; then
12927 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12930 if test -n "$ac_config_headers"; then
12931 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12934 if test -n "$ac_config_links"; then
12935 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12938 if test -n "$ac_config_commands"; then
12939 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12942 cat >>$CONFIG_STATUS <<\_ACEOF
12945 \`$as_me' instantiates files from templates according to the
12946 current configuration.
12948 Usage: $0 [OPTIONS] [FILE]...
12950 -h, --help print this help, then exit
12951 -V, --version print version number, then exit
12952 -q, --quiet do not print progress messages
12953 -d, --debug don't remove temporary files
12954 --recheck update $as_me by reconfiguring in the same conditions
12955 --file=FILE[:TEMPLATE]
12956 instantiate the configuration file FILE
12957 --header=FILE[:TEMPLATE]
12958 instantiate the configuration header FILE
12960 Configuration files:
12963 Configuration headers:
12966 Configuration commands:
12969 Report bugs to <bug-autoconf@gnu.org>."
12972 cat >>$CONFIG_STATUS <<_ACEOF
12975 configured by $0, generated by GNU Autoconf 2.59,
12976 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12978 Copyright (C) 2003 Free Software Foundation, Inc.
12979 This config.status script is free software; the Free Software Foundation
12980 gives unlimited permission to copy, distribute and modify it."
12984 cat >>$CONFIG_STATUS <<\_ACEOF
12985 # If no file are specified by the user, then we need to provide default
12986 # value. By we need to know if files were specified by the user.
12992 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12993 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13001 *) # This is not an option, so the user has probably given explicit
13004 ac_need_defaults=false;;
13008 # Handling of the options.
13010 cat >>$CONFIG_STATUS <<\_ACEOF
13011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13013 --version | --vers* | -V )
13014 echo "$ac_cs_version"; exit 0 ;;
13016 # Conflict between --help and --header
13017 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13018 Try \`$0 --help' for more information." >&5
13019 echo "$as_me: error: ambiguous option: $1
13020 Try \`$0 --help' for more information." >&2;}
13021 { (exit 1); exit 1; }; };;
13022 --help | --hel | -h )
13023 echo "$ac_cs_usage"; exit 0 ;;
13024 --debug | --d* | -d )
13026 --file | --fil | --fi | --f )
13028 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13029 ac_need_defaults=false;;
13030 --header | --heade | --head | --hea )
13032 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13033 ac_need_defaults=false;;
13034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13035 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13038 # This is an error.
13039 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13040 Try \`$0 --help' for more information." >&5
13041 echo "$as_me: error: unrecognized option: $1
13042 Try \`$0 --help' for more information." >&2;}
13043 { (exit 1); exit 1; }; } ;;
13045 *) ac_config_targets="$ac_config_targets $1" ;;
13051 ac_configure_extra_args=
13053 if $ac_cs_silent; then
13055 ac_configure_extra_args="$ac_configure_extra_args --silent"
13059 cat >>$CONFIG_STATUS <<_ACEOF
13060 if \$ac_cs_recheck; then
13061 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13062 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13067 cat >>$CONFIG_STATUS <<_ACEOF
13069 # INIT-COMMANDS section.
13073 symbolic_link='$symbolic_link'
13080 cat >>$CONFIG_STATUS <<\_ACEOF
13081 for ac_config_target in $ac_config_targets
13083 case "$ac_config_target" in
13084 # Handling of arguments.
13085 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13086 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13087 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13088 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13089 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13090 { (exit 1); exit 1; }; };;
13094 # If the user did not use the arguments to specify the items to instantiate,
13095 # then the envvar interface is used. Set only those that are not.
13096 # We use the long form for the default assignment because of an extremely
13097 # bizarre bug on SunOS 4.1.3.
13098 if $ac_need_defaults; then
13099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13104 # Have a temporary directory for convenience. Make it in the build tree
13105 # simply because there is no reason to put it here, and in addition,
13106 # creating and moving files from /tmp can sometimes cause problems.
13107 # Create a temporary directory, and hook for its removal unless debugging.
13110 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13111 trap '{ (exit 1); exit 1; }' 1 2 13 15
13114 # Create a (secure) tmp directory for tmp files.
13117 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13118 test -n "$tmp" && test -d "$tmp"
13121 tmp=./confstat$$-$RANDOM
13122 (umask 077 && mkdir $tmp)
13125 echo "$me: cannot create a temporary directory in ." >&2
13126 { (exit 1); exit 1; }
13131 cat >>$CONFIG_STATUS <<_ACEOF
13134 # CONFIG_FILES section.
13137 # No need to generate the scripts if there are no CONFIG_FILES.
13138 # This happens for instance when ./config.status config.h
13139 if test -n "\$CONFIG_FILES"; then
13140 # Protect against being on the right side of a sed subst in config.status.
13141 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13142 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13143 s,@SHELL@,$SHELL,;t t
13144 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13145 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13146 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13147 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13148 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13149 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13150 s,@exec_prefix@,$exec_prefix,;t t
13151 s,@prefix@,$prefix,;t t
13152 s,@program_transform_name@,$program_transform_name,;t t
13153 s,@bindir@,$bindir,;t t
13154 s,@sbindir@,$sbindir,;t t
13155 s,@libexecdir@,$libexecdir,;t t
13156 s,@datadir@,$datadir,;t t
13157 s,@sysconfdir@,$sysconfdir,;t t
13158 s,@sharedstatedir@,$sharedstatedir,;t t
13159 s,@localstatedir@,$localstatedir,;t t
13160 s,@libdir@,$libdir,;t t
13161 s,@includedir@,$includedir,;t t
13162 s,@oldincludedir@,$oldincludedir,;t t
13163 s,@infodir@,$infodir,;t t
13164 s,@mandir@,$mandir,;t t
13165 s,@build_alias@,$build_alias,;t t
13166 s,@host_alias@,$host_alias,;t t
13167 s,@target_alias@,$target_alias,;t t
13168 s,@DEFS@,$DEFS,;t t
13169 s,@ECHO_C@,$ECHO_C,;t t
13170 s,@ECHO_N@,$ECHO_N,;t t
13171 s,@ECHO_T@,$ECHO_T,;t t
13172 s,@LIBS@,$LIBS,;t t
13173 s,@build@,$build,;t t
13174 s,@build_cpu@,$build_cpu,;t t
13175 s,@build_vendor@,$build_vendor,;t t
13176 s,@build_os@,$build_os,;t t
13177 s,@host@,$host,;t t
13178 s,@host_cpu@,$host_cpu,;t t
13179 s,@host_vendor@,$host_vendor,;t t
13180 s,@host_os@,$host_os,;t t
13181 s,@target@,$target,;t t
13182 s,@target_cpu@,$target_cpu,;t t
13183 s,@target_vendor@,$target_vendor,;t t
13184 s,@target_os@,$target_os,;t t
13185 s,@target_noncanonical@,$target_noncanonical,;t t
13186 s,@build_subdir@,$build_subdir,;t t
13187 s,@host_subdir@,$host_subdir,;t t
13188 s,@target_subdir@,$target_subdir,;t t
13189 s,@GENINSRC@,$GENINSRC,;t t
13191 s,@CFLAGS@,$CFLAGS,;t t
13192 s,@LDFLAGS@,$LDFLAGS,;t t
13193 s,@CPPFLAGS@,$CPPFLAGS,;t t
13194 s,@ac_ct_CC@,$ac_ct_CC,;t t
13195 s,@EXEEXT@,$EXEEXT,;t t
13196 s,@OBJEXT@,$OBJEXT,;t t
13197 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13198 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13200 s,@strict1_warn@,$strict1_warn,;t t
13201 s,@warn_cflags@,$warn_cflags,;t t
13202 s,@WERROR@,$WERROR,;t t
13203 s,@nocommon_flag@,$nocommon_flag,;t t
13204 s,@TREEBROWSER@,$TREEBROWSER,;t t
13205 s,@EGREP@,$EGREP,;t t
13206 s,@valgrind_path@,$valgrind_path,;t t
13207 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13208 s,@valgrind_command@,$valgrind_command,;t t
13209 s,@coverage_flags@,$coverage_flags,;t t
13210 s,@enable_multilib@,$enable_multilib,;t t
13211 s,@enable_shared@,$enable_shared,;t t
13212 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13213 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13214 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13215 s,@onestep@,$onestep,;t t
13216 s,@SET_MAKE@,$SET_MAKE,;t t
13218 s,@LN_S@,$LN_S,;t t
13220 s,@RANLIB@,$RANLIB,;t t
13221 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13222 s,@ranlib_flags@,$ranlib_flags,;t t
13223 s,@INSTALL@,$INSTALL,;t t
13224 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13225 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13226 s,@make_compare_target@,$make_compare_target,;t t
13227 s,@have_mktemp_command@,$have_mktemp_command,;t t
13228 s,@MAKEINFO@,$MAKEINFO,;t t
13229 s,@BUILD_INFO@,$BUILD_INFO,;t t
13230 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13231 s,@FLEX@,$FLEX,;t t
13232 s,@BISON@,$BISON,;t t
13235 s,@stage1_cflags@,$stage1_cflags,;t t
13236 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13237 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13238 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13239 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13240 s,@LIBICONV@,$LIBICONV,;t t
13241 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13242 s,@manext@,$manext,;t t
13243 s,@objext@,$objext,;t t
13244 s,@gthread_flags@,$gthread_flags,;t t
13245 s,@extra_modes_file@,$extra_modes_file,;t t
13246 s,@PACKAGE@,$PACKAGE,;t t
13247 s,@VERSION@,$VERSION,;t t
13248 s,@USE_NLS@,$USE_NLS,;t t
13249 s,@LIBINTL@,$LIBINTL,;t t
13250 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13251 s,@INCINTL@,$INCINTL,;t t
13252 s,@XGETTEXT@,$XGETTEXT,;t t
13253 s,@GMSGFMT@,$GMSGFMT,;t t
13254 s,@POSUB@,$POSUB,;t t
13255 s,@CATALOGS@,$CATALOGS,;t t
13256 s,@CROSS@,$CROSS,;t t
13258 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13259 s,@inhibit_libc@,$inhibit_libc,;t t
13260 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13261 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13262 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13263 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13264 s,@collect2@,$collect2,;t t
13265 s,@libgcc_visibility@,$libgcc_visibility,;t t
13267 s,@zlibdir@,$zlibdir,;t t
13268 s,@zlibinc@,$zlibinc,;t t
13269 s,@MAINT@,$MAINT,;t t
13270 s,@ANDER@,$ANDER,;t t
13271 s,@BANSHEEINC@,$BANSHEEINC,;t t
13272 s,@BANSHEELIB@,$BANSHEELIB,;t t
13273 s,@gcc_tooldir@,$gcc_tooldir,;t t
13274 s,@dollar@,$dollar,;t t
13275 s,@slibdir@,$slibdir,;t t
13276 s,@objdir@,$objdir,;t t
13277 s,@subdirs@,$subdirs,;t t
13278 s,@srcdir@,$srcdir,;t t
13279 s,@all_boot_languages@,$all_boot_languages,;t t
13280 s,@all_compilers@,$all_compilers,;t t
13281 s,@all_gtfiles@,$all_gtfiles,;t t
13282 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13283 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13284 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13285 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13286 s,@all_languages@,$all_languages,;t t
13287 s,@all_stagestuff@,$all_stagestuff,;t t
13288 s,@build_exeext@,$build_exeext,;t t
13289 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13290 s,@build_xm_file_list@,$build_xm_file_list,;t t
13291 s,@build_xm_include_list@,$build_xm_include_list,;t t
13292 s,@build_xm_defines@,$build_xm_defines,;t t
13293 s,@check_languages@,$check_languages,;t t
13294 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13295 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13296 s,@cpp_install_dir@,$cpp_install_dir,;t t
13297 s,@xmake_file@,$xmake_file,;t t
13298 s,@tmake_file@,$tmake_file,;t t
13299 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13300 s,@extra_headers_list@,$extra_headers_list,;t t
13301 s,@extra_objs@,$extra_objs,;t t
13302 s,@extra_parts@,$extra_parts,;t t
13303 s,@extra_passes@,$extra_passes,;t t
13304 s,@extra_programs@,$extra_programs,;t t
13305 s,@float_h_file@,$float_h_file,;t t
13306 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13307 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13308 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13309 s,@gcc_version@,$gcc_version,;t t
13310 s,@gcc_version_full@,$gcc_version_full,;t t
13311 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13312 s,@host_exeext@,$host_exeext,;t t
13313 s,@host_xm_file_list@,$host_xm_file_list,;t t
13314 s,@host_xm_include_list@,$host_xm_include_list,;t t
13315 s,@host_xm_defines@,$host_xm_defines,;t t
13316 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13317 s,@install@,$install,;t t
13318 s,@lang_opt_files@,$lang_opt_files,;t t
13319 s,@lang_specs_files@,$lang_specs_files,;t t
13320 s,@lang_tree_files@,$lang_tree_files,;t t
13321 s,@local_prefix@,$local_prefix,;t t
13322 s,@md_file@,$md_file,;t t
13323 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13324 s,@out_file@,$out_file,;t t
13325 s,@out_object_file@,$out_object_file,;t t
13326 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13327 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13328 s,@symbolic_link@,$symbolic_link,;t t
13329 s,@thread_file@,$thread_file,;t t
13330 s,@tm_file_list@,$tm_file_list,;t t
13331 s,@tm_include_list@,$tm_include_list,;t t
13332 s,@tm_defines@,$tm_defines,;t t
13333 s,@tm_p_file_list@,$tm_p_file_list,;t t
13334 s,@tm_p_include_list@,$tm_p_include_list,;t t
13335 s,@xm_file_list@,$xm_file_list,;t t
13336 s,@xm_include_list@,$xm_include_list,;t t
13337 s,@xm_defines@,$xm_defines,;t t
13338 s,@c_target_objs@,$c_target_objs,;t t
13339 s,@cxx_target_objs@,$cxx_target_objs,;t t
13340 s,@target_cpu_default@,$target_cpu_default,;t t
13341 s,@GMPLIBS@,$GMPLIBS,;t t
13342 s,@GMPINC@,$GMPINC,;t t
13343 s,@LIBOBJS@,$LIBOBJS,;t t
13344 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13345 /@language_hooks@/r $language_hooks
13346 s,@language_hooks@,,;t t
13351 cat >>$CONFIG_STATUS <<\_ACEOF
13352 # Split the substitutions into bite-sized pieces for seds with
13353 # small command number limits, like on Digital OSF/1 and HP-UX.
13354 ac_max_sed_lines=48
13355 ac_sed_frag=1 # Number of current file.
13356 ac_beg=1 # First line for current file.
13357 ac_end=$ac_max_sed_lines # Line after last line for current file.
13360 while $ac_more_lines; do
13361 if test $ac_beg -gt 1; then
13362 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13364 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13366 if test ! -s $tmp/subs.frag; then
13367 ac_more_lines=false
13369 # The purpose of the label and of the branching condition is to
13370 # speed up the sed processing (if there are no `@' at all, there
13371 # is no need to browse any of the substitutions).
13372 # These are the two extra sed commands mentioned above.
13374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13375 if test -z "$ac_sed_cmds"; then
13376 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13378 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13380 ac_sed_frag=`expr $ac_sed_frag + 1`
13382 ac_end=`expr $ac_end + $ac_max_sed_lines`
13385 if test -z "$ac_sed_cmds"; then
13388 fi # test -n "$CONFIG_FILES"
13391 cat >>$CONFIG_STATUS <<\_ACEOF
13392 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13393 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13395 - | *:- | *:-:* ) # input from stdin
13397 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13399 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13400 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13401 * ) ac_file_in=$ac_file.in ;;
13404 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13405 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13407 X"$ac_file" : 'X\(//\)[^/]' \| \
13408 X"$ac_file" : 'X\(//\)$' \| \
13409 X"$ac_file" : 'X\(/\)' \| \
13410 . : '\(.\)' 2>/dev/null ||
13412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13414 /^X\(\/\/\)$/{ s//\1/; q; }
13415 /^X\(\/\).*/{ s//\1/; q; }
13417 { if $as_mkdir_p; then
13422 while test ! -d "$as_dir"; do
13423 as_dirs="$as_dir $as_dirs"
13424 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13425 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13426 X"$as_dir" : 'X\(//\)[^/]' \| \
13427 X"$as_dir" : 'X\(//\)$' \| \
13428 X"$as_dir" : 'X\(/\)' \| \
13429 . : '\(.\)' 2>/dev/null ||
13431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13432 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13433 /^X\(\/\/\)$/{ s//\1/; q; }
13434 /^X\(\/\).*/{ s//\1/; q; }
13437 test ! -n "$as_dirs" || mkdir $as_dirs
13438 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13439 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13440 { (exit 1); exit 1; }; }; }
13444 if test "$ac_dir" != .; then
13445 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13446 # A "../" for each directory in $ac_dir_suffix.
13447 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13449 ac_dir_suffix= ac_top_builddir=
13453 .) # No --srcdir option. We are building in place.
13455 if test -z "$ac_top_builddir"; then
13458 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13460 [\\/]* | ?:[\\/]* ) # Absolute path.
13461 ac_srcdir=$srcdir$ac_dir_suffix;
13462 ac_top_srcdir=$srcdir ;;
13463 *) # Relative path.
13464 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13465 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13468 # Do not use `cd foo && pwd` to compute absolute paths, because
13469 # the directories may not exist.
13471 .) ac_abs_builddir="$ac_dir";;
13474 .) ac_abs_builddir=`pwd`;;
13475 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13476 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13479 case $ac_abs_builddir in
13480 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13482 case ${ac_top_builddir}. in
13483 .) ac_abs_top_builddir=$ac_abs_builddir;;
13484 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13485 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13488 case $ac_abs_builddir in
13489 .) ac_abs_srcdir=$ac_srcdir;;
13492 .) ac_abs_srcdir=$ac_abs_builddir;;
13493 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13494 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13497 case $ac_abs_builddir in
13498 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13500 case $ac_top_srcdir in
13501 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13502 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13503 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13509 # Let's still pretend it is `configure' which instantiates (i.e., don't
13510 # use $as_me), people would be surprised to read:
13511 # /* config.h. Generated by config.status. */
13512 if test x"$ac_file" = x-; then
13515 configure_input="$ac_file. "
13517 configure_input=$configure_input"Generated from `echo $ac_file_in |
13518 sed 's,.*/,,'` by configure."
13520 # First look for the input files in the build tree, otherwise in the
13522 ac_file_inputs=`IFS=:
13523 for f in $ac_file_in; do
13525 -) echo $tmp/stdin ;;
13527 # Absolute (can't be DOS-style, as IFS=:)
13528 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13529 echo "$as_me: error: cannot find input file: $f" >&2;}
13530 { (exit 1); exit 1; }; }
13533 if test -f "$f"; then
13536 elif test -f "$srcdir/$f"; then
13541 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13542 echo "$as_me: error: cannot find input file: $f" >&2;}
13543 { (exit 1); exit 1; }; }
13546 done` || { (exit 1); exit 1; }
13548 if test x"$ac_file" != x-; then
13549 { echo "$as_me:$LINENO: creating $ac_file" >&5
13550 echo "$as_me: creating $ac_file" >&6;}
13554 cat >>$CONFIG_STATUS <<_ACEOF
13558 cat >>$CONFIG_STATUS <<\_ACEOF
13560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13561 s,@configure_input@,$configure_input,;t t
13562 s,@srcdir@,$ac_srcdir,;t t
13563 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13564 s,@top_srcdir@,$ac_top_srcdir,;t t
13565 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13566 s,@builddir@,$ac_builddir,;t t
13567 s,@abs_builddir@,$ac_abs_builddir,;t t
13568 s,@top_builddir@,$ac_top_builddir,;t t
13569 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13570 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13572 if test x"$ac_file" != x-; then
13573 mv $tmp/out $ac_file
13581 cat >>$CONFIG_STATUS <<\_ACEOF
13584 # CONFIG_HEADER section.
13587 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13588 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13590 # ac_d sets the value in "#define NAME VALUE" lines.
13591 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13592 ac_dB='[ ].*$,\1#\2'
13595 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13596 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13597 ac_uB='$,\1#\2define\3'
13601 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13602 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13604 - | *:- | *:-:* ) # input from stdin
13606 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13607 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13608 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13610 * ) ac_file_in=$ac_file.in ;;
13613 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13614 echo "$as_me: creating $ac_file" >&6;}
13616 # First look for the input files in the build tree, otherwise in the
13618 ac_file_inputs=`IFS=:
13619 for f in $ac_file_in; do
13621 -) echo $tmp/stdin ;;
13623 # Absolute (can't be DOS-style, as IFS=:)
13624 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13625 echo "$as_me: error: cannot find input file: $f" >&2;}
13626 { (exit 1); exit 1; }; }
13627 # Do quote $f, to prevent DOS paths from being IFS'd.
13630 if test -f "$f"; then
13633 elif test -f "$srcdir/$f"; then
13638 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13639 echo "$as_me: error: cannot find input file: $f" >&2;}
13640 { (exit 1); exit 1; }; }
13643 done` || { (exit 1); exit 1; }
13644 # Remove the trailing spaces.
13645 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13649 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13650 # `conftest.undefs', that substitutes the proper values into
13651 # config.h.in to produce config.h. The first handles `#define'
13652 # templates, and the second `#undef' templates.
13653 # And first: Protect against being on the right side of a sed subst in
13654 # config.status. Protect against being in an unquoted here document
13655 # in config.status.
13656 rm -f conftest.defines conftest.undefs
13657 # Using a here document instead of a string reduces the quoting nightmare.
13658 # Putting comments in sed scripts is not portable.
13660 # `end' is used to avoid that the second main sed command (meant for
13661 # 0-ary CPP macros) applies to n-ary macro definitions.
13662 # See the Autoconf documentation for `clear'.
13663 cat >confdef2sed.sed <<\_ACEOF
13668 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13670 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13673 # If some macros were called several times there might be several times
13674 # the same #defines, which is useless. Nevertheless, we may not want to
13675 # sort them, since we want the *last* AC-DEFINE to be honored.
13676 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13677 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13678 rm -f confdef2sed.sed
13680 # This sed command replaces #undef with comments. This is necessary, for
13681 # example, in the case of _POSIX_SOURCE, which is predefined and required
13682 # on some systems where configure will not decide to define it.
13683 cat >>conftest.undefs <<\_ACEOF
13684 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13687 # Break up conftest.defines because some shells have a limit on the size
13688 # of here documents, and old seds have small limits too (100 cmds).
13689 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13690 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13691 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13692 echo ' :' >>$CONFIG_STATUS
13693 rm -f conftest.tail
13694 while grep . conftest.defines >/dev/null
13696 # Write a limited-size here document to $tmp/defines.sed.
13697 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13698 # Speed up: don't consider the non `#define' lines.
13699 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13700 # Work around the forget-to-reset-the-flag bug.
13701 echo 't clr' >>$CONFIG_STATUS
13702 echo ': clr' >>$CONFIG_STATUS
13703 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13705 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13707 mv $tmp/out $tmp/in
13709 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13710 rm -f conftest.defines
13711 mv conftest.tail conftest.defines
13713 rm -f conftest.defines
13714 echo ' fi # grep' >>$CONFIG_STATUS
13715 echo >>$CONFIG_STATUS
13717 # Break up conftest.undefs because some shells have a limit on the size
13718 # of here documents, and old seds have small limits too (100 cmds).
13719 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13720 rm -f conftest.tail
13721 while grep . conftest.undefs >/dev/null
13723 # Write a limited-size here document to $tmp/undefs.sed.
13724 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13725 # Speed up: don't consider the non `#undef'
13726 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13727 # Work around the forget-to-reset-the-flag bug.
13728 echo 't clr' >>$CONFIG_STATUS
13729 echo ': clr' >>$CONFIG_STATUS
13730 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13732 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13734 mv $tmp/out $tmp/in
13736 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13737 rm -f conftest.undefs
13738 mv conftest.tail conftest.undefs
13740 rm -f conftest.undefs
13742 cat >>$CONFIG_STATUS <<\_ACEOF
13743 # Let's still pretend it is `configure' which instantiates (i.e., don't
13744 # use $as_me), people would be surprised to read:
13745 # /* config.h. Generated by config.status. */
13746 if test x"$ac_file" = x-; then
13747 echo "/* Generated by configure. */" >$tmp/config.h
13749 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13751 cat $tmp/in >>$tmp/config.h
13753 if test x"$ac_file" != x-; then
13754 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13755 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13756 echo "$as_me: $ac_file is unchanged" >&6;}
13758 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13760 X"$ac_file" : 'X\(//\)[^/]' \| \
13761 X"$ac_file" : 'X\(//\)$' \| \
13762 X"$ac_file" : 'X\(/\)' \| \
13763 . : '\(.\)' 2>/dev/null ||
13765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13767 /^X\(\/\/\)$/{ s//\1/; q; }
13768 /^X\(\/\).*/{ s//\1/; q; }
13770 { if $as_mkdir_p; then
13775 while test ! -d "$as_dir"; do
13776 as_dirs="$as_dir $as_dirs"
13777 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13779 X"$as_dir" : 'X\(//\)[^/]' \| \
13780 X"$as_dir" : 'X\(//\)$' \| \
13781 X"$as_dir" : 'X\(/\)' \| \
13782 . : '\(.\)' 2>/dev/null ||
13784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13786 /^X\(\/\/\)$/{ s//\1/; q; }
13787 /^X\(\/\).*/{ s//\1/; q; }
13790 test ! -n "$as_dirs" || mkdir $as_dirs
13791 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13792 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13793 { (exit 1); exit 1; }; }; }
13796 mv $tmp/config.h $ac_file
13800 rm -f $tmp/config.h
13804 cat >>$CONFIG_STATUS <<\_ACEOF
13807 # CONFIG_COMMANDS section.
13809 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13810 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13811 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13812 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13813 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13814 X"$ac_dest" : 'X\(//\)[^/]' \| \
13815 X"$ac_dest" : 'X\(//\)$' \| \
13816 X"$ac_dest" : 'X\(/\)' \| \
13817 . : '\(.\)' 2>/dev/null ||
13819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13821 /^X\(\/\/\)$/{ s//\1/; q; }
13822 /^X\(\/\).*/{ s//\1/; q; }
13824 { if $as_mkdir_p; then
13829 while test ! -d "$as_dir"; do
13830 as_dirs="$as_dir $as_dirs"
13831 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13833 X"$as_dir" : 'X\(//\)[^/]' \| \
13834 X"$as_dir" : 'X\(//\)$' \| \
13835 X"$as_dir" : 'X\(/\)' \| \
13836 . : '\(.\)' 2>/dev/null ||
13838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13840 /^X\(\/\/\)$/{ s//\1/; q; }
13841 /^X\(\/\).*/{ s//\1/; q; }
13844 test ! -n "$as_dirs" || mkdir $as_dirs
13845 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13847 { (exit 1); exit 1; }; }; }
13851 if test "$ac_dir" != .; then
13852 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13853 # A "../" for each directory in $ac_dir_suffix.
13854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13856 ac_dir_suffix= ac_top_builddir=
13860 .) # No --srcdir option. We are building in place.
13862 if test -z "$ac_top_builddir"; then
13865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13867 [\\/]* | ?:[\\/]* ) # Absolute path.
13868 ac_srcdir=$srcdir$ac_dir_suffix;
13869 ac_top_srcdir=$srcdir ;;
13870 *) # Relative path.
13871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13875 # Do not use `cd foo && pwd` to compute absolute paths, because
13876 # the directories may not exist.
13878 .) ac_abs_builddir="$ac_dir";;
13881 .) ac_abs_builddir=`pwd`;;
13882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13883 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13886 case $ac_abs_builddir in
13887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13889 case ${ac_top_builddir}. in
13890 .) ac_abs_top_builddir=$ac_abs_builddir;;
13891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13895 case $ac_abs_builddir in
13896 .) ac_abs_srcdir=$ac_srcdir;;
13899 .) ac_abs_srcdir=$ac_abs_builddir;;
13900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13904 case $ac_abs_builddir in
13905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13907 case $ac_top_srcdir in
13908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13915 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13916 echo "$as_me: executing $ac_dest commands" >&6;}
13919 case ${CONFIG_HEADERS} in
13920 *auto-host.h:config.in*)
13923 # Make sure all the subdirs exist.
13926 test -d $d || mkdir $d
13928 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13929 # bootstrapping and the installation procedure can still use
13930 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13931 # FLAGS_TO_PASS has been modified to solve the problem there.
13932 # This is virtually a duplicate of what happens in configure.lang; we do
13933 # an extra check to make sure this only happens if ln -s can be used.
13934 if test "$symbolic_link" = "ln -s"; then
13935 for d in ${subdirs} ; do
13936 STARTDIR=`${PWDCMD-pwd}`
13938 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13941 $symbolic_link ../$t $t 2>/dev/null
13951 cat >>$CONFIG_STATUS <<\_ACEOF
13953 { (exit 0); exit 0; }
13955 chmod +x $CONFIG_STATUS
13956 ac_clean_files=$ac_clean_files_save
13959 # configure is writing to config.log, and then calls config.status.
13960 # config.status does its own redirection, appending to config.log.
13961 # Unfortunately, on DOS this fails, as config.log is still kept open
13962 # by configure, so config.status won't be able to write to it; its
13963 # output is simply discarded. So we exec the FD to /dev/null,
13964 # effectively closing config.log, so it can be properly (re)opened and
13965 # appended to by config.status. When coming back to configure, we
13966 # need to make the FD available again.
13967 if test "$no_create" != yes; then
13969 ac_config_status_args=
13970 test "$silent" = yes &&
13971 ac_config_status_args="$ac_config_status_args --quiet"
13973 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13975 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13976 # would make configure fail if this is the last instruction.
13977 $ac_cs_success || { (exit 1); exit 1; }