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 FORBUILD 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: fold,gc,gcac,misc,rtlflag,rtl,
871 tree,valgrind; default is gc,misc,rtlflag,tree
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler\'s code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --enable-initfini-array use .init_array/.fini_array sections
890 --enable-sjlj-exceptions
891 arrange to use setjmp/longjmp exception handling
892 --enable-libunwind-exceptions force use libunwind for exceptions
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
925 --with-gc={page,zone} choose the garbage collection mechanism to use
927 --with-system-zlib use installed libz
928 --with-libbanshee enable libbanshee
929 --with-slibdir=DIR shared libraries in DIR LIBDIR
931 Some influential environment variables:
932 CC C compiler command
933 CFLAGS C compiler flags
934 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
935 nonstandard directory <lib dir>
936 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
937 headers in a nonstandard directory <include dir>
939 GMPLIBS How to link GMP
940 GMPINC How to find GMP include files
942 Use these variables to override the choices made by `configure' or to help
943 it to find libraries and programs with nonstandard names/locations.
948 if test "$ac_init_help" = "recursive"; then
949 # If there are subdirs, report their specific --help.
951 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952 test -d $ac_dir || continue
955 if test "$ac_dir" != .; then
956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957 # A "../" for each directory in $ac_dir_suffix.
958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
960 ac_dir_suffix= ac_top_builddir=
964 .) # No --srcdir option. We are building in place.
966 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
971 [\\/]* | ?:[\\/]* ) # Absolute path.
972 ac_srcdir=$srcdir$ac_dir_suffix;
973 ac_top_srcdir=$srcdir ;;
975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 # Do not use `cd foo && pwd` to compute absolute paths, because
980 # the directories may not exist.
982 .) ac_abs_builddir="$ac_dir";;
985 .) ac_abs_builddir=`pwd`;;
986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 case $ac_abs_builddir in
991 .) ac_abs_top_builddir=${ac_top_builddir}.;;
993 case ${ac_top_builddir}. in
994 .) ac_abs_top_builddir=$ac_abs_builddir;;
995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 case $ac_abs_builddir in
1000 .) ac_abs_srcdir=$ac_srcdir;;
1003 .) ac_abs_srcdir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1011 case $ac_top_srcdir in
1012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1019 # Check for guested configure; otherwise get Cygnus style configure.
1020 if test -f $ac_srcdir/configure.gnu; then
1022 $SHELL $ac_srcdir/configure.gnu --help=recursive
1023 elif test -f $ac_srcdir/configure; then
1025 $SHELL $ac_srcdir/configure --help=recursive
1026 elif test -f $ac_srcdir/configure.ac ||
1027 test -f $ac_srcdir/configure.in; then
1029 $ac_configure --help
1031 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1037 test -n "$ac_init_help" && exit 0
1038 if $ac_init_version; then
1041 Copyright (C) 2003 Free Software Foundation, Inc.
1042 This configure script is free software; the Free Software Foundation
1043 gives unlimited permission to copy, distribute and modify it.
1049 This file contains any messages produced by compilers while
1050 running configure, to aid debugging if configure makes a mistake.
1052 It was created by $as_me, which was
1053 generated by GNU Autoconf 2.59. Invocation command line was
1064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1076 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 test -z "$as_dir" && as_dir=.
1088 echo "PATH: $as_dir"
1103 # Keep a trace of the command line.
1104 # Strip out --no-create and --no-recursion so they do not pile up.
1105 # Strip out --silent because we don't want to record it for future runs.
1106 # Also quote any args containing shell meta-characters.
1107 # Make two passes to allow for proper duplicate-argument suppression.
1112 ac_must_keep_next=false
1118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1122 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1128 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1129 if test $ac_must_keep_next = true; then
1130 ac_must_keep_next=false # Got value, back to normal.
1133 *=* | --config-cache | -C | -disable-* | --disable-* \
1134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1136 | -with-* | --with-* | -without-* | --without-* | --x)
1137 case "$ac_configure_args0 " in
1138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 -* ) ac_must_keep_next=true ;;
1144 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1145 # Get rid of the leading space.
1151 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1152 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1154 # When interrupted or exit'd, cleanup temporary files, and complete
1155 # config.log. We remove comments because anyway the quotes in there
1156 # would cause problems or look ugly.
1157 # WARNING: Be sure not to use single quotes in there, as some shells,
1158 # such as our DU 5.0 friend, will then `close' the trap.
1159 trap 'exit_status=$?
1160 # Save into config.log some information that might help in debugging.
1165 ## ---------------- ##
1166 ## Cache variables. ##
1167 ## ---------------- ##
1170 # The following way of writing the cache mishandles newlines in values,
1173 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1181 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1188 ## ----------------- ##
1189 ## Output variables. ##
1190 ## ----------------- ##
1193 for ac_var in $ac_subst_vars
1195 eval ac_val=$`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1200 if test -n "$ac_subst_files"; then
1207 for ac_var in $ac_subst_files
1209 eval ac_val=$`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1215 if test -s confdefs.h; then
1222 sed "/^$/d" confdefs.h | sort
1225 test "$ac_signal" != 0 &&
1226 echo "$as_me: caught signal $ac_signal"
1227 echo "$as_me: exit $exit_status"
1229 rm -f core *.core &&
1230 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 for ac_signal in 1 2 13 15; do
1234 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239 rm -rf conftest* confdefs.h
1240 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 # Predefined preprocessor variables.
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 # Let the site file select an alternate cache file if it wants to.
1271 # Prefer explicitly selected file to automatically selected ones.
1272 if test -z "$CONFIG_SITE"; then
1273 if test "x$prefix" != xNONE; then
1274 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1276 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 for ac_site_file in $CONFIG_SITE; do
1280 if test -r "$ac_site_file"; then
1281 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282 echo "$as_me: loading site script $ac_site_file" >&6;}
1283 sed 's/^/| /' "$ac_site_file" >&5
1288 if test -r "$cache_file"; then
1289 # Some versions of bash will fail to source /dev/null (special
1290 # files actually), so we avoid doing that.
1291 if test -f "$cache_file"; then
1292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293 echo "$as_me: loading cache $cache_file" >&6;}
1295 [\\/]* | ?:[\\/]* ) . $cache_file;;
1296 *) . ./$cache_file;;
1300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301 echo "$as_me: creating cache $cache_file" >&6;}
1305 # Check that the precious variables saved in the cache have kept the same
1307 ac_cache_corrupted=false
1308 for ac_var in `(set) 2>&1 |
1309 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311 eval ac_new_set=\$ac_env_${ac_var}_set
1312 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313 eval ac_new_val="\$ac_env_${ac_var}_value"
1314 case $ac_old_set,$ac_new_set in
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318 ac_cache_corrupted=: ;;
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1325 if test "x$ac_old_val" != "x$ac_new_val"; then
1326 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1328 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1329 echo "$as_me: former value: $ac_old_val" >&2;}
1330 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1331 echo "$as_me: current value: $ac_new_val" >&2;}
1332 ac_cache_corrupted=:
1335 # Pass precious variables to config.status.
1336 if test "$ac_new_set" = set; then
1338 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340 *) ac_arg=$ac_var=$ac_new_val ;;
1342 case " $ac_configure_args " in
1343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348 if $ac_cache_corrupted; then
1349 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353 { (exit 1); exit 1; }; }
1357 ac_cpp='$CPP $CPPFLAGS'
1358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1384 # Determine the host, build, and target systems
1386 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1387 if test -f $ac_dir/install-sh; then
1389 ac_install_sh="$ac_aux_dir/install-sh -c"
1391 elif test -f $ac_dir/install.sh; then
1393 ac_install_sh="$ac_aux_dir/install.sh -c"
1395 elif test -f $ac_dir/shtool; then
1397 ac_install_sh="$ac_aux_dir/shtool install -c"
1401 if test -z "$ac_aux_dir"; then
1402 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1404 { (exit 1); exit 1; }; }
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410 # Make sure we can run config.sub.
1411 $ac_config_sub sun4 >/dev/null 2>&1 ||
1412 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1413 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1414 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: checking build system type" >&5
1417 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1418 if test "${ac_cv_build+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 ac_cv_build_alias=$build_alias
1422 test -z "$ac_cv_build_alias" &&
1423 ac_cv_build_alias=`$ac_config_guess`
1424 test -z "$ac_cv_build_alias" &&
1425 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1426 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1427 { (exit 1); exit 1; }; }
1428 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1429 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1430 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1431 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1435 echo "${ECHO_T}$ac_cv_build" >&6
1437 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442 echo "$as_me:$LINENO: checking host system type" >&5
1443 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1444 if test "${ac_cv_host+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 ac_cv_host_alias=$host_alias
1448 test -z "$ac_cv_host_alias" &&
1449 ac_cv_host_alias=$ac_cv_build_alias
1450 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1453 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1457 echo "${ECHO_T}$ac_cv_host" >&6
1459 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464 echo "$as_me:$LINENO: checking target system type" >&5
1465 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1466 if test "${ac_cv_target+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_target_alias=$target_alias
1470 test "x$ac_cv_target_alias" = "x" &&
1471 ac_cv_target_alias=$ac_cv_host_alias
1472 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1479 echo "${ECHO_T}$ac_cv_target" >&6
1480 target=$ac_cv_target
1481 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486 # The aliases save the names the user supplied, while $host etc.
1487 # will get canonicalized.
1488 test -n "$target_alias" &&
1489 test "$program_prefix$program_suffix$program_transform_name" = \
1491 program_prefix=${target_alias}-
1493 # Determine the noncanonical target name, for directory use.
1494 case ${build_alias} in
1495 "") build_noncanonical=${build} ;;
1496 *) build_noncanonical=${build_alias} ;;
1499 case ${host_alias} in
1500 "") host_noncanonical=${build_noncanonical} ;;
1501 *) host_noncanonical=${host_alias} ;;
1504 case ${target_alias} in
1505 "") target_noncanonical=${host_noncanonical} ;;
1506 *) target_noncanonical=${target_alias} ;;
1512 # Determine the target- and build-specific subdirectories
1513 # Prefix 'build-' so this never conflicts with target_subdir.
1514 build_subdir="build-${build_noncanonical}"
1515 # Not really a subdirectory, but here for completeness.
1518 target_subdir=${target_noncanonical}
1521 # Set program_transform_name
1522 test "$program_prefix" != NONE &&
1523 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1524 # Use a double $ so make ignores it.
1525 test "$program_suffix" != NONE &&
1526 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1527 # Double any \ or $. echo might interpret backslashes.
1528 # By default was `s,x,x', remove it if useless.
1529 cat <<\_ACEOF >conftest.sed
1530 s/[\\$]/&&/g;s/;s,x,x,$//
1532 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1536 # Check for bogus environment variables.
1537 # Test if LIBRARY_PATH contains the notation for the current directory
1538 # since this would lead to problems installing/building glibc.
1539 # LIBRARY_PATH contains the current directory if one of the following
1541 # - one of the terminals (":" and ";") is the first or last sign
1542 # - two terminals occur directly after each other
1543 # - the path contains an element with a dot in it
1544 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1545 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1546 case ${LIBRARY_PATH} in
1547 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1548 library_path_setting="contains current directory"
1551 library_path_setting="ok"
1554 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1555 echo "${ECHO_T}$library_path_setting" >&6
1556 if test "$library_path_setting" != "ok"; then
1557 { { echo "$as_me:$LINENO: error:
1558 *** LIBRARY_PATH shouldn't contain the current directory when
1559 *** building gcc. Please change the environment variable
1560 *** and run configure again." >&5
1561 echo "$as_me: error:
1562 *** LIBRARY_PATH shouldn't contain the current directory when
1563 *** building gcc. Please change the environment variable
1564 *** and run configure again." >&2;}
1565 { (exit 1); exit 1; }; }
1568 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1569 # since this would lead to problems installing/building glibc.
1570 # GCC_EXEC_PREFIX contains the current directory if one of the following
1572 # - one of the terminals (":" and ";") is the first or last sign
1573 # - two terminals occur directly after each other
1574 # - the path contains an element with a dot in it
1575 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1576 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1577 case ${GCC_EXEC_PREFIX} in
1578 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1579 gcc_exec_prefix_setting="contains current directory"
1582 gcc_exec_prefix_setting="ok"
1585 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1586 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1587 if test "$gcc_exec_prefix_setting" != "ok"; then
1588 { { echo "$as_me:$LINENO: error:
1589 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1590 *** building gcc. Please change the environment variable
1591 *** and run configure again." >&5
1592 echo "$as_me: 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." >&2;}
1596 { (exit 1); exit 1; }; }
1603 # Specify the local prefix
1606 # Check whether --with-local-prefix or --without-local-prefix was given.
1607 if test "${with_local_prefix+set}" = set; then
1608 withval="$with_local_prefix"
1609 case "${withval}" in
1610 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1611 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1612 { (exit 1); exit 1; }; } ;;
1614 *) local_prefix=$with_local_prefix ;;
1618 # Default local prefix if it is empty
1619 if test x$local_prefix = x; then
1620 local_prefix=/usr/local
1623 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1624 # passed in by the toplevel make and thus we'd get different behavior
1625 # depending on where we built the sources.
1626 gcc_gxx_include_dir=
1627 # Specify the g++ header file directory
1629 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1630 if test "${with_gxx_include_dir+set}" = set; then
1631 withval="$with_gxx_include_dir"
1632 case "${withval}" in
1633 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1634 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1635 { (exit 1); exit 1; }; } ;;
1637 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1641 if test x${gcc_gxx_include_dir} = x; then
1642 if test x${enable_version_specific_runtime_libs} = xyes; then
1643 gcc_gxx_include_dir='${libsubdir}/include/c++'
1645 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1646 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1651 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1652 if test "${with_cpp_install_dir+set}" = set; then
1653 withval="$with_cpp_install_dir"
1654 if test x$withval = xyes; then
1655 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1656 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1657 { (exit 1); exit 1; }; }
1658 elif test x$withval != xno; then
1659 cpp_install_dir=$withval
1663 # We would like to our source tree to be readonly. However when releases or
1664 # pre-releases are generated, the flex/bison generated files as well as the
1665 # various formats of manuals need to be included along with the rest of the
1666 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1669 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1670 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1671 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1672 if test "${enable_generated_files_in_srcdir+set}" = set; then
1673 enableval="$enable_generated_files_in_srcdir"
1674 generated_files_in_srcdir=$enableval
1676 generated_files_in_srcdir=no
1679 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1680 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1682 if test "$generated_files_in_srcdir" = "yes"; then
1689 # -------------------
1690 # Find default linker
1691 # -------------------
1695 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1696 if test "${with_gnu_ld+set}" = set; then
1697 withval="$with_gnu_ld"
1698 gnu_ld_flag="$with_gnu_ld"
1703 # With pre-defined ld
1705 # Check whether --with-ld or --without-ld was given.
1706 if test "${with_ld+set}" = set; then
1708 DEFAULT_LINKER="$with_ld"
1710 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1711 if test ! -x "$DEFAULT_LINKER"; then
1712 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1713 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1714 { (exit 1); exit 1; }; }
1715 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1719 cat >>confdefs.h <<_ACEOF
1720 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1725 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1726 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1727 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1728 if test x"$gnu_ld_flag" = x"no"; then
1729 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1730 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1732 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1733 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 # With demangler in GNU ld
1742 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1743 if test "${with_demangler_in_ld+set}" = set; then
1744 withval="$with_demangler_in_ld"
1745 demangler_in_ld="$with_demangler_in_ld"
1750 # ----------------------
1751 # Find default assembler
1752 # ----------------------
1756 # Check whether --with-gnu-as or --without-gnu-as was given.
1757 if test "${with_gnu_as+set}" = set; then
1758 withval="$with_gnu_as"
1759 gas_flag="$with_gnu_as"
1765 # Check whether --with-as or --without-as was given.
1766 if test "${with_as+set}" = set; then
1768 DEFAULT_ASSEMBLER="$with_as"
1770 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1771 if test ! -x "$DEFAULT_ASSEMBLER"; then
1772 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1773 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1774 { (exit 1); exit 1; }; }
1775 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1779 cat >>confdefs.h <<_ACEOF
1780 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1785 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1786 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1787 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1788 if test x"$gas_flag" = x"no"; then
1789 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1790 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1792 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1793 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1804 # If a non-executable a.out is present (e.g. created by GNU as above even if
1805 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1806 # file, even when creating an executable, so an execution test fails.
1807 # Remove possible default executable files to avoid this.
1809 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1810 # Autoconf includes it.
1811 rm -f a.out a.exe b.out
1813 # Find the native compiler
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$ac_cv_prog_CC"; then
1858 # Extract the first word of "gcc", so it can be a program name with args.
1859 set dummy gcc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="gcc"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1898 if test -z "$CC"; then
1899 if test -n "$ac_tool_prefix"; then
1900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901 set dummy ${ac_tool_prefix}cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test.
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_CC="${ac_tool_prefix}cc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 if test -n "$CC"; then
1928 echo "$as_me:$LINENO: result: $CC" >&5
1929 echo "${ECHO_T}$CC" >&6
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1936 if test -z "$ac_cv_prog_CC"; then
1938 # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 if test -n "$ac_ct_CC"; then
1946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_ac_ct_CC="cc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1979 if test -z "$CC"; then
1980 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test -n "$CC"; then
1988 ac_cv_prog_CC="$CC" # Let the user override the test.
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999 ac_prog_rejected=yes
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test $ac_prog_rejected = yes; then
2010 # We found a bogon in the path, so make sure we never use it.
2011 set dummy $ac_cv_prog_CC
2013 if test $# != 0; then
2014 # We chose a different compiler from the bogus one.
2015 # However, it has the same basename, so the bogon will be chosen
2016 # first if we set CC to just the basename; use the full file name.
2018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2024 if test -n "$CC"; then
2025 echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6
2028 echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2033 if test -z "$CC"; then
2034 if test -n "$ac_tool_prefix"; then
2037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 if test -n "$CC"; then
2045 ac_cv_prog_CC="$CC" # Let the user override the test.
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 if test -n "$CC"; then
2065 echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6
2068 echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2072 test -n "$CC" && break
2075 if test -z "$CC"; then
2079 # Extract the first word of "$ac_prog", so it can be a program name with args.
2080 set dummy $ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_CC="$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 test -n "$ac_ct_CC" && break
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO:" \
2131 "checking for C compiler version" >&5
2132 ac_compiler=`set X $ac_compile; echo $2`
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134 (eval $ac_compiler --version </dev/null >&5) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139 (eval $ac_compiler -v </dev/null >&5) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144 (eval $ac_compiler -V </dev/null >&5) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2149 cat >conftest.$ac_ext <<_ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2164 ac_clean_files_save=$ac_clean_files
2165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2169 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173 (eval $ac_link_default) 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 # Find the output, starting from the most likely. This scheme is
2178 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2181 # Be careful to initialize this variable, since it used to be cached.
2182 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2184 # b.out is created by i960 compilers.
2185 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2187 test -f "$ac_file" || continue
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2192 # This is the source file.
2195 # We found the default executable, but exeext='' is most
2199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 # FIXME: I believe we export ac_cv_exeext for Libtool,
2201 # but it would be cool to find out if it's true. Does anybody
2202 # maintain Libtool? --akim.
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217 { (exit 77); exit 77; }; }
2220 ac_exeext=$ac_cv_exeext
2221 echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6
2224 # Check the compiler produces executables we can run. If not, either
2225 # the compiler is broken, or we cross compile.
2226 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231 if { ac_try='./$ac_file'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2239 if test "$cross_compiling" = maybe; then
2242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2252 echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check the compiler produces executables we can run. If not, either
2258 # the compiler is broken, or we cross compile.
2259 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6
2264 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267 (eval $ac_link) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2275 for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2300 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302 if test "${ac_cv_objext+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.$ac_ext <<_ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2320 rm -f conftest.o conftest.obj
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT=$ac_cv_objext
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2377 grep -v '^ *+' conftest.er1 >conftest.err
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; } &&
2388 { ac_try='test -s conftest.$ac_objext'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; }; then
2396 echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2402 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2405 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2406 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2407 GCC=`test $ac_compiler_gnu = yes && echo yes`
2408 ac_test_CFLAGS=${CFLAGS+set}
2409 ac_save_CFLAGS=$CFLAGS
2411 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2412 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2413 if test "${ac_cv_prog_cc_g+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 cat >conftest.$ac_ext <<_ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>conftest.er1
2435 grep -v '^ *+' conftest.er1 >conftest.err
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
2440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2462 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2463 if test "$ac_test_CFLAGS" = set; then
2464 CFLAGS=$ac_save_CFLAGS
2465 elif test $ac_cv_prog_cc_g = yes; then
2466 if test "$GCC" = yes; then
2472 if test "$GCC" = yes; then
2478 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2479 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2480 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 ac_cv_prog_cc_stdc=no
2485 cat >conftest.$ac_ext <<_ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2493 #include <sys/types.h>
2494 #include <sys/stat.h>
2495 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2496 struct buf { int x; };
2497 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2498 static char *e (p, i)
2504 static char *f (char * (*g) (char **, int), char **p, ...)
2509 s = g (p, va_arg (v,int));
2514 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2515 function prototypes and stuff, but not '\xHH' hex character constants.
2516 These don't provoke an error unfortunately, instead are silently treated
2517 as 'x'. The following induces an error, until -std1 is added to get
2518 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2519 array size at least. It's necessary to write '\x00'==0 to get something
2520 that's true only with -std1. */
2521 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2523 int test (int i, double x);
2524 struct s1 {int (*f) (int a);};
2525 struct s2 {int (*f) (double a);};
2526 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2532 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2537 # Don't try gcc -ansi; that turns off useful extensions and
2538 # breaks some systems' header files.
2539 # AIX -qlanglvl=ansi
2540 # Ultrix and OSF/1 -std1
2541 # HP-UX 10.20 and later -Ae
2542 # HP-UX older versions -Aa -D_HPUX_SOURCE
2543 # SVR4 -Xc -D__EXTENSIONS__
2544 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2546 CC="$ac_save_CC $ac_arg"
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>conftest.er1
2551 grep -v '^ *+' conftest.er1 >conftest.err
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 ac_cv_prog_cc_stdc=$ac_arg
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2575 rm -f conftest.err conftest.$ac_objext
2577 rm -f conftest.$ac_ext conftest.$ac_objext
2582 case "x$ac_cv_prog_cc_stdc" in
2584 echo "$as_me:$LINENO: result: none needed" >&5
2585 echo "${ECHO_T}none needed" >&6 ;;
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589 CC="$CC $ac_cv_prog_cc_stdc" ;;
2592 # Some people use a C++ compiler to compile C. Since we use `exit',
2593 # in C++ we need to declare it. In case someone uses the same compiler
2594 # for both compiling C and C++ we need to have the C++ compiler decide
2595 # the declaration of exit, since it's the most demanding environment.
2596 cat >conftest.$ac_ext <<_ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2605 grep -v '^ *+' conftest.er1 >conftest.err
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 for ac_declaration in \
2624 'extern "C" void std::exit (int) throw (); using std::exit;' \
2625 'extern "C" void std::exit (int); using std::exit;' \
2626 'extern "C" void exit (int) throw ();' \
2627 'extern "C" void exit (int);' \
2630 cat >conftest.$ac_ext <<_ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2650 grep -v '^ *+' conftest.er1 >conftest.err
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720 if test -n "$ac_declaration"; then
2721 echo '#ifdef __cplusplus' >>confdefs.h
2722 echo $ac_declaration >>confdefs.h
2723 echo '#endif' >>confdefs.h
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 if test "x$CC" != xcc; then
2739 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2740 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2742 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2743 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2745 set dummy $CC; ac_cc=`echo $2 |
2746 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2747 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2765 # Make sure it works both with $CC and with simple cc.
2766 # We do the test twice because some compilers refuse to overwrite an
2767 # existing .o file with -o, though they will create one.
2768 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2769 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); };
2780 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2781 if test "x$CC" != xcc; then
2782 # Test first that cc exists at all.
2783 if { ac_try='cc -c conftest.$ac_ext >&5'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2790 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); };
2804 # cc exists but doesn't like -o.
2805 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2810 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2815 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2816 echo "$as_me:$LINENO: result: yes" >&5
2817 echo "${ECHO_T}yes" >&6
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2822 cat >>confdefs.h <<\_ACEOF
2823 #define NO_MINUS_C_MINUS_O 1
2828 # autoconf is lame and doesn't give us any substitution variable for this.
2829 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2830 NO_MINUS_C_MINUS_O=yes
2832 OUTPUT_OPTION='-o $@'
2837 # -------------------------
2838 # Check C compiler features
2839 # -------------------------
2842 ac_cpp='$CPP $CPPFLAGS'
2843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2847 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2848 # On Suns, sometimes $CPP names a directory.
2849 if test -n "$CPP" && test -d "$CPP"; then
2852 if test -z "$CPP"; then
2853 if test "${ac_cv_prog_CPP+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 # Double quotes because CPP needs to be expanded
2857 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2860 for ac_c_preproc_warn_flag in '' yes
2862 # Use a header file that comes with gcc, so configuring glibc
2863 # with a fresh cross-compiler works.
2864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2865 # <limits.h> exists even on freestanding compilers.
2866 # On the NeXT, cc -E runs the code through the compiler's parser,
2867 # not just through cpp. "Syntax error" is here to catch this case.
2868 cat >conftest.$ac_ext <<_ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2875 # include <limits.h>
2877 # include <assert.h>
2881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2884 grep -v '^ *+' conftest.er1 >conftest.err
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } >/dev/null; then
2889 if test -s conftest.err; then
2890 ac_cpp_err=$ac_c_preproc_warn_flag
2891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2898 if test -z "$ac_cpp_err"; then
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2904 # Broken: fails on valid input.
2907 rm -f conftest.err conftest.$ac_ext
2909 # OK, works on sane cases. Now check whether non-existent headers
2910 # can be detected and how.
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2917 #include <ac_nonexistent.h>
2919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2922 grep -v '^ *+' conftest.er1 >conftest.err
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } >/dev/null; then
2927 if test -s conftest.err; then
2928 ac_cpp_err=$ac_c_preproc_warn_flag
2929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2936 if test -z "$ac_cpp_err"; then
2937 # Broken: success on invalid input.
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 # Passes both tests.
2947 rm -f conftest.err conftest.$ac_ext
2950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2951 rm -f conftest.err conftest.$ac_ext
2952 if $ac_preproc_ok; then
2964 echo "$as_me:$LINENO: result: $CPP" >&5
2965 echo "${ECHO_T}$CPP" >&6
2967 for ac_c_preproc_warn_flag in '' yes
2969 # Use a header file that comes with gcc, so configuring glibc
2970 # with a fresh cross-compiler works.
2971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2972 # <limits.h> exists even on freestanding compilers.
2973 # On the NeXT, cc -E runs the code through the compiler's parser,
2974 # not just through cpp. "Syntax error" is here to catch this case.
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2982 # include <limits.h>
2984 # include <assert.h>
2988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2991 grep -v '^ *+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } >/dev/null; then
2996 if test -s conftest.err; then
2997 ac_cpp_err=$ac_c_preproc_warn_flag
2998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3005 if test -z "$ac_cpp_err"; then
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 # Broken: fails on valid input.
3014 rm -f conftest.err conftest.$ac_ext
3016 # OK, works on sane cases. Now check whether non-existent headers
3017 # can be detected and how.
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024 #include <ac_nonexistent.h>
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
3036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3043 if test -z "$ac_cpp_err"; then
3044 # Broken: success on invalid input.
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 # Passes both tests.
3054 rm -f conftest.err conftest.$ac_ext
3057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3058 rm -f conftest.err conftest.$ac_ext
3059 if $ac_preproc_ok; then
3062 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3063 See \`config.log' for more details." >&5
3064 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3065 See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }
3070 ac_cpp='$CPP $CPPFLAGS'
3071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076 echo "$as_me:$LINENO: checking for inline" >&5
3077 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3078 if test "${ac_cv_c_inline+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 for ac_kw in inline __inline__ __inline; do
3083 cat >conftest.$ac_ext <<_ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3091 static $ac_kw foo_t static_foo () {return 0; }
3092 $ac_kw foo_t foo () {return 0; }
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>conftest.er1
3100 grep -v '^ *+' conftest.er1 >conftest.err
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 ac_cv_c_inline=$ac_kw; break
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3127 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3128 echo "${ECHO_T}$ac_cv_c_inline" >&6
3131 case $ac_cv_c_inline in
3134 case $ac_cv_c_inline in
3136 *) ac_val=$ac_cv_c_inline;;
3138 cat >>confdefs.h <<_ACEOF
3140 #define inline $ac_val
3147 echo "$as_me:$LINENO: checking for long long int" >&5
3148 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3149 if test "${ac_cv_c_long_long+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3167 rm -f conftest.$ac_objext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169 (eval $ac_compile) 2>conftest.er1
3171 grep -v '^ *+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; } &&
3182 { ac_try='test -s conftest.$ac_objext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 ac_cv_c_long_long=yes
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 ac_cv_c_long_long=no
3195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3197 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3198 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3199 if test $ac_cv_c_long_long = yes; then
3201 cat >>confdefs.h <<\_ACEOF
3202 #define HAVE_LONG_LONG 1
3206 echo "$as_me:$LINENO: checking for __int64" >&5
3207 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3208 if test "${ac_cv_c___int64+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228 (eval $ac_compile) 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3256 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3257 echo "${ECHO_T}$ac_cv_c___int64" >&6
3258 if test $ac_cv_c___int64 = yes; then
3260 cat >>confdefs.h <<\_ACEOF
3261 #define HAVE___INT64 1
3267 # sizeof(char) is 1 by definition.
3268 echo "$as_me:$LINENO: checking size of void *" >&5
3269 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3270 if test "${ac_cv_sizeof_void_p+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3280 #include "confdefs.h"
3281 #include <sys/types.h>
3287 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3292 rm -f conftest.$ac_objext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>conftest.er1
3296 grep -v '^ *+' conftest.er1 >conftest.err
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } &&
3301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; } &&
3307 { ac_try='test -s conftest.$ac_objext'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; }; then
3313 ac_cv_sizeof_void_p=$ac_size
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3320 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3325 if test x$ac_cv_sizeof_void_p = x ; then
3326 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3327 echo "$as_me: error: cannot determine a size for void *" >&2;}
3328 { (exit 1); exit 1; }; }
3330 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3331 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3333 cat >>confdefs.h <<_ACEOF
3334 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3338 echo "$as_me:$LINENO: checking size of short" >&5
3339 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3340 if test "${ac_cv_sizeof_short+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350 #include "confdefs.h"
3351 #include <sys/types.h>
3357 switch (0) case 0: case (sizeof (short) == $ac_size):;
3362 rm -f conftest.$ac_objext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364 (eval $ac_compile) 2>conftest.er1
3366 grep -v '^ *+' conftest.er1 >conftest.err
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; } &&
3377 { ac_try='test -s conftest.$ac_objext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_sizeof_short=$ac_size
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3390 if test x$ac_cv_sizeof_short != x ; then break; fi
3395 if test x$ac_cv_sizeof_short = x ; then
3396 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3397 echo "$as_me: error: cannot determine a size for short" >&2;}
3398 { (exit 1); exit 1; }; }
3400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3401 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3403 cat >>confdefs.h <<_ACEOF
3404 #define SIZEOF_SHORT $ac_cv_sizeof_short
3408 echo "$as_me:$LINENO: checking size of int" >&5
3409 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3410 if test "${ac_cv_sizeof_int+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #include "confdefs.h"
3421 #include <sys/types.h>
3427 switch (0) case 0: case (sizeof (int) == $ac_size):;
3432 rm -f conftest.$ac_objext
3433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3453 ac_cv_sizeof_int=$ac_size
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3460 if test x$ac_cv_sizeof_int != x ; then break; fi
3465 if test x$ac_cv_sizeof_int = x ; then
3466 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3467 echo "$as_me: error: cannot determine a size for int" >&2;}
3468 { (exit 1); exit 1; }; }
3470 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3471 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3473 cat >>confdefs.h <<_ACEOF
3474 #define SIZEOF_INT $ac_cv_sizeof_int
3478 echo "$as_me:$LINENO: checking size of long" >&5
3479 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3480 if test "${ac_cv_sizeof_long+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 #include "confdefs.h"
3491 #include <sys/types.h>
3497 switch (0) case 0: case (sizeof (long) == $ac_size):;
3502 rm -f conftest.$ac_objext
3503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3504 (eval $ac_compile) 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } &&
3511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; } &&
3517 { ac_try='test -s conftest.$ac_objext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 ac_cv_sizeof_long=$ac_size
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3530 if test x$ac_cv_sizeof_long != x ; then break; fi
3535 if test x$ac_cv_sizeof_long = x ; then
3536 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3537 echo "$as_me: error: cannot determine a size for long" >&2;}
3538 { (exit 1); exit 1; }; }
3540 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3541 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3543 cat >>confdefs.h <<_ACEOF
3544 #define SIZEOF_LONG $ac_cv_sizeof_long
3548 if test $ac_cv_c_long_long = yes; then
3549 echo "$as_me:$LINENO: checking size of long long" >&5
3550 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3551 if test "${ac_cv_sizeof_long_long+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 #include "confdefs.h"
3562 #include <sys/types.h>
3568 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3573 rm -f conftest.$ac_objext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575 (eval $ac_compile) 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_cv_sizeof_long_long=$ac_size
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3606 if test x$ac_cv_sizeof_long_long = x ; then
3607 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3608 echo "$as_me: error: cannot determine a size for long long" >&2;}
3609 { (exit 1); exit 1; }; }
3611 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3612 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3614 cat >>confdefs.h <<_ACEOF
3615 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3620 if test $ac_cv_c___int64 = yes; then
3621 echo "$as_me:$LINENO: checking size of __int64" >&5
3622 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3623 if test "${ac_cv_sizeof___int64+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3627 cat >conftest.$ac_ext <<_ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3633 #include "confdefs.h"
3634 #include <sys/types.h>
3640 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3645 rm -f conftest.$ac_objext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>conftest.er1
3649 grep -v '^ *+' conftest.er1 >conftest.err
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; } &&
3660 { ac_try='test -s conftest.$ac_objext'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3666 ac_cv_sizeof___int64=$ac_size
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3673 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3678 if test x$ac_cv_sizeof___int64 = x ; then
3679 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3680 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3681 { (exit 1); exit 1; }; }
3683 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3684 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3686 cat >>confdefs.h <<_ACEOF
3687 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3693 # ---------------------
3694 # Warnings and checking
3695 # ---------------------
3697 # Check $CC warning features (if it's GCC).
3698 # We want to use -pedantic, but we don't want warnings about
3701 # So, we only use -pedantic if we can disable those warnings.
3703 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3704 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3705 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 save_CFLAGS="$CFLAGS"
3709 CFLAGS="-Wno-long-long"
3710 cat >conftest.$ac_ext <<_ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3718 rm -f conftest.$ac_objext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720 (eval $ac_compile) 2>conftest.er1
3722 grep -v '^ *+' conftest.er1 >conftest.err
3724 cat conftest.err >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } &&
3727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 ac_cv_prog_cc_w_no_long_long=yes
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3744 ac_cv_prog_cc_w_no_long_long=no
3746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3747 CFLAGS="$save_CFLAGS"
3750 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3751 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3753 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3754 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3755 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 save_CFLAGS="$CFLAGS"
3759 CFLAGS="-Wno-variadic-macros"
3760 cat >conftest.$ac_ext <<_ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3768 rm -f conftest.$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>conftest.er1
3772 grep -v '^ *+' conftest.er1 >conftest.err
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 ac_cv_prog_cc_w_no_variadic_macros=yes
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 ac_cv_prog_cc_w_no_variadic_macros=no
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3797 CFLAGS="$save_CFLAGS"
3800 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3801 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3804 if test $ac_cv_prog_cc_w_no_long_long = yes \
3805 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3806 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3810 # Add -Wold-style-definition if it's accepted
3811 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3812 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3813 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 save_CFLAGS="$CFLAGS"
3817 CFLAGS="-Wold-style-definition"
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 ac_cv_prog_cc_w_old_style_definition=yes
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 ac_cv_prog_cc_w_old_style_definition=no
3854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855 CFLAGS="$save_CFLAGS"
3858 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3859 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3860 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3861 strict1_warn="${strict1_warn} -Wold-style-definition"
3864 # Enable -Werror, period.
3865 # Check whether --enable-werror_always or --disable-werror_always was given.
3866 if test "${enable_werror_always+set}" = set; then
3867 enableval="$enable_werror_always"
3870 enable_werror_always=no
3872 if test x${enable_werror_always} = xyes ; then
3873 strict1_warn="${strict1_warn} -Werror"
3877 # If the native compiler is GCC, we can enable warnings even in stage1.
3878 # That's useful for people building cross-compilers, or just running a
3881 if test "x$GCC" = "xyes"; then
3882 warn_cflags='$(GCC_WARN_CFLAGS)'
3886 # Enable -Werror in bootstrap stage2 and later.
3887 # Change the default to "no" on release branches.
3888 # Check whether --enable-werror or --disable-werror was given.
3889 if test "${enable_werror+set}" = set; then
3890 enableval="$enable_werror"
3895 if test x$enable_werror = xyes ; then
3900 # Enable expensive internal checks
3901 # Check whether --enable-checking or --disable-checking was given.
3902 if test "${enable_checking+set}" = set; then
3903 enableval="$enable_checking"
3907 ac_rtlflag_checking=
3909 ac_gc_always_collect=
3911 case "${enableval}" in
3912 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3913 ac_rtlflag_checking=1 ;;
3915 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3916 set fnord $enableval; shift
3921 fold) ac_fold_checking=1 ;;
3922 gc) ac_gc_checking=1 ;;
3923 gcac) ac_gc_always_collect=1 ;;
3924 misc) ac_checking=1 ;;
3925 rtlflag) ac_rtlflag_checking=1 ;;
3926 rtl) ac_rtl_checking=1 ;;
3927 tree) ac_tree_checking=1 ;;
3928 valgrind) ac_checking_valgrind=1 ;;
3929 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3930 echo "$as_me: error: unknown check category $check" >&2;}
3931 { (exit 1); exit 1; }; } ;;
3938 # Enable some checks by default for development versions of GCC
3939 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3942 if test x$ac_checking != x ; then
3944 cat >>confdefs.h <<\_ACEOF
3945 #define ENABLE_CHECKING 1
3948 nocommon_flag=-fno-common
3951 if test x$ac_tree_checking != x ; then
3953 cat >>confdefs.h <<\_ACEOF
3954 #define ENABLE_TREE_CHECKING 1
3957 TREEBROWSER=tree-browser.o
3960 if test x$ac_rtl_checking != x ; then
3962 cat >>confdefs.h <<\_ACEOF
3963 #define ENABLE_RTL_CHECKING 1
3967 if test x$ac_rtlflag_checking != x ; then
3969 cat >>confdefs.h <<\_ACEOF
3970 #define ENABLE_RTL_FLAG_CHECKING 1
3974 if test x$ac_gc_checking != x ; then
3976 cat >>confdefs.h <<\_ACEOF
3977 #define ENABLE_GC_CHECKING 1
3981 if test x$ac_gc_always_collect != x ; then
3983 cat >>confdefs.h <<\_ACEOF
3984 #define ENABLE_GC_ALWAYS_COLLECT 1
3988 if test x$ac_fold_checking != x ; then
3990 cat >>confdefs.h <<\_ACEOF
3991 #define ENABLE_FOLD_CHECKING 1
3995 valgrind_path_defines=
3999 echo "$as_me:$LINENO: checking for egrep" >&5
4000 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4001 if test "${ac_cv_prog_egrep+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4005 then ac_cv_prog_egrep='grep -E'
4006 else ac_cv_prog_egrep='egrep'
4009 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4010 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4011 EGREP=$ac_cv_prog_egrep
4014 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4015 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4016 if test "${ac_cv_header_stdc+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4038 rm -f conftest.$ac_objext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>conftest.er1
4042 grep -v '^ *+' conftest.er1 >conftest.err
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4059 ac_cv_header_stdc=yes
4061 echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4064 ac_cv_header_stdc=no
4066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4068 if test $ac_cv_header_stdc = yes; then
4069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4070 cat >conftest.$ac_ext <<_ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4080 $EGREP "memchr" >/dev/null 2>&1; then
4083 ac_cv_header_stdc=no
4089 if test $ac_cv_header_stdc = yes; then
4090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 $EGREP "free" >/dev/null 2>&1; then
4104 ac_cv_header_stdc=no
4110 if test $ac_cv_header_stdc = yes; then
4111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4112 if test "$cross_compiling" = yes; then
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4122 #if ((' ' & 0x0FF) == 0x020)
4123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4126 # define ISLOWER(c) \
4127 (('a' <= (c) && (c) <= 'i') \
4128 || ('j' <= (c) && (c) <= 'r') \
4129 || ('s' <= (c) && (c) <= 'z'))
4130 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4133 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4138 for (i = 0; i < 256; i++)
4139 if (XOR (islower (i), ISLOWER (i))
4140 || toupper (i) != TOUPPER (i))
4145 rm -f conftest$ac_exeext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4147 (eval $ac_link) 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4158 echo "$as_me: program exited with status $ac_status" >&5
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4163 ac_cv_header_stdc=no
4165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4170 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4171 if test $ac_cv_header_stdc = yes; then
4173 cat >>confdefs.h <<\_ACEOF
4174 #define STDC_HEADERS 1
4179 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4189 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4190 inttypes.h stdint.h unistd.h
4192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4193 echo "$as_me:$LINENO: checking for $ac_header" >&5
4194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 $ac_includes_default
4206 #include <$ac_header>
4208 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4212 grep -v '^ *+' conftest.er1 >conftest.err
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; } &&
4223 { ac_try='test -s conftest.$ac_objext'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
4229 eval "$as_ac_Header=yes"
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 eval "$as_ac_Header=no"
4236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4241 cat >>confdefs.h <<_ACEOF
4242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4250 if test "${ac_cv_header_valgrind_h+set}" = set; then
4251 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4252 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4253 if test "${ac_cv_header_valgrind_h+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4257 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4259 # Is the header compilable?
4260 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4261 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4262 cat >conftest.$ac_ext <<_ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4268 $ac_includes_default
4269 #include <valgrind.h>
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try='test -s conftest.$ac_objext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_header_compiler=yes
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_header_compiler=no
4299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4301 echo "${ECHO_T}$ac_header_compiler" >&6
4303 # Is the header present?
4304 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4305 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4306 cat >conftest.$ac_ext <<_ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 #include <valgrind.h>
4314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4317 grep -v '^ *+' conftest.er1 >conftest.err
4319 cat conftest.err >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } >/dev/null; then
4322 if test -s conftest.err; then
4323 ac_cpp_err=$ac_c_preproc_warn_flag
4324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4331 if test -z "$ac_cpp_err"; then
4332 ac_header_preproc=yes
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4337 ac_header_preproc=no
4339 rm -f conftest.err conftest.$ac_ext
4340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4341 echo "${ECHO_T}$ac_header_preproc" >&6
4343 # So? What about this header?
4344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4346 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4347 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4348 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4349 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4350 ac_header_preproc=yes
4353 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4354 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4355 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4356 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4357 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4358 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4359 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4360 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4361 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4362 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4363 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4364 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4367 ## ------------------------------------------ ##
4368 ## Report this to the AC_PACKAGE_NAME lists. ##
4369 ## ------------------------------------------ ##
4372 sed "s/^/$as_me: WARNING: /" >&2
4375 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4376 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4377 if test "${ac_cv_header_valgrind_h+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 ac_cv_header_valgrind_h=$ac_header_preproc
4382 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4383 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4386 if test $ac_cv_header_valgrind_h = yes; then
4394 if test x$ac_checking_valgrind != x ; then
4395 # It is certainly possible that there's valgrind but no valgrind.h.
4396 # GCC relies on making annotations so we must have both.
4397 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4398 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <valgrind/memcheck.h>
4406 #ifndef VALGRIND_DISCARD
4407 #error VALGRIND_DISCARD not defined
4410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4413 grep -v '^ *+' conftest.er1 >conftest.err
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } >/dev/null; then
4418 if test -s conftest.err; then
4419 ac_cpp_err=$ac_c_preproc_warn_flag
4420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4427 if test -z "$ac_cpp_err"; then
4428 gcc_cv_header_valgrind_memcheck_h=yes
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 gcc_cv_header_valgrind_memcheck_h=no
4435 rm -f conftest.err conftest.$ac_ext
4436 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4437 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4438 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4439 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 #include <memcheck.h>
4447 #ifndef VALGRIND_DISCARD
4448 #error VALGRIND_DISCARD not defined
4451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } >/dev/null; then
4459 if test -s conftest.err; then
4460 ac_cpp_err=$ac_c_preproc_warn_flag
4461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4468 if test -z "$ac_cpp_err"; then
4469 gcc_cv_header_memcheck_h=yes
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 gcc_cv_header_memcheck_h=no
4476 rm -f conftest.err conftest.$ac_ext
4477 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4478 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4480 # Prepare PATH_SEPARATOR.
4481 # The user is always right.
4482 if test "${PATH_SEPARATOR+set}" != set; then
4483 echo "#! /bin/sh" >conf$$.sh
4484 echo "exit 0" >>conf$$.sh
4486 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4494 # Find out how to test for executable files. Don't use a zero-byte file,
4495 # as systems may use methods other than mode bits to determine executability.
4496 cat >conf$$.file <<_ASEOF
4500 chmod +x conf$$.file
4501 if test -x conf$$.file >/dev/null 2>&1; then
4502 ac_executable_p="test -x"
4504 ac_executable_p="test -f"
4508 # Extract the first word of "valgrind", so it can be a program name with args.
4509 set dummy valgrind; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_valgrind_path+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 case "$valgrind_path" in
4517 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4520 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4521 for ac_dir in $PATH; do
4523 test -z "$ac_dir" && ac_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4526 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4527 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4537 valgrind_path="$ac_cv_path_valgrind_path"
4538 if test -n "$valgrind_path"; then
4539 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4540 echo "${ECHO_T}$valgrind_path" >&6
4542 echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4546 if test "x$valgrind_path" = "x" \
4547 || (test $have_valgrind_h = no \
4548 && test $gcc_cv_header_memcheck_h = no \
4549 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4550 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4551 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4552 { (exit 1); exit 1; }; }
4554 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4555 valgrind_command="$valgrind_path -q"
4557 cat >>confdefs.h <<\_ACEOF
4558 #define ENABLE_VALGRIND_CHECKING 1
4561 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4563 cat >>confdefs.h <<\_ACEOF
4564 #define HAVE_VALGRIND_MEMCHECK_H 1
4568 if test $gcc_cv_header_memcheck_h = yes; then
4570 cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_MEMCHECK_H 1
4579 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4580 if test "${enable_mapped_location+set}" = set; then
4581 enableval="$enable_mapped_location"
4584 enable_mapped_location=no
4587 if test "$enable_mapped_location" = yes ; then
4589 cat >>confdefs.h <<\_ACEOF
4590 #define USE_MAPPED_LOCATION 1
4595 # Enable code coverage collection
4596 # Check whether --enable-coverage or --disable-coverage was given.
4597 if test "${enable_coverage+set}" = set; then
4598 enableval="$enable_coverage"
4599 case "${enableval}" in
4601 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4604 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4607 # a.k.a. --disable-coverage
4611 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4612 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4613 { (exit 1); exit 1; }; }
4621 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4622 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4623 enableval="$enable_gather_detailed_mem_stats"
4626 enable_gather_detailed_mem_stats=no
4628 if test x$enable_gather_detailed_mem_stats = xyes ; then
4630 cat >>confdefs.h <<\_ACEOF
4631 #define GATHER_STATISTICS 1
4636 # -------------------------------
4637 # Miscenalleous configure options
4638 # -------------------------------
4642 # Check whether --with-stabs or --without-stabs was given.
4643 if test "${with_stabs+set}" = set; then
4644 withval="$with_stabs"
4650 # Determine whether or not multilibs are enabled.
4651 # Check whether --enable-multilib or --disable-multilib was given.
4652 if test "${enable_multilib+set}" = set; then
4653 enableval="$enable_multilib"
4660 # Enable __cxa_atexit for C++.
4661 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4662 if test "${enable___cxa_atexit+set}" = set; then
4663 enableval="$enable___cxa_atexit"
4668 # Pass with no value to take the default
4669 # Pass with a value to specify a thread package
4670 # Check whether --enable-threads or --disable-threads was given.
4671 if test "${enable_threads+set}" = set; then
4672 enableval="$enable_threads"
4678 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4679 if test "${enable_objc_gc+set}" = set; then
4680 enableval="$enable_objc_gc"
4681 if test x$enable_objc_gc = xno; then
4691 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4692 if test "${with_dwarf2+set}" = set; then
4693 withval="$with_dwarf2"
4694 dwarf2="$with_dwarf2"
4699 # Check whether --enable-shared or --disable-shared was given.
4700 if test "${enable_shared+set}" = set; then
4701 enableval="$enable_shared"
4703 case $enable_shared in
4707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4708 for pkg in $enableval; do
4709 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4723 # Check whether --with-sysroot or --without-sysroot was given.
4724 if test "${with_sysroot+set}" = set; then
4725 withval="$with_sysroot"
4727 case ${with_sysroot} in
4728 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4729 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4732 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4733 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4735 if test "x$exec_prefix" = xNONE; then
4736 if test "x$prefix" = xNONE; then
4737 test_prefix=/usr/local
4742 test_prefix=$exec_prefix
4744 case ${TARGET_SYSTEM_ROOT} in
4745 "${test_prefix}"|"${test_prefix}/"*|\
4746 '${exec_prefix}'|'${exec_prefix}/'*)
4747 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4748 TARGET_SYSTEM_ROOT_DEFINE="$t"
4755 TARGET_SYSTEM_ROOT_DEFINE=
4756 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4763 # Build with intermodule optimisations
4764 # Check whether --enable-intermodule or --disable-intermodule was given.
4765 if test "${enable_intermodule+set}" = set; then
4766 enableval="$enable_intermodule"
4767 case ${enable_intermodule} in
4768 yes) onestep="-onestep";;
4776 # Sanity check enable_languages in case someone does not run the toplevel
4777 # configure # script.
4778 # Check whether --enable-languages or --disable-languages was given.
4779 if test "${enable_languages+set}" = set; then
4780 enableval="$enable_languages"
4781 case ,${enable_languages}, in
4783 # go safe -- we cannot be much sure without the toplevel
4785 # analysis of which target libs are present and usable
4789 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4790 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4791 { (exit 1); exit 1; }; }
4796 enable_languages=c,${enable_languages}
4804 for lang in ${srcdir}/*/config-lang.in
4807 # The odd quoting in the next line works around
4808 # an apparent bug in bash 1.12 on linux.
4809 ${srcdir}/[*]/config-lang.in) ;;
4811 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4812 if test "x$lang_alias" = x
4814 echo "$lang doesn't set \$language." 1>&2
4817 case ",$enable_languages," in
4819 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4826 # -------------------------
4827 # Checks for other programs
4828 # -------------------------
4830 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4831 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4832 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4833 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 cat >conftest.make <<\_ACEOF
4838 @echo 'ac_maketemp="$(MAKE)"'
4840 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4841 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4842 if test -n "$ac_maketemp"; then
4843 eval ac_cv_prog_make_${ac_make}_set=yes
4845 eval ac_cv_prog_make_${ac_make}_set=no
4849 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4850 echo "$as_me:$LINENO: result: yes" >&5
4851 echo "${ECHO_T}yes" >&6
4854 echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4856 SET_MAKE="MAKE=${MAKE-make}"
4860 # Find some useful tools
4861 for ac_prog in gawk mawk nawk awk
4863 # Extract the first word of "$ac_prog", so it can be a program name with args.
4864 set dummy $ac_prog; ac_word=$2
4865 echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4867 if test "${ac_cv_prog_AWK+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 if test -n "$AWK"; then
4871 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_AWK="$ac_prog"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 if test -n "$AWK"; then
4891 echo "$as_me:$LINENO: result: $AWK" >&5
4892 echo "${ECHO_T}$AWK" >&6
4894 echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4898 test -n "$AWK" && break
4901 # We need awk to create options.c and options.h.
4902 # Bail out if it's missing.
4904 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4905 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4906 { (exit 1); exit 1; }; } ;;
4909 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4910 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4911 if test "${gcc_cv_prog_LN_S+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 rm -f conftestdata_t
4915 echo >conftestdata_f
4916 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4918 gcc_cv_prog_LN_S="ln -s"
4920 if ln conftestdata_f conftestdata_t 2>/dev/null
4927 rm -f conftestdata_f conftestdata_t
4930 LN_S="$gcc_cv_prog_LN_S"
4931 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4932 echo "$as_me:$LINENO: result: yes" >&5
4933 echo "${ECHO_T}yes" >&6
4935 if test "$gcc_cv_prog_LN_S" = "ln"; then
4936 echo "$as_me:$LINENO: result: no, using ln" >&5
4937 echo "${ECHO_T}no, using ln" >&6
4939 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4940 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4944 echo "$as_me:$LINENO: checking whether ln works" >&5
4945 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4946 if test "${acx_cv_prog_LN+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 rm -f conftestdata_t
4950 echo >conftestdata_f
4951 if ln conftestdata_f conftestdata_t 2>/dev/null
4957 rm -f conftestdata_f conftestdata_t
4960 if test $acx_cv_prog_LN = no; then
4962 echo "$as_me:$LINENO: result: no, using $LN" >&5
4963 echo "${ECHO_T}no, using $LN" >&6
4965 LN="$acx_cv_prog_LN"
4966 echo "$as_me:$LINENO: result: yes" >&5
4967 echo "${ECHO_T}yes" >&6
4970 if test -n "$ac_tool_prefix"; then
4971 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4972 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4973 echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4975 if test "${ac_cv_prog_RANLIB+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 if test -n "$RANLIB"; then
4979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 RANLIB=$ac_cv_prog_RANLIB
4998 if test -n "$RANLIB"; then
4999 echo "$as_me:$LINENO: result: $RANLIB" >&5
5000 echo "${ECHO_T}$RANLIB" >&6
5002 echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6
5007 if test -z "$ac_cv_prog_RANLIB"; then
5008 ac_ct_RANLIB=$RANLIB
5009 # Extract the first word of "ranlib", so it can be a program name with args.
5010 set dummy ranlib; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 if test -n "$ac_ct_RANLIB"; then
5017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_ac_ct_RANLIB="ranlib"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5036 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5037 if test -n "$ac_ct_RANLIB"; then
5038 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5039 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5041 echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6
5045 RANLIB=$ac_ct_RANLIB
5047 RANLIB="$ac_cv_prog_RANLIB"
5052 # By default, the Darwin ranlib will not treat common symbols as
5053 # definitions when building the archive table of contents. Other
5054 # ranlibs do that; pass an option to the Darwin ranlib that makes
5055 # it behave similarly.
5063 # Find a good install program. We prefer a C program (faster),
5064 # so one script is as good as another. But avoid the broken or
5065 # incompatible versions:
5066 # SysV /etc/install, /usr/sbin/install
5067 # SunOS /usr/etc/install
5068 # IRIX /sbin/install
5070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5072 # ./install, which can be erroneously created by make from ./install.sh.
5073 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5074 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5075 if test -z "$INSTALL"; then
5076 if test "${ac_cv_path_install+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5080 for ac_dir in $PATH; do
5081 # Account for people who put trailing slashes in PATH elements.
5083 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5085 # OSF1 and SCO ODT 3.0 have their own names for install.
5086 for ac_prog in ginstall scoinst install; do
5087 if test -f $ac_dir/$ac_prog; then
5088 if test $ac_prog = install &&
5089 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5090 # AIX install. It has an incompatible calling convention.
5091 # OSF/1 installbsd also uses dspmsg, but is usable.
5094 ac_cv_path_install="$ac_dir/$ac_prog -c"
5105 if test "${ac_cv_path_install+set}" = set; then
5106 INSTALL="$ac_cv_path_install"
5108 # As a last resort, use the slow shell script. We don't cache a
5109 # path for INSTALL within a source directory, because that will
5110 # break other packages using the cache if that directory is
5111 # removed, or if the path is relative.
5112 INSTALL="$ac_install_sh"
5115 echo "$as_me:$LINENO: result: $INSTALL" >&5
5116 echo "${ECHO_T}$INSTALL" >&6
5118 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5119 # It thinks the first close brace ends the variable substitution.
5120 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5122 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5125 # See if cmp has --ignore-initial.
5126 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5127 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5128 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 gcc_cv_prog_cmp_skip=slowcompare
5134 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5135 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5138 gcc_cv_prog_cmp_skip=gnucompare
5141 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5142 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5143 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5146 gcc_cv_prog_cmp_skip=fastcompare
5153 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5154 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5155 make_compare_target=$gcc_cv_prog_cmp_skip
5159 # See if we have the mktemp command.
5160 # Extract the first word of "mktemp", so it can be a program name with args.
5161 set dummy mktemp; ac_word=$2
5162 echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 if test -n "$have_mktemp_command"; then
5168 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_have_mktemp_command="yes"
5178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5187 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5188 if test -n "$have_mktemp_command"; then
5189 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5190 echo "${ECHO_T}$have_mktemp_command" >&6
5192 echo "$as_me:$LINENO: result: no" >&5
5193 echo "${ECHO_T}no" >&6
5197 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
5199 # See if makeinfo has been installed and is modern enough
5200 # that we can use it.
5201 # Extract the first word of "makeinfo", so it can be a program name with args.
5202 set dummy makeinfo; ac_word=$2
5203 echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 if test -n "$MAKEINFO"; then
5209 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_MAKEINFO="makeinfo"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 MAKEINFO=$ac_cv_prog_MAKEINFO
5228 if test -n "$MAKEINFO"; then
5229 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5230 echo "${ECHO_T}$MAKEINFO" >&6
5232 echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5236 if test -n "$MAKEINFO"; then
5237 # Found it, now check the version.
5238 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5239 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5240 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_prog_version=`$MAKEINFO --version 2>&1 |
5244 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5245 echo "configure:5245: version of makeinfo is $ac_prog_version" >&5
5246 case $ac_prog_version in
5247 '') gcc_cv_prog_makeinfo_modern=no;;
5249 gcc_cv_prog_makeinfo_modern=yes;;
5250 *) gcc_cv_prog_makeinfo_modern=no;;
5254 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5255 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5257 gcc_cv_prog_makeinfo_modern=no
5260 if test $gcc_cv_prog_makeinfo_modern = no; then
5261 MAKEINFO="$MISSING makeinfo"
5262 { echo "$as_me:$LINENO: WARNING:
5263 *** Makeinfo is missing or too old.
5264 *** Info documentation will not be built." >&5
5265 echo "$as_me: WARNING:
5266 *** Makeinfo is missing or too old.
5267 *** Info documentation will not be built." >&2;}
5274 # Is pod2man recent enough to regenerate manpages?
5275 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5276 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5277 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5278 echo "$as_me:$LINENO: result: yes" >&5
5279 echo "${ECHO_T}yes" >&6
5280 GENERATED_MANPAGES=generated-manpages
5282 echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5291 # Extract the first word of "$ac_prog", so it can be a program name with args.
5292 set dummy $ac_prog; ac_word=$2
5293 echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5295 if test "${ac_cv_prog_FLEX+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 if test -n "$FLEX"; then
5299 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_FLEX="$ac_prog"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 FLEX=$ac_cv_prog_FLEX
5318 if test -n "$FLEX"; then
5319 echo "$as_me:$LINENO: result: $FLEX" >&5
5320 echo "${ECHO_T}$FLEX" >&6
5322 echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6
5326 test -n "$FLEX" && break
5328 test -n "$FLEX" || FLEX="$MISSING flex"
5332 for ac_prog in bison
5334 # Extract the first word of "$ac_prog", so it can be a program name with args.
5335 set dummy $ac_prog; ac_word=$2
5336 echo "$as_me:$LINENO: checking for $ac_word" >&5
5337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5338 if test "${ac_cv_prog_BISON+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 if test -n "$BISON"; then
5342 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_BISON="$ac_prog"
5352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 BISON=$ac_cv_prog_BISON
5361 if test -n "$BISON"; then
5362 echo "$as_me:$LINENO: result: $BISON" >&5
5363 echo "${ECHO_T}$BISON" >&6
5365 echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6
5369 test -n "$BISON" && break
5371 test -n "$BISON" || BISON="$MISSING bison"
5374 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
5375 # check for build == host before using them.
5378 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
5379 && test -d ../binutils ; then
5380 NM='$(objdir)/../binutils/nm-new'
5382 # Extract the first word of "nm", so it can be a program name with args.
5383 set dummy nm; ac_word=$2
5384 echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5386 if test "${ac_cv_prog_NM+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 if test -n "$NM"; then
5390 ac_cv_prog_NM="$NM" # Let the user override the test.
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5410 if test -n "$NM"; then
5411 echo "$as_me:$LINENO: result: $NM" >&5
5412 echo "${ECHO_T}$NM" >&6
5414 echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5421 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
5422 && test -d ../binutils ; then
5423 AR='$(objdir)/../binutils/ar'
5425 # Extract the first word of "ar", so it can be a program name with args.
5426 set dummy ar; ac_word=$2
5427 echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 if test "${ac_cv_prog_AR+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 if test -n "$AR"; then
5433 ac_cv_prog_AR="$AR" # Let the user override the test.
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
5453 if test -n "$AR"; then
5454 echo "$as_me:$LINENO: result: $AR" >&5
5455 echo "${ECHO_T}$AR" >&6
5457 echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5464 # --------------------
5465 # Checks for C headers
5466 # --------------------
5468 echo "$as_me:$LINENO: checking for GNU C library" >&5
5469 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5470 if test "${gcc_cv_glibc+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 cat >conftest.$ac_ext <<_ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 #include <features.h>
5484 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5485 #error Not a GNU C library system
5491 rm -f conftest.$ac_objext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; } &&
5506 { ac_try='test -s conftest.$ac_objext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5522 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5523 echo "${ECHO_T}$gcc_cv_glibc" >&6
5524 if test $gcc_cv_glibc = yes; then
5526 cat >>confdefs.h <<\_ACEOF
5527 #define _GNU_SOURCE 1
5532 # Need to reject headers which give warnings, so that the -Werror bootstrap
5533 # works later. *sigh* This needs to come before all header checks.
5535 ac_c_preproc_warn_flag=yes
5537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5539 if test "${ac_cv_header_stdc+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 cat >conftest.$ac_ext <<_ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5561 rm -f conftest.$ac_objext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>conftest.er1
5565 grep -v '^ *+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; } &&
5576 { ac_try='test -s conftest.$ac_objext'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; }; then
5582 ac_cv_header_stdc=yes
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5587 ac_cv_header_stdc=no
5589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5591 if test $ac_cv_header_stdc = yes; then
5592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5593 cat >conftest.$ac_ext <<_ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5603 $EGREP "memchr" >/dev/null 2>&1; then
5606 ac_cv_header_stdc=no
5612 if test $ac_cv_header_stdc = yes; then
5613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5614 cat >conftest.$ac_ext <<_ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5624 $EGREP "free" >/dev/null 2>&1; then
5627 ac_cv_header_stdc=no
5633 if test $ac_cv_header_stdc = yes; then
5634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5635 if test "$cross_compiling" = yes; then
5638 cat >conftest.$ac_ext <<_ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5645 #if ((' ' & 0x0FF) == 0x020)
5646 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5647 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5649 # define ISLOWER(c) \
5650 (('a' <= (c) && (c) <= 'i') \
5651 || ('j' <= (c) && (c) <= 'r') \
5652 || ('s' <= (c) && (c) <= 'z'))
5653 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5656 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5661 for (i = 0; i < 256; i++)
5662 if (XOR (islower (i), ISLOWER (i))
5663 || toupper (i) != TOUPPER (i))
5668 rm -f conftest$ac_exeext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670 (eval $ac_link) 2>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5681 echo "$as_me: program exited with status $ac_status" >&5
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5686 ac_cv_header_stdc=no
5688 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5692 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5693 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5694 if test $ac_cv_header_stdc = yes; then
5696 cat >>confdefs.h <<\_ACEOF
5697 #define STDC_HEADERS 1
5702 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5703 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5704 if test "${ac_cv_header_time+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 cat >conftest.$ac_ext <<_ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5714 #include <sys/time.h>
5720 if ((struct tm *) 0)
5726 rm -f conftest.$ac_objext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>conftest.er1
5730 grep -v '^ *+' conftest.er1 >conftest.err
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 ac_cv_header_time=yes
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5752 ac_cv_header_time=no
5754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5756 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5757 echo "${ECHO_T}$ac_cv_header_time" >&6
5758 if test $ac_cv_header_time = yes; then
5760 cat >>confdefs.h <<\_ACEOF
5761 #define TIME_WITH_SYS_TIME 1
5766 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5767 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5768 if test "${gcc_cv_header_string+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 cat >conftest.$ac_ext <<_ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5778 #include <strings.h>
5787 rm -f conftest.$ac_objext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789 (eval $ac_compile) 2>conftest.er1
5791 grep -v '^ *+' conftest.er1 >conftest.err
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } &&
5796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 gcc_cv_header_string=yes
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 gcc_cv_header_string=no
5815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5817 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5818 echo "${ECHO_T}$gcc_cv_header_string" >&6
5819 if test $gcc_cv_header_string = yes; then
5821 cat >>confdefs.h <<\_ACEOF
5822 #define STRING_WITH_STRINGS 1
5827 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5828 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5829 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 cat >conftest.$ac_ext <<_ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #include <sys/types.h>
5839 #include <sys/wait.h>
5841 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5844 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5852 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>conftest.er1
5861 grep -v '^ *+' conftest.er1 >conftest.err
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_cv_header_sys_wait_h=yes
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5883 ac_cv_header_sys_wait_h=no
5885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5887 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5888 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5889 if test $ac_cv_header_sys_wait_h = yes; then
5891 cat >>confdefs.h <<\_ACEOF
5892 #define HAVE_SYS_WAIT_H 1
5918 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5919 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5920 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5921 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5924 echo "$as_me:$LINENO: checking for $ac_header" >&5
5925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 #include <$ac_header>
5937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } >/dev/null; then
5945 if test -s conftest.err; then
5946 ac_cpp_err=$ac_c_preproc_warn_flag
5947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5954 if test -z "$ac_cpp_err"; then
5955 eval "$as_ac_Header=yes"
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 eval "$as_ac_Header=no"
5962 rm -f conftest.err conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5967 cat >>confdefs.h <<_ACEOF
5968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5975 # Check for thread headers.
5976 echo "$as_me:$LINENO: checking for thread.h" >&5
5977 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5978 if test "${ac_cv_header_thread_h+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 cat >conftest.$ac_ext <<_ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5992 grep -v '^ *+' conftest.er1 >conftest.err
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } >/dev/null; then
5997 if test -s conftest.err; then
5998 ac_cpp_err=$ac_c_preproc_warn_flag
5999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6006 if test -z "$ac_cpp_err"; then
6007 ac_cv_header_thread_h=yes
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_cv_header_thread_h=no
6014 rm -f conftest.err conftest.$ac_ext
6016 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6017 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6018 if test $ac_cv_header_thread_h = yes; then
6024 echo "$as_me:$LINENO: checking for pthread.h" >&5
6025 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6026 if test "${ac_cv_header_pthread_h+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 cat >conftest.$ac_ext <<_ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 #include <pthread.h>
6037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6040 grep -v '^ *+' conftest.er1 >conftest.err
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } >/dev/null; then
6045 if test -s conftest.err; then
6046 ac_cpp_err=$ac_c_preproc_warn_flag
6047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6054 if test -z "$ac_cpp_err"; then
6055 ac_cv_header_pthread_h=yes
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 ac_cv_header_pthread_h=no
6062 rm -f conftest.err conftest.$ac_ext
6064 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6065 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6066 if test $ac_cv_header_pthread_h = yes; then
6073 # These tests can't be done till we know if we have limits.h.
6074 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6075 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6076 if test "${gcc_cv_decl_char_bit+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #ifdef HAVE_LIMITS_H
6092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093 $EGREP "found" >/dev/null 2>&1; then
6094 gcc_cv_decl_char_bit=yes
6096 gcc_cv_decl_char_bit=no
6102 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6103 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6104 if test $gcc_cv_decl_char_bit = no; then
6105 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6106 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6107 if test "${gcc_cv_c_nbby+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 while test $i -lt 65; do
6113 cat >conftest.$ac_ext <<_ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6124 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6125 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6131 rm -f conftest.$ac_objext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133 (eval $ac_compile) 2>conftest.er1
6135 grep -v '^ *+' conftest.er1 >conftest.err
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; } &&
6146 { ac_try='test -s conftest.$ac_objext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 gcc_cv_c_nbby=$i; break
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6161 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6164 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6165 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6166 if test $gcc_cv_c_nbby = failed; then
6167 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6168 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6169 { (exit 1); exit 1; }; }
6172 cat >>confdefs.h <<_ACEOF
6173 #define CHAR_BIT $gcc_cv_c_nbby
6178 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6179 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6180 if test "${ac_cv_c_bigendian+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 ac_cv_c_bigendian=unknown
6184 # See if sys/param.h defines the BYTE_ORDER macro.
6185 cat >conftest.$ac_ext <<_ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 #include <sys/types.h>
6192 #include <sys/param.h>
6197 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6204 rm -f conftest.$ac_objext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 # It does; now see whether it defined to BIG_ENDIAN or not.
6226 cat >conftest.$ac_ext <<_ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 #include <sys/types.h>
6233 #include <sys/param.h>
6238 #if BYTE_ORDER != BIG_ENDIAN
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>conftest.er1
6249 grep -v '^ *+' conftest.er1 >conftest.err
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; } &&
6260 { ac_try='test -s conftest.$ac_objext'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 ac_cv_c_bigendian=yes
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6271 ac_cv_c_bigendian=no
6273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6280 if test $ac_cv_c_bigendian = unknown; then
6281 if test "$cross_compiling" = yes; then
6282 echo $ac_n "cross-compiling... " 2>&6
6284 cat >conftest.$ac_ext <<_ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6291 /* Are we little or big endian? From Harbison&Steele. */
6295 char c[sizeof (long)];
6298 exit (u.c[sizeof (long) - 1] == 1);
6301 rm -f conftest$ac_exeext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6303 (eval $ac_link) 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6312 ac_cv_c_bigendian=no
6314 echo "$as_me: program exited with status $ac_status" >&5
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6319 ac_cv_c_bigendian=yes
6321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6325 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6326 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6327 if test $ac_cv_c_bigendian = unknown; then
6328 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6329 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6331 cat >conftest.c <<EOF
6332 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6333 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6334 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6335 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6336 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6337 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6338 int main() { _ascii (); _ebcdic (); return 0; }
6340 if test -f conftest.c ; then
6341 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6342 if test `grep -l BIGenDianSyS conftest.o` ; then
6343 echo $ac_n ' big endian probe OK, ' 1>&6
6344 ac_cv_c_bigendian=yes
6346 if test `grep -l LiTTleEnDian conftest.o` ; then
6347 echo $ac_n ' little endian probe OK, ' 1>&6
6348 if test $ac_cv_c_bigendian = yes ; then
6349 ac_cv_c_bigendian=unknown;
6351 ac_cv_c_bigendian=no
6354 echo $ac_n 'guessing bigendian ... ' >&6
6357 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6358 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6360 if test $ac_cv_c_bigendian = yes; then
6362 cat >>confdefs.h <<\_ACEOF
6363 #define WORDS_BIGENDIAN 1
6367 cat >>confdefs.h <<\_ACEOF
6368 #define HOST_WORDS_BIG_ENDIAN 1
6376 cat >>confdefs.h <<_ACEOF
6377 #define BYTEORDER $BYTEORDER
6380 if test $ac_cv_c_bigendian = unknown; then
6381 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6382 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6383 { (exit 1); exit 1; }; }
6391 # Stage specific cflags for build.
6395 if test x$GCC = xyes
6397 stage1_cflags="-Wa,-J"
6403 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6404 # sources; use -no-cpp-precomp to get to GNU cpp.
6405 # Apple's GCC has bugs in designated initializer handling, so disable
6407 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6412 # These libraries may be used by collect2.
6413 # We may need a special search path to get them linked.
6414 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6415 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6416 if test "${gcc_cv_collect2_libs+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 for libs in '' -lld -lmld \
6421 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6422 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6425 cat >conftest.$ac_ext <<_ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6432 /* Override any gcc2 internal prototype to avoid an error. */
6436 /* We use char because int might match the return type of a gcc2
6437 builtin and then its argument prototype would still apply. */
6447 rm -f conftest.$ac_objext conftest$ac_exeext
6448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6449 (eval $ac_link) 2>conftest.er1
6451 grep -v '^ *+' conftest.er1 >conftest.err
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest$ac_exeext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 gcc_cv_collect2_libs="$libs"; break
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6474 rm -f conftest.err conftest.$ac_objext \
6475 conftest$ac_exeext conftest.$ac_ext
6478 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6480 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6481 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6482 case $gcc_cv_collect2_libs in
6484 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6488 # When building Ada code on Alpha, we need exc_resume which is usually in
6489 # -lexc. So test for it.
6492 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6493 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6494 if test "${ac_cv_search_exc_resume+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 ac_func_search_save_LIBS=$LIBS
6498 ac_cv_search_exc_resume=no
6499 cat >conftest.$ac_ext <<_ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6506 /* Override any gcc2 internal prototype to avoid an error. */
6510 /* We use char because int might match the return type of a gcc2
6511 builtin and then its argument prototype would still apply. */
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6523 (eval $ac_link) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1 >conftest.err
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_cv_search_exc_resume="none required"
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6548 rm -f conftest.err conftest.$ac_objext \
6549 conftest$ac_exeext conftest.$ac_ext
6550 if test "$ac_cv_search_exc_resume" = no; then
6551 for ac_lib in exc; do
6552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6553 cat >conftest.$ac_ext <<_ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6560 /* Override any gcc2 internal prototype to avoid an error. */
6564 /* We use char because int might match the return type of a gcc2
6565 builtin and then its argument prototype would still apply. */
6575 rm -f conftest.$ac_objext conftest$ac_exeext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6577 (eval $ac_link) 2>conftest.er1
6579 grep -v '^ *+' conftest.er1 >conftest.err
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest$ac_exeext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_search_exc_resume="-l$ac_lib"
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6603 rm -f conftest.err conftest.$ac_objext \
6604 conftest$ac_exeext conftest.$ac_ext
6607 LIBS=$ac_func_search_save_LIBS
6609 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6610 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6611 if test "$ac_cv_search_exc_resume" != no; then
6612 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6620 # Some systems put ldexp and frexp in libm instead of libc; assume
6621 # they're both in the same place. jcf-dump needs them.
6624 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6625 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6626 if test "${ac_cv_search_ldexp+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 ac_func_search_save_LIBS=$LIBS
6630 ac_cv_search_ldexp=no
6631 cat >conftest.$ac_ext <<_ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6638 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6653 rm -f conftest.$ac_objext conftest$ac_exeext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6655 (eval $ac_link) 2>conftest.er1
6657 grep -v '^ *+' conftest.er1 >conftest.err
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; } &&
6668 { ac_try='test -s conftest$ac_exeext'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; }; then
6674 ac_cv_search_ldexp="none required"
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6680 rm -f conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
6682 if test "$ac_cv_search_ldexp" = no; then
6684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6692 /* Override any gcc2 internal prototype to avoid an error. */
6696 /* We use char because int might match the return type of a gcc2
6697 builtin and then its argument prototype would still apply. */
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6709 (eval $ac_link) 2>conftest.er1
6711 grep -v '^ *+' conftest.er1 >conftest.err
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } &&
6716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; } &&
6722 { ac_try='test -s conftest$ac_exeext'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_cv_search_ldexp="-l$ac_lib"
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6735 rm -f conftest.err conftest.$ac_objext \
6736 conftest$ac_exeext conftest.$ac_ext
6739 LIBS=$ac_func_search_save_LIBS
6741 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6742 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6743 if test "$ac_cv_search_ldexp" != no; then
6744 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6752 # Use <inttypes.h> only if it exists,
6753 # doesn't clash with <sys/types.h>, and declares intmax_t.
6754 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6755 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6756 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 cat >conftest.$ac_ext <<_ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 #include <sys/types.h>
6766 #include <inttypes.h>
6775 rm -f conftest.$ac_objext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777 (eval $ac_compile) 2>conftest.er1
6779 grep -v '^ *+' conftest.er1 >conftest.err
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } &&
6784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; } &&
6790 { ac_try='test -s conftest.$ac_objext'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; }; then
6796 gcc_cv_header_inttypes_h=yes
6798 echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6801 gcc_cv_header_inttypes_h=no
6803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6806 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6807 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6808 if test $gcc_cv_header_inttypes_h = yes; then
6810 cat >>confdefs.h <<\_ACEOF
6811 #define HAVE_INTTYPES_H 1
6842 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6843 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6844 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6845 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6849 echo "$as_me:$LINENO: checking for $ac_func" >&5
6850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6851 if eval "test \"\${$as_ac_var+set}\" = set"; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 cat >conftest.$ac_ext <<_ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6862 #define $ac_func innocuous_$ac_func
6864 /* System header to define __stub macros and hopefully few prototypes,
6865 which can conflict with char $ac_func (); below.
6866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6867 <limits.h> exists even on freestanding compilers. */
6870 # include <limits.h>
6872 # include <assert.h>
6877 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6885 /* The GNU C library defines this for functions which it implements
6886 to always fail with ENOSYS. Some functions are actually named
6887 something starting with __ and the normal name is an alias. */
6888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6891 char (*f) () = $ac_func;
6900 return f != $ac_func;
6905 rm -f conftest.$ac_objext conftest$ac_exeext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6907 (eval $ac_link) 2>conftest.er1
6909 grep -v '^ *+' conftest.er1 >conftest.err
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } &&
6914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; } &&
6920 { ac_try='test -s conftest$ac_exeext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 eval "$as_ac_var=yes"
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6931 eval "$as_ac_var=no"
6933 rm -f conftest.err conftest.$ac_objext \
6934 conftest$ac_exeext conftest.$ac_ext
6936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6938 if test `eval echo '${'$as_ac_var'}'` = yes; then
6939 cat >>confdefs.h <<_ACEOF
6940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6947 if test x$ac_cv_func_mbstowcs = xyes; then
6948 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6949 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6950 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 if test "$cross_compiling" = yes; then
6954 gcc_cv_func_mbstowcs_works=yes
6956 cat >conftest.$ac_ext <<_ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6969 rm -f conftest$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971 (eval $ac_link) 2>&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 gcc_cv_func_mbstowcs_works=yes
6982 echo "$as_me: program exited with status $ac_status" >&5
6983 echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6987 gcc_cv_func_mbstowcs_works=no
6989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6992 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6993 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6994 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6996 cat >>confdefs.h <<\_ACEOF
6997 #define HAVE_WORKING_MBSTOWCS 1
7003 echo "$as_me:$LINENO: checking for ssize_t" >&5
7004 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7005 if test "${ac_cv_type_ssize_t+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 cat >conftest.$ac_ext <<_ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 $ac_includes_default
7020 if (sizeof (ssize_t))
7026 rm -f conftest.$ac_objext
7027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028 (eval $ac_compile) 2>conftest.er1
7030 grep -v '^ *+' conftest.er1 >conftest.err
7032 cat conftest.err >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } &&
7035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_cv_type_ssize_t=yes
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 ac_cv_type_ssize_t=no
7054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7056 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7057 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7058 if test $ac_cv_type_ssize_t = yes; then
7062 cat >>confdefs.h <<_ACEOF
7069 # Try to determine the array type of the second argument of getgroups
7070 # for the target system (int or gid_t).
7071 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7072 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7073 if test "${ac_cv_type_uid_t+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 cat >conftest.$ac_ext <<_ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 #include <sys/types.h>
7085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7086 $EGREP "uid_t" >/dev/null 2>&1; then
7087 ac_cv_type_uid_t=yes
7094 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7095 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7096 if test $ac_cv_type_uid_t = no; then
7098 cat >>confdefs.h <<\_ACEOF
7103 cat >>confdefs.h <<\_ACEOF
7109 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7110 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7111 if test "${ac_cv_type_getgroups+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test "$cross_compiling" = yes; then
7115 ac_cv_type_getgroups=cross
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 /* Thanks to Mike Rendell for this test. */
7124 #include <sys/types.h>
7127 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7134 union { gid_t gval; long lval; } val;
7137 for (i = 0; i < NGID; i++)
7138 gidset[i] = val.gval;
7139 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7141 /* Exit non-zero if getgroups seems to require an array of ints. This
7142 happens when gid_t is short but getgroups modifies an array of ints. */
7143 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7146 rm -f conftest$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148 (eval $ac_link) 2>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 ac_cv_type_getgroups=gid_t
7159 echo "$as_me: program exited with status $ac_status" >&5
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7164 ac_cv_type_getgroups=int
7166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7168 if test $ac_cv_type_getgroups = cross; then
7169 cat >conftest.$ac_ext <<_ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7179 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7180 ac_cv_type_getgroups=gid_t
7182 ac_cv_type_getgroups=int
7188 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7189 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7191 cat >>confdefs.h <<_ACEOF
7192 #define GETGROUPS_T $ac_cv_type_getgroups
7196 if test "${target}" = "${build}"; then
7197 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7200 # This condition may need some tweaking. It should include all
7201 # targets where the array type of the second argument of getgroups
7202 # is int and the type of gid_t is not equivalent to int.
7203 *-*-sunos* | *-*-ultrix*)
7204 TARGET_GETGROUPS_T=int
7207 TARGET_GETGROUPS_T=gid_t
7213 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7214 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7215 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 if test "$cross_compiling" = yes; then
7219 gcc_cv_func_printf_ptr=no
7221 cat >conftest.$ac_ext <<_ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7232 char *p = buf, *q = NULL;
7233 sprintf(buf, "%p", p);
7234 sscanf(buf, "%p", &q);
7238 rm -f conftest$ac_exeext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7240 (eval $ac_link) 2>&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 gcc_cv_func_printf_ptr=yes
7251 echo "$as_me: program exited with status $ac_status" >&5
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7256 gcc_cv_func_printf_ptr=no
7258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7260 rm -f core core.* *.core
7262 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7263 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7264 if test $gcc_cv_func_printf_ptr = yes ; then
7266 cat >>confdefs.h <<\_ACEOF
7267 #define HAVE_PRINTF_PTR 1
7273 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
7274 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
7275 if test "${ac_cv_header_sys_mman_h+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 #include <sys/mman.h>
7286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7289 grep -v '^ *+' conftest.er1 >conftest.err
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } >/dev/null; then
7294 if test -s conftest.err; then
7295 ac_cpp_err=$ac_c_preproc_warn_flag
7296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7303 if test -z "$ac_cpp_err"; then
7304 ac_cv_header_sys_mman_h=yes
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 ac_cv_header_sys_mman_h=no
7311 rm -f conftest.err conftest.$ac_ext
7313 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
7314 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
7315 if test $ac_cv_header_sys_mman_h = yes; then
7316 gcc_header_sys_mman_h=yes
7318 gcc_header_sys_mman_h=no
7321 echo "$as_me:$LINENO: checking for mmap" >&5
7322 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
7323 if test "${ac_cv_func_mmap+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
7333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7334 #define mmap innocuous_mmap
7336 /* System header to define __stub macros and hopefully few prototypes,
7337 which can conflict with char mmap (); below.
7338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7339 <limits.h> exists even on freestanding compilers. */
7342 # include <limits.h>
7344 # include <assert.h>
7349 /* Override any gcc2 internal prototype to avoid an error. */
7354 /* We use char because int might match the return type of a gcc2
7355 builtin and then its argument prototype would still apply. */
7357 /* The GNU C library defines this for functions which it implements
7358 to always fail with ENOSYS. Some functions are actually named
7359 something starting with __ and the normal name is an alias. */
7360 #if defined (__stub_mmap) || defined (__stub___mmap)
7363 char (*f) () = mmap;
7377 rm -f conftest.$ac_objext conftest$ac_exeext
7378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7379 (eval $ac_link) 2>conftest.er1
7381 grep -v '^ *+' conftest.er1 >conftest.err
7383 cat conftest.err >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } &&
7386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; } &&
7392 { ac_try='test -s conftest$ac_exeext'
7393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; }; then
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7405 rm -f conftest.err conftest.$ac_objext \
7406 conftest$ac_exeext conftest.$ac_ext
7408 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
7409 echo "${ECHO_T}$ac_cv_func_mmap" >&6
7410 if test $ac_cv_func_mmap = yes; then
7416 if test "$gcc_header_sys_mman_h" != yes \
7417 || test "$gcc_func_mmap" != yes; then
7418 gcc_cv_func_mmap_file=no
7419 gcc_cv_func_mmap_dev_zero=no
7420 gcc_cv_func_mmap_anon=no
7422 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7423 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7424 if test "${gcc_cv_func_mmap_file+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 # Add a system to this blacklist if
7428 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7429 # memory area containing the same data that you'd get if you applied
7430 # read() to the same fd. The only system known to have a problem here
7431 # is VMS, where text files have record structure.
7434 gcc_cv_func_mmap_file=no ;;
7436 gcc_cv_func_mmap_file=yes;;
7439 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7440 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7441 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7442 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7443 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 # Add a system to this blacklist if it has mmap() but /dev/zero
7447 # does not exist, or if mmapping /dev/zero does not give anonymous
7448 # zeroed pages with both the following properties:
7449 # 1. If you map N consecutive pages in with one call, and then
7450 # unmap any subset of those pages, the pages that were not
7451 # explicitly unmapped remain accessible.
7452 # 2. If you map two adjacent blocks of memory and then unmap them
7453 # both at once, they must both go away.
7454 # Systems known to be in this category are Windows (all variants),
7457 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7458 gcc_cv_func_mmap_dev_zero=no ;;
7460 gcc_cv_func_mmap_dev_zero=yes;;
7463 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7464 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7466 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7467 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7468 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7469 if test "${gcc_cv_decl_map_anon+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 #include <sys/types.h>
7479 #include <sys/mman.h>
7482 #ifndef MAP_ANONYMOUS
7483 #define MAP_ANONYMOUS MAP_ANON
7489 int n = MAP_ANONYMOUS;
7494 rm -f conftest.$ac_objext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7496 (eval $ac_compile) 2>conftest.er1
7498 grep -v '^ *+' conftest.er1 >conftest.err
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; } &&
7509 { ac_try='test -s conftest.$ac_objext'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 gcc_cv_decl_map_anon=yes
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 gcc_cv_decl_map_anon=no
7522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7524 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7525 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7527 if test $gcc_cv_decl_map_anon = no; then
7528 gcc_cv_func_mmap_anon=no
7530 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7531 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7532 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7536 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7537 # doesn't give anonymous zeroed pages with the same properties listed
7538 # above for use of /dev/zero.
7539 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7541 vms* | cygwin* | pe | mingw* | sco* | udk* )
7542 gcc_cv_func_mmap_anon=no ;;
7544 gcc_cv_func_mmap_anon=yes;;
7547 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7548 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7552 if test $gcc_cv_func_mmap_file = yes; then
7554 cat >>confdefs.h <<\_ACEOF
7555 #define HAVE_MMAP_FILE 1
7559 if test $gcc_cv_func_mmap_dev_zero = yes; then
7561 cat >>confdefs.h <<\_ACEOF
7562 #define HAVE_MMAP_DEV_ZERO 1
7566 if test $gcc_cv_func_mmap_anon = yes; then
7568 cat >>confdefs.h <<\_ACEOF
7569 #define HAVE_MMAP_ANON 1
7577 # Under VMS, vfork works very differently than on Unix. The standard test
7578 # won't work, and it isn't easily adaptable. It makes more sense to
7580 ac_cv_func_vfork_works=yes
7583 echo "$as_me:$LINENO: checking for pid_t" >&5
7584 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7585 if test "${ac_cv_type_pid_t+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 $ac_includes_default
7606 rm -f conftest.$ac_objext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>conftest.er1
7610 grep -v '^ *+' conftest.er1 >conftest.err
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; } &&
7621 { ac_try='test -s conftest.$ac_objext'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7627 ac_cv_type_pid_t=yes
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7637 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7638 if test $ac_cv_type_pid_t = yes; then
7642 cat >>confdefs.h <<_ACEOF
7650 for ac_header in unistd.h vfork.h
7652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7653 echo "$as_me:$LINENO: checking for $ac_header" >&5
7654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 cat >conftest.$ac_ext <<_ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664 #include <$ac_header>
7666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7669 grep -v '^ *+' conftest.er1 >conftest.err
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } >/dev/null; then
7674 if test -s conftest.err; then
7675 ac_cpp_err=$ac_c_preproc_warn_flag
7676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7683 if test -z "$ac_cpp_err"; then
7684 eval "$as_ac_Header=yes"
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7689 eval "$as_ac_Header=no"
7691 rm -f conftest.err conftest.$ac_ext
7693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7696 cat >>confdefs.h <<_ACEOF
7697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7705 for ac_func in fork vfork
7707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7708 echo "$as_me:$LINENO: checking for $ac_func" >&5
7709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7710 if eval "test \"\${$as_ac_var+set}\" = set"; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 cat >conftest.$ac_ext <<_ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7721 #define $ac_func innocuous_$ac_func
7723 /* System header to define __stub macros and hopefully few prototypes,
7724 which can conflict with char $ac_func (); below.
7725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7726 <limits.h> exists even on freestanding compilers. */
7729 # include <limits.h>
7731 # include <assert.h>
7736 /* Override any gcc2 internal prototype to avoid an error. */
7741 /* We use char because int might match the return type of a gcc2
7742 builtin and then its argument prototype would still apply. */
7744 /* The GNU C library defines this for functions which it implements
7745 to always fail with ENOSYS. Some functions are actually named
7746 something starting with __ and the normal name is an alias. */
7747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7750 char (*f) () = $ac_func;
7759 return f != $ac_func;
7764 rm -f conftest.$ac_objext conftest$ac_exeext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7766 (eval $ac_link) 2>conftest.er1
7768 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 eval "$as_ac_var=yes"
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 eval "$as_ac_var=no"
7792 rm -f conftest.err conftest.$ac_objext \
7793 conftest$ac_exeext conftest.$ac_ext
7795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7797 if test `eval echo '${'$as_ac_var'}'` = yes; then
7798 cat >>confdefs.h <<_ACEOF
7799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7805 if test "x$ac_cv_func_fork" = xyes; then
7806 echo "$as_me:$LINENO: checking for working fork" >&5
7807 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7808 if test "${ac_cv_func_fork_works+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 if test "$cross_compiling" = yes; then
7812 ac_cv_func_fork_works=cross
7814 cat >conftest.$ac_ext <<_ACEOF
7815 /* By Ruediger Kuhlmann. */
7816 #include <sys/types.h>
7818 # include <unistd.h>
7820 /* Some systems only have a dummy stub for fork() */
7828 rm -f conftest$ac_exeext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830 (eval $ac_link) 2>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_cv_func_fork_works=yes
7841 echo "$as_me: program exited with status $ac_status" >&5
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7846 ac_cv_func_fork_works=no
7848 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7851 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7852 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7855 ac_cv_func_fork_works=$ac_cv_func_fork
7857 if test "x$ac_cv_func_fork_works" = xcross; then
7859 *-*-amigaos* | *-*-msdosdjgpp*)
7860 # Override, as these systems have only a dummy fork() stub
7861 ac_cv_func_fork_works=no
7864 ac_cv_func_fork_works=yes
7867 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7868 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7870 ac_cv_func_vfork_works=$ac_cv_func_vfork
7871 if test "x$ac_cv_func_vfork" = xyes; then
7872 echo "$as_me:$LINENO: checking for working vfork" >&5
7873 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7874 if test "${ac_cv_func_vfork_works+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 if test "$cross_compiling" = yes; then
7878 ac_cv_func_vfork_works=cross
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 /* Thanks to Paul Eggert for this test. */
7889 #include <sys/types.h>
7890 #include <sys/stat.h>
7891 #include <sys/wait.h>
7893 # include <unistd.h>
7898 /* On some sparc systems, changes by the child to local and incoming
7899 argument registers are propagated back to the parent. The compiler
7900 is told about this with #include <vfork.h>, but some compilers
7901 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7902 static variable whose address is put into a register that is
7903 clobbered by the vfork. */
7906 sparc_address_test (int arg)
7908 sparc_address_test (arg) int arg;
7929 pid_t parent = getpid ();
7932 sparc_address_test (0);
7937 /* Here is another test for sparc vfork register problems. This
7938 test uses lots of local variables, at least as many local
7939 variables as main has allocated so far including compiler
7940 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7941 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7942 reuse the register of parent for one of the local variables,
7943 since it will think that parent can't possibly be used any more
7944 in this routine. Assigning to the local variable will thus
7945 munge parent in the parent process. */
7947 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7948 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7949 /* Convince the compiler that p..p7 are live; otherwise, it might
7950 use the same hardware register for all 8 local variables. */
7951 if (p != p1 || p != p2 || p != p3 || p != p4
7952 || p != p5 || p != p6 || p != p7)
7955 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7956 from child file descriptors. If the child closes a descriptor
7957 before it execs or exits, this munges the parent's descriptor
7958 as well. Test for this by closing stdout in the child. */
7959 _exit(close(fileno(stdout)) != 0);
7964 while (wait(&status) != child)
7967 /* Was there some problem with vforking? */
7970 /* Did the child fail? (This shouldn't happen.) */
7973 /* Did the vfork/compiler bug occur? */
7974 || parent != getpid()
7976 /* Did the file descriptor bug occur? */
7977 || fstat(fileno(stdout), &st) != 0
7982 rm -f conftest$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984 (eval $ac_link) 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 ac_cv_func_vfork_works=yes
7995 echo "$as_me: program exited with status $ac_status" >&5
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_cv_func_vfork_works=no
8002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8005 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8006 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8009 if test "x$ac_cv_func_fork_works" = xcross; then
8010 ac_cv_func_vfork_works=$ac_cv_func_vfork
8011 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8012 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8015 if test "x$ac_cv_func_vfork_works" = xyes; then
8017 cat >>confdefs.h <<\_ACEOF
8018 #define HAVE_WORKING_VFORK 1
8023 cat >>confdefs.h <<\_ACEOF
8028 if test "x$ac_cv_func_fork_works" = xyes; then
8030 cat >>confdefs.h <<\_ACEOF
8031 #define HAVE_WORKING_FORK 1
8039 am_cv_lib_iconv_ldpath=
8041 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8042 if test "${with_libiconv_prefix+set}" = set; then
8043 withval="$with_libiconv_prefix"
8045 for dir in `echo "$withval" | tr : ' '`; do
8046 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8047 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
8053 for ac_header in iconv.h
8055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8056 echo "$as_me:$LINENO: checking for $ac_header" >&5
8057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.$ac_ext <<_ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 #include <$ac_header>
8069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } >/dev/null; then
8077 if test -s conftest.err; then
8078 ac_cpp_err=$ac_c_preproc_warn_flag
8079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8086 if test -z "$ac_cpp_err"; then
8087 eval "$as_ac_Header=yes"
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 eval "$as_ac_Header=no"
8094 rm -f conftest.err conftest.$ac_ext
8096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8099 cat >>confdefs.h <<_ACEOF
8100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8107 echo "$as_me:$LINENO: checking for iconv" >&5
8108 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8109 if test "${am_cv_func_iconv+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 am_cv_func_iconv="no, consider installing GNU libiconv"
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8126 iconv_t cd = iconv_open("","");
8127 iconv(cd,NULL,NULL,NULL,NULL);
8133 rm -f conftest.$ac_objext conftest$ac_exeext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8135 (eval $ac_link) 2>conftest.er1
8137 grep -v '^ *+' conftest.er1 >conftest.err
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; } &&
8148 { ac_try='test -s conftest$ac_exeext'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8154 am_cv_func_iconv=yes
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8160 rm -f conftest.err conftest.$ac_objext \
8161 conftest$ac_exeext conftest.$ac_ext
8162 if test "$am_cv_func_iconv" != yes; then
8163 am_save_LIBS="$LIBS"
8164 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8176 iconv_t cd = iconv_open("","");
8177 iconv(cd,NULL,NULL,NULL,NULL);
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8185 (eval $ac_link) 2>conftest.er1
8187 grep -v '^ *+' conftest.er1 >conftest.err
8189 cat conftest.err >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; } &&
8198 { ac_try='test -s conftest$ac_exeext'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; }; then
8205 am_cv_func_iconv=yes
8207 echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8211 rm -f conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8213 LIBS="$am_save_LIBS"
8217 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8218 echo "${ECHO_T}$am_cv_func_iconv" >&6
8219 if test "$am_cv_func_iconv" = yes; then
8221 cat >>confdefs.h <<\_ACEOF
8222 #define HAVE_ICONV 1
8225 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8226 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8227 if test "${am_cv_proto_iconv+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8244 #if defined(__STDC__) || defined(__cplusplus)
8245 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8258 rm -f conftest.$ac_objext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8260 (eval $ac_compile) 2>conftest.er1
8262 grep -v '^ *+' conftest.er1 >conftest.err
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest.$ac_objext'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 am_cv_proto_iconv_arg1=""
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 am_cv_proto_iconv_arg1="const"
8286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287 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);"
8290 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8291 echo "$as_me:$LINENO: result: ${ac_t:-
8292 }$am_cv_proto_iconv" >&5
8293 echo "${ECHO_T}${ac_t:-
8294 }$am_cv_proto_iconv" >&6
8296 cat >>confdefs.h <<_ACEOF
8297 #define ICONV_CONST $am_cv_proto_iconv_arg1
8302 if test "$am_cv_lib_iconv" = yes; then
8303 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8307 # Until we have in-tree GNU iconv:
8312 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8313 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8314 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 cat >conftest.$ac_ext <<_ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334 (eval $ac_link) 2>conftest.er1
8336 grep -v '^ *+' conftest.er1 >conftest.err
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest$ac_exeext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 am_cv_val_LC_MESSAGES=yes
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8358 am_cv_val_LC_MESSAGES=no
8360 rm -f conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8363 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8364 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8365 if test $am_cv_val_LC_MESSAGES = yes; then
8367 cat >>confdefs.h <<\_ACEOF
8368 #define HAVE_LC_MESSAGES 1
8374 # We will need to find libiberty.h and ansidecl.h
8375 saved_CFLAGS="$CFLAGS"
8376 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8401 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8402 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8403 fprintf_unlocked strstr errno snprintf vasprintf \
8404 malloc realloc calloc free basename getopt clock getpagesize
8406 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8407 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8408 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8409 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 cat >conftest.$ac_ext <<_ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8419 #define $ac_tr_decl 1
8421 #include "ansidecl.h"
8428 char *(*pfn) = (char *(*)) $ac_func ;
8434 rm -f conftest.$ac_objext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8436 (eval $ac_compile) 2>conftest.er1
8438 grep -v '^ *+' conftest.er1 >conftest.err
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; } &&
8449 { ac_try='test -s conftest.$ac_objext'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 eval "gcc_cv_have_decl_$ac_func=yes"
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8460 eval "gcc_cv_have_decl_$ac_func=no"
8462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8465 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8466 echo "$as_me:$LINENO: result: yes" >&5
8467 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8468 #define $ac_tr_decl 1
8472 echo "$as_me:$LINENO: result: no" >&5
8473 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8474 #define $ac_tr_decl 0
8485 for ac_func in getrlimit setrlimit getrusage
8487 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8488 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8489 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8490 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 cat >conftest.$ac_ext <<_ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8500 #define $ac_tr_decl 1
8502 #include "ansidecl.h"
8504 #ifdef HAVE_SYS_RESOURCE_H
8505 #include <sys/resource.h>
8513 char *(*pfn) = (char *(*)) $ac_func ;
8519 rm -f conftest.$ac_objext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8521 (eval $ac_compile) 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; } &&
8534 { ac_try='test -s conftest.$ac_objext'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8540 eval "gcc_cv_have_decl_$ac_func=yes"
8542 echo "$as_me: failed program was:" >&5
8543 sed 's/^/| /' conftest.$ac_ext >&5
8545 eval "gcc_cv_have_decl_$ac_func=no"
8547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8550 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8551 echo "$as_me:$LINENO: result: yes" >&5
8552 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8553 #define $ac_tr_decl 1
8557 echo "$as_me:$LINENO: result: no" >&5
8558 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8559 #define $ac_tr_decl 0
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8574 #include "ansidecl.h"
8576 #ifdef HAVE_SYS_RESOURCE_H
8577 #include <sys/resource.h>
8588 rm -f conftest.$ac_objext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8590 (eval $ac_compile) 2>conftest.er1
8592 grep -v '^ *+' conftest.er1 >conftest.err
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try='test -s conftest.$ac_objext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8615 cat >>confdefs.h <<\_ACEOF
8620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8623 for ac_func in ldgetname
8625 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8626 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8627 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8628 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 cat >conftest.$ac_ext <<_ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8638 #define $ac_tr_decl 1
8640 #include "ansidecl.h"
8651 char *(*pfn) = (char *(*)) $ac_func ;
8657 rm -f conftest.$ac_objext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8659 (eval $ac_compile) 2>conftest.er1
8661 grep -v '^ *+' conftest.er1 >conftest.err
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } &&
8666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 eval "gcc_cv_have_decl_$ac_func=yes"
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 eval "gcc_cv_have_decl_$ac_func=no"
8685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8688 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8689 echo "$as_me:$LINENO: result: yes" >&5
8690 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8691 #define $ac_tr_decl 1
8695 echo "$as_me:$LINENO: result: no" >&5
8696 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8697 #define $ac_tr_decl 0
8706 for ac_func in times
8708 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8709 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8710 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8711 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 cat >conftest.$ac_ext <<_ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8721 #define $ac_tr_decl 1
8723 #include "ansidecl.h"
8725 #ifdef HAVE_SYS_TIMES_H
8726 #include <sys/times.h>
8734 char *(*pfn) = (char *(*)) $ac_func ;
8740 rm -f conftest.$ac_objext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8742 (eval $ac_compile) 2>conftest.er1
8744 grep -v '^ *+' conftest.er1 >conftest.err
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; } &&
8755 { ac_try='test -s conftest.$ac_objext'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; }; then
8761 eval "gcc_cv_have_decl_$ac_func=yes"
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8766 eval "gcc_cv_have_decl_$ac_func=no"
8768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8771 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8772 echo "$as_me:$LINENO: result: yes" >&5
8773 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8774 #define $ac_tr_decl 1
8778 echo "$as_me:$LINENO: result: no" >&5
8779 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8780 #define $ac_tr_decl 0
8788 # More time-related stuff.
8789 echo "$as_me:$LINENO: checking for struct tms" >&5
8790 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8791 if test "${ac_cv_struct_tms+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8802 #include "ansidecl.h"
8804 #ifdef HAVE_SYS_TIMES_H
8805 #include <sys/times.h>
8816 rm -f conftest.$ac_objext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818 (eval $ac_compile) 2>conftest.er1
8820 grep -v '^ *+' conftest.er1 >conftest.err
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); }; } &&
8831 { ac_try='test -s conftest.$ac_objext'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 ac_cv_struct_tms=yes
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8846 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8847 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8848 if test $ac_cv_struct_tms = yes; then
8850 cat >>confdefs.h <<\_ACEOF
8851 #define HAVE_STRUCT_TMS 1
8856 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8857 # revisit after autoconf 2.50.
8858 echo "$as_me:$LINENO: checking for clock_t" >&5
8859 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8860 if test "${gcc_cv_type_clock_t+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 cat >conftest.$ac_ext <<_ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8871 #include "ansidecl.h"
8882 rm -f conftest.$ac_objext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8884 (eval $ac_compile) 2>conftest.er1
8886 grep -v '^ *+' conftest.er1 >conftest.err
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; } &&
8897 { ac_try='test -s conftest.$ac_objext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 gcc_cv_type_clock_t=yes
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 gcc_cv_type_clock_t=no
8910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8912 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8913 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8914 if test $gcc_cv_type_clock_t = yes; then
8916 cat >>confdefs.h <<\_ACEOF
8917 #define HAVE_CLOCK_T 1
8922 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8923 CFLAGS="$saved_CFLAGS"
8925 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8926 if test "${enable_initfini_array+set}" = set; then
8927 enableval="$enable_initfini_array"
8931 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8932 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8933 if test "${gcc_cv_initfini_array+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 if test "$cross_compiling" = yes; then
8937 gcc_cv_initfini_array=no
8939 cat >conftest.$ac_ext <<_ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8947 int main (void) { return x; }
8948 int foo (void) { x = 0; }
8949 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8951 rm -f conftest$ac_exeext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8953 (eval $ac_link) 2>&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 gcc_cv_initfini_array=yes
8964 echo "$as_me: program exited with status $ac_status" >&5
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8969 gcc_cv_initfini_array=no
8971 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8974 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8975 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8976 enable_initfini_array=$gcc_cv_initfini_array
8979 if test $enable_initfini_array = yes; then
8981 cat >>confdefs.h <<\_ACEOF
8982 #define HAVE_INITFINI_ARRAY 1
8987 # mkdir takes a single argument on some systems.
8988 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8989 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8990 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 cat >conftest.$ac_ext <<_ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9000 #include <sys/types.h>
9001 #ifdef HAVE_SYS_STAT_H
9002 # include <sys/stat.h>
9004 #ifdef HAVE_UNISTD_H
9005 # include <unistd.h>
9007 #ifdef HAVE_DIRECT_H
9008 # include <direct.h>
9018 rm -f conftest.$ac_objext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9020 (eval $ac_compile) 2>conftest.er1
9022 grep -v '^ *+' conftest.er1 >conftest.err
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } &&
9027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; } &&
9033 { ac_try='test -s conftest.$ac_objext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 gcc_cv_mkdir_takes_one_arg=no
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9044 gcc_cv_mkdir_takes_one_arg=yes
9046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9048 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9049 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9050 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9052 cat >>confdefs.h <<\_ACEOF
9053 #define MKDIR_TAKES_ONE_ARG 1
9065 # With Setjmp/Longjmp based exception handling.
9066 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9067 if test "${enable_sjlj_exceptions+set}" = set; then
9068 enableval="$enable_sjlj_exceptions"
9069 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9071 cat >>confdefs.h <<_ACEOF
9072 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9077 if test x$host = x$target; then
9078 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9079 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9080 if test "${ac_cv_lib_unwind_main+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 ac_check_lib_save_LIBS=$LIBS
9084 LIBS="-lunwind $LIBS"
9085 cat >conftest.$ac_ext <<_ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9101 rm -f conftest.$ac_objext conftest$ac_exeext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9103 (eval $ac_link) 2>conftest.er1
9105 grep -v '^ *+' conftest.er1 >conftest.err
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; } &&
9116 { ac_try='test -s conftest$ac_exeext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 ac_cv_lib_unwind_main=yes
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 ac_cv_lib_unwind_main=no
9129 rm -f conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
9131 LIBS=$ac_check_lib_save_LIBS
9133 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9134 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9135 if test $ac_cv_lib_unwind_main = yes; then
9136 use_libunwind_default=yes
9138 use_libunwind_default=no
9142 use_libunwind_default=no
9144 # Use libunwind based exception handling.
9145 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9146 if test "${enable_libunwind_exceptions+set}" = set; then
9147 enableval="$enable_libunwind_exceptions"
9148 use_libunwind_exceptions=$enableval
9150 use_libunwind_exceptions=$use_libunwind_default
9152 if test x"$use_libunwind_exceptions" = xyes; then
9154 cat >>confdefs.h <<\_ACEOF
9155 #define USE_LIBUNWIND_EXCEPTIONS 1
9160 # --------------------------------------------------------
9161 # Build, host, and target specific configuration fragments
9162 # --------------------------------------------------------
9164 # Collect build-machine-specific information.
9165 . ${srcdir}/config.build
9167 # Collect host-machine-specific information.
9168 . ${srcdir}/config.host
9172 # Collect target-machine-specific information.
9173 . ${srcdir}/config.gcc
9175 extra_objs="${host_extra_objs} ${extra_objs}"
9176 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9178 # Default the target-machine variables that were not explicitly set.
9179 if test x"$tm_file" = x
9180 then tm_file=$cpu_type/$cpu_type.h; fi
9182 if test x"$extra_headers" = x
9183 then extra_headers=; fi
9185 if test x$md_file = x
9186 then md_file=$cpu_type/$cpu_type.md; fi
9188 if test x$out_file = x
9189 then out_file=$cpu_type/$cpu_type.c; fi
9191 if test x"$tmake_file" = x
9192 then tmake_file=$cpu_type/t-$cpu_type
9195 if test x"$dwarf2" = xyes
9196 then tm_file="$tm_file tm-dwarf2.h"
9199 # Say what files are being used for the output code and MD file.
9200 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9201 echo "Using \`$srcdir/config/$md_file' as machine description file."
9203 # If any of the xm_file variables contain nonexistent files, warn
9204 # about them and drop them.
9207 for x in $build_xm_file; do
9208 if test -f $srcdir/config/$x
9210 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9211 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9217 for x in $host_xm_file; do
9218 if test -f $srcdir/config/$x
9220 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9221 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9227 for x in $xm_file; do
9228 if test -f $srcdir/config/$x
9230 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9231 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9237 for f in $tm_file; do
9240 if test $count = ax; then
9241 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9243 echo "Using the following target machine macro files:"
9244 for f in $tm_file; do
9245 echo " $srcdir/config/$f"
9249 if test x$need_64bit_hwint = xyes; then
9251 cat >>confdefs.h <<\_ACEOF
9252 #define NEED_64BIT_HOST_WIDE_INT 1
9258 for f in $host_xm_file; do
9261 if test $count = a; then
9263 elif test $count = ax; then
9264 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9266 echo "Using the following host machine macro files:"
9267 for f in $host_xm_file; do
9268 echo " $srcdir/config/$f"
9271 echo "Using ${out_host_hook_obj} for host machine hooks."
9273 if test "$host_xm_file" != "$build_xm_file"; then
9275 for f in $build_xm_file; do
9278 if test $count = a; then
9280 elif test $count = ax; then
9281 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9283 echo "Using the following build machine macro files:"
9284 for f in $build_xm_file; do
9285 echo " $srcdir/config/$f"
9294 # Check if a valid thread package
9295 case ${enable_threads} in
9298 target_thread_file='single'
9302 target_thread_file='single'
9304 aix | dce | gnat | irix | posix | rtems | \
9305 single | solaris | vxworks | win32 )
9306 target_thread_file=${enable_threads}
9309 echo "${enable_threads} is an unknown thread package" 1>&2
9314 if test x${thread_file} = x; then
9315 # No thread file set by target-specific clauses in config.gcc,
9316 # so use file chosen by default logic above
9317 thread_file=${target_thread_file}
9320 # Make gthr-default.h if we have a thread file.
9322 if test $thread_file != single; then
9323 rm -f gthr-default.h
9324 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9325 gthread_flags=-DHAVE_GTHR_DEFAULT
9333 if test x$enable___cxa_atexit = xyes || \
9334 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9335 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9336 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9337 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9348 #define __cxa_atexit innocuous___cxa_atexit
9350 /* System header to define __stub macros and hopefully few prototypes,
9351 which can conflict with char __cxa_atexit (); below.
9352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9353 <limits.h> exists even on freestanding compilers. */
9356 # include <limits.h>
9358 # include <assert.h>
9363 /* Override any gcc2 internal prototype to avoid an error. */
9368 /* We use char because int might match the return type of a gcc2
9369 builtin and then its argument prototype would still apply. */
9370 char __cxa_atexit ();
9371 /* The GNU C library defines this for functions which it implements
9372 to always fail with ENOSYS. Some functions are actually named
9373 something starting with __ and the normal name is an alias. */
9374 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9377 char (*f) () = __cxa_atexit;
9386 return f != __cxa_atexit;
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>conftest.er1
9395 grep -v '^ *+' conftest.er1 >conftest.err
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; } &&
9406 { ac_try='test -s conftest$ac_exeext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 ac_cv_func___cxa_atexit=yes
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 ac_cv_func___cxa_atexit=no
9419 rm -f conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9422 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9423 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9424 if test $ac_cv_func___cxa_atexit = yes; then
9426 cat >>confdefs.h <<\_ACEOF
9427 #define DEFAULT_USE_CXA_ATEXIT 1
9431 echo "__cxa_atexit can't be enabled on this target"
9436 # Look for a file containing extra machine modes.
9437 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9438 extra_modes_file='$(srcdir)'/config/${extra_modes}
9441 cat >>confdefs.h <<_ACEOF
9442 #define EXTRA_MODES_FILE "config/$extra_modes"
9447 # auto-host.h is the file containing items generated by autoconf and is
9448 # the first file included by config.h.
9449 # If host=build, it is correct to have bconfig include auto-host.h
9450 # as well. If host!=build, we are in error and need to do more
9451 # work to find out the build config parameters.
9452 if test x$host = x$build
9454 build_auto=auto-host.h
9457 # We create a subdir, then run autoconf in the subdir.
9458 # To prevent recursion we set host and build for the new
9459 # invocation of configure to the build for this invocation
9466 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9467 *) realsrcdir=../${srcdir};;
9469 saved_CFLAGS="${CFLAGS}"
9470 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9471 ${realsrcdir}/configure \
9472 --enable-languages=${enable_languages-all} \
9473 --target=$target_alias --host=$build_alias --build=$build_alias
9474 CFLAGS="${saved_CFLAGS}"
9476 # We just finished tests for the build machine, so rename
9477 # the file auto-build.h in the gcc directory.
9478 mv auto-host.h ../auto-build.h
9481 build_auto=auto-build.h
9482 FORBUILD=../${build_subdir}
9486 tm_file="${tm_file} defaults.h"
9487 tm_p_file="${tm_p_file} tm-preds.h"
9488 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9489 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9490 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9491 # put this back in temporarily.
9492 xm_file="ansidecl.h ${xm_file}"
9498 # Get the version trigger filename from the toplevel
9499 if test "${with_gcc_version_trigger+set}" = set; then
9500 gcc_version_trigger=$with_gcc_version_trigger
9502 gcc_version_trigger=${srcdir}/version.c
9504 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9505 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9507 # Compile in configure arguments.
9508 if test -f configargs.h ; then
9509 # Being re-configured.
9510 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9511 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9513 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9516 # Double all backslashes and backslash all quotes to turn
9517 # gcc_config_arguments into a C string.
9518 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9519 $gcc_config_arguments
9521 gcc_config_arguments_str=`cat conftest.out`
9524 cat > configargs.h <<EOF
9525 /* Generated automatically. */
9526 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9527 static const char thread_model[] = "$thread_file";
9529 static const struct {
9530 const char *name, *value;
9531 } configure_default_options[] = $configure_default_options;
9534 # Internationalization
9536 VERSION="$gcc_version"
9538 cat >>confdefs.h <<_ACEOF
9539 #define PACKAGE "$PACKAGE"
9545 # If we haven't got the data from the intl directory,
9546 # assume NLS is disabled.
9554 if test -f ../intl/config.intl; then
9555 . ../intl/config.intl
9557 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9558 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9559 if test x"$USE_NLS" != xyes; then
9560 echo "$as_me:$LINENO: result: no" >&5
9561 echo "${ECHO_T}no" >&6
9563 echo "$as_me:$LINENO: result: yes" >&5
9564 echo "${ECHO_T}yes" >&6
9566 cat >>confdefs.h <<\_ACEOF
9567 #define ENABLE_NLS 1
9571 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9572 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9573 # Look for .po and .gmo files in the source directory.
9576 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9577 # If there aren't any .gmo files the shell will give us the
9578 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9580 case "$cat" in *\**)
9583 # The quadruple backslash is collapsed to a double backslash
9584 # by the backticks, then collapsed again by the double quotes,
9585 # leaving us with one backslash in the sed expression (right
9586 # before the dot that mustn't act as a wildcard).
9587 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9588 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9589 # The user is allowed to set LINGUAS to a list of languages to
9590 # install catalogs for. If it's empty that means "all of them."
9591 if test "x$LINGUAS" = x; then
9592 CATALOGS="$CATALOGS $cat"
9593 XLINGUAS="$XLINGUAS $lang"
9595 case "$LINGUAS" in *$lang*)
9596 CATALOGS="$CATALOGS $cat"
9597 XLINGUAS="$XLINGUAS $lang"
9603 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9604 echo "${ECHO_T}$LINGUAS" >&6
9607 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9608 # -liconv on the link line twice.
9609 case "$LIBINTL" in *$LIBICONV*)
9613 # Windows32 Registry support for specifying GCC installation paths.
9614 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9615 if test "${enable_win32_registry+set}" = set; then
9616 enableval="$enable_win32_registry"
9620 win32 | pe | cygwin* | mingw32* | uwin*)
9621 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9622 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9623 if test "x$enable_win32_registry" != xno; then
9625 cat >>confdefs.h <<\_ACEOF
9626 #define ENABLE_WIN32_REGISTRY 1
9629 echo "$as_me:$LINENO: result: yes" >&5
9630 echo "${ECHO_T}yes" >&6
9631 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9632 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9633 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 ac_func_search_save_LIBS=$LIBS
9637 ac_cv_search_RegOpenKeyExA=no
9638 cat >conftest.$ac_ext <<_ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9645 /* Override any gcc2 internal prototype to avoid an error. */
9649 /* We use char because int might match the return type of a gcc2
9650 builtin and then its argument prototype would still apply. */
9651 char RegOpenKeyExA ();
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>conftest.er1
9664 grep -v '^ *+' conftest.er1 >conftest.err
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try='test -s conftest$ac_exeext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_search_RegOpenKeyExA="none required"
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9687 rm -f conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9690 for ac_lib in advapi32; do
9691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9692 cat >conftest.$ac_ext <<_ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9699 /* Override any gcc2 internal prototype to avoid an error. */
9703 /* We use char because int might match the return type of a gcc2
9704 builtin and then its argument prototype would still apply. */
9705 char RegOpenKeyExA ();
9714 rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>conftest.er1
9718 grep -v '^ *+' conftest.er1 >conftest.err
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9742 rm -f conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9746 LIBS=$ac_func_search_save_LIBS
9748 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9749 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9750 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9751 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9756 echo "$as_me:$LINENO: result: no" >&5
9757 echo "${ECHO_T}no" >&6
9760 # Check if user specified a different registry key.
9761 case "x${enable_win32_registry}" in
9764 gcc_cv_win32_registry_key="$VERSION"
9767 # no registry lookup.
9768 gcc_cv_win32_registry_key=''
9771 # user-specified key.
9772 gcc_cv_win32_registry_key="$enable_win32_registry"
9776 if test "x$enable_win32_registry" != xno; then
9777 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9778 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9780 cat >>confdefs.h <<_ACEOF
9781 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9784 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9785 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9790 # Get an absolute path to the GCC top-level source directory
9791 holddir=`${PWDCMD-pwd}`
9793 topdir=`${PWDCMD-pwd}`
9796 # Conditionalize the makefile for this host machine.
9798 for f in ${host_xmake_file}
9800 if test -f ${srcdir}/config/$f
9802 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9806 # Conditionalize the makefile for this target machine.
9808 for f in ${tmake_file}
9810 if test -f ${srcdir}/config/$f
9812 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9815 tmake_file="${tmake_file_}"
9817 symbolic_link='ln -s'
9819 # If the host doesn't support symlinks, modify CC in
9820 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9821 # Otherwise, we can use "CC=$(CC)".
9823 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9825 cc_set_by_configure="\$(CC)"
9826 quoted_cc_set_by_configure="\$(CC)"
9827 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9828 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9831 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9833 symbolic_link="cp -p"
9837 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9838 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9839 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9840 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9844 out_object_file=`basename $out_file .c`.o
9848 for f in $tm_file; do
9851 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9852 tm_include_list="${tm_include_list} $f"
9855 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9856 tm_include_list="${tm_include_list} config/$f"
9863 for f in $tm_p_file; do
9866 tm_p_file_list="${tm_p_file_list} $f"
9867 tm_p_include_list="${tm_p_include_list} $f"
9870 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9871 tm_p_include_list="${tm_p_include_list} config/$f"
9877 for f in $xm_file; do
9880 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9881 xm_include_list="${xm_include_list} $f"
9884 xm_file_list="${xm_file_list} $f"
9885 xm_include_list="${xm_include_list} $f"
9888 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9889 xm_include_list="${xm_include_list} config/$f"
9895 host_xm_include_list=
9896 for f in $host_xm_file; do
9899 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9900 host_xm_include_list="${host_xm_include_list} $f"
9903 host_xm_file_list="${host_xm_file_list} $f"
9904 host_xm_include_list="${host_xm_include_list} $f"
9907 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9908 host_xm_include_list="${host_xm_include_list} config/$f"
9914 for f in $build_xm_file; do
9917 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9918 build_xm_include_list="${build_xm_include_list} $f"
9920 auto-build.h | auto-host.h )
9921 build_xm_file_list="${build_xm_file_list} $f"
9922 build_xm_include_list="${build_xm_include_list} $f"
9925 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9926 build_xm_include_list="${build_xm_include_list} config/$f"
9931 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9932 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9935 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9936 if test x$host != x$target
9938 CROSS="-DCROSS_COMPILE"
9940 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9941 case "$host","$target" in
9942 # Darwin crosses can use the host system's libraries and headers,
9943 # because of the fat library support. Of course, it must be the
9944 # same version of Darwin on both sides. Allow the user to
9945 # just say --target=foo-darwin without a version number to mean
9946 # "the version on this system".
9947 *-*-darwin*,*-*-darwin*)
9948 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9949 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9950 if test $hostos = $targetos -o $targetos = darwin ; then
9952 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9957 i?86-*-*,x86_64-*-* \
9958 | powerpc*-*-*,powerpc64*-*-*)
9959 CROSS="$CROSS -DNATIVE_CROSS" ;;
9961 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9962 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9963 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9966 # If this is a cross-compiler that does not
9967 # have its own set of headers then define
9970 # If this is using newlib, without having the headers available now,
9971 # then define inhibit_libc in LIBGCC2_CFLAGS.
9972 # This prevents libgcc2 from containing any code which requires libc
9975 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9976 test x$with_newlib = xyes ; } &&
9977 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9978 inhibit_libc=-Dinhibit_libc
9982 # When building gcc with a cross-compiler, we need to adjust things so
9983 # that the generator programs are still built with the native compiler.
9984 # Also, we cannot run fixincludes or fix-header.
9986 # These are the normal (build=host) settings:
9987 CC_FOR_BUILD='$(CC)'
9988 BUILD_CFLAGS='$(ALL_CFLAGS)'
9989 STMP_FIXINC=stmp-fixinc
9991 # Possibly disable fixproto, on a per-target basis.
9992 case ${use_fixproto} in
9997 STMP_FIXPROTO=stmp-fixproto
10002 # And these apply if build != host, or we are generating coverage data
10003 if test x$build != x$host || test "x$coverage_flags" != x
10005 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10007 if test "x$TARGET_SYSTEM_ROOT" = x; then
10013 # Expand extra_headers to include complete path.
10014 # This substitutes for lots of t-* files.
10015 extra_headers_list=
10016 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10017 for file in ${extra_headers} ; do
10018 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10021 # Define collect2 in Makefile.
10022 case $host_can_use_collect2 in
10024 *) collect2='collect2$(exeext)' ;;
10028 # Add a definition of USE_COLLECT2 if system wants one.
10029 case $use_collect2 in
10030 no) use_collect2= ;;
10033 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10034 xm_defines="${xm_defines} USE_COLLECT2"
10035 case $host_can_use_collect2 in
10037 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10038 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10039 { (exit 1); exit 1; }; }
10045 # ---------------------------
10046 # Assembler & linker features
10047 # ---------------------------
10049 # Identify the assembler which will work hand-in-glove with the newly
10050 # built GCC, so that we can examine its features. This is the assembler
10051 # which will be driven by the driver program.
10053 # If build != host, and we aren't building gas in-tree, we identify a
10054 # build->target assembler and hope that it will have the same features
10055 # as the host->target assembler we'll be using.
10056 echo "$as_me:$LINENO: checking what assembler to use" >&5
10057 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10060 gcc_cv_gas_major_version=
10061 gcc_cv_gas_minor_version=
10062 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10063 if test -x "$DEFAULT_ASSEMBLER"; then
10064 gcc_cv_as="$DEFAULT_ASSEMBLER"
10065 elif test -x as$host_exeext; then
10066 # Build using assembler in the current directory.
10067 gcc_cv_as=./as$host_exeext
10068 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10069 && test -f ../gas/Makefile \
10070 && test x$build = x$host; then
10071 # Single tree build which includes gas. We want to prefer it
10072 # over whatever linker top-level may have detected, since
10073 # we'll use what we're building after installation anyway.
10075 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10076 for f in $gcc_cv_as_bfd_srcdir/configure \
10077 $gcc_cv_as_gas_srcdir/configure \
10078 $gcc_cv_as_gas_srcdir/configure.in \
10079 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10080 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10081 if test x$gcc_cv_gas_version != x; then
10085 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10086 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10087 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10088 case $gcc_cv_gas_patch_version in
10089 "") gcc_cv_gas_patch_version="0" ;;
10091 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10092 + $gcc_cv_gas_minor_version \) \* 1000 \
10093 + $gcc_cv_gas_patch_version`
10095 rm -f as$host_exeext
10096 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10097 in_tree_gas_is_elf=no
10098 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10099 || (grep 'obj_format = multi' ../gas/Makefile \
10100 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10102 in_tree_gas_is_elf=yes
10104 elif test -x "$AS_FOR_TARGET"; then
10105 gcc_cv_as="$AS_FOR_TARGET"
10106 elif test -x "$AS" && test x$host = x$target; then
10110 if test "x$gcc_cv_as" = x; then
10111 # Search the same directories that the installed compiler will
10112 # search. Else we may find the wrong assembler and lose. If we
10113 # do not find a suitable assembler binary, then try the user's
10116 # Also note we have to check MD_EXEC_PREFIX before checking the
10117 # user's path. Unfortunately, there is no good way to get at the
10118 # value of MD_EXEC_PREFIX here. So we do a brute force search
10119 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10120 # to be fixed as part of the make/configure rewrite too.
10122 if test "x$exec_prefix" = xNONE; then
10123 if test "x$prefix" = xNONE; then
10124 test_prefix=/usr/local
10126 test_prefix=$prefix
10129 test_prefix=$exec_prefix
10132 # If the loop below does not find an assembler, then use whatever
10133 # one we can find in the users's path.
10135 if test "x$program_prefix" != xNONE; then
10136 gcc_cv_as=${program_prefix}as$host_exeext
10138 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10141 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10142 $test_prefix/libexec/gcc/$target_noncanonical \
10143 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10144 /usr/lib/gcc/$target_noncanonical \
10145 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10146 $test_prefix/$target_noncanonical/bin"
10148 if test x$host = x$target; then
10149 test_dirs="$test_dirs \
10154 /bsd43/usr/lib/cmplrs/cc \
10155 /usr/cross64/usr/bin \
10156 /usr/lib/cmplrs/cc \
10157 /sysv/usr/lib/cmplrs/cc \
10158 /svr4/usr/lib/cmplrs/cc \
10162 for dir in $test_dirs; do
10163 if test -x $dir/as$host_exeext; then
10164 gcc_cv_as=$dir/as$host_exeext
10169 case $in_tree_gas in
10171 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10172 echo "${ECHO_T}\"newly built gas\"" >&6
10175 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10176 echo "${ECHO_T}$gcc_cv_as" >&6
10180 # Identify the linker which will work hand-in-glove with the newly
10181 # built GCC, so that we can examine its features. This is the linker
10182 # which will be driven by the driver program.
10184 # If build != host, and we aren't building gas in-tree, we identify a
10185 # build->target linker and hope that it will have the same features
10186 # as the host->target linker we'll be using.
10187 echo "$as_me:$LINENO: checking what linker to use" >&5
10188 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10191 gcc_cv_gld_major_version=
10192 gcc_cv_gld_minor_version=
10193 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10194 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10195 if test -x "$DEFAULT_LINKER"; then
10196 gcc_cv_ld="$DEFAULT_LINKER"
10197 elif test -x collect-ld$host_exeext; then
10198 # Build using linker in the current directory.
10199 gcc_cv_ld=./collect-ld$host_exeext
10200 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10201 && test -f ../ld/Makefile \
10202 && test x$build = x$host; then
10203 # Single tree build which includes ld. We want to prefer it
10204 # over whatever linker top-level may have detected, since
10205 # we'll use what we're building after installation anyway.
10207 in_tree_ld_is_elf=no
10208 if (grep 'EMUL = .*elf' ../ld/Makefile \
10209 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10210 in_tree_ld_is_elf=yes
10212 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
10214 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10215 if test x$gcc_cv_gld_version != x; then
10219 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10220 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10221 rm -f collect-ld$host_exeext
10222 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10224 elif test -x "$LD_FOR_TARGET"; then
10225 gcc_cv_ld="$LD_FOR_TARGET"
10226 elif test -x "$LD" && test x$host = x$target; then
10230 if test "x$gcc_cv_ld" = x; then
10231 # Search the same directories that the installed compiler will
10232 # search. Else we may find the wrong linker and lose. If we
10233 # do not find a suitable linker binary, then try the user's
10236 # Also note we have to check MD_EXEC_PREFIX before checking the
10237 # user's path. Unfortunately, there is no good way to get at the
10238 # value of MD_EXEC_PREFIX here. So we do a brute force search
10239 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10240 # to be fixed as part of the make/configure rewrite too.
10242 if test "x$exec_prefix" = xNONE; then
10243 if test "x$prefix" = xNONE; then
10244 test_prefix=/usr/local
10246 test_prefix=$prefix
10249 test_prefix=$exec_prefix
10252 # If the loop below does not find an linker, then use whatever
10253 # one we can find in the users's path.
10255 if test "x$program_prefix" != xNONE; then
10256 gcc_cv_ld=${program_prefix}ld$host_exeext
10258 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10261 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10262 $test_prefix/libexec/gcc/$target_noncanonical \
10263 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10264 /usr/lib/gcc/$target_noncanonical \
10265 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10266 $test_prefix/$target_noncanonical/bin"
10268 if test x$host = x$target; then
10269 test_dirs="$test_dirs \
10274 /bsd43/usr/lib/cmplrs/cc \
10275 /usr/cross64/usr/bin \
10276 /usr/lib/cmplrs/cc \
10277 /sysv/usr/lib/cmplrs/cc \
10278 /svr4/usr/lib/cmplrs/cc \
10282 for dir in $test_dirs; do
10283 if test -x $dir/ld$host_exeext; then
10284 gcc_cv_ld=$dir/ld$host_exeext
10289 case $in_tree_ld in
10291 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10292 echo "${ECHO_T}\"newly built ld\"" >&6
10295 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10296 echo "${ECHO_T}$gcc_cv_ld" >&6
10300 # Figure out what nm we will be using.
10301 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10302 echo "$as_me:$LINENO: checking what nm to use" >&5
10303 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10305 if test -x nm$host_exeext; then
10306 gcc_cv_nm=./nm$host_exeext
10307 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10308 && test -f ../binutils/Makefile; then
10309 # Single tree build which includes binutils.
10311 gcc_cv_nm=./nm$host_exeext
10312 rm -f nm$host_exeext
10313 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10314 elif test "x$program_prefix" != xNONE; then
10315 gcc_cv_nm=${program_prefix}nm$host_exeext
10317 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10319 case $in_tree_nm in
10320 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10321 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10322 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10323 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10326 # Figure out what objdump we will be using.
10327 echo "$as_me:$LINENO: checking what objdump to use" >&5
10328 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10330 if test -x objdump$host_exeext; then
10331 gcc_cv_objdump=./objdump$host_exeext
10332 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10333 && test -f ../binutils/Makefile; then
10334 # Single tree build which includes binutils.
10335 in_tree_objdump=yes
10336 gcc_cv_objdump=./objdump$host_exeext
10337 rm -f objdump$host_exeext
10338 $symbolic_link ../binutils/objdump$host_exeext \
10339 objdump$host_exeext 2>/dev/null
10340 elif test "x$program_prefix" != xNONE; then
10341 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10343 gcc_cv_objdump=`echo objdump | \
10344 sed "${program_transform_name}"`$host_exeext
10346 case $in_tree_objdump in
10347 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10348 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10349 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10350 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10353 # Figure out what assembler alignment features are present.
10354 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10355 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10356 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 gcc_cv_as_balign_and_p2align=no
10360 if test $in_tree_gas = yes; then
10361 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10362 then gcc_cv_as_balign_and_p2align=yes
10364 elif test x$gcc_cv_as != x; then
10366 .p2align 2' > conftest.s
10367 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }
10374 gcc_cv_as_balign_and_p2align=yes
10376 echo "configure: failed program was" >&5
10379 rm -f conftest.o conftest.s
10382 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10383 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10384 if test $gcc_cv_as_balign_and_p2align = yes; then
10386 cat >>confdefs.h <<\_ACEOF
10387 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10392 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10393 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10394 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 gcc_cv_as_max_skip_p2align=no
10398 if test $in_tree_gas = yes; then
10399 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10400 then gcc_cv_as_max_skip_p2align=yes
10402 elif test x$gcc_cv_as != x; then
10403 echo '.p2align 4,,7' > conftest.s
10404 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }
10411 gcc_cv_as_max_skip_p2align=yes
10413 echo "configure: failed program was" >&5
10416 rm -f conftest.o conftest.s
10419 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10420 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10421 if test $gcc_cv_as_max_skip_p2align = yes; then
10423 cat >>confdefs.h <<\_ACEOF
10424 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10429 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10430 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10431 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 gcc_cv_as_subsection_m1=no
10435 if test $in_tree_gas = yes; then
10436 if test $in_tree_gas_is_elf = yes \
10437 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10438 then gcc_cv_as_subsection_m1=yes
10440 elif test x$gcc_cv_as != x; then
10441 echo 'conftest_label1: .word 0
10443 conftest_label2: .word 0
10444 .previous' > conftest.s
10445 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }
10452 if test x$gcc_cv_nm != x; then
10453 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10454 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10455 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10457 else gcc_cv_as_subsection_m1=yes
10459 rm -f conftest.nm1 conftest.nm2
10462 echo "configure: failed program was" >&5
10465 rm -f conftest.o conftest.s
10468 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10469 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10470 if test $gcc_cv_as_subsection_m1 = yes; then
10472 cat >>confdefs.h <<\_ACEOF
10473 #define HAVE_GAS_SUBSECTION_ORDERING 1
10478 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10479 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10480 if test "${gcc_cv_as_weak+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 if test $in_tree_gas = yes; then
10485 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10486 then gcc_cv_as_weak=yes
10488 elif test x$gcc_cv_as != x; then
10489 echo ' .weak foobar' > conftest.s
10490 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }
10499 echo "configure: failed program was" >&5
10502 rm -f conftest.o conftest.s
10505 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10506 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10507 if test $gcc_cv_as_weak = yes; then
10509 cat >>confdefs.h <<\_ACEOF
10510 #define HAVE_GAS_WEAK 1
10515 # .hidden needs to be supported in both the assembler and the linker,
10516 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10517 # This is irritatingly difficult to feature test for; we have to check the
10518 # date string after the version number. If we've got an in-tree
10519 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10521 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10522 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10523 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10524 if test "${gcc_cv_as_hidden+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 gcc_cv_as_hidden=no
10528 if test $in_tree_gas = yes; then
10529 if test $in_tree_gas_is_elf = yes \
10530 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10531 then gcc_cv_as_hidden=yes
10533 elif test x$gcc_cv_as != x; then
10534 echo ' .hidden foobar
10535 foobar:' > conftest.s
10536 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }
10543 gcc_cv_as_hidden=yes
10545 echo "configure: failed program was" >&5
10548 rm -f conftest.o conftest.s
10551 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10552 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10555 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10556 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10557 if test "${gcc_cv_ld_hidden+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 if test $in_tree_ld = yes ; then
10561 gcc_cv_ld_hidden=no
10562 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 \
10563 && test $in_tree_ld_is_elf = yes; then
10564 gcc_cv_ld_hidden=yes
10567 gcc_cv_ld_hidden=yes
10568 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10569 if echo "$ld_ver" | grep GNU > /dev/null; then
10570 ld_vers=`echo $ld_ver | sed -n \
10571 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10572 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10573 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10574 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10575 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10576 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10577 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'`
10578 if test 0"$ld_date" -lt 20020404; then
10579 if test -n "$ld_date"; then
10580 # If there was date string, but was earlier than 2002-04-04, fail
10581 gcc_cv_ld_hidden=no
10582 elif test -z "$ld_vers"; then
10583 # If there was no date string nor ld version number, something is wrong
10584 gcc_cv_ld_hidden=no
10586 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10587 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10588 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10589 test -z "$ld_vers_patch" && ld_vers_patch=0
10590 if test "$ld_vers_major" -lt 2; then
10591 gcc_cv_ld_hidden=no
10592 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10593 gcc_cv_ld_hidden="no"
10594 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10595 gcc_cv_ld_hidden=no
10600 case "${target}" in
10601 hppa64*-*-hpux* | ia64*-*-hpux*)
10602 gcc_cv_ld_hidden=yes
10605 gcc_cv_ld_hidden=no
10611 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10612 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10613 libgcc_visibility=no
10615 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10616 libgcc_visibility=yes
10618 cat >>confdefs.h <<\_ACEOF
10619 #define HAVE_GAS_HIDDEN 1
10624 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10625 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10626 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10627 if test "${gcc_cv_as_leb128+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 gcc_cv_as_leb128=no
10631 if test $in_tree_gas = yes; then
10632 if test $in_tree_gas_is_elf = yes \
10633 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10634 then gcc_cv_as_leb128=yes
10636 elif test x$gcc_cv_as != x; then
10643 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }
10650 # GAS versions before 2.11 do not support uleb128,
10651 # despite appearing to.
10652 # ??? There exists an elf-specific test that will crash
10653 # the assembler. Perhaps it's better to figure out whether
10654 # arbitrary sections are supported and try the test.
10655 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10656 if echo "$as_ver" | grep GNU > /dev/null; then
10657 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10658 as_major=`echo $as_ver | sed 's/\..*//'`
10659 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10660 if test $as_major -eq 2 && test $as_minor -lt 11
10662 else gcc_cv_as_leb128=yes
10666 echo "configure: failed program was" >&5
10669 rm -f conftest.o conftest.s
10672 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10673 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10674 if test $gcc_cv_as_leb128 = yes; then
10676 cat >>confdefs.h <<\_ACEOF
10677 #define HAVE_AS_LEB128 1
10682 # GAS versions up to and including 2.11.0 may mis-optimize
10684 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10685 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10686 if test "${gcc_cv_as_eh_frame+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 gcc_cv_as_eh_frame=no
10690 if test $in_tree_gas = yes; then
10691 if test $in_tree_gas_is_elf = yes \
10692 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10693 then gcc_cv_as_eh_frame=yes
10695 elif test x$gcc_cv_as != x; then
10702 .section .eh_frame,"aw",@progbits
10704 .4byte .LECIE1-.LSCIE1
10718 .4byte .LEFDE1-.LASFDE1
10720 .4byte .LASFDE1-__FRAME_BEGIN__
10727 .LEFDE1:' > conftest.s
10728 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; }
10735 cat > conftest.lit <<EOF
10736 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10737 0010 01000000 12000000 18000000 00000000 ................
10738 0020 08000000 04080000 0044 .........D
10740 cat > conftest.big <<EOF
10741 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10742 0010 00000001 00000012 00000018 00000000 ................
10743 0020 00000008 04000000 0844 .........D
10745 # If the assembler didn't choke, and we can objdump,
10746 # and we got the correct data, then succeed.
10747 if test x$gcc_cv_objdump != x \
10748 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10749 | tail -3 > conftest.got \
10750 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10751 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10753 gcc_cv_as_eh_frame=yes
10754 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 gcc_cv_as_eh_frame=buggy
10762 # Uh oh, what do we do now?
10763 gcc_cv_as_eh_frame=no
10766 echo "configure: failed program was" >&5
10769 rm -f conftest.o conftest.s
10772 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10773 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10776 if test $gcc_cv_as_eh_frame = buggy; then
10778 cat >>confdefs.h <<\_ACEOF
10779 #define USE_AS_TRADITIONAL_FORMAT 1
10784 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10785 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10786 if test "${gcc_cv_as_shf_merge+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 gcc_cv_as_shf_merge=no
10790 if test $in_tree_gas = yes; then
10791 if test $in_tree_gas_is_elf = yes \
10792 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10793 then gcc_cv_as_shf_merge=yes
10795 elif test x$gcc_cv_as != x; then
10796 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10797 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }
10804 gcc_cv_as_shf_merge=yes
10806 echo "configure: failed program was" >&5
10809 rm -f conftest.o conftest.s
10812 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10813 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10816 cat >>confdefs.h <<_ACEOF
10817 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10821 # Thread-local storage - the check is heavily parametrized.
10829 .section ".tdata","awT",@progbits
10832 ldq $27,__tls_get_addr($29) !literal!1
10833 lda $16,foo($29) !tlsgd!1
10834 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10835 ldq $27,__tls_get_addr($29) !literal!2
10836 lda $16,foo($29) !tlsldm!2
10837 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10838 ldq $1,foo($29) !gotdtprel
10839 ldah $2,foo($29) !dtprelhi
10840 lda $3,foo($2) !dtprello
10841 lda $4,foo($29) !dtprel
10842 ldq $1,foo($29) !gottprel
10843 ldah $2,foo($29) !tprelhi
10844 lda $3,foo($2) !tprello
10845 lda $4,foo($29) !tprel'
10848 tls_as_opt=--fatal-warnings
10852 .section ".tdata","awT",@progbits
10856 leal foo@TLSGD(,%ebx,1), %eax
10857 leal foo@TLSLDM(%ebx), %eax
10858 leal foo@DTPOFF(%eax), %edx
10859 movl foo@GOTTPOFF(%ebx), %eax
10860 subl foo@GOTTPOFF(%ebx), %eax
10861 addl foo@GOTNTPOFF(%ebx), %eax
10862 movl foo@INDNTPOFF, %eax
10863 movl $foo@TPOFF, %eax
10864 subl $foo@TPOFF, %eax
10865 leal foo@NTPOFF(%ecx), %eax'
10868 tls_as_opt=--fatal-warnings
10872 .section ".tdata","awT",@progbits
10876 leaq foo@TLSGD(%rip), %rdi
10877 leaq foo@TLSLD(%rip), %rdi
10878 leaq foo@DTPOFF(%rax), %rdx
10879 movq foo@GOTTPOFF(%rip), %rax
10880 movq $foo@TPOFF, %rax'
10883 tls_as_opt=--fatal-warnings
10887 .section ".tdata","awT",@progbits
10890 addl r16 = @ltoff(@dtpmod(foo#)), gp
10891 addl r17 = @ltoff(@dtprel(foo#)), gp
10892 addl r18 = @ltoff(@tprel(foo#)), gp
10893 addl r19 = @dtprel(foo#), gp
10894 adds r21 = @dtprel(foo#), r13
10895 movl r23 = @dtprel(foo#)
10896 addl r20 = @tprel(foo#), gp
10897 adds r22 = @tprel(foo#), r13
10898 movl r24 = @tprel(foo#)'
10901 tls_as_opt=--fatal-warnings
10905 .section ".tdata","awT",@progbits
10913 addi 3,31,ld0@got@tlsgd
10915 addi 3,31,x1@got@tlsld
10918 addis 9,3,x2@dtprel@ha
10919 addi 9,9,x2@dtprel@l
10920 lwz 9,x3@got@tprel(31)
10923 addis 9,2,x2@tprel@ha
10924 addi 9,9,x2@tprel@l'
10927 tls_as_opt="-a32 --fatal-warnings"
10931 .section ".tdata","awT",@progbits
10939 addi 3,2,ld0@got@tlsgd
10945 addi 3,2,x1@got@tlsld
10951 addis 9,3,x2@dtprel@ha
10952 addi 9,9,x2@dtprel@l
10955 ld 9,x3@got@dtprel(2)
10961 tls_as_opt="-a64 --fatal-warnings"
10965 .section ".tdata","awT",@progbits
10972 .long foo@GOTNTPOFF
10973 .long foo@INDNTPOFF
10974 l %r1,foo@GOTNTPOFF(%r12)
10975 l %r1,0(%r1):tls_load:foo
10976 bas %r14,0(%r1,%r13):tls_gdcall:foo
10977 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10980 tls_as_opt="-m31 --fatal-warnings"
10984 .section ".tdata","awT",@progbits
10991 .quad foo@GOTNTPOFF
10992 lg %r1,foo@GOTNTPOFF(%r12)
10993 larl %r1,foo@INDNTPOFF
10994 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10995 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10998 tls_as_opt="-m64 -Aesame --fatal-warnings"
11000 sh-*-* | sh[34]-*-*)
11002 .section ".tdata","awT",@progbits
11012 tls_as_opt=--fatal-warnings
11016 sparc*-sun-solaris2.*)
11023 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11025 .section ".tdata",#alloc,#write,#tls
11028 sethi %tgd_hi22(foo), %o0
11029 add %o0, %tgd_lo10(foo), %o1
11030 add %l7, %o1, %o0, %tgd_add(foo)
11031 call __tls_get_addr, %tgd_call(foo)
11032 sethi %tldm_hi22(foo), %l1
11033 add %l1, %tldm_lo10(foo), %l2
11034 add %l7, %l2, %o0, %tldm_add(foo)
11035 call __tls_get_addr, %tldm_call(foo)
11036 sethi %tldo_hix22(foo), %l3
11037 xor %l3, %tldo_lox10(foo), %l4
11038 add %o0, %l4, %l5, %tldo_add(foo)
11039 sethi %tie_hi22(foo), %o3
11040 add %o3, %tie_lo10(foo), %o3
11041 ld [%l7 + %o3], %o2, %tie_ld(foo)
11042 add %g7, %o2, %o4, %tie_add(foo)
11043 sethi %tle_hix22(foo), %l1
11044 xor %l1, %tle_lox10(foo), %o5
11045 ld [%g7 + %o5], %o1'
11050 .section ".tdata","awT",@progbits
11053 sethi %tgd_hi22(foo), %o0
11054 add %o0, %tgd_lo10(foo), %o1
11055 add %l7, %o1, %o0, %tgd_add(foo)
11056 call __tls_get_addr, %tgd_call(foo)
11057 sethi %tldm_hi22(foo), %l1
11058 add %l1, %tldm_lo10(foo), %l2
11059 add %l7, %l2, %o0, %tldm_add(foo)
11060 call __tls_get_addr, %tldm_call(foo)
11061 sethi %tldo_hix22(foo), %l3
11062 xor %l3, %tldo_lox10(foo), %l4
11063 add %o0, %l4, %l5, %tldo_add(foo)
11064 sethi %tie_hi22(foo), %o3
11065 add %o3, %tie_lo10(foo), %o3
11066 ld [%l7 + %o3], %o2, %tie_ld(foo)
11067 add %g7, %o2, %o4, %tie_add(foo)
11068 sethi %tle_hix22(foo), %l1
11069 xor %l1, %tle_lox10(foo), %o5
11070 ld [%g7 + %o5], %o1'
11073 tls_as_opt="-32 --fatal-warnings"
11077 if test -z "$tls_first_major"; then
11078 : # If we don't have a check, assume no support.
11080 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11081 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11082 if test "${gcc_cv_as_tls+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 if test $in_tree_gas = yes; then
11087 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11088 then gcc_cv_as_tls=yes
11090 elif test x$gcc_cv_as != x; then
11091 echo "$conftest_s" > conftest.s
11092 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; }
11101 echo "configure: failed program was" >&5
11104 rm -f conftest.o conftest.s
11107 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11108 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11109 if test $gcc_cv_as_tls = yes; then
11111 cat >>confdefs.h <<\_ACEOF
11112 #define HAVE_AS_TLS 1
11118 # Target-specific assembler checks.
11120 if test x"$demangler_in_ld" = xyes; then
11121 echo "$as_me:$LINENO: checking linker --demangle support" >&5
11122 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
11123 gcc_cv_ld_demangle=no
11124 if test $in_tree_ld = yes; then
11125 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 \
11126 gcc_cv_ld_demangle=yes
11128 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
11129 # Check if the GNU linker supports --demangle option
11130 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
11131 gcc_cv_ld_demangle=yes
11134 if test x"$gcc_cv_ld_demangle" = xyes; then
11136 cat >>confdefs.h <<\_ACEOF
11137 #define HAVE_LD_DEMANGLE 1
11141 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
11142 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
11146 # All TARGET_ABI_OSF targets.
11147 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11148 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11149 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11150 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 gcc_cv_as_alpha_explicit_relocs=no
11154 if test $in_tree_gas = yes; then
11155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11156 then gcc_cv_as_alpha_explicit_relocs=yes
11158 elif test x$gcc_cv_as != x; then
11159 echo ' .set nomacro
11161 extbl $3, $2, $3 !lituse_bytoff!1
11162 ldq $2, a($29) !literal!1
11163 ldq $4, b($29) !literal!2
11164 ldq_u $3, 0($2) !lituse_base!1
11165 ldq $27, f($29) !literal!5
11166 jsr $26, ($27), f !lituse_jsr!5
11167 ldah $29, 0($26) !gpdisp!3
11168 lda $0, c($29) !gprel
11169 ldah $1, d($29) !gprelhigh
11170 lda $1, d($1) !gprellow
11171 lda $29, 0($29) !gpdisp!3' > conftest.s
11172 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }
11179 gcc_cv_as_alpha_explicit_relocs=yes
11181 echo "configure: failed program was" >&5
11184 rm -f conftest.o conftest.s
11187 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11188 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11189 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11191 cat >>confdefs.h <<\_ACEOF
11192 #define HAVE_AS_EXPLICIT_RELOCS 1
11199 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11200 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11201 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 gcc_cv_as_cris_no_mul_bug=no
11205 if test $in_tree_gas = yes; then
11206 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11207 then gcc_cv_as_cris_no_mul_bug=yes
11209 elif test x$gcc_cv_as != x; then
11210 echo '.text' > conftest.s
11211 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11213 (eval $ac_try) 2>&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); }; }
11218 gcc_cv_as_cris_no_mul_bug=yes
11220 echo "configure: failed program was" >&5
11223 rm -f conftest.o conftest.s
11226 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11227 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11228 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11230 cat >>confdefs.h <<\_ACEOF
11231 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11238 echo "$as_me:$LINENO: checking assembler for .register" >&5
11239 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11240 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 gcc_cv_as_sparc_register_op=no
11244 if test x$gcc_cv_as != x; then
11245 echo '.register %g2, #scratch' > conftest.s
11246 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }
11253 gcc_cv_as_sparc_register_op=yes
11255 echo "configure: failed program was" >&5
11258 rm -f conftest.o conftest.s
11261 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11262 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11263 if test $gcc_cv_as_sparc_register_op = yes; then
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11271 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11272 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11273 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 gcc_cv_as_sparc_relax=no
11277 if test x$gcc_cv_as != x; then
11278 echo '.text' > conftest.s
11279 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }
11286 gcc_cv_as_sparc_relax=yes
11288 echo "configure: failed program was" >&5
11291 rm -f conftest.o conftest.s
11294 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11295 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11296 if test $gcc_cv_as_sparc_relax = yes; then
11298 cat >>confdefs.h <<\_ACEOF
11299 #define HAVE_AS_RELAX_OPTION 1
11304 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11305 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11306 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 gcc_cv_as_sparc_ua_pcrel=no
11310 if test x$gcc_cv_as != x; then
11317 .uaword %r_disp32(foo)' > conftest.s
11318 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }
11325 if test x$gcc_cv_ld != x \
11326 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11327 gcc_cv_as_sparc_ua_pcrel=yes
11331 echo "configure: failed program was" >&5
11334 rm -f conftest.o conftest.s
11337 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11338 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11339 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11341 cat >>confdefs.h <<\_ACEOF
11342 #define HAVE_AS_SPARC_UA_PCREL 1
11346 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11347 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11348 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 gcc_cv_as_sparc_ua_pcrel_hidden=no
11352 if test x$gcc_cv_as != x; then
11356 .uaword %r_disp32(foo)
11357 .byte 0x32, 0x33, 0x34
11361 .skip 4' > conftest.s
11362 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }
11369 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11370 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11371 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11372 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11373 if $gcc_cv_objdump -R conftest 2> /dev/null \
11374 | grep 'DISP32' > /dev/null 2>&1; then
11377 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11382 echo "configure: failed program was" >&5
11385 rm -f conftest.o conftest.s
11388 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11389 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11390 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11392 cat >>confdefs.h <<\_ACEOF
11393 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11398 fi # unaligned pcrel relocs
11400 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11401 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11402 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 gcc_cv_as_sparc_offsetable_lo10=no
11406 if test x$gcc_cv_as != x; then
11408 or %g1, %lo(ab) + 12, %g1
11409 or %g1, %lo(ab + 12), %g1' > conftest.s
11410 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }
11417 if test x$gcc_cv_objdump != x \
11418 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11419 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11420 gcc_cv_as_offsetable_lo10=yes
11423 echo "configure: failed program was" >&5
11426 rm -f conftest.o conftest.s
11429 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11430 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11431 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11433 cat >>confdefs.h <<\_ACEOF
11434 #define HAVE_AS_OFFSETABLE_LO10 1
11440 i[34567]86-*-* | x86_64-*-*)
11442 cygwin* | pe | mingw32*)
11443 # Used for DWARF 2 in PE
11444 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11445 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11446 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 gcc_cv_as_ix86_pe_secrel32=no
11450 if test $in_tree_gas = yes; then
11451 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11452 then gcc_cv_as_ix86_pe_secrel32=yes
11454 elif test x$gcc_cv_as != x; then
11458 .secrel32 foo' > conftest.s
11459 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }
11466 if test x$gcc_cv_ld != x \
11467 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11468 gcc_cv_as_ix86_pe_secrel32=yes
11472 echo "configure: failed program was" >&5
11475 rm -f conftest.o conftest.s
11478 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11479 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11480 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11482 cat >>confdefs.h <<\_ACEOF
11483 #define HAVE_GAS_PE_SECREL32_RELOC 1
11490 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11491 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11492 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 gcc_cv_as_ix86_filds_fists=no
11496 if test $in_tree_gas = yes; then
11497 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11498 then gcc_cv_as_ix86_filds_fists=yes
11500 elif test x$gcc_cv_as != x; then
11501 echo 'filds mem; fists mem' > conftest.s
11502 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }
11509 gcc_cv_as_ix86_filds_fists=yes
11511 echo "configure: failed program was" >&5
11514 rm -f conftest.o conftest.s
11517 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11518 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11519 if test $gcc_cv_as_ix86_filds_fists = yes; then
11521 cat >>confdefs.h <<\_ACEOF
11522 #define HAVE_GAS_FILDS_FISTS 1
11527 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11528 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11529 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 gcc_cv_as_ix86_cmov_sun_syntax=no
11533 if test x$gcc_cv_as != x; then
11534 echo 'cmovl.l %edx, %eax' > conftest.s
11535 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }
11542 gcc_cv_as_ix86_cmov_sun_syntax=yes
11544 echo "configure: failed program was" >&5
11547 rm -f conftest.o conftest.s
11550 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11551 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11552 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11554 cat >>confdefs.h <<\_ACEOF
11555 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11560 # This one is used unconditionally by i386.[ch]; it is to be defined
11561 # to 1 if the feature is present, 0 otherwise.
11562 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11563 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11564 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 gcc_cv_as_ix86_gotoff_in_data=no
11568 if test $in_tree_gas = yes; then
11569 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11570 then gcc_cv_as_ix86_gotoff_in_data=yes
11572 elif test x$gcc_cv_as != x; then
11577 .long .L0@GOTOFF' > conftest.s
11578 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }
11585 gcc_cv_as_ix86_gotoff_in_data=yes
11587 echo "configure: failed program was" >&5
11590 rm -f conftest.o conftest.s
11593 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11594 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11597 cat >>confdefs.h <<_ACEOF
11598 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11604 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11605 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11606 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11610 if test $in_tree_gas = yes; then
11611 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11612 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11614 elif test x$gcc_cv_as != x; then
11616 addl r15 = @ltoffx(x#), gp
11618 ld8.mov r16 = [r15], x#' > conftest.s
11619 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }
11626 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11628 echo "configure: failed program was" >&5
11631 rm -f conftest.o conftest.s
11634 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11635 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11636 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11638 cat >>confdefs.h <<\_ACEOF
11639 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11648 *-*-aix*) conftest_s=' .csect .text[PR]
11650 *-*-darwin*) conftest_s=' .text
11652 *) conftest_s=' .text
11656 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11657 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11658 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 gcc_cv_as_powerpc_mfcrf=no
11662 if test $in_tree_gas = yes; then
11663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11664 then gcc_cv_as_powerpc_mfcrf=yes
11666 elif test x$gcc_cv_as != x; then
11667 echo "$conftest_s" > conftest.s
11668 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }
11675 gcc_cv_as_powerpc_mfcrf=yes
11677 echo "configure: failed program was" >&5
11680 rm -f conftest.o conftest.s
11683 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11684 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11685 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11687 cat >>confdefs.h <<\_ACEOF
11688 #define HAVE_AS_MFCRF 1
11695 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11696 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11697 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 gcc_cv_as_mips_explicit_relocs=no
11701 if test $in_tree_gas = yes; then
11702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11703 then gcc_cv_as_mips_explicit_relocs=yes
11705 elif test x$gcc_cv_as != x; then
11706 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11707 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }
11714 gcc_cv_as_mips_explicit_relocs=yes
11716 echo "configure: failed program was" >&5
11719 rm -f conftest.o conftest.s
11722 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11723 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11724 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11725 if test x$target_cpu_default = x
11726 then target_cpu_default=MASK_EXPLICIT_RELOCS
11727 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11733 # ??? Not all targets support dwarf2 debug_line, even within a version
11734 # of gas. Moreover, we need to emit a valid instruction to trigger any
11735 # info to the output file. So, as supported targets are added to gas 2.11,
11736 # add some instruction here to (also) show we expect this might work.
11737 # ??? Once 2.11 is released, probably need to add first known working
11738 # version to the per-target configury.
11740 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11741 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11742 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11745 ia64*-*-* | s390*-*-*)
11752 if test x"$insn" != x; then
11754 .file 1 \"conftest.s\"
11757 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11758 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11759 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 gcc_cv_as_dwarf2_debug_line=no
11763 if test $in_tree_gas = yes; then
11764 if test $in_tree_gas_is_elf = yes \
11765 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11766 then gcc_cv_as_dwarf2_debug_line=yes
11768 elif test x$gcc_cv_as != x; then
11769 echo "$conftest_s" > conftest.s
11770 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }
11777 # ??? This fails with non-gnu grep. Maybe use objdump?
11778 if grep debug_line conftest.o > /dev/null 2>&1; then
11779 gcc_cv_as_dwarf2_debug_line=yes
11782 echo "configure: failed program was" >&5
11785 rm -f conftest.o conftest.s
11788 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11789 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11792 # The .debug_line file table must be in the exact order that
11793 # we specified the files, since these indices are also used
11794 # by DW_AT_decl_file. Approximate this test by testing if
11795 # the assembler bitches if the same index is assigned twice.
11796 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11797 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11798 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 gcc_cv_as_dwarf2_file_buggy=no
11802 if test x$gcc_cv_as != x; then
11803 echo ' .file 1 "foo.s"
11804 .file 1 "bar.s"' > conftest.s
11805 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }
11812 gcc_cv_as_dwarf2_file_buggy=yes
11814 echo "configure: failed program was" >&5
11817 rm -f conftest.o conftest.s
11820 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11821 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11824 if test $gcc_cv_as_dwarf2_debug_line = yes \
11825 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11827 cat >>confdefs.h <<\_ACEOF
11828 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11833 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11834 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11835 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 gcc_cv_as_gdwarf2_flag=no
11839 if test $in_tree_gas = yes; then
11840 if test $in_tree_gas_is_elf = yes \
11841 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11842 then gcc_cv_as_gdwarf2_flag=yes
11844 elif test x$gcc_cv_as != x; then
11845 echo "$insn" > conftest.s
11846 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }
11853 gcc_cv_as_gdwarf2_flag=yes
11855 echo "configure: failed program was" >&5
11858 rm -f conftest.o conftest.s
11861 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11862 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11863 if test $gcc_cv_as_gdwarf2_flag = yes; then
11865 cat >>confdefs.h <<\_ACEOF
11866 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11871 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11872 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11873 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 gcc_cv_as_gstabs_flag=no
11877 if test $in_tree_gas = yes; then
11878 if test $in_tree_gas_is_elf = yes \
11879 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11880 then gcc_cv_as_gstabs_flag=yes
11882 elif test x$gcc_cv_as != x; then
11883 echo "$insn" > conftest.s
11884 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }
11891 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11892 # and warns about it, but still exits successfully. So check for
11894 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }
11901 else gcc_cv_as_gstabs_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_gstabs_flag" >&5
11911 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11912 if test $gcc_cv_as_gstabs_flag = yes; then
11914 cat >>confdefs.h <<\_ACEOF
11915 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11921 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11922 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11923 gcc_cv_ld_ro_rw_mix=unknown
11924 if test $in_tree_ld = yes ; then
11925 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 \
11926 && test $in_tree_ld_is_elf = yes; then
11927 gcc_cv_ld_ro_rw_mix=read-write
11929 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11930 echo '.section myfoosect, "a"' > conftest1.s
11931 echo '.section myfoosect, "aw"' > conftest2.s
11932 echo '.byte 1' >> conftest2.s
11933 echo '.section myfoosect, "a"' > conftest3.s
11934 echo '.byte 0' >> conftest3.s
11935 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11936 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11937 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11938 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11939 conftest2.o conftest3.o > /dev/null 2>&1; then
11940 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11941 | sed -e '/myfoosect/!d' -e N`
11942 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11943 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11944 gcc_cv_ld_ro_rw_mix=read-only
11946 gcc_cv_ld_ro_rw_mix=read-write
11950 rm -f conftest.* conftest[123].*
11952 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11954 cat >>confdefs.h <<\_ACEOF
11955 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11959 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11960 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11962 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11963 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11964 gcc_cv_ld_eh_frame_hdr=no
11965 if test $in_tree_ld = yes ; then
11966 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 \
11967 && test $in_tree_ld_is_elf = yes; then
11968 gcc_cv_ld_eh_frame_hdr=yes
11970 elif test x$gcc_cv_ld != x; then
11971 # Check if linker supports --eh-frame-hdr option
11972 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11973 gcc_cv_ld_eh_frame_hdr=yes
11976 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11978 cat >>confdefs.h <<\_ACEOF
11979 #define HAVE_LD_EH_FRAME_HDR 1
11983 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11984 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11986 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11987 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11989 if test $in_tree_ld = yes ; then
11990 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 \
11991 && test $in_tree_ld_is_elf = yes; then
11994 elif test x$gcc_cv_ld != x; then
11995 # Check if linker supports -pie option
11996 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
12000 if test x"$gcc_cv_ld_pie" = xyes; then
12002 cat >>confdefs.h <<\_ACEOF
12003 #define HAVE_LD_PIE 1
12007 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12008 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12014 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12015 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12016 if test "${gcc_cv_ld_as_needed+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 gcc_cv_ld_as_needed=no
12020 if test $in_tree_ld = yes ; then
12021 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 \
12022 && test $in_tree_ld_is_elf = yes; then
12023 gcc_cv_ld_as_needed=yes
12025 elif test x$gcc_cv_ld != x; then
12026 # Check if linker supports --as-needed and --no-as-needed options
12027 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12028 gcc_cv_ld_as_needed=yes
12033 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12034 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12035 if test x"$gcc_cv_ld_as_needed" = xyes; then
12037 cat >>confdefs.h <<\_ACEOF
12038 #define HAVE_LD_AS_NEEDED 1
12043 if test x$with_sysroot = x && test x$host = x$target \
12044 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12046 cat >>confdefs.h <<_ACEOF
12047 #define PREFIX_INCLUDE_DIR "$prefix/include"
12052 # Find out what GC implementation we want, or may, use.
12054 # Check whether --with-gc or --without-gc was given.
12055 if test "${with_gc+set}" = set; then
12062 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12063 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12064 { (exit 1); exit 1; }; }
12071 echo "Using $GGC for garbage collection."
12073 # Use the system's zlib library.
12075 zlibinc="-I\$(srcdir)/../zlib"
12077 # Check whether --with-system-zlib or --without-system-zlib was given.
12078 if test "${with_system_zlib+set}" = set; then
12079 withval="$with_system_zlib"
12088 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12089 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12090 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12091 if test "${enable_maintainer_mode+set}" = set; then
12092 enableval="$enable_maintainer_mode"
12093 maintainer_mode=$enableval
12098 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12099 echo "${ECHO_T}$maintainer_mode" >&6
12101 if test "$maintainer_mode" = "yes"; then
12107 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
12108 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
12110 # Check whether --with-libbanshee or --without-libbanshee was given.
12111 if test "${with_libbanshee+set}" = set; then
12112 withval="$with_libbanshee"
12113 libbanshee="$with_libbanshee"
12118 if test x"$libbanshee" = xyes; then
12119 BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
12120 BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
12121 ANDER="tree-alias-ander.o"
12123 cat >>confdefs.h <<\_ACEOF
12124 #define HAVE_BANSHEE 1
12132 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
12133 echo "${ECHO_T}$with_libbanshee" >&6
12143 # Make empty files to contain the specs and options for each language.
12144 # Then add #include lines to for a compiler that has specs and/or options.
12149 for subdir in . $subdirs
12151 if test -f $srcdir/$subdir/lang.opt; then
12152 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12154 if test -f $srcdir/$subdir/lang-specs.h; then
12155 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12157 if test -f $srcdir/$subdir/$subdir-tree.def; then
12158 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12162 # These (without "all_") are set in each config-lang.in.
12163 # `language' must be a single word so is spelled singularly.
12165 all_boot_languages=
12168 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
12169 # List of language makefile fragments.
12170 all_lang_makefrags=
12171 # List of language subdirectory makefiles. Deprecated.
12172 all_lang_makefiles=
12173 # Files for gengtype
12174 all_gtfiles="$target_gtfiles"
12175 # Files for gengtype with language
12176 all_gtfiles_files_langs=
12177 all_gtfiles_files_files=
12179 # Add the language fragments.
12180 # Languages are added via two mechanisms. Some information must be
12181 # recorded in makefile variables, these are defined in config-lang.in.
12182 # We accumulate them and plug them into the main Makefile.
12183 # The other mechanism is a set of hooks for each of the main targets
12184 # like `clean', `install', etc.
12186 language_hooks="Make-hooks"
12196 . ${srcdir}/$s/config-lang.in
12197 if test "x$language" = x
12199 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12202 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12203 if test -f ${srcdir}/$s/Makefile.in
12204 then all_lang_makefiles="$s/Makefile"
12206 all_languages="$all_languages $language"
12207 if test "x$boot_language" = xyes
12209 all_boot_languages="$all_boot_languages $language"
12211 all_compilers="$all_compilers $compilers"
12212 all_stagestuff="$all_stagestuff $stagestuff"
12213 all_outputs="$all_outputs $outputs"
12214 all_gtfiles="$all_gtfiles $gtfiles"
12217 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12218 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12222 # Pick up gtfiles for c
12225 . ${srcdir}/c-config-lang.in
12226 all_gtfiles="$all_gtfiles $gtfiles"
12229 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12230 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12234 for language in $all_languages
12236 check_languages="$check_languages check-$language"
12239 # We link each language in with a set of hooks, reached indirectly via
12244 target_list="all.build all.cross start.encap rest.encap tags \
12245 install-normal install-common install-man \
12246 uninstall info man srcextra srcman srcinfo \
12247 mostlyclean clean distclean maintainer-clean \
12248 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12249 for t in $target_list
12252 for lang in $all_languages
12256 echo "lang.$t: $x" >> Make-hooks
12265 echo "dir ." > .gdbinit
12266 echo "dir ${srcdir}" >> .gdbinit
12267 if test x$gdb_needs_out_file_path = xyes
12269 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12271 if test "x$subdirs" != x; then
12274 echo "dir ${srcdir}/$s" >> .gdbinit
12277 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12279 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12280 # absolute path for gcc_tooldir based on inserting the number of up-directory
12281 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12282 # $(libsubdir)/@(unlibsubdir) based path.
12283 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12284 # make and thus we'd get different behavior depending on where we built the
12286 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12287 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12289 # An explanation of the sed strings:
12290 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12291 # -e 's|/$||' match a trailing forward slash and eliminates it
12292 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12293 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12295 # (*) Note this pattern overwrites the first character of the string
12296 # with a forward slash if one is not already present. This is not a
12297 # problem because the exact names of the sub-directories concerned is
12298 # unimportant, just the number of them matters.
12300 # The practical upshot of these patterns is like this:
12302 # prefix exec_prefix result
12303 # ------ ----------- ------
12304 # /foo /foo/bar ../
12305 # /foo/ /foo/bar ../
12306 # /foo /foo/bar/ ../
12307 # /foo/ /foo/bar/ ../
12308 # /foo /foo/bar/ugg ../../
12311 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12316 # Find a directory in which to install a shared libgcc.
12318 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12319 if test "${enable_version_specific_runtime_libs+set}" = set; then
12320 enableval="$enable_version_specific_runtime_libs"
12325 # Check whether --with-slibdir or --without-slibdir was given.
12326 if test "${with_slibdir+set}" = set; then
12327 withval="$with_slibdir"
12328 slibdir="$with_slibdir"
12330 if test "${enable_version_specific_runtime_libs+set}" = set; then
12331 slibdir='$(libsubdir)'
12332 elif test "$host" != "$target"; then
12333 slibdir='$(build_tooldir)/lib'
12335 slibdir='$(libdir)'
12340 objdir=`${PWDCMD-pwd}`
12343 # Substitute configuration variables
12411 # If it doesn't already exist, create document directory
12412 echo "checking for the document directory." 1>&2
12413 if test -d doc ; then
12420 if test x${build} = x${host} ; then
12421 if test x${host} = x${target} ; then
12422 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12424 echo "Links are now set up to build a cross-compiler" 1>&2
12425 echo " from ${host} to ${target}." 1>&2
12428 if test x${host} = x${target} ; then
12429 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12430 echo " for ${target}." 1>&2
12432 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12433 echo " from ${host} to ${target}." 1>&2
12440 # Configure the subdirectories
12441 # AC_CONFIG_SUBDIRS($subdirs)
12443 # Create the Makefile
12444 # and configure language subdirectories
12445 ac_config_files="$ac_config_files $all_outputs"
12448 ac_config_commands="$ac_config_commands default"
12450 cat >confcache <<\_ACEOF
12451 # This file is a shell script that caches the results of configure
12452 # tests run on this system so they can be shared between configure
12453 # scripts and configure runs, see configure's option --config-cache.
12454 # It is not useful on other systems. If it contains results you don't
12455 # want to keep, you may remove or edit it.
12457 # config.status only pays attention to the cache file if you give it
12458 # the --recheck option to rerun configure.
12460 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12461 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12462 # following values.
12466 # The following way of writing the cache mishandles newlines in values,
12467 # but we know of no workaround that is simple, portable, and efficient.
12468 # So, don't put newlines in cache variables' values.
12469 # Ultrix sh set writes to stderr and can't be redirected directly,
12470 # and sets the high bit in the cache file unless we assign to the vars.
12473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12475 # `set' does not quote correctly, so add quotes (double-quote
12476 # substitution turns \\\\ into \\, and sed turns \\ into \).
12479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12482 # `set' quotes correctly as required by POSIX, so do not add quotes.
12484 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12493 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12495 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12496 if test -w $cache_file; then
12497 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12498 cat confcache >$cache_file
12500 echo "not updating unwritable cache $cache_file"
12505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12506 # Let make expand exec_prefix.
12507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12509 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12510 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12511 # trailing colons and then remove the whole line if VPATH becomes empty
12512 # (actually we leave an empty line to preserve line numbers).
12513 if test "x$srcdir" = x.; then
12514 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12515 s/:*\$(srcdir):*/:/;
12516 s/:*\${srcdir}:*/:/;
12518 s/^\([^=]*=[ ]*\):*/\1/;
12524 DEFS=-DHAVE_CONFIG_H
12528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12529 # 1. Remove the extension, and $U if already installed.
12530 ac_i=`echo "$ac_i" |
12531 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12533 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12534 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12536 LIBOBJS=$ac_libobjs
12538 LTLIBOBJS=$ac_ltlibobjs
12542 : ${CONFIG_STATUS=./config.status}
12543 ac_clean_files_save=$ac_clean_files
12544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12545 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12546 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12547 cat >$CONFIG_STATUS <<_ACEOF
12549 # Generated by $as_me.
12550 # Run this file to recreate the current configuration.
12551 # Compiler output produced by configure, useful for debugging
12552 # configure, is in config.log if it exists.
12555 ac_cs_recheck=false
12557 SHELL=\${CONFIG_SHELL-$SHELL}
12560 cat >>$CONFIG_STATUS <<\_ACEOF
12561 ## --------------------- ##
12562 ## M4sh Initialization. ##
12563 ## --------------------- ##
12565 # Be Bourne compatible
12566 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12569 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12570 # is contrary to our usage. Disable this feature.
12571 alias -g '${1+"$@"}'='"$@"'
12572 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12575 DUALCASE=1; export DUALCASE # for MKS sh
12577 # Support unset when possible.
12578 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12585 # Work around bugs in pre-3.0 UWIN ksh.
12586 $as_unset ENV MAIL MAILPATH
12593 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12594 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12595 LC_TELEPHONE LC_TIME
12597 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12598 eval $as_var=C; export $as_var
12604 # Required to use basename.
12605 if expr a : '\(a\)' >/dev/null 2>&1; then
12611 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12612 as_basename=basename
12618 # Name of the executable.
12619 as_me=`$as_basename "$0" ||
12620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12621 X"$0" : 'X\(//\)$' \| \
12622 X"$0" : 'X\(/\)$' \| \
12623 . : '\(.\)' 2>/dev/null ||
12625 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12626 /^X\/\(\/\/\)$/{ s//\1/; q; }
12627 /^X\/\(\/\).*/{ s//\1/; q; }
12631 # PATH needs CR, and LINENO needs CR and PATH.
12632 # Avoid depending upon Character Ranges.
12633 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12634 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12635 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12636 as_cr_digits='0123456789'
12637 as_cr_alnum=$as_cr_Letters$as_cr_digits
12639 # The user is always right.
12640 if test "${PATH_SEPARATOR+set}" != set; then
12641 echo "#! /bin/sh" >conf$$.sh
12642 echo "exit 0" >>conf$$.sh
12644 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12653 as_lineno_1=$LINENO
12654 as_lineno_2=$LINENO
12655 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12656 test "x$as_lineno_1" != "x$as_lineno_2" &&
12657 test "x$as_lineno_3" = "x$as_lineno_2" || {
12658 # Find who we are. Look in the path if we contain no path at all
12661 *[\\/]* ) as_myself=$0 ;;
12662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12666 test -z "$as_dir" && as_dir=.
12667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12672 # We did not find ourselves, most probably we were run as `sh COMMAND'
12673 # in which case we are not to be found in the path.
12674 if test "x$as_myself" = x; then
12677 if test ! -f "$as_myself"; then
12678 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12679 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12680 { (exit 1); exit 1; }; }
12682 case $CONFIG_SHELL in
12684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12685 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12688 test -z "$as_dir" && as_dir=.
12689 for as_base in sh bash ksh sh5; do
12692 if ("$as_dir/$as_base" -c '
12693 as_lineno_1=$LINENO
12694 as_lineno_2=$LINENO
12695 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12696 test "x$as_lineno_1" != "x$as_lineno_2" &&
12697 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12698 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12699 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12700 CONFIG_SHELL=$as_dir/$as_base
12701 export CONFIG_SHELL
12702 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12711 # uniformly replaced by the line number. The first 'sed' inserts a
12712 # line-number line before each line; the second 'sed' does the real
12713 # work. The second script uses 'N' to pair each line-number line
12714 # with the numbered line, and appends trailing '-' during
12715 # substitution so that $LINENO is not a special case at line end.
12716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12717 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12718 sed '=' <$as_myself |
12723 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12726 s,^['$as_cr_digits']*\n,,
12727 ' >$as_me.lineno &&
12728 chmod +x $as_me.lineno ||
12729 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12730 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12731 { (exit 1); exit 1; }; }
12733 # Don't try to exec as it changes $[0], causing all sort of problems
12734 # (the dirname of $[0] is not the place where we might find the
12735 # original and so on. Autoconf is especially sensible to this).
12737 # Exit status is that of the last command.
12742 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12743 *c*,-n*) ECHO_N= ECHO_C='
12745 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12746 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12749 if expr a : '\(a\)' >/dev/null 2>&1; then
12755 rm -f conf$$ conf$$.exe conf$$.file
12757 if ln -s conf$$.file conf$$ 2>/dev/null; then
12758 # We could just check for DJGPP; but this test a) works b) is more generic
12759 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12760 if test -f conf$$.exe; then
12761 # Don't use ln at all; we don't have any links
12766 elif ln conf$$.file conf$$ 2>/dev/null; then
12771 rm -f conf$$ conf$$.exe conf$$.file
12773 if mkdir -p . 2>/dev/null; then
12776 test -d ./-p && rmdir ./-p
12780 as_executable_p="test -f"
12782 # Sed expression to map a string onto a valid CPP name.
12783 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12785 # Sed expression to map a string onto a valid variable name.
12786 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12790 # We need space, tab and new line, in precisely that order.
12800 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12801 # report actual input values of CONFIG_FILES etc. instead of their
12802 # values after options handling. Logging --version etc. is OK.
12806 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12807 ## Running $as_me. ##
12812 This file was extended by $as_me, which was
12813 generated by GNU Autoconf 2.59. Invocation command line was
12815 CONFIG_FILES = $CONFIG_FILES
12816 CONFIG_HEADERS = $CONFIG_HEADERS
12817 CONFIG_LINKS = $CONFIG_LINKS
12818 CONFIG_COMMANDS = $CONFIG_COMMANDS
12822 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12826 # Files that config.status was made for.
12827 if test -n "$ac_config_files"; then
12828 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12831 if test -n "$ac_config_headers"; then
12832 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12835 if test -n "$ac_config_links"; then
12836 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12839 if test -n "$ac_config_commands"; then
12840 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12843 cat >>$CONFIG_STATUS <<\_ACEOF
12846 \`$as_me' instantiates files from templates according to the
12847 current configuration.
12849 Usage: $0 [OPTIONS] [FILE]...
12851 -h, --help print this help, then exit
12852 -V, --version print version number, then exit
12853 -q, --quiet do not print progress messages
12854 -d, --debug don't remove temporary files
12855 --recheck update $as_me by reconfiguring in the same conditions
12856 --file=FILE[:TEMPLATE]
12857 instantiate the configuration file FILE
12858 --header=FILE[:TEMPLATE]
12859 instantiate the configuration header FILE
12861 Configuration files:
12864 Configuration headers:
12867 Configuration commands:
12870 Report bugs to <bug-autoconf@gnu.org>."
12873 cat >>$CONFIG_STATUS <<_ACEOF
12876 configured by $0, generated by GNU Autoconf 2.59,
12877 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12879 Copyright (C) 2003 Free Software Foundation, Inc.
12880 This config.status script is free software; the Free Software Foundation
12881 gives unlimited permission to copy, distribute and modify it."
12885 cat >>$CONFIG_STATUS <<\_ACEOF
12886 # If no file are specified by the user, then we need to provide default
12887 # value. By we need to know if files were specified by the user.
12893 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12894 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12902 *) # This is not an option, so the user has probably given explicit
12905 ac_need_defaults=false;;
12909 # Handling of the options.
12911 cat >>$CONFIG_STATUS <<\_ACEOF
12912 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12914 --version | --vers* | -V )
12915 echo "$ac_cs_version"; exit 0 ;;
12917 # Conflict between --help and --header
12918 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12919 Try \`$0 --help' for more information." >&5
12920 echo "$as_me: error: ambiguous option: $1
12921 Try \`$0 --help' for more information." >&2;}
12922 { (exit 1); exit 1; }; };;
12923 --help | --hel | -h )
12924 echo "$ac_cs_usage"; exit 0 ;;
12925 --debug | --d* | -d )
12927 --file | --fil | --fi | --f )
12929 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12930 ac_need_defaults=false;;
12931 --header | --heade | --head | --hea )
12933 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12934 ac_need_defaults=false;;
12935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12936 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12939 # This is an error.
12940 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12941 Try \`$0 --help' for more information." >&5
12942 echo "$as_me: error: unrecognized option: $1
12943 Try \`$0 --help' for more information." >&2;}
12944 { (exit 1); exit 1; }; } ;;
12946 *) ac_config_targets="$ac_config_targets $1" ;;
12952 ac_configure_extra_args=
12954 if $ac_cs_silent; then
12956 ac_configure_extra_args="$ac_configure_extra_args --silent"
12960 cat >>$CONFIG_STATUS <<_ACEOF
12961 if \$ac_cs_recheck; then
12962 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12963 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12968 cat >>$CONFIG_STATUS <<_ACEOF
12970 # INIT-COMMANDS section.
12974 symbolic_link='$symbolic_link'
12981 cat >>$CONFIG_STATUS <<\_ACEOF
12982 for ac_config_target in $ac_config_targets
12984 case "$ac_config_target" in
12985 # Handling of arguments.
12986 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12987 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12988 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12989 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12990 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12991 { (exit 1); exit 1; }; };;
12995 # If the user did not use the arguments to specify the items to instantiate,
12996 # then the envvar interface is used. Set only those that are not.
12997 # We use the long form for the default assignment because of an extremely
12998 # bizarre bug on SunOS 4.1.3.
12999 if $ac_need_defaults; then
13000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13002 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13005 # Have a temporary directory for convenience. Make it in the build tree
13006 # simply because there is no reason to put it here, and in addition,
13007 # creating and moving files from /tmp can sometimes cause problems.
13008 # Create a temporary directory, and hook for its removal unless debugging.
13011 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13012 trap '{ (exit 1); exit 1; }' 1 2 13 15
13015 # Create a (secure) tmp directory for tmp files.
13018 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13019 test -n "$tmp" && test -d "$tmp"
13022 tmp=./confstat$$-$RANDOM
13023 (umask 077 && mkdir $tmp)
13026 echo "$me: cannot create a temporary directory in ." >&2
13027 { (exit 1); exit 1; }
13032 cat >>$CONFIG_STATUS <<_ACEOF
13035 # CONFIG_FILES section.
13038 # No need to generate the scripts if there are no CONFIG_FILES.
13039 # This happens for instance when ./config.status config.h
13040 if test -n "\$CONFIG_FILES"; then
13041 # Protect against being on the right side of a sed subst in config.status.
13042 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13043 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13044 s,@SHELL@,$SHELL,;t t
13045 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13046 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13047 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13048 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13049 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13050 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13051 s,@exec_prefix@,$exec_prefix,;t t
13052 s,@prefix@,$prefix,;t t
13053 s,@program_transform_name@,$program_transform_name,;t t
13054 s,@bindir@,$bindir,;t t
13055 s,@sbindir@,$sbindir,;t t
13056 s,@libexecdir@,$libexecdir,;t t
13057 s,@datadir@,$datadir,;t t
13058 s,@sysconfdir@,$sysconfdir,;t t
13059 s,@sharedstatedir@,$sharedstatedir,;t t
13060 s,@localstatedir@,$localstatedir,;t t
13061 s,@libdir@,$libdir,;t t
13062 s,@includedir@,$includedir,;t t
13063 s,@oldincludedir@,$oldincludedir,;t t
13064 s,@infodir@,$infodir,;t t
13065 s,@mandir@,$mandir,;t t
13066 s,@build_alias@,$build_alias,;t t
13067 s,@host_alias@,$host_alias,;t t
13068 s,@target_alias@,$target_alias,;t t
13069 s,@DEFS@,$DEFS,;t t
13070 s,@ECHO_C@,$ECHO_C,;t t
13071 s,@ECHO_N@,$ECHO_N,;t t
13072 s,@ECHO_T@,$ECHO_T,;t t
13073 s,@LIBS@,$LIBS,;t t
13074 s,@build@,$build,;t t
13075 s,@build_cpu@,$build_cpu,;t t
13076 s,@build_vendor@,$build_vendor,;t t
13077 s,@build_os@,$build_os,;t t
13078 s,@host@,$host,;t t
13079 s,@host_cpu@,$host_cpu,;t t
13080 s,@host_vendor@,$host_vendor,;t t
13081 s,@host_os@,$host_os,;t t
13082 s,@target@,$target,;t t
13083 s,@target_cpu@,$target_cpu,;t t
13084 s,@target_vendor@,$target_vendor,;t t
13085 s,@target_os@,$target_os,;t t
13086 s,@target_noncanonical@,$target_noncanonical,;t t
13087 s,@build_subdir@,$build_subdir,;t t
13088 s,@host_subdir@,$host_subdir,;t t
13089 s,@target_subdir@,$target_subdir,;t t
13090 s,@GENINSRC@,$GENINSRC,;t t
13092 s,@CFLAGS@,$CFLAGS,;t t
13093 s,@LDFLAGS@,$LDFLAGS,;t t
13094 s,@CPPFLAGS@,$CPPFLAGS,;t t
13095 s,@ac_ct_CC@,$ac_ct_CC,;t t
13096 s,@EXEEXT@,$EXEEXT,;t t
13097 s,@OBJEXT@,$OBJEXT,;t t
13098 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13099 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13101 s,@strict1_warn@,$strict1_warn,;t t
13102 s,@warn_cflags@,$warn_cflags,;t t
13103 s,@WERROR@,$WERROR,;t t
13104 s,@nocommon_flag@,$nocommon_flag,;t t
13105 s,@TREEBROWSER@,$TREEBROWSER,;t t
13106 s,@EGREP@,$EGREP,;t t
13107 s,@valgrind_path@,$valgrind_path,;t t
13108 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13109 s,@valgrind_command@,$valgrind_command,;t t
13110 s,@coverage_flags@,$coverage_flags,;t t
13111 s,@enable_multilib@,$enable_multilib,;t t
13112 s,@enable_shared@,$enable_shared,;t t
13113 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13114 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13115 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13116 s,@onestep@,$onestep,;t t
13117 s,@SET_MAKE@,$SET_MAKE,;t t
13119 s,@LN_S@,$LN_S,;t t
13121 s,@RANLIB@,$RANLIB,;t t
13122 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13123 s,@ranlib_flags@,$ranlib_flags,;t t
13124 s,@INSTALL@,$INSTALL,;t t
13125 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13126 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13127 s,@make_compare_target@,$make_compare_target,;t t
13128 s,@have_mktemp_command@,$have_mktemp_command,;t t
13129 s,@MAKEINFO@,$MAKEINFO,;t t
13130 s,@BUILD_INFO@,$BUILD_INFO,;t t
13131 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13132 s,@FLEX@,$FLEX,;t t
13133 s,@BISON@,$BISON,;t t
13136 s,@stage1_cflags@,$stage1_cflags,;t t
13137 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13138 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13139 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13140 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13141 s,@LIBICONV@,$LIBICONV,;t t
13142 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13143 s,@manext@,$manext,;t t
13144 s,@objext@,$objext,;t t
13145 s,@gthread_flags@,$gthread_flags,;t t
13146 s,@extra_modes_file@,$extra_modes_file,;t t
13147 s,@FORBUILD@,$FORBUILD,;t t
13148 s,@PACKAGE@,$PACKAGE,;t t
13149 s,@VERSION@,$VERSION,;t t
13150 s,@USE_NLS@,$USE_NLS,;t t
13151 s,@LIBINTL@,$LIBINTL,;t t
13152 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13153 s,@INCINTL@,$INCINTL,;t t
13154 s,@XGETTEXT@,$XGETTEXT,;t t
13155 s,@GMSGFMT@,$GMSGFMT,;t t
13156 s,@POSUB@,$POSUB,;t t
13157 s,@CATALOGS@,$CATALOGS,;t t
13158 s,@CROSS@,$CROSS,;t t
13160 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13161 s,@inhibit_libc@,$inhibit_libc,;t t
13162 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13163 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13164 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13165 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13166 s,@collect2@,$collect2,;t t
13167 s,@libgcc_visibility@,$libgcc_visibility,;t t
13169 s,@zlibdir@,$zlibdir,;t t
13170 s,@zlibinc@,$zlibinc,;t t
13171 s,@MAINT@,$MAINT,;t t
13172 s,@ANDER@,$ANDER,;t t
13173 s,@BANSHEEINC@,$BANSHEEINC,;t t
13174 s,@BANSHEELIB@,$BANSHEELIB,;t t
13175 s,@gcc_tooldir@,$gcc_tooldir,;t t
13176 s,@dollar@,$dollar,;t t
13177 s,@slibdir@,$slibdir,;t t
13178 s,@objdir@,$objdir,;t t
13179 s,@subdirs@,$subdirs,;t t
13180 s,@srcdir@,$srcdir,;t t
13181 s,@all_boot_languages@,$all_boot_languages,;t t
13182 s,@all_compilers@,$all_compilers,;t t
13183 s,@all_gtfiles@,$all_gtfiles,;t t
13184 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13185 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13186 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13187 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13188 s,@all_languages@,$all_languages,;t t
13189 s,@all_stagestuff@,$all_stagestuff,;t t
13190 s,@build_exeext@,$build_exeext,;t t
13191 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13192 s,@build_xm_file_list@,$build_xm_file_list,;t t
13193 s,@build_xm_include_list@,$build_xm_include_list,;t t
13194 s,@build_xm_defines@,$build_xm_defines,;t t
13195 s,@check_languages@,$check_languages,;t t
13196 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13197 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13198 s,@cpp_install_dir@,$cpp_install_dir,;t t
13199 s,@xmake_file@,$xmake_file,;t t
13200 s,@tmake_file@,$tmake_file,;t t
13201 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13202 s,@extra_headers_list@,$extra_headers_list,;t t
13203 s,@extra_objs@,$extra_objs,;t t
13204 s,@extra_parts@,$extra_parts,;t t
13205 s,@extra_passes@,$extra_passes,;t t
13206 s,@extra_programs@,$extra_programs,;t t
13207 s,@float_h_file@,$float_h_file,;t t
13208 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13209 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13210 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13211 s,@gcc_version@,$gcc_version,;t t
13212 s,@gcc_version_full@,$gcc_version_full,;t t
13213 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13214 s,@host_exeext@,$host_exeext,;t t
13215 s,@host_xm_file_list@,$host_xm_file_list,;t t
13216 s,@host_xm_include_list@,$host_xm_include_list,;t t
13217 s,@host_xm_defines@,$host_xm_defines,;t t
13218 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13219 s,@install@,$install,;t t
13220 s,@lang_opt_files@,$lang_opt_files,;t t
13221 s,@lang_specs_files@,$lang_specs_files,;t t
13222 s,@lang_tree_files@,$lang_tree_files,;t t
13223 s,@local_prefix@,$local_prefix,;t t
13224 s,@md_file@,$md_file,;t t
13225 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13226 s,@out_file@,$out_file,;t t
13227 s,@out_object_file@,$out_object_file,;t t
13228 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13229 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13230 s,@symbolic_link@,$symbolic_link,;t t
13231 s,@thread_file@,$thread_file,;t t
13232 s,@tm_file_list@,$tm_file_list,;t t
13233 s,@tm_include_list@,$tm_include_list,;t t
13234 s,@tm_defines@,$tm_defines,;t t
13235 s,@tm_p_file_list@,$tm_p_file_list,;t t
13236 s,@tm_p_include_list@,$tm_p_include_list,;t t
13237 s,@xm_file_list@,$xm_file_list,;t t
13238 s,@xm_include_list@,$xm_include_list,;t t
13239 s,@xm_defines@,$xm_defines,;t t
13240 s,@c_target_objs@,$c_target_objs,;t t
13241 s,@cxx_target_objs@,$cxx_target_objs,;t t
13242 s,@target_cpu_default@,$target_cpu_default,;t t
13243 s,@GMPLIBS@,$GMPLIBS,;t t
13244 s,@GMPINC@,$GMPINC,;t t
13245 s,@LIBOBJS@,$LIBOBJS,;t t
13246 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13247 /@language_hooks@/r $language_hooks
13248 s,@language_hooks@,,;t t
13253 cat >>$CONFIG_STATUS <<\_ACEOF
13254 # Split the substitutions into bite-sized pieces for seds with
13255 # small command number limits, like on Digital OSF/1 and HP-UX.
13256 ac_max_sed_lines=48
13257 ac_sed_frag=1 # Number of current file.
13258 ac_beg=1 # First line for current file.
13259 ac_end=$ac_max_sed_lines # Line after last line for current file.
13262 while $ac_more_lines; do
13263 if test $ac_beg -gt 1; then
13264 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13266 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13268 if test ! -s $tmp/subs.frag; then
13269 ac_more_lines=false
13271 # The purpose of the label and of the branching condition is to
13272 # speed up the sed processing (if there are no `@' at all, there
13273 # is no need to browse any of the substitutions).
13274 # These are the two extra sed commands mentioned above.
13276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13277 if test -z "$ac_sed_cmds"; then
13278 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13280 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13282 ac_sed_frag=`expr $ac_sed_frag + 1`
13284 ac_end=`expr $ac_end + $ac_max_sed_lines`
13287 if test -z "$ac_sed_cmds"; then
13290 fi # test -n "$CONFIG_FILES"
13293 cat >>$CONFIG_STATUS <<\_ACEOF
13294 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13297 - | *:- | *:-:* ) # input from stdin
13299 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13300 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13301 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13302 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13303 * ) ac_file_in=$ac_file.in ;;
13306 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13307 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13309 X"$ac_file" : 'X\(//\)[^/]' \| \
13310 X"$ac_file" : 'X\(//\)$' \| \
13311 X"$ac_file" : 'X\(/\)' \| \
13312 . : '\(.\)' 2>/dev/null ||
13314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13316 /^X\(\/\/\)$/{ s//\1/; q; }
13317 /^X\(\/\).*/{ s//\1/; q; }
13319 { if $as_mkdir_p; then
13324 while test ! -d "$as_dir"; do
13325 as_dirs="$as_dir $as_dirs"
13326 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13328 X"$as_dir" : 'X\(//\)[^/]' \| \
13329 X"$as_dir" : 'X\(//\)$' \| \
13330 X"$as_dir" : 'X\(/\)' \| \
13331 . : '\(.\)' 2>/dev/null ||
13333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13335 /^X\(\/\/\)$/{ s//\1/; q; }
13336 /^X\(\/\).*/{ s//\1/; q; }
13339 test ! -n "$as_dirs" || mkdir $as_dirs
13340 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13341 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13342 { (exit 1); exit 1; }; }; }
13346 if test "$ac_dir" != .; then
13347 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13348 # A "../" for each directory in $ac_dir_suffix.
13349 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13351 ac_dir_suffix= ac_top_builddir=
13355 .) # No --srcdir option. We are building in place.
13357 if test -z "$ac_top_builddir"; then
13360 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13362 [\\/]* | ?:[\\/]* ) # Absolute path.
13363 ac_srcdir=$srcdir$ac_dir_suffix;
13364 ac_top_srcdir=$srcdir ;;
13365 *) # Relative path.
13366 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13367 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13370 # Do not use `cd foo && pwd` to compute absolute paths, because
13371 # the directories may not exist.
13373 .) ac_abs_builddir="$ac_dir";;
13376 .) ac_abs_builddir=`pwd`;;
13377 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13378 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13381 case $ac_abs_builddir in
13382 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13384 case ${ac_top_builddir}. in
13385 .) ac_abs_top_builddir=$ac_abs_builddir;;
13386 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13387 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13390 case $ac_abs_builddir in
13391 .) ac_abs_srcdir=$ac_srcdir;;
13394 .) ac_abs_srcdir=$ac_abs_builddir;;
13395 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13396 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13399 case $ac_abs_builddir in
13400 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13402 case $ac_top_srcdir in
13403 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13404 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13405 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13411 # Let's still pretend it is `configure' which instantiates (i.e., don't
13412 # use $as_me), people would be surprised to read:
13413 # /* config.h. Generated by config.status. */
13414 if test x"$ac_file" = x-; then
13417 configure_input="$ac_file. "
13419 configure_input=$configure_input"Generated from `echo $ac_file_in |
13420 sed 's,.*/,,'` by configure."
13422 # First look for the input files in the build tree, otherwise in the
13424 ac_file_inputs=`IFS=:
13425 for f in $ac_file_in; do
13427 -) echo $tmp/stdin ;;
13429 # Absolute (can't be DOS-style, as IFS=:)
13430 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13431 echo "$as_me: error: cannot find input file: $f" >&2;}
13432 { (exit 1); exit 1; }; }
13435 if test -f "$f"; then
13438 elif test -f "$srcdir/$f"; then
13443 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13444 echo "$as_me: error: cannot find input file: $f" >&2;}
13445 { (exit 1); exit 1; }; }
13448 done` || { (exit 1); exit 1; }
13450 if test x"$ac_file" != x-; then
13451 { echo "$as_me:$LINENO: creating $ac_file" >&5
13452 echo "$as_me: creating $ac_file" >&6;}
13456 cat >>$CONFIG_STATUS <<_ACEOF
13460 cat >>$CONFIG_STATUS <<\_ACEOF
13462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13463 s,@configure_input@,$configure_input,;t t
13464 s,@srcdir@,$ac_srcdir,;t t
13465 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13466 s,@top_srcdir@,$ac_top_srcdir,;t t
13467 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13468 s,@builddir@,$ac_builddir,;t t
13469 s,@abs_builddir@,$ac_abs_builddir,;t t
13470 s,@top_builddir@,$ac_top_builddir,;t t
13471 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13472 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13474 if test x"$ac_file" != x-; then
13475 mv $tmp/out $ac_file
13483 cat >>$CONFIG_STATUS <<\_ACEOF
13486 # CONFIG_HEADER section.
13489 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13490 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13492 # ac_d sets the value in "#define NAME VALUE" lines.
13493 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13494 ac_dB='[ ].*$,\1#\2'
13497 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13498 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13499 ac_uB='$,\1#\2define\3'
13503 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13504 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13506 - | *:- | *:-:* ) # input from stdin
13508 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13509 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13510 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13511 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13512 * ) ac_file_in=$ac_file.in ;;
13515 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13516 echo "$as_me: creating $ac_file" >&6;}
13518 # First look for the input files in the build tree, otherwise in the
13520 ac_file_inputs=`IFS=:
13521 for f in $ac_file_in; do
13523 -) echo $tmp/stdin ;;
13525 # Absolute (can't be DOS-style, as IFS=:)
13526 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13527 echo "$as_me: error: cannot find input file: $f" >&2;}
13528 { (exit 1); exit 1; }; }
13529 # Do quote $f, to prevent DOS paths from being IFS'd.
13532 if test -f "$f"; then
13535 elif test -f "$srcdir/$f"; then
13540 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13541 echo "$as_me: error: cannot find input file: $f" >&2;}
13542 { (exit 1); exit 1; }; }
13545 done` || { (exit 1); exit 1; }
13546 # Remove the trailing spaces.
13547 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13551 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13552 # `conftest.undefs', that substitutes the proper values into
13553 # config.h.in to produce config.h. The first handles `#define'
13554 # templates, and the second `#undef' templates.
13555 # And first: Protect against being on the right side of a sed subst in
13556 # config.status. Protect against being in an unquoted here document
13557 # in config.status.
13558 rm -f conftest.defines conftest.undefs
13559 # Using a here document instead of a string reduces the quoting nightmare.
13560 # Putting comments in sed scripts is not portable.
13562 # `end' is used to avoid that the second main sed command (meant for
13563 # 0-ary CPP macros) applies to n-ary macro definitions.
13564 # See the Autoconf documentation for `clear'.
13565 cat >confdef2sed.sed <<\_ACEOF
13570 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13572 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13575 # If some macros were called several times there might be several times
13576 # the same #defines, which is useless. Nevertheless, we may not want to
13577 # sort them, since we want the *last* AC-DEFINE to be honored.
13578 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13579 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13580 rm -f confdef2sed.sed
13582 # This sed command replaces #undef with comments. This is necessary, for
13583 # example, in the case of _POSIX_SOURCE, which is predefined and required
13584 # on some systems where configure will not decide to define it.
13585 cat >>conftest.undefs <<\_ACEOF
13586 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13589 # Break up conftest.defines because some shells have a limit on the size
13590 # of here documents, and old seds have small limits too (100 cmds).
13591 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13592 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13593 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13594 echo ' :' >>$CONFIG_STATUS
13595 rm -f conftest.tail
13596 while grep . conftest.defines >/dev/null
13598 # Write a limited-size here document to $tmp/defines.sed.
13599 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13600 # Speed up: don't consider the non `#define' lines.
13601 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13602 # Work around the forget-to-reset-the-flag bug.
13603 echo 't clr' >>$CONFIG_STATUS
13604 echo ': clr' >>$CONFIG_STATUS
13605 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13607 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13609 mv $tmp/out $tmp/in
13611 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13612 rm -f conftest.defines
13613 mv conftest.tail conftest.defines
13615 rm -f conftest.defines
13616 echo ' fi # grep' >>$CONFIG_STATUS
13617 echo >>$CONFIG_STATUS
13619 # Break up conftest.undefs because some shells have a limit on the size
13620 # of here documents, and old seds have small limits too (100 cmds).
13621 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13622 rm -f conftest.tail
13623 while grep . conftest.undefs >/dev/null
13625 # Write a limited-size here document to $tmp/undefs.sed.
13626 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13627 # Speed up: don't consider the non `#undef'
13628 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13629 # Work around the forget-to-reset-the-flag bug.
13630 echo 't clr' >>$CONFIG_STATUS
13631 echo ': clr' >>$CONFIG_STATUS
13632 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13634 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13636 mv $tmp/out $tmp/in
13638 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13639 rm -f conftest.undefs
13640 mv conftest.tail conftest.undefs
13642 rm -f conftest.undefs
13644 cat >>$CONFIG_STATUS <<\_ACEOF
13645 # Let's still pretend it is `configure' which instantiates (i.e., don't
13646 # use $as_me), people would be surprised to read:
13647 # /* config.h. Generated by config.status. */
13648 if test x"$ac_file" = x-; then
13649 echo "/* Generated by configure. */" >$tmp/config.h
13651 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13653 cat $tmp/in >>$tmp/config.h
13655 if test x"$ac_file" != x-; then
13656 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13657 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13658 echo "$as_me: $ac_file is unchanged" >&6;}
13660 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13662 X"$ac_file" : 'X\(//\)[^/]' \| \
13663 X"$ac_file" : 'X\(//\)$' \| \
13664 X"$ac_file" : 'X\(/\)' \| \
13665 . : '\(.\)' 2>/dev/null ||
13667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13669 /^X\(\/\/\)$/{ s//\1/; q; }
13670 /^X\(\/\).*/{ s//\1/; q; }
13672 { if $as_mkdir_p; then
13677 while test ! -d "$as_dir"; do
13678 as_dirs="$as_dir $as_dirs"
13679 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13681 X"$as_dir" : 'X\(//\)[^/]' \| \
13682 X"$as_dir" : 'X\(//\)$' \| \
13683 X"$as_dir" : 'X\(/\)' \| \
13684 . : '\(.\)' 2>/dev/null ||
13686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13688 /^X\(\/\/\)$/{ s//\1/; q; }
13689 /^X\(\/\).*/{ s//\1/; q; }
13692 test ! -n "$as_dirs" || mkdir $as_dirs
13693 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13694 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13695 { (exit 1); exit 1; }; }; }
13698 mv $tmp/config.h $ac_file
13702 rm -f $tmp/config.h
13706 cat >>$CONFIG_STATUS <<\_ACEOF
13709 # CONFIG_COMMANDS section.
13711 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13712 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13713 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13714 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13715 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13716 X"$ac_dest" : 'X\(//\)[^/]' \| \
13717 X"$ac_dest" : 'X\(//\)$' \| \
13718 X"$ac_dest" : 'X\(/\)' \| \
13719 . : '\(.\)' 2>/dev/null ||
13721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13723 /^X\(\/\/\)$/{ s//\1/; q; }
13724 /^X\(\/\).*/{ s//\1/; q; }
13726 { if $as_mkdir_p; then
13731 while test ! -d "$as_dir"; do
13732 as_dirs="$as_dir $as_dirs"
13733 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13735 X"$as_dir" : 'X\(//\)[^/]' \| \
13736 X"$as_dir" : 'X\(//\)$' \| \
13737 X"$as_dir" : 'X\(/\)' \| \
13738 . : '\(.\)' 2>/dev/null ||
13740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13742 /^X\(\/\/\)$/{ s//\1/; q; }
13743 /^X\(\/\).*/{ s//\1/; q; }
13746 test ! -n "$as_dirs" || mkdir $as_dirs
13747 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13748 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13749 { (exit 1); exit 1; }; }; }
13753 if test "$ac_dir" != .; then
13754 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13755 # A "../" for each directory in $ac_dir_suffix.
13756 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13758 ac_dir_suffix= ac_top_builddir=
13762 .) # No --srcdir option. We are building in place.
13764 if test -z "$ac_top_builddir"; then
13767 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13769 [\\/]* | ?:[\\/]* ) # Absolute path.
13770 ac_srcdir=$srcdir$ac_dir_suffix;
13771 ac_top_srcdir=$srcdir ;;
13772 *) # Relative path.
13773 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13774 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13777 # Do not use `cd foo && pwd` to compute absolute paths, because
13778 # the directories may not exist.
13780 .) ac_abs_builddir="$ac_dir";;
13783 .) ac_abs_builddir=`pwd`;;
13784 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13785 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13788 case $ac_abs_builddir in
13789 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13791 case ${ac_top_builddir}. in
13792 .) ac_abs_top_builddir=$ac_abs_builddir;;
13793 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13794 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13797 case $ac_abs_builddir in
13798 .) ac_abs_srcdir=$ac_srcdir;;
13801 .) ac_abs_srcdir=$ac_abs_builddir;;
13802 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13803 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13806 case $ac_abs_builddir in
13807 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13809 case $ac_top_srcdir in
13810 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13811 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13812 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13817 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13818 echo "$as_me: executing $ac_dest commands" >&6;}
13821 case ${CONFIG_HEADERS} in
13822 *auto-host.h:config.in*)
13825 # Make sure all the subdirs exist.
13828 test -d $d || mkdir $d
13830 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13831 # bootstrapping and the installation procedure can still use
13832 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13833 # FLAGS_TO_PASS has been modified to solve the problem there.
13834 # This is virtually a duplicate of what happens in configure.lang; we do
13835 # an extra check to make sure this only happens if ln -s can be used.
13836 if test "$symbolic_link" = "ln -s"; then
13837 for d in ${subdirs} fixinc ; do
13838 STARTDIR=`${PWDCMD-pwd}`
13840 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13843 $symbolic_link ../$t $t 2>/dev/null
13853 cat >>$CONFIG_STATUS <<\_ACEOF
13855 { (exit 0); exit 0; }
13857 chmod +x $CONFIG_STATUS
13858 ac_clean_files=$ac_clean_files_save
13861 # configure is writing to config.log, and then calls config.status.
13862 # config.status does its own redirection, appending to config.log.
13863 # Unfortunately, on DOS this fails, as config.log is still kept open
13864 # by configure, so config.status won't be able to write to it; its
13865 # output is simply discarded. So we exec the FD to /dev/null,
13866 # effectively closing config.log, so it can be properly (re)opened and
13867 # appended to by config.status. When coming back to configure, we
13868 # need to make the FD available again.
13869 if test "$no_create" != yes; then
13871 ac_config_status_args=
13872 test "$silent" = yes &&
13873 ac_config_status_args="$ac_config_status_args --quiet"
13875 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13878 # would make configure fail if this is the last instruction.
13879 $ac_cs_success || { (exit 1); exit 1; }