2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT ANDER BANSHEEINC BANSHEELIB gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
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: misc,tree,rtl,rtlflag,gc,gcac,fold;
871 default is misc,tree,gc,rtlflag
872 --enable-coverage=LEVEL
873 enable compiler\'s code coverage collection.
874 Use to measure compiler performance and locate
875 unused parts of the compiler. With LEVEL, specify
876 optimization. Values are opt, noopt,
878 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
879 --enable-multilib enable library support for multiple ABIs
880 --enable-__cxa_atexit enable __cxa_atexit for C++
881 --enable-threads enable thread usage for target GCC
882 --enable-threads=LIB use LIB thread package for target GCC
883 --enable-objc-gc enable the use of Boehm's garbage collector with
884 the GNU Objective-C runtime
885 --disable-shared don't provide a shared libgcc
886 --enable-intermodule build the compiler in one step
887 --enable-languages=LIST specify which front-ends to build
888 --enable-initfini-array use .init_array/.fini_array sections
889 --enable-sjlj-exceptions
890 arrange to use setjmp/longjmp exception handling
891 --enable-libunwind-exceptions force use libunwind for exceptions
892 --disable-win32-registry
893 disable lookup of installation paths in the
894 Registry on Windows hosts
895 --enable-win32-registry enable registry lookup (default)
896 --enable-win32-registry=KEY
897 use KEY instead of GCC version as the last portion
899 --enable-maintainer-mode
900 enable make rules and dependencies not useful
901 (and sometimes confusing) to the casual installer
902 --enable-version-specific-runtime-libs
903 specify that runtime libraries should be
904 installed in a compiler-specific directory
907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
909 --with-local-prefix=DIR specifies directory to put local include
910 --with-gxx-include-dir=DIR
911 specifies directory to put g++ header files
912 --with-cpp-install-dir=DIR
913 install the user visible C preprocessor in DIR
914 (relative to PREFIX) as well as PREFIX/bin
915 --with-gnu-ld arrange to work with GNU ld.
916 --with-ld arrange to use the specified ld (full pathname)
917 --with-gnu-as arrange to work with GNU as
918 --with-as arrange to use the specified as (full pathname)
919 --with-stabs arrange to use stabs instead of host debug format
920 --with-dwarf2 force the default debug format to be DWARF 2
921 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
922 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
923 --with-gc={page,zone} choose the garbage collection mechanism to use
925 --with-system-zlib use installed libz
926 --with-libbanshee enable libbanshee
927 --with-slibdir=DIR shared libraries in DIR LIBDIR
929 Some influential environment variables:
930 CC C compiler command
931 CFLAGS C compiler flags
932 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
933 nonstandard directory <lib dir>
934 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
935 headers in a nonstandard directory <include dir>
937 GMPLIBS How to link GMP
938 GMPINC How to find GMP include files
940 Use these variables to override the choices made by `configure' or to help
941 it to find libraries and programs with nonstandard names/locations.
946 if test "$ac_init_help" = "recursive"; then
947 # If there are subdirs, report their specific --help.
949 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
950 test -d $ac_dir || continue
953 if test "$ac_dir" != .; then
954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
955 # A "../" for each directory in $ac_dir_suffix.
956 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 ac_dir_suffix= ac_top_builddir=
962 .) # No --srcdir option. We are building in place.
964 if test -z "$ac_top_builddir"; then
967 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969 [\\/]* | ?:[\\/]* ) # Absolute path.
970 ac_srcdir=$srcdir$ac_dir_suffix;
971 ac_top_srcdir=$srcdir ;;
973 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
974 ac_top_srcdir=$ac_top_builddir$srcdir ;;
977 # Do not use `cd foo && pwd` to compute absolute paths, because
978 # the directories may not exist.
980 .) ac_abs_builddir="$ac_dir";;
983 .) ac_abs_builddir=`pwd`;;
984 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
985 *) ac_abs_builddir=`pwd`/"$ac_dir";;
988 case $ac_abs_builddir in
989 .) ac_abs_top_builddir=${ac_top_builddir}.;;
991 case ${ac_top_builddir}. in
992 .) ac_abs_top_builddir=$ac_abs_builddir;;
993 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
994 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
997 case $ac_abs_builddir in
998 .) ac_abs_srcdir=$ac_srcdir;;
1001 .) ac_abs_srcdir=$ac_abs_builddir;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1003 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1009 case $ac_top_srcdir in
1010 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1012 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017 # Check for guested configure; otherwise get Cygnus style configure.
1018 if test -f $ac_srcdir/configure.gnu; then
1020 $SHELL $ac_srcdir/configure.gnu --help=recursive
1021 elif test -f $ac_srcdir/configure; then
1023 $SHELL $ac_srcdir/configure --help=recursive
1024 elif test -f $ac_srcdir/configure.ac ||
1025 test -f $ac_srcdir/configure.in; then
1027 $ac_configure --help
1029 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1035 test -n "$ac_init_help" && exit 0
1036 if $ac_init_version; then
1039 Copyright (C) 2003 Free Software Foundation, Inc.
1040 This configure script is free software; the Free Software Foundation
1041 gives unlimited permission to copy, distribute and modify it.
1047 This file contains any messages produced by compilers while
1048 running configure, to aid debugging if configure makes a mistake.
1050 It was created by $as_me, which was
1051 generated by GNU Autoconf 2.59. Invocation command line was
1062 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1063 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1064 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1065 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1066 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1068 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1069 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1071 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1072 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1073 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1074 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1075 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1076 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1077 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1085 test -z "$as_dir" && as_dir=.
1086 echo "PATH: $as_dir"
1101 # Keep a trace of the command line.
1102 # Strip out --no-create and --no-recursion so they do not pile up.
1103 # Strip out --silent because we don't want to record it for future runs.
1104 # Also quote any args containing shell meta-characters.
1105 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_must_keep_next=false
1116 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1120 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1121 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1124 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1126 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1127 if test $ac_must_keep_next = true; then
1128 ac_must_keep_next=false # Got value, back to normal.
1131 *=* | --config-cache | -C | -disable-* | --disable-* \
1132 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1133 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1134 | -with-* | --with-* | -without-* | --without-* | --x)
1135 case "$ac_configure_args0 " in
1136 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1139 -* ) ac_must_keep_next=true ;;
1142 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1143 # Get rid of the leading space.
1149 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1150 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1152 # When interrupted or exit'd, cleanup temporary files, and complete
1153 # config.log. We remove comments because anyway the quotes in there
1154 # would cause problems or look ugly.
1155 # WARNING: Be sure not to use single quotes in there, as some shells,
1156 # such as our DU 5.0 friend, will then `close' the trap.
1157 trap 'exit_status=$?
1158 # Save into config.log some information that might help in debugging.
1163 ## ---------------- ##
1164 ## Cache variables. ##
1165 ## ---------------- ##
1168 # The following way of writing the cache mishandles newlines in values,
1171 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1174 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1179 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1186 ## ----------------- ##
1187 ## Output variables. ##
1188 ## ----------------- ##
1191 for ac_var in $ac_subst_vars
1193 eval ac_val=$`echo $ac_var`
1194 echo "$ac_var='"'"'$ac_val'"'"'"
1198 if test -n "$ac_subst_files"; then
1205 for ac_var in $ac_subst_files
1207 eval ac_val=$`echo $ac_var`
1208 echo "$ac_var='"'"'$ac_val'"'"'"
1213 if test -s confdefs.h; then
1220 sed "/^$/d" confdefs.h | sort
1223 test "$ac_signal" != 0 &&
1224 echo "$as_me: caught signal $ac_signal"
1225 echo "$as_me: exit $exit_status"
1227 rm -f core *.core &&
1228 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1231 for ac_signal in 1 2 13 15; do
1232 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1237 rm -rf conftest* confdefs.h
1238 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1241 # Predefined preprocessor variables.
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_NAME "$PACKAGE_NAME"
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_STRING "$PACKAGE_STRING"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1268 # Let the site file select an alternate cache file if it wants to.
1269 # Prefer explicitly selected file to automatically selected ones.
1270 if test -z "$CONFIG_SITE"; then
1271 if test "x$prefix" != xNONE; then
1272 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1277 for ac_site_file in $CONFIG_SITE; do
1278 if test -r "$ac_site_file"; then
1279 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1280 echo "$as_me: loading site script $ac_site_file" >&6;}
1281 sed 's/^/| /' "$ac_site_file" >&5
1286 if test -r "$cache_file"; then
1287 # Some versions of bash will fail to source /dev/null (special
1288 # files actually), so we avoid doing that.
1289 if test -f "$cache_file"; then
1290 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1291 echo "$as_me: loading cache $cache_file" >&6;}
1293 [\\/]* | ?:[\\/]* ) . $cache_file;;
1294 *) . ./$cache_file;;
1298 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1299 echo "$as_me: creating cache $cache_file" >&6;}
1303 # Check that the precious variables saved in the cache have kept the same
1305 ac_cache_corrupted=false
1306 for ac_var in `(set) 2>&1 |
1307 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1309 eval ac_new_set=\$ac_env_${ac_var}_set
1310 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1311 eval ac_new_val="\$ac_env_${ac_var}_value"
1312 case $ac_old_set,$ac_new_set in
1314 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1315 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1316 ac_cache_corrupted=: ;;
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1323 if test "x$ac_old_val" != "x$ac_new_val"; then
1324 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1325 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1326 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1327 echo "$as_me: former value: $ac_old_val" >&2;}
1328 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1329 echo "$as_me: current value: $ac_new_val" >&2;}
1330 ac_cache_corrupted=:
1333 # Pass precious variables to config.status.
1334 if test "$ac_new_set" = set; then
1336 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1337 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1338 *) ac_arg=$ac_var=$ac_new_val ;;
1340 case " $ac_configure_args " in
1341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1342 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1346 if $ac_cache_corrupted; then
1347 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1348 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1349 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1350 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1351 { (exit 1); exit 1; }; }
1355 ac_cpp='$CPP $CPPFLAGS'
1356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1379 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1382 # Determine the host, build, and target systems
1384 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1385 if test -f $ac_dir/install-sh; then
1387 ac_install_sh="$ac_aux_dir/install-sh -c"
1389 elif test -f $ac_dir/install.sh; then
1391 ac_install_sh="$ac_aux_dir/install.sh -c"
1393 elif test -f $ac_dir/shtool; then
1395 ac_install_sh="$ac_aux_dir/shtool install -c"
1399 if test -z "$ac_aux_dir"; then
1400 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1401 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1402 { (exit 1); exit 1; }; }
1404 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1405 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1406 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1408 # Make sure we can run config.sub.
1409 $ac_config_sub sun4 >/dev/null 2>&1 ||
1410 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1411 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1412 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: checking build system type" >&5
1415 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1416 if test "${ac_cv_build+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 ac_cv_build_alias=$build_alias
1420 test -z "$ac_cv_build_alias" &&
1421 ac_cv_build_alias=`$ac_config_guess`
1422 test -z "$ac_cv_build_alias" &&
1423 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1424 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1425 { (exit 1); exit 1; }; }
1426 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1427 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1428 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1429 { (exit 1); exit 1; }; }
1432 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1433 echo "${ECHO_T}$ac_cv_build" >&6
1435 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1436 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1437 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1440 echo "$as_me:$LINENO: checking host system type" >&5
1441 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1442 if test "${ac_cv_host+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 ac_cv_host_alias=$host_alias
1446 test -z "$ac_cv_host_alias" &&
1447 ac_cv_host_alias=$ac_cv_build_alias
1448 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1449 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1451 { (exit 1); exit 1; }; }
1454 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1455 echo "${ECHO_T}$ac_cv_host" >&6
1457 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1462 echo "$as_me:$LINENO: checking target system type" >&5
1463 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1464 if test "${ac_cv_target+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 ac_cv_target_alias=$target_alias
1468 test "x$ac_cv_target_alias" = "x" &&
1469 ac_cv_target_alias=$ac_cv_host_alias
1470 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1471 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1472 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1473 { (exit 1); exit 1; }; }
1476 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1477 echo "${ECHO_T}$ac_cv_target" >&6
1478 target=$ac_cv_target
1479 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484 # The aliases save the names the user supplied, while $host etc.
1485 # will get canonicalized.
1486 test -n "$target_alias" &&
1487 test "$program_prefix$program_suffix$program_transform_name" = \
1489 program_prefix=${target_alias}-
1491 # Determine the noncanonical target name, for directory use.
1492 case ${build_alias} in
1493 "") build_noncanonical=${build} ;;
1494 *) build_noncanonical=${build_alias} ;;
1497 case ${host_alias} in
1498 "") host_noncanonical=${build_noncanonical} ;;
1499 *) host_noncanonical=${host_alias} ;;
1502 case ${target_alias} in
1503 "") target_noncanonical=${host_noncanonical} ;;
1504 *) target_noncanonical=${target_alias} ;;
1508 # Determine the target- and build-specific subdirectories
1509 # Prefix 'build-' so this never conflicts with target_subdir.
1510 build_subdir="build-${build_noncanonical}"
1511 # Not really a subdirectory, but here for completeness.
1514 target_subdir=${target_noncanonical}
1517 # Set program_transform_name
1518 test "$program_prefix" != NONE &&
1519 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1520 # Use a double $ so make ignores it.
1521 test "$program_suffix" != NONE &&
1522 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1523 # Double any \ or $. echo might interpret backslashes.
1524 # By default was `s,x,x', remove it if useless.
1525 cat <<\_ACEOF >conftest.sed
1526 s/[\\$]/&&/g;s/;s,x,x,$//
1528 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1532 # Check for bogus environment variables.
1533 # Test if LIBRARY_PATH contains the notation for the current directory
1534 # since this would lead to problems installing/building glibc.
1535 # LIBRARY_PATH contains the current directory if one of the following
1537 # - one of the terminals (":" and ";") is the first or last sign
1538 # - two terminals occur directly after each other
1539 # - the path contains an element with a dot in it
1540 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1541 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1542 case ${LIBRARY_PATH} in
1543 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1544 library_path_setting="contains current directory"
1547 library_path_setting="ok"
1550 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1551 echo "${ECHO_T}$library_path_setting" >&6
1552 if test "$library_path_setting" != "ok"; then
1553 { { echo "$as_me:$LINENO: error:
1554 *** LIBRARY_PATH shouldn't contain the current directory when
1555 *** building gcc. Please change the environment variable
1556 *** and run configure again." >&5
1557 echo "$as_me: error:
1558 *** LIBRARY_PATH shouldn't contain the current directory when
1559 *** building gcc. Please change the environment variable
1560 *** and run configure again." >&2;}
1561 { (exit 1); exit 1; }; }
1564 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1565 # since this would lead to problems installing/building glibc.
1566 # GCC_EXEC_PREFIX contains the current directory if one of the following
1568 # - one of the terminals (":" and ";") is the first or last sign
1569 # - two terminals occur directly after each other
1570 # - the path contains an element with a dot in it
1571 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1572 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1573 case ${GCC_EXEC_PREFIX} in
1574 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1575 gcc_exec_prefix_setting="contains current directory"
1578 gcc_exec_prefix_setting="ok"
1581 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1582 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1583 if test "$gcc_exec_prefix_setting" != "ok"; then
1584 { { echo "$as_me:$LINENO: error:
1585 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1586 *** building gcc. Please change the environment variable
1587 *** and run configure again." >&5
1588 echo "$as_me: 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." >&2;}
1592 { (exit 1); exit 1; }; }
1599 # Specify the local prefix
1602 # Check whether --with-local-prefix or --without-local-prefix was given.
1603 if test "${with_local_prefix+set}" = set; then
1604 withval="$with_local_prefix"
1605 case "${withval}" in
1606 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1607 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1608 { (exit 1); exit 1; }; } ;;
1610 *) local_prefix=$with_local_prefix ;;
1614 # Default local prefix if it is empty
1615 if test x$local_prefix = x; then
1616 local_prefix=/usr/local
1619 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1620 # passed in by the toplevel make and thus we'd get different behavior
1621 # depending on where we built the sources.
1622 gcc_gxx_include_dir=
1623 # Specify the g++ header file directory
1625 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1626 if test "${with_gxx_include_dir+set}" = set; then
1627 withval="$with_gxx_include_dir"
1628 case "${withval}" in
1629 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1630 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1631 { (exit 1); exit 1; }; } ;;
1633 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1637 if test x${gcc_gxx_include_dir} = x; then
1638 if test x${enable_version_specific_runtime_libs} = xyes; then
1639 gcc_gxx_include_dir='${libsubdir}/include/c++'
1641 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1642 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1647 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1648 if test "${with_cpp_install_dir+set}" = set; then
1649 withval="$with_cpp_install_dir"
1650 if test x$withval = xyes; then
1651 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1652 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1653 { (exit 1); exit 1; }; }
1654 elif test x$withval != xno; then
1655 cpp_install_dir=$withval
1659 # We would like to our source tree to be readonly. However when releases or
1660 # pre-releases are generated, the flex/bison generated files as well as the
1661 # various formats of manuals need to be included along with the rest of the
1662 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1665 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1666 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1667 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1668 if test "${enable_generated_files_in_srcdir+set}" = set; then
1669 enableval="$enable_generated_files_in_srcdir"
1670 generated_files_in_srcdir=$enableval
1672 generated_files_in_srcdir=no
1675 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1676 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1678 if test "$generated_files_in_srcdir" = "yes"; then
1685 # -------------------
1686 # Find default linker
1687 # -------------------
1691 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1692 if test "${with_gnu_ld+set}" = set; then
1693 withval="$with_gnu_ld"
1694 gnu_ld_flag="$with_gnu_ld"
1699 # With pre-defined ld
1701 # Check whether --with-ld or --without-ld was given.
1702 if test "${with_ld+set}" = set; then
1704 DEFAULT_LINKER="$with_ld"
1706 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1707 if test ! -x "$DEFAULT_LINKER"; then
1708 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1709 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1710 { (exit 1); exit 1; }; }
1711 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1715 cat >>confdefs.h <<_ACEOF
1716 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1721 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1722 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1723 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1724 if test x"$gnu_ld_flag" = x"no"; then
1725 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1726 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1728 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1729 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1736 # ----------------------
1737 # Find default assembler
1738 # ----------------------
1742 # Check whether --with-gnu-as or --without-gnu-as was given.
1743 if test "${with_gnu_as+set}" = set; then
1744 withval="$with_gnu_as"
1745 gas_flag="$with_gnu_as"
1751 # Check whether --with-as or --without-as was given.
1752 if test "${with_as+set}" = set; then
1754 DEFAULT_ASSEMBLER="$with_as"
1756 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1757 if test ! -x "$DEFAULT_ASSEMBLER"; then
1758 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1759 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1760 { (exit 1); exit 1; }; }
1761 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1765 cat >>confdefs.h <<_ACEOF
1766 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1771 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1772 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1773 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1774 if test x"$gas_flag" = x"no"; then
1775 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1776 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1778 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1779 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1790 # If a non-executable a.out is present (e.g. created by GNU as above even if
1791 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1792 # file, even when creating an executable, so an execution test fails.
1793 # Remove possible default executable files to avoid this.
1795 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1796 # Autoconf includes it.
1797 rm -f a.out a.exe b.out
1799 # Find the native compiler
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805 if test -n "$ac_tool_prefix"; then
1806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1842 if test -z "$ac_cv_prog_CC"; then
1844 # Extract the first word of "gcc", so it can be a program name with args.
1845 set dummy gcc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test -n "$ac_ct_CC"; then
1852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_ac_ct_CC="gcc"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871 if test -n "$ac_ct_CC"; then
1872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873 echo "${ECHO_T}$ac_ct_CC" >&6
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1884 if test -z "$CC"; then
1885 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1887 set dummy ${ac_tool_prefix}cc; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_CC="${ac_tool_prefix}cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 if test -n "$CC"; then
1914 echo "$as_me:$LINENO: result: $CC" >&5
1915 echo "${ECHO_T}$CC" >&6
1917 echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1922 if test -z "$ac_cv_prog_CC"; then
1924 # Extract the first word of "cc", so it can be a program name with args.
1925 set dummy cc; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 if test -n "$ac_ct_CC"; then
1932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_ac_ct_CC="cc"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1951 if test -n "$ac_ct_CC"; then
1952 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1953 echo "${ECHO_T}$ac_ct_CC" >&6
1955 echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1965 if test -z "$CC"; then
1966 # Extract the first word of "cc", so it can be a program name with args.
1967 set dummy cc; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1985 ac_prog_rejected=yes
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 if test $ac_prog_rejected = yes; then
1996 # We found a bogon in the path, so make sure we never use it.
1997 set dummy $ac_cv_prog_CC
1999 if test $# != 0; then
2000 # We chose a different compiler from the bogus one.
2001 # However, it has the same basename, so the bogon will be chosen
2002 # first if we set CC to just the basename; use the full file name.
2004 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2010 if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2019 if test -z "$CC"; then
2020 if test -n "$ac_tool_prefix"; then
2023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 if test -n "$CC"; then
2051 echo "$as_me:$LINENO: result: $CC" >&5
2052 echo "${ECHO_T}$CC" >&6
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2058 test -n "$CC" && break
2061 if test -z "$CC"; then
2065 # Extract the first word of "$ac_prog", so it can be a program name with args.
2066 set dummy $ac_prog; ac_word=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_ac_ct_CC="$ac_prog"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092 if test -n "$ac_ct_CC"; then
2093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094 echo "${ECHO_T}$ac_ct_CC" >&6
2096 echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2100 test -n "$ac_ct_CC" && break
2109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: no acceptable C compiler found in \$PATH
2112 See \`config.log' for more details." >&2;}
2113 { (exit 1); exit 1; }; }
2115 # Provide some information about the compiler.
2116 echo "$as_me:$LINENO:" \
2117 "checking for C compiler version" >&5
2118 ac_compiler=`set X $ac_compile; echo $2`
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2120 (eval $ac_compiler --version </dev/null >&5) 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2125 (eval $ac_compiler -v </dev/null >&5) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2130 (eval $ac_compiler -V </dev/null >&5) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2135 cat >conftest.$ac_ext <<_ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2150 ac_clean_files_save=$ac_clean_files
2151 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2152 # Try to create an executable without -o first, disregard a.out.
2153 # It will help us diagnose broken compilers, and finding out an intuition
2155 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2156 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2159 (eval $ac_link_default) 2>&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; then
2163 # Find the output, starting from the most likely. This scheme is
2164 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2167 # Be careful to initialize this variable, since it used to be cached.
2168 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2170 # b.out is created by i960 compilers.
2171 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2173 test -f "$ac_file" || continue
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2178 # This is the source file.
2181 # We found the default executable, but exeext='' is most
2185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186 # FIXME: I believe we export ac_cv_exeext for Libtool,
2187 # but it would be cool to find out if it's true. Does anybody
2188 # maintain Libtool? --akim.
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2199 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&2;}
2203 { (exit 77); exit 77; }; }
2206 ac_exeext=$ac_cv_exeext
2207 echo "$as_me:$LINENO: result: $ac_file" >&5
2208 echo "${ECHO_T}$ac_file" >&6
2210 # Check the compiler produces executables we can run. If not, either
2211 # the compiler is broken, or we cross compile.
2212 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2214 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215 # If not cross compiling, check that we can run a simple program.
2216 if test "$cross_compiling" != yes; then
2217 if { ac_try='./$ac_file'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2225 if test "$cross_compiling" = maybe; then
2228 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&2;}
2234 { (exit 1); exit 1; }; }
2238 echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6
2241 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2242 ac_clean_files=$ac_clean_files_save
2243 # Check the compiler produces executables we can run. If not, either
2244 # the compiler is broken, or we cross compile.
2245 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2247 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248 echo "${ECHO_T}$cross_compiling" >&6
2250 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2253 (eval $ac_link) 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; then
2257 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2259 # work properly (i.e., refer to `conftest.exe'), while it won't with
2261 for ac_file in conftest.exe conftest conftest.*; do
2262 test -f "$ac_file" || continue
2264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2275 See \`config.log' for more details." >&2;}
2276 { (exit 1); exit 1; }; }
2279 rm -f conftest$ac_cv_exeext
2280 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2281 echo "${ECHO_T}$ac_cv_exeext" >&6
2283 rm -f conftest.$ac_ext
2284 EXEEXT=$ac_cv_exeext
2286 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2287 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2288 if test "${ac_cv_objext+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 cat >conftest.$ac_ext <<_ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2306 rm -f conftest.o conftest.obj
2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308 (eval $ac_compile) 2>&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; then
2312 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2323 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2324 See \`config.log' for more details." >&5
2325 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2326 See \`config.log' for more details." >&2;}
2327 { (exit 1); exit 1; }; }
2330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2332 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2333 echo "${ECHO_T}$ac_cv_objext" >&6
2334 OBJEXT=$ac_cv_objext
2336 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2337 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2338 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 cat >conftest.$ac_ext <<_ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>conftest.er1
2363 grep -v '^ *+' conftest.er1 >conftest.err
2365 cat conftest.err >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
2368 { ac_try='test -z "$ac_c_werror_flag"
2369 || test ! -s conftest.err'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; } &&
2375 { ac_try='test -s conftest.$ac_objext'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2392 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2393 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2394 GCC=`test $ac_compiler_gnu = yes && echo yes`
2395 ac_test_CFLAGS=${CFLAGS+set}
2396 ac_save_CFLAGS=$CFLAGS
2398 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2399 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2400 if test "${ac_cv_prog_cc_g+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 cat >conftest.$ac_ext <<_ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>conftest.er1
2422 grep -v '^ *+' conftest.er1 >conftest.err
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
2427 { ac_try='test -z "$ac_c_werror_flag"
2428 || test ! -s conftest.err'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2450 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2451 if test "$ac_test_CFLAGS" = set; then
2452 CFLAGS=$ac_save_CFLAGS
2453 elif test $ac_cv_prog_cc_g = yes; then
2454 if test "$GCC" = yes; then
2460 if test "$GCC" = yes; then
2466 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2467 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2468 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 ac_cv_prog_cc_stdc=no
2473 cat >conftest.$ac_ext <<_ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2481 #include <sys/types.h>
2482 #include <sys/stat.h>
2483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2484 struct buf { int x; };
2485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2486 static char *e (p, i)
2492 static char *f (char * (*g) (char **, int), char **p, ...)
2497 s = g (p, va_arg (v,int));
2502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2503 function prototypes and stuff, but not '\xHH' hex character constants.
2504 These don't provoke an error unfortunately, instead are silently treated
2505 as 'x'. The following induces an error, until -std1 is added to get
2506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2507 array size at least. It's necessary to write '\x00'==0 to get something
2508 that's true only with -std1. */
2509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2511 int test (int i, double x);
2512 struct s1 {int (*f) (int a);};
2513 struct s2 {int (*f) (double a);};
2514 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2520 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2525 # Don't try gcc -ansi; that turns off useful extensions and
2526 # breaks some systems' header files.
2527 # AIX -qlanglvl=ansi
2528 # Ultrix and OSF/1 -std1
2529 # HP-UX 10.20 and later -Ae
2530 # HP-UX older versions -Aa -D_HPUX_SOURCE
2531 # SVR4 -Xc -D__EXTENSIONS__
2532 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2534 CC="$ac_save_CC $ac_arg"
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>conftest.er1
2539 grep -v '^ *+' conftest.er1 >conftest.err
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try='test -z "$ac_c_werror_flag"
2545 || test ! -s conftest.err'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 ac_cv_prog_cc_stdc=$ac_arg
2560 echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2564 rm -f conftest.err conftest.$ac_objext
2566 rm -f conftest.$ac_ext conftest.$ac_objext
2571 case "x$ac_cv_prog_cc_stdc" in
2573 echo "$as_me:$LINENO: result: none needed" >&5
2574 echo "${ECHO_T}none needed" >&6 ;;
2576 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2577 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2578 CC="$CC $ac_cv_prog_cc_stdc" ;;
2581 # Some people use a C++ compiler to compile C. Since we use `exit',
2582 # in C++ we need to declare it. In case someone uses the same compiler
2583 # for both compiling C and C++ we need to have the C++ compiler decide
2584 # the declaration of exit, since it's the most demanding environment.
2585 cat >conftest.$ac_ext <<_ACEOF
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>conftest.er1
2594 grep -v '^ *+' conftest.er1 >conftest.err
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_c_werror_flag"
2600 || test ! -s conftest.err'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2612 for ac_declaration in \
2614 'extern "C" void std::exit (int) throw (); using std::exit;' \
2615 'extern "C" void std::exit (int); using std::exit;' \
2616 'extern "C" void exit (int) throw ();' \
2617 'extern "C" void exit (int);' \
2620 cat >conftest.$ac_ext <<_ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2640 grep -v '^ *+' conftest.er1 >conftest.err
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_c_werror_flag"
2646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 cat >conftest.$ac_ext <<_ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>conftest.er1
2685 grep -v '^ *+' conftest.er1 >conftest.err
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -z "$ac_c_werror_flag"
2691 || test ! -s conftest.err'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; } &&
2697 { ac_try='test -s conftest.$ac_objext'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; }; then
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2712 if test -n "$ac_declaration"; then
2713 echo '#ifdef __cplusplus' >>confdefs.h
2714 echo $ac_declaration >>confdefs.h
2715 echo '#endif' >>confdefs.h
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 ac_cpp='$CPP $CPPFLAGS'
2726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 if test "x$CC" != xcc; then
2731 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2732 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2734 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2735 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2737 set dummy $CC; ac_cc=`echo $2 |
2738 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2739 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 cat >conftest.$ac_ext <<_ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2757 # Make sure it works both with $CC and with simple cc.
2758 # We do the test twice because some compilers refuse to overwrite an
2759 # existing .o file with -o, though they will create one.
2760 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2761 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); };
2772 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2773 if test "x$CC" != xcc; then
2774 # Test first that cc exists at all.
2775 if { ac_try='cc -c conftest.$ac_ext >&5'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2782 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); };
2796 # cc exists but doesn't like -o.
2797 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2802 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2807 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2808 echo "$as_me:$LINENO: result: yes" >&5
2809 echo "${ECHO_T}yes" >&6
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2814 cat >>confdefs.h <<\_ACEOF
2815 #define NO_MINUS_C_MINUS_O 1
2820 # autoconf is lame and doesn't give us any substitution variable for this.
2821 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2822 NO_MINUS_C_MINUS_O=yes
2824 OUTPUT_OPTION='-o $@'
2829 # -------------------------
2830 # Check C compiler features
2831 # -------------------------
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2839 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2840 # On Suns, sometimes $CPP names a directory.
2841 if test -n "$CPP" && test -d "$CPP"; then
2844 if test -z "$CPP"; then
2845 if test "${ac_cv_prog_CPP+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 # Double quotes because CPP needs to be expanded
2849 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2852 for ac_c_preproc_warn_flag in '' yes
2854 # Use a header file that comes with gcc, so configuring glibc
2855 # with a fresh cross-compiler works.
2856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2857 # <limits.h> exists even on freestanding compilers.
2858 # On the NeXT, cc -E runs the code through the compiler's parser,
2859 # not just through cpp. "Syntax error" is here to catch this case.
2860 cat >conftest.$ac_ext <<_ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2867 # include <limits.h>
2869 # include <assert.h>
2873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } >/dev/null; then
2881 if test -s conftest.err; then
2882 ac_cpp_err=$ac_c_preproc_warn_flag
2883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2890 if test -z "$ac_cpp_err"; then
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2896 # Broken: fails on valid input.
2899 rm -f conftest.err conftest.$ac_ext
2901 # OK, works on sane cases. Now check whether non-existent headers
2902 # can be detected and how.
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 #include <ac_nonexistent.h>
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914 grep -v '^ *+' conftest.er1 >conftest.err
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } >/dev/null; then
2919 if test -s conftest.err; then
2920 ac_cpp_err=$ac_c_preproc_warn_flag
2921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2928 if test -z "$ac_cpp_err"; then
2929 # Broken: success on invalid input.
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2935 # Passes both tests.
2939 rm -f conftest.err conftest.$ac_ext
2942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2943 rm -f conftest.err conftest.$ac_ext
2944 if $ac_preproc_ok; then
2956 echo "$as_me:$LINENO: result: $CPP" >&5
2957 echo "${ECHO_T}$CPP" >&6
2959 for ac_c_preproc_warn_flag in '' yes
2961 # Use a header file that comes with gcc, so configuring glibc
2962 # with a fresh cross-compiler works.
2963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2964 # <limits.h> exists even on freestanding compilers.
2965 # On the NeXT, cc -E runs the code through the compiler's parser,
2966 # not just through cpp. "Syntax error" is here to catch this case.
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2974 # include <limits.h>
2976 # include <assert.h>
2980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2983 grep -v '^ *+' conftest.er1 >conftest.err
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } >/dev/null; then
2988 if test -s conftest.err; then
2989 ac_cpp_err=$ac_c_preproc_warn_flag
2990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2997 if test -z "$ac_cpp_err"; then
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3003 # Broken: fails on valid input.
3006 rm -f conftest.err conftest.$ac_ext
3008 # OK, works on sane cases. Now check whether non-existent headers
3009 # can be detected and how.
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016 #include <ac_nonexistent.h>
3018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev/null; then
3026 if test -s conftest.err; then
3027 ac_cpp_err=$ac_c_preproc_warn_flag
3028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3035 if test -z "$ac_cpp_err"; then
3036 # Broken: success on invalid input.
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 # Passes both tests.
3046 rm -f conftest.err conftest.$ac_ext
3049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3050 rm -f conftest.err conftest.$ac_ext
3051 if $ac_preproc_ok; then
3054 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3055 See \`config.log' for more details." >&5
3056 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3057 See \`config.log' for more details." >&2;}
3058 { (exit 1); exit 1; }; }
3062 ac_cpp='$CPP $CPPFLAGS'
3063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3068 echo "$as_me:$LINENO: checking for inline" >&5
3069 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3070 if test "${ac_cv_c_inline+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 for ac_kw in inline __inline__ __inline; do
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3083 static $ac_kw foo_t static_foo () {return 0; }
3084 $ac_kw foo_t foo () {return 0; }
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_cv_c_inline=$ac_kw; break
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3120 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3121 echo "${ECHO_T}$ac_cv_c_inline" >&6
3124 case $ac_cv_c_inline in
3127 case $ac_cv_c_inline in
3129 *) ac_val=$ac_cv_c_inline;;
3131 cat >>confdefs.h <<_ACEOF
3133 #define inline $ac_val
3140 echo "$as_me:$LINENO: checking for long long int" >&5
3141 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3142 if test "${ac_cv_c_long_long+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 cat >conftest.$ac_ext <<_ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3160 rm -f conftest.$ac_objext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162 (eval $ac_compile) 2>conftest.er1
3164 grep -v '^ *+' conftest.er1 >conftest.err
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_c_werror_flag"
3170 || test ! -s conftest.err'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 ac_cv_c_long_long=yes
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_cv_c_long_long=no
3189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3191 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3192 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3193 if test $ac_cv_c_long_long = yes; then
3195 cat >>confdefs.h <<\_ACEOF
3196 #define HAVE_LONG_LONG 1
3200 echo "$as_me:$LINENO: checking for __int64" >&5
3201 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3202 if test "${ac_cv_c___int64+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 cat >conftest.$ac_ext <<_ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3220 rm -f conftest.$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -z "$ac_c_werror_flag"
3230 || test ! -s conftest.err'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; } &&
3236 { ac_try='test -s conftest.$ac_objext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3251 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3252 echo "${ECHO_T}$ac_cv_c___int64" >&6
3253 if test $ac_cv_c___int64 = yes; then
3255 cat >>confdefs.h <<\_ACEOF
3256 #define HAVE___INT64 1
3262 # sizeof(char) is 1 by definition.
3263 echo "$as_me:$LINENO: checking size of void *" >&5
3264 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3265 if test "${ac_cv_sizeof_void_p+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #include "confdefs.h"
3276 #include <sys/types.h>
3282 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3287 rm -f conftest.$ac_objext
3288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 (eval $ac_compile) 2>conftest.er1
3291 grep -v '^ *+' conftest.er1 >conftest.err
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -z "$ac_c_werror_flag"
3297 || test ! -s conftest.err'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; } &&
3303 { ac_try='test -s conftest.$ac_objext'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3309 ac_cv_sizeof_void_p=$ac_size
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3321 if test x$ac_cv_sizeof_void_p = x ; then
3322 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3323 echo "$as_me: error: cannot determine a size for void *" >&2;}
3324 { (exit 1); exit 1; }; }
3326 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3327 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3329 cat >>confdefs.h <<_ACEOF
3330 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3334 echo "$as_me:$LINENO: checking size of short" >&5
3335 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3336 if test "${ac_cv_sizeof_short+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3340 cat >conftest.$ac_ext <<_ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346 #include "confdefs.h"
3347 #include <sys/types.h>
3353 switch (0) case 0: case (sizeof (short) == $ac_size):;
3358 rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360 (eval $ac_compile) 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -z "$ac_c_werror_flag"
3368 || test ! -s conftest.err'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try='test -s conftest.$ac_objext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_sizeof_short=$ac_size
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387 if test x$ac_cv_sizeof_short != x ; then break; fi
3392 if test x$ac_cv_sizeof_short = x ; then
3393 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3394 echo "$as_me: error: cannot determine a size for short" >&2;}
3395 { (exit 1); exit 1; }; }
3397 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3398 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3400 cat >>confdefs.h <<_ACEOF
3401 #define SIZEOF_SHORT $ac_cv_sizeof_short
3405 echo "$as_me:$LINENO: checking size of int" >&5
3406 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3407 if test "${ac_cv_sizeof_int+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3411 cat >conftest.$ac_ext <<_ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3417 #include "confdefs.h"
3418 #include <sys/types.h>
3424 switch (0) case 0: case (sizeof (int) == $ac_size):;
3429 rm -f conftest.$ac_objext
3430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>conftest.er1
3433 grep -v '^ *+' conftest.er1 >conftest.err
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_sizeof_int=$ac_size
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3458 if test x$ac_cv_sizeof_int != x ; then break; fi
3463 if test x$ac_cv_sizeof_int = x ; then
3464 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3465 echo "$as_me: error: cannot determine a size for int" >&2;}
3466 { (exit 1); exit 1; }; }
3468 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3469 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3471 cat >>confdefs.h <<_ACEOF
3472 #define SIZEOF_INT $ac_cv_sizeof_int
3476 echo "$as_me:$LINENO: checking size of long" >&5
3477 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3478 if test "${ac_cv_sizeof_long+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3495 switch (0) case 0: case (sizeof (long) == $ac_size):;
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_c_werror_flag"
3510 || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 ac_cv_sizeof_long=$ac_size
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 if test x$ac_cv_sizeof_long != x ; then break; fi
3534 if test x$ac_cv_sizeof_long = x ; then
3535 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3536 echo "$as_me: error: cannot determine a size for long" >&2;}
3537 { (exit 1); exit 1; }; }
3539 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3540 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3542 cat >>confdefs.h <<_ACEOF
3543 #define SIZEOF_LONG $ac_cv_sizeof_long
3547 if test $ac_cv_c_long_long = yes; then
3548 echo "$as_me:$LINENO: checking size of long long" >&5
3549 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3550 if test "${ac_cv_sizeof_long_long+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #include "confdefs.h"
3561 #include <sys/types.h>
3567 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>conftest.er1
3576 grep -v '^ *+' conftest.er1 >conftest.err
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try='test -z "$ac_c_werror_flag"
3582 || 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"
3655 || test ! -s conftest.err'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try='test -s conftest.$ac_objext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 ac_cv_sizeof___int64=$ac_size
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3674 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3679 if test x$ac_cv_sizeof___int64 = x ; then
3680 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3681 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3682 { (exit 1); exit 1; }; }
3684 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3685 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3687 cat >>confdefs.h <<_ACEOF
3688 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3694 # ---------------------
3695 # Warnings and checking
3696 # ---------------------
3698 # Check $CC warning features (if it's GCC).
3699 # We want to use -pedantic, but we don't want warnings about
3702 # So, we only use -pedantic if we can disable those warnings.
3704 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3705 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3706 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 save_CFLAGS="$CFLAGS"
3710 CFLAGS="-Wno-long-long"
3711 cat >conftest.$ac_ext <<_ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3719 rm -f conftest.$ac_objext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3721 (eval $ac_compile) 2>conftest.er1
3723 grep -v '^ *+' conftest.er1 >conftest.err
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -z "$ac_c_werror_flag"
3729 || test ! -s conftest.err'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; } &&
3735 { ac_try='test -s conftest.$ac_objext'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3741 ac_cv_prog_cc_w_no_long_long=yes
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 ac_cv_prog_cc_w_no_long_long=no
3748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749 CFLAGS="$save_CFLAGS"
3752 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3753 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3755 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3756 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3757 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 save_CFLAGS="$CFLAGS"
3761 CFLAGS="-Wno-variadic-macros"
3762 cat >conftest.$ac_ext <<_ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3770 rm -f conftest.$ac_objext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>conftest.er1
3774 grep -v '^ *+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try='test -z "$ac_c_werror_flag"
3780 || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try='test -s conftest.$ac_objext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_cv_prog_cc_w_no_variadic_macros=yes
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 ac_cv_prog_cc_w_no_variadic_macros=no
3799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3800 CFLAGS="$save_CFLAGS"
3803 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3804 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3807 if test $ac_cv_prog_cc_w_no_long_long = yes \
3808 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3809 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3813 # Add -Wold-style-definition if it's accepted
3814 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3815 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3816 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 save_CFLAGS="$CFLAGS"
3820 CFLAGS="-Wold-style-definition"
3821 cat >conftest.$ac_ext <<_ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3833 grep -v '^ *+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_cv_prog_cc_w_old_style_definition=yes
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 ac_cv_prog_cc_w_old_style_definition=no
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 CFLAGS="$save_CFLAGS"
3862 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3863 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3864 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3865 strict1_warn="${strict1_warn} -Wold-style-definition"
3868 # Enable -Werror, period.
3869 # Check whether --enable-werror_always or --disable-werror_always was given.
3870 if test "${enable_werror_always+set}" = set; then
3871 enableval="$enable_werror_always"
3874 enable_werror_always=no
3876 if test x${enable_werror_always} = xyes ; then
3877 strict1_warn="${strict1_warn} -Werror"
3881 # If the native compiler is GCC, we can enable warnings even in stage1.
3882 # That's useful for people building cross-compilers, or just running a
3885 if test "x$GCC" = "xyes"; then
3886 warn_cflags='$(GCC_WARN_CFLAGS)'
3890 # Enable -Werror in bootstrap stage2 and later.
3891 # Change the default to "no" on release branches.
3892 # Check whether --enable-werror or --disable-werror was given.
3893 if test "${enable_werror+set}" = set; then
3894 enableval="$enable_werror"
3899 if test x$enable_werror = xyes ; then
3904 # Enable expensive internal checks
3905 # Check whether --enable-checking or --disable-checking was given.
3906 if test "${enable_checking+set}" = set; then
3907 enableval="$enable_checking"
3911 ac_rtlflag_checking=
3913 ac_gc_always_collect=
3915 case "${enableval}" in
3916 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3917 ac_rtlflag_checking=1 ;;
3919 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3920 set fnord $enableval; shift
3925 misc) ac_checking=1 ;;
3926 tree) ac_tree_checking=1 ;;
3927 rtlflag) ac_rtlflag_checking=1 ;;
3928 rtl) ac_rtl_checking=1 ;;
3929 gc) ac_gc_checking=1 ;;
3930 gcac) ac_gc_always_collect=1 ;;
3931 fold) ac_fold_checking=1 ;;
3932 valgrind) ac_checking_valgrind=1 ;;
3933 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3934 echo "$as_me: error: unknown check category $check" >&2;}
3935 { (exit 1); exit 1; }; } ;;
3942 # Enable some checks by default for development versions of GCC
3943 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3946 if test x$ac_checking != x ; then
3948 cat >>confdefs.h <<\_ACEOF
3949 #define ENABLE_CHECKING 1
3952 nocommon_flag=-fno-common
3955 if test x$ac_tree_checking != x ; then
3957 cat >>confdefs.h <<\_ACEOF
3958 #define ENABLE_TREE_CHECKING 1
3961 TREEBROWSER=tree-browser.o
3964 if test x$ac_rtl_checking != x ; then
3966 cat >>confdefs.h <<\_ACEOF
3967 #define ENABLE_RTL_CHECKING 1
3971 if test x$ac_rtlflag_checking != x ; then
3973 cat >>confdefs.h <<\_ACEOF
3974 #define ENABLE_RTL_FLAG_CHECKING 1
3978 if test x$ac_gc_checking != x ; then
3980 cat >>confdefs.h <<\_ACEOF
3981 #define ENABLE_GC_CHECKING 1
3985 if test x$ac_gc_always_collect != x ; then
3987 cat >>confdefs.h <<\_ACEOF
3988 #define ENABLE_GC_ALWAYS_COLLECT 1
3992 if test x$ac_fold_checking != x ; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define ENABLE_FOLD_CHECKING 1
3999 valgrind_path_defines=
4003 echo "$as_me:$LINENO: checking for egrep" >&5
4004 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4005 if test "${ac_cv_prog_egrep+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4009 then ac_cv_prog_egrep='grep -E'
4010 else ac_cv_prog_egrep='egrep'
4013 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4014 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4015 EGREP=$ac_cv_prog_egrep
4018 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4019 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4020 if test "${ac_cv_header_stdc+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 cat >conftest.$ac_ext <<_ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4042 rm -f conftest.$ac_objext
4043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4044 (eval $ac_compile) 2>conftest.er1
4046 grep -v '^ *+' conftest.er1 >conftest.err
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } &&
4051 { ac_try='test -z "$ac_c_werror_flag"
4052 || test ! -s conftest.err'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4064 ac_cv_header_stdc=yes
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 ac_cv_header_stdc=no
4071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 if test $ac_cv_header_stdc = yes; then
4074 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4085 $EGREP "memchr" >/dev/null 2>&1; then
4088 ac_cv_header_stdc=no
4094 if test $ac_cv_header_stdc = yes; then
4095 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4106 $EGREP "free" >/dev/null 2>&1; then
4109 ac_cv_header_stdc=no
4115 if test $ac_cv_header_stdc = yes; then
4116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4117 if test "$cross_compiling" = yes; then
4120 cat >conftest.$ac_ext <<_ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4127 #if ((' ' & 0x0FF) == 0x020)
4128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131 # define ISLOWER(c) \
4132 (('a' <= (c) && (c) <= 'i') \
4133 || ('j' <= (c) && (c) <= 'r') \
4134 || ('s' <= (c) && (c) <= 'z'))
4135 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4143 for (i = 0; i < 256; i++)
4144 if (XOR (islower (i), ISLOWER (i))
4145 || toupper (i) != TOUPPER (i))
4150 rm -f conftest$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4163 echo "$as_me: program exited with status $ac_status" >&5
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4168 ac_cv_header_stdc=no
4170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4174 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4175 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4176 if test $ac_cv_header_stdc = yes; then
4178 cat >>confdefs.h <<\_ACEOF
4179 #define STDC_HEADERS 1
4184 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4194 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4195 inttypes.h stdint.h unistd.h
4197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198 echo "$as_me:$LINENO: checking for $ac_header" >&5
4199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 cat >conftest.$ac_ext <<_ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 $ac_includes_default
4211 #include <$ac_header>
4213 rm -f conftest.$ac_objext
4214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4215 (eval $ac_compile) 2>conftest.er1
4217 grep -v '^ *+' conftest.er1 >conftest.err
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -z "$ac_c_werror_flag"
4223 || test ! -s conftest.err'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 eval "$as_ac_Header=yes"
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 eval "$as_ac_Header=no"
4242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4247 cat >>confdefs.h <<_ACEOF
4248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4256 if test "${ac_cv_header_valgrind_h+set}" = set; then
4257 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4258 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4259 if test "${ac_cv_header_valgrind_h+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4263 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4265 # Is the header compilable?
4266 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4267 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4268 cat >conftest.$ac_ext <<_ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 $ac_includes_default
4275 #include <valgrind.h>
4277 rm -f conftest.$ac_objext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag"
4287 || test ! -s conftest.err'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest.$ac_objext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 ac_header_compiler=yes
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 ac_header_compiler=no
4306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4308 echo "${ECHO_T}$ac_header_compiler" >&6
4310 # Is the header present?
4311 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4312 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4313 cat >conftest.$ac_ext <<_ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #include <valgrind.h>
4321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4324 grep -v '^ *+' conftest.er1 >conftest.err
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } >/dev/null; then
4329 if test -s conftest.err; then
4330 ac_cpp_err=$ac_c_preproc_warn_flag
4331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4338 if test -z "$ac_cpp_err"; then
4339 ac_header_preproc=yes
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_header_preproc=no
4346 rm -f conftest.err conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4348 echo "${ECHO_T}$ac_header_preproc" >&6
4350 # So? What about this header?
4351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4353 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4354 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4355 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4356 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4357 ac_header_preproc=yes
4360 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4361 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4362 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4363 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4364 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4365 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4366 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4367 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4368 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4369 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4370 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4371 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4374 ## ------------------------------------------ ##
4375 ## Report this to the AC_PACKAGE_NAME lists. ##
4376 ## ------------------------------------------ ##
4379 sed "s/^/$as_me: WARNING: /" >&2
4382 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4383 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4384 if test "${ac_cv_header_valgrind_h+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 ac_cv_header_valgrind_h=$ac_header_preproc
4389 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4390 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4393 if test $ac_cv_header_valgrind_h = yes; then
4401 if test x$ac_checking_valgrind != x ; then
4402 # It is certainly possible that there's valgrind but no valgrind.h.
4403 # GCC relies on making annotations so we must have both.
4404 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4405 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4406 cat >conftest.$ac_ext <<_ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <valgrind/memcheck.h>
4413 #ifndef VALGRIND_DISCARD
4414 #error VALGRIND_DISCARD not defined
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420 grep -v '^ *+' conftest.er1 >conftest.err
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } >/dev/null; then
4425 if test -s conftest.err; then
4426 ac_cpp_err=$ac_c_preproc_warn_flag
4427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4434 if test -z "$ac_cpp_err"; then
4435 gcc_cv_header_valgrind_memcheck_h=yes
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 gcc_cv_header_valgrind_memcheck_h=no
4442 rm -f conftest.err conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4444 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4445 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4446 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <memcheck.h>
4454 #ifndef VALGRIND_DISCARD
4455 #error VALGRIND_DISCARD not defined
4458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null; then
4466 if test -s conftest.err; then
4467 ac_cpp_err=$ac_c_preproc_warn_flag
4468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4475 if test -z "$ac_cpp_err"; then
4476 gcc_cv_header_memcheck_h=yes
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 gcc_cv_header_memcheck_h=no
4483 rm -f conftest.err conftest.$ac_ext
4484 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4485 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4487 # Prepare PATH_SEPARATOR.
4488 # The user is always right.
4489 if test "${PATH_SEPARATOR+set}" != set; then
4490 echo "#! /bin/sh" >conf$$.sh
4491 echo "exit 0" >>conf$$.sh
4493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4501 # Find out how to test for executable files. Don't use a zero-byte file,
4502 # as systems may use methods other than mode bits to determine executability.
4503 cat >conf$$.file <<_ASEOF
4507 chmod +x conf$$.file
4508 if test -x conf$$.file >/dev/null 2>&1; then
4509 ac_executable_p="test -x"
4511 ac_executable_p="test -f"
4515 # Extract the first word of "valgrind", so it can be a program name with args.
4516 set dummy valgrind; ac_word=$2
4517 echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519 if test "${ac_cv_path_valgrind_path+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 case "$valgrind_path" in
4524 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4527 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4528 for ac_dir in $PATH; do
4530 test -z "$ac_dir" && ac_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4533 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4534 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4544 valgrind_path="$ac_cv_path_valgrind_path"
4545 if test -n "$valgrind_path"; then
4546 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4547 echo "${ECHO_T}$valgrind_path" >&6
4549 echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4553 if test "x$valgrind_path" = "x" \
4554 || (test $have_valgrind_h = no \
4555 && test $gcc_cv_header_memcheck_h = no \
4556 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4557 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4558 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4559 { (exit 1); exit 1; }; }
4561 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4562 valgrind_command="$valgrind_path -q"
4564 cat >>confdefs.h <<\_ACEOF
4565 #define ENABLE_VALGRIND_CHECKING 1
4568 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4570 cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_VALGRIND_MEMCHECK_H 1
4575 if test $gcc_cv_header_memcheck_h = yes; then
4577 cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_MEMCHECK_H 1
4586 # Enable code coverage collection
4587 # Check whether --enable-coverage or --disable-coverage was given.
4588 if test "${enable_coverage+set}" = set; then
4589 enableval="$enable_coverage"
4590 case "${enableval}" in
4592 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4595 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4598 # a.k.a. --disable-coverage
4602 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4603 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4604 { (exit 1); exit 1; }; }
4612 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4613 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4614 enableval="$enable_gather_detailed_mem_stats"
4617 enable_gather_detailed_mem_stats=no
4619 if test x$enable_gather_detailed_mem_stats = xyes ; then
4621 cat >>confdefs.h <<\_ACEOF
4622 #define GATHER_STATISTICS 1
4627 # -------------------------------
4628 # Miscenalleous configure options
4629 # -------------------------------
4633 # Check whether --with-stabs or --without-stabs was given.
4634 if test "${with_stabs+set}" = set; then
4635 withval="$with_stabs"
4641 # Determine whether or not multilibs are enabled.
4642 # Check whether --enable-multilib or --disable-multilib was given.
4643 if test "${enable_multilib+set}" = set; then
4644 enableval="$enable_multilib"
4651 # Enable __cxa_atexit for C++.
4652 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4653 if test "${enable___cxa_atexit+set}" = set; then
4654 enableval="$enable___cxa_atexit"
4659 # Pass with no value to take the default
4660 # Pass with a value to specify a thread package
4661 # Check whether --enable-threads or --disable-threads was given.
4662 if test "${enable_threads+set}" = set; then
4663 enableval="$enable_threads"
4669 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4670 if test "${enable_objc_gc+set}" = set; then
4671 enableval="$enable_objc_gc"
4672 if test x$enable_objc_gc = xno; then
4682 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4683 if test "${with_dwarf2+set}" = set; then
4684 withval="$with_dwarf2"
4685 dwarf2="$with_dwarf2"
4690 # Check whether --enable-shared or --disable-shared was given.
4691 if test "${enable_shared+set}" = set; then
4692 enableval="$enable_shared"
4694 case $enable_shared in
4698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4699 for pkg in $enableval; do
4700 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4714 # Check whether --with-sysroot or --without-sysroot was given.
4715 if test "${with_sysroot+set}" = set; then
4716 withval="$with_sysroot"
4718 case ${with_sysroot} in
4719 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4720 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4723 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4724 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4726 if test "x$exec_prefix" = xNONE; then
4727 if test "x$prefix" = xNONE; then
4728 test_prefix=/usr/local
4733 test_prefix=$exec_prefix
4735 case ${TARGET_SYSTEM_ROOT} in
4736 "${test_prefix}"|"${test_prefix}/"*|\
4737 '${exec_prefix}'|'${exec_prefix}/'*)
4738 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4739 TARGET_SYSTEM_ROOT_DEFINE="$t"
4746 TARGET_SYSTEM_ROOT_DEFINE=
4747 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4754 # Build with intermodule optimisations
4755 # Check whether --enable-intermodule or --disable-intermodule was given.
4756 if test "${enable_intermodule+set}" = set; then
4757 enableval="$enable_intermodule"
4758 case ${enable_intermodule} in
4759 yes) onestep="-onestep";;
4767 # Sanity check enable_languages in case someone does not run the toplevel
4768 # configure # script.
4769 # Check whether --enable-languages or --disable-languages was given.
4770 if test "${enable_languages+set}" = set; then
4771 enableval="$enable_languages"
4772 case ,${enable_languages}, in
4774 # go safe -- we cannot be much sure without the toplevel
4776 # analysis of which target libs are present and usable
4780 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4781 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4782 { (exit 1); exit 1; }; }
4787 enable_languages=c,${enable_languages}
4795 for lang in ${srcdir}/*/config-lang.in
4798 # The odd quoting in the next line works around
4799 # an apparent bug in bash 1.12 on linux.
4800 ${srcdir}/[*]/config-lang.in) ;;
4802 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4803 if test "x$lang_alias" = x
4805 echo "$lang doesn't set \$language." 1>&2
4808 case ",$enable_languages," in
4810 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4817 # -------------------------
4818 # Checks for other programs
4819 # -------------------------
4821 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4822 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4823 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4824 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 cat >conftest.make <<\_ACEOF
4829 @echo 'ac_maketemp="$(MAKE)"'
4831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4832 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4833 if test -n "$ac_maketemp"; then
4834 eval ac_cv_prog_make_${ac_make}_set=yes
4836 eval ac_cv_prog_make_${ac_make}_set=no
4840 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4841 echo "$as_me:$LINENO: result: yes" >&5
4842 echo "${ECHO_T}yes" >&6
4845 echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4847 SET_MAKE="MAKE=${MAKE-make}"
4851 # Find some useful tools
4852 for ac_prog in gawk mawk nawk awk
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858 if test "${ac_cv_prog_AWK+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test -n "$AWK"; then
4862 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_AWK="$ac_prog"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 if test -n "$AWK"; then
4882 echo "$as_me:$LINENO: result: $AWK" >&5
4883 echo "${ECHO_T}$AWK" >&6
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 test -n "$AWK" && break
4892 # We need awk to run opts.sh (to create options.c and options.h).
4893 # Bail out if it's missing.
4895 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4896 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4900 echo "$as_me:$LINENO: checking whether ln works" >&5
4901 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4902 if test "${gcc_cv_prog_LN+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 rm -f conftestdata_t
4906 echo >conftestdata_f
4907 if ln conftestdata_f conftestdata_t 2>/dev/null
4911 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4913 gcc_cv_prog_LN="ln -s"
4918 rm -f conftestdata_f conftestdata_t
4921 LN="$gcc_cv_prog_LN"
4922 if test "$gcc_cv_prog_LN" = "ln"; then
4923 echo "$as_me:$LINENO: result: yes" >&5
4924 echo "${ECHO_T}yes" >&6
4926 if test "$gcc_cv_prog_LN" = "ln -s"; then
4927 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4928 echo "${ECHO_T}no, using ln -s" >&6
4930 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4931 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4935 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4936 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4937 if test "${gcc_cv_prog_LN_S+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 rm -f conftestdata_t
4941 echo >conftestdata_f
4942 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4944 gcc_cv_prog_LN_S="ln -s"
4946 if ln conftestdata_f conftestdata_t 2>/dev/null
4953 rm -f conftestdata_f conftestdata_t
4956 LN_S="$gcc_cv_prog_LN_S"
4957 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4958 echo "$as_me:$LINENO: result: yes" >&5
4959 echo "${ECHO_T}yes" >&6
4961 if test "$gcc_cv_prog_LN_S" = "ln"; then
4962 echo "$as_me:$LINENO: result: no, using ln" >&5
4963 echo "${ECHO_T}no, using ln" >&6
4965 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4966 echo "${ECHO_T}no, and neither does ln, so using cp" >&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"
5050 # Find a good install program. We prefer a C program (faster),
5051 # so one script is as good as another. But avoid the broken or
5052 # incompatible versions:
5053 # SysV /etc/install, /usr/sbin/install
5054 # SunOS /usr/etc/install
5055 # IRIX /sbin/install
5057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5059 # ./install, which can be erroneously created by make from ./install.sh.
5060 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5061 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5062 if test -z "$INSTALL"; then
5063 if test "${ac_cv_path_install+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5067 for ac_dir in $PATH; do
5068 # Account for people who put trailing slashes in PATH elements.
5070 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5072 # OSF1 and SCO ODT 3.0 have their own names for install.
5073 for ac_prog in ginstall scoinst install; do
5074 if test -f $ac_dir/$ac_prog; then
5075 if test $ac_prog = install &&
5076 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5077 # AIX install. It has an incompatible calling convention.
5078 # OSF/1 installbsd also uses dspmsg, but is usable.
5081 ac_cv_path_install="$ac_dir/$ac_prog -c"
5092 if test "${ac_cv_path_install+set}" = set; then
5093 INSTALL="$ac_cv_path_install"
5095 # As a last resort, use the slow shell script. We don't cache a
5096 # path for INSTALL within a source directory, because that will
5097 # break other packages using the cache if that directory is
5098 # removed, or if the path is relative.
5099 INSTALL="$ac_install_sh"
5102 echo "$as_me:$LINENO: result: $INSTALL" >&5
5103 echo "${ECHO_T}$INSTALL" >&6
5105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5106 # It thinks the first close brace ends the variable substitution.
5107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5109 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5112 # See if cmp has --ignore-initial.
5113 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5114 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5115 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 gcc_cv_prog_cmp_skip=slowcompare
5121 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5122 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5125 gcc_cv_prog_cmp_skip=gnucompare
5128 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5129 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5130 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5133 gcc_cv_prog_cmp_skip=fastcompare
5140 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5141 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5142 make_compare_target=$gcc_cv_prog_cmp_skip
5146 # See if we have the mktemp command.
5147 # Extract the first word of "mktemp", so it can be a program name with args.
5148 set dummy mktemp; ac_word=$2
5149 echo "$as_me:$LINENO: checking for $ac_word" >&5
5150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5151 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 if test -n "$have_mktemp_command"; then
5155 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_have_mktemp_command="yes"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5174 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5175 if test -n "$have_mktemp_command"; then
5176 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5177 echo "${ECHO_T}$have_mktemp_command" >&6
5179 echo "$as_me:$LINENO: result: no" >&5
5180 echo "${ECHO_T}no" >&6
5184 # Do we have a single-tree copy of texinfo?
5185 if test -f $srcdir/../texinfo/Makefile.in; then
5186 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5187 gcc_cv_prog_makeinfo_modern=yes
5188 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5189 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5191 # See if makeinfo has been installed and is modern enough
5192 # that we can use it.
5193 # Extract the first word of "makeinfo", so it can be a program name with args.
5194 set dummy makeinfo; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 if test -n "$MAKEINFO"; then
5201 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_MAKEINFO="makeinfo"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 MAKEINFO=$ac_cv_prog_MAKEINFO
5220 if test -n "$MAKEINFO"; then
5221 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5222 echo "${ECHO_T}$MAKEINFO" >&6
5224 echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5228 if test -n "$MAKEINFO"; then
5229 # Found it, now check the version.
5230 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5231 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5232 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 ac_prog_version=`$MAKEINFO --version 2>&1 |
5236 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5237 echo "configure:5237: version of makeinfo is $ac_prog_version" >&5
5238 case $ac_prog_version in
5239 '') gcc_cv_prog_makeinfo_modern=no;;
5241 gcc_cv_prog_makeinfo_modern=yes;;
5242 *) gcc_cv_prog_makeinfo_modern=no;;
5246 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5247 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5249 gcc_cv_prog_makeinfo_modern=no
5254 if test $gcc_cv_prog_makeinfo_modern = no; then
5255 { echo "$as_me:$LINENO: WARNING:
5256 *** Makeinfo is missing or too old.
5257 *** Info documentation will not be built." >&5
5258 echo "$as_me: WARNING:
5259 *** Makeinfo is missing or too old.
5260 *** Info documentation will not be built." >&2;}
5266 # Is pod2man recent enough to regenerate manpages?
5267 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5268 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5269 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5270 echo "$as_me:$LINENO: result: yes" >&5
5271 echo "${ECHO_T}yes" >&6
5272 GENERATED_MANPAGES=generated-manpages
5274 echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5280 if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
5281 FLEX='$(objdir)/../flex/flex'
5283 # Extract the first word of "flex", so it can be a program name with args.
5284 set dummy flex; ac_word=$2
5285 echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287 if test "${ac_cv_prog_FLEX+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 if test -n "$FLEX"; then
5291 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_FLEX="flex"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5310 FLEX=$ac_cv_prog_FLEX
5311 if test -n "$FLEX"; then
5312 echo "$as_me:$LINENO: result: $FLEX" >&5
5313 echo "${ECHO_T}$FLEX" >&6
5315 echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5322 # The -L switch is so bison can find its skeleton file.
5323 if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
5324 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5326 # Extract the first word of "bison", so it can be a program name with args.
5327 set dummy bison; ac_word=$2
5328 echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330 if test "${ac_cv_prog_BISON+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 if test -n "$BISON"; then
5334 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_BISON="bison"
5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5353 BISON=$ac_cv_prog_BISON
5354 if test -n "$BISON"; then
5355 echo "$as_me:$LINENO: result: $BISON" >&5
5356 echo "${ECHO_T}$BISON" >&6
5358 echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5364 # --------------------
5365 # Checks for C headers
5366 # --------------------
5368 echo "$as_me:$LINENO: checking for GNU C library" >&5
5369 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5370 if test "${gcc_cv_glibc+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <features.h>
5384 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5385 #error Not a GNU C library system
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag"
5401 || test ! -s conftest.err'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5423 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5424 echo "${ECHO_T}$gcc_cv_glibc" >&6
5425 if test $gcc_cv_glibc = yes; then
5427 cat >>confdefs.h <<\_ACEOF
5428 #define _GNU_SOURCE 1
5433 # Need to reject headers which give warnings, so that the -Werror bootstrap
5434 # works later. *sigh* This needs to come before all header checks.
5436 ac_c_preproc_warn_flag=yes
5438 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5439 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5440 if test "${ac_cv_header_stdc+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>conftest.er1
5466 grep -v '^ *+' conftest.er1 >conftest.err
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -z "$ac_c_werror_flag"
5472 || test ! -s conftest.err'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; } &&
5478 { ac_try='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 ac_cv_header_stdc=yes
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 ac_cv_header_stdc=no
5491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5493 if test $ac_cv_header_stdc = yes; then
5494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5505 $EGREP "memchr" >/dev/null 2>&1; then
5508 ac_cv_header_stdc=no
5514 if test $ac_cv_header_stdc = yes; then
5515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526 $EGREP "free" >/dev/null 2>&1; then
5529 ac_cv_header_stdc=no
5535 if test $ac_cv_header_stdc = yes; then
5536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5537 if test "$cross_compiling" = yes; then
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5547 #if ((' ' & 0x0FF) == 0x020)
5548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5551 # define ISLOWER(c) \
5552 (('a' <= (c) && (c) <= 'i') \
5553 || ('j' <= (c) && (c) <= 'r') \
5554 || ('s' <= (c) && (c) <= 'z'))
5555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5563 for (i = 0; i < 256; i++)
5564 if (XOR (islower (i), ISLOWER (i))
5565 || toupper (i) != TOUPPER (i))
5570 rm -f conftest$ac_exeext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5572 (eval $ac_link) 2>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5583 echo "$as_me: program exited with status $ac_status" >&5
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5588 ac_cv_header_stdc=no
5590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5594 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5595 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5596 if test $ac_cv_header_stdc = yes; then
5598 cat >>confdefs.h <<\_ACEOF
5599 #define STDC_HEADERS 1
5604 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5605 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5606 if test "${ac_cv_header_time+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 cat >conftest.$ac_ext <<_ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 #include <sys/types.h>
5616 #include <sys/time.h>
5622 if ((struct tm *) 0)
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 (eval $ac_compile) 2>conftest.er1
5632 grep -v '^ *+' conftest.er1 >conftest.err
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -z "$ac_c_werror_flag"
5638 || test ! -s conftest.err'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; } &&
5644 { ac_try='test -s conftest.$ac_objext'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
5650 ac_cv_header_time=yes
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 ac_cv_header_time=no
5657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5659 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5660 echo "${ECHO_T}$ac_cv_header_time" >&6
5661 if test $ac_cv_header_time = yes; then
5663 cat >>confdefs.h <<\_ACEOF
5664 #define TIME_WITH_SYS_TIME 1
5669 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5670 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5671 if test "${ac_cv_header_stdbool_h+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 #include <stdbool.h>
5689 rm -f conftest.$ac_objext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>conftest.er1
5693 grep -v '^ *+' conftest.er1 >conftest.err
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -z "$ac_c_werror_flag"
5699 || test ! -s conftest.err'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; } &&
5705 { ac_try='test -s conftest.$ac_objext'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5711 ac_cv_header_stdbool_h=yes
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5716 ac_cv_header_stdbool_h=no
5718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5720 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5721 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5722 if test $ac_cv_header_stdbool_h = yes; then
5724 cat >>confdefs.h <<\_ACEOF
5725 #define HAVE_STDBOOL_H 1
5729 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
5730 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
5731 if test "${gcc_cv_c__bool+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>conftest.er1
5753 grep -v '^ *+' conftest.er1 >conftest.err
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -z "$ac_c_werror_flag"
5759 || test ! -s conftest.err'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
5782 echo "${ECHO_T}$gcc_cv_c__bool" >&6
5783 if test $gcc_cv_c__bool = yes; then
5785 cat >>confdefs.h <<\_ACEOF
5786 #define HAVE__BOOL 1
5791 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5792 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5793 if test "${gcc_cv_header_string+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 cat >conftest.$ac_ext <<_ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5803 #include <strings.h>
5812 rm -f conftest.$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>conftest.er1
5816 grep -v '^ *+' conftest.er1 >conftest.err
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag"
5822 || test ! -s conftest.err'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try='test -s conftest.$ac_objext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 gcc_cv_header_string=yes
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5839 gcc_cv_header_string=no
5841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5844 echo "${ECHO_T}$gcc_cv_header_string" >&6
5845 if test $gcc_cv_header_string = yes; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define STRING_WITH_STRINGS 1
5853 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5854 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5855 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 cat >conftest.$ac_ext <<_ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <sys/types.h>
5865 #include <sys/wait.h>
5867 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5870 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5878 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5883 rm -f conftest.$ac_objext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5885 (eval $ac_compile) 2>conftest.er1
5887 grep -v '^ *+' conftest.er1 >conftest.err
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -z "$ac_c_werror_flag"
5893 || test ! -s conftest.err'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; } &&
5899 { ac_try='test -s conftest.$ac_objext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 ac_cv_header_sys_wait_h=yes
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 ac_cv_header_sys_wait_h=no
5912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5914 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5915 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5916 if test $ac_cv_header_sys_wait_h = yes; then
5918 cat >>confdefs.h <<\_ACEOF
5919 #define HAVE_SYS_WAIT_H 1
5945 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5946 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5947 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5948 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5951 echo "$as_me:$LINENO: checking for $ac_header" >&5
5952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 cat >conftest.$ac_ext <<_ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <$ac_header>
5964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5967 grep -v '^ *+' conftest.er1 >conftest.err
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } >/dev/null; then
5972 if test -s conftest.err; then
5973 ac_cpp_err=$ac_c_preproc_warn_flag
5974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5981 if test -z "$ac_cpp_err"; then
5982 eval "$as_ac_Header=yes"
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987 eval "$as_ac_Header=no"
5989 rm -f conftest.err conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5994 cat >>confdefs.h <<_ACEOF
5995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6002 # Check for thread headers.
6003 echo "$as_me:$LINENO: checking for thread.h" >&5
6004 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6005 if test "${ac_cv_header_thread_h+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6019 grep -v '^ *+' conftest.er1 >conftest.err
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } >/dev/null; then
6024 if test -s conftest.err; then
6025 ac_cpp_err=$ac_c_preproc_warn_flag
6026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6033 if test -z "$ac_cpp_err"; then
6034 ac_cv_header_thread_h=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_cv_header_thread_h=no
6041 rm -f conftest.err conftest.$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6044 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6045 if test $ac_cv_header_thread_h = yes; then
6051 echo "$as_me:$LINENO: checking for pthread.h" >&5
6052 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6053 if test "${ac_cv_header_pthread_h+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <pthread.h>
6064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6067 grep -v '^ *+' conftest.er1 >conftest.err
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } >/dev/null; then
6072 if test -s conftest.err; then
6073 ac_cpp_err=$ac_c_preproc_warn_flag
6074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6081 if test -z "$ac_cpp_err"; then
6082 ac_cv_header_pthread_h=yes
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 ac_cv_header_pthread_h=no
6089 rm -f conftest.err conftest.$ac_ext
6091 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6092 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6093 if test $ac_cv_header_pthread_h = yes; then
6100 # These tests can't be done till we know if we have limits.h.
6101 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6102 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6103 if test "${gcc_cv_decl_char_bit+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 #ifdef HAVE_LIMITS_H
6119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6120 $EGREP "found" >/dev/null 2>&1; then
6121 gcc_cv_decl_char_bit=yes
6123 gcc_cv_decl_char_bit=no
6129 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6130 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6131 if test $gcc_cv_decl_char_bit = no; then
6132 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6133 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6134 if test "${gcc_cv_c_nbby+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 while test $i -lt 65; do
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6151 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6152 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6158 rm -f conftest.$ac_objext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>conftest.er1
6162 grep -v '^ *+' conftest.er1 >conftest.err
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_c_werror_flag"
6168 || test ! -s conftest.err'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; } &&
6174 { ac_try='test -s conftest.$ac_objext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 gcc_cv_c_nbby=$i; break
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6189 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6192 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6193 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6194 if test $gcc_cv_c_nbby = failed; then
6195 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6196 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6197 { (exit 1); exit 1; }; }
6200 cat >>confdefs.h <<_ACEOF
6201 #define CHAR_BIT $gcc_cv_c_nbby
6206 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6207 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6208 if test "${ac_cv_c_bigendian+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 ac_cv_c_bigendian=unknown
6212 # See if sys/param.h defines the BYTE_ORDER macro.
6213 cat >conftest.$ac_ext <<_ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 #include <sys/types.h>
6220 #include <sys/param.h>
6225 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6232 rm -f conftest.$ac_objext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234 (eval $ac_compile) 2>conftest.er1
6236 grep -v '^ *+' conftest.er1 >conftest.err
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -z "$ac_c_werror_flag"
6242 || test ! -s conftest.err'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 # It does; now see whether it defined to BIG_ENDIAN or not.
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 #include <sys/types.h>
6262 #include <sys/param.h>
6267 #if BYTE_ORDER != BIG_ENDIAN
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>conftest.er1
6278 grep -v '^ *+' conftest.er1 >conftest.err
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -z "$ac_c_werror_flag"
6284 || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_c_bigendian=yes
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 ac_cv_c_bigendian=no
6303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310 if test $ac_cv_c_bigendian = unknown; then
6311 if test "$cross_compiling" = yes; then
6312 echo $ac_n "cross-compiling... " 2>&6
6314 cat >conftest.$ac_ext <<_ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6321 /* Are we little or big endian? From Harbison&Steele. */
6325 char c[sizeof (long)];
6328 exit (u.c[sizeof (long) - 1] == 1);
6331 rm -f conftest$ac_exeext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333 (eval $ac_link) 2>&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 ac_cv_c_bigendian=no
6344 echo "$as_me: program exited with status $ac_status" >&5
6345 echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_cv_c_bigendian=yes
6351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6355 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6356 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6357 if test $ac_cv_c_bigendian = unknown; then
6358 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6359 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6361 cat >conftest.c <<EOF
6362 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6363 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6364 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6365 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6366 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6367 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6368 int main() { _ascii (); _ebcdic (); return 0; }
6370 if test -f conftest.c ; then
6371 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6372 if test `grep -l BIGenDianSyS conftest.o` ; then
6373 echo $ac_n ' big endian probe OK, ' 1>&6
6374 ac_cv_c_bigendian=yes
6376 if test `grep -l LiTTleEnDian conftest.o` ; then
6377 echo $ac_n ' little endian probe OK, ' 1>&6
6378 if test $ac_cv_c_bigendian = yes ; then
6379 ac_cv_c_bigendian=unknown;
6381 ac_cv_c_bigendian=no
6384 echo $ac_n 'guessing bigendian ... ' >&6
6387 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6388 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6390 if test $ac_cv_c_bigendian = yes; then
6392 cat >>confdefs.h <<\_ACEOF
6393 #define WORDS_BIGENDIAN 1
6397 cat >>confdefs.h <<\_ACEOF
6398 #define HOST_WORDS_BIG_ENDIAN 1
6406 cat >>confdefs.h <<_ACEOF
6407 #define BYTEORDER $BYTEORDER
6410 if test $ac_cv_c_bigendian = unknown; then
6411 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6412 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6413 { (exit 1); exit 1; }; }
6421 # Stage specific cflags for build.
6425 if test x$GCC = xyes
6427 stage1_cflags="-Wa,-J"
6433 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6434 # sources; use -no-cpp-precomp to get to GNU cpp.
6435 # Apple's GCC has bugs in designated initializer handling, so disable
6437 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6442 # These libraries may be used by collect2.
6443 # We may need a special search path to get them linked.
6444 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6445 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6446 if test "${gcc_cv_collect2_libs+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 for libs in '' -lld -lmld \
6451 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6452 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6455 cat >conftest.$ac_ext <<_ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6462 /* Override any gcc2 internal prototype to avoid an error. */
6466 /* We use char because int might match the return type of a gcc2
6467 builtin and then its argument prototype would still apply. */
6477 rm -f conftest.$ac_objext conftest$ac_exeext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6479 (eval $ac_link) 2>conftest.er1
6481 grep -v '^ *+' conftest.er1 >conftest.err
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_c_werror_flag"
6487 || test ! -s conftest.err'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest$ac_exeext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 gcc_cv_collect2_libs="$libs"; break
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6505 rm -f conftest.err conftest.$ac_objext \
6506 conftest$ac_exeext conftest.$ac_ext
6509 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6511 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6512 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6513 case $gcc_cv_collect2_libs in
6515 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6519 # When building Ada code on Alpha, we need exc_resume which is usually in
6520 # -lexc. So test for it.
6523 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6524 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6525 if test "${ac_cv_search_exc_resume+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 ac_func_search_save_LIBS=$LIBS
6529 ac_cv_search_exc_resume=no
6530 cat >conftest.$ac_ext <<_ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6537 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6554 (eval $ac_link) 2>conftest.er1
6556 grep -v '^ *+' conftest.er1 >conftest.err
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -z "$ac_c_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try='test -s conftest$ac_exeext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_search_exc_resume="none required"
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6580 rm -f conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6582 if test "$ac_cv_search_exc_resume" = no; then
6583 for ac_lib in exc; do
6584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6585 cat >conftest.$ac_ext <<_ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6592 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609 (eval $ac_link) 2>conftest.er1
6611 grep -v '^ *+' conftest.er1 >conftest.err
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_c_werror_flag"
6617 || test ! -s conftest.err'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; } &&
6623 { ac_try='test -s conftest$ac_exeext'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 ac_cv_search_exc_resume="-l$ac_lib"
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6636 rm -f conftest.err conftest.$ac_objext \
6637 conftest$ac_exeext conftest.$ac_ext
6640 LIBS=$ac_func_search_save_LIBS
6642 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6643 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6644 if test "$ac_cv_search_exc_resume" != no; then
6645 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6653 # Some systems put ldexp and frexp in libm instead of libc; assume
6654 # they're both in the same place. jcf-dump needs them.
6657 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6658 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6659 if test "${ac_cv_search_ldexp+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 ac_func_search_save_LIBS=$LIBS
6663 ac_cv_search_ldexp=no
6664 cat >conftest.$ac_ext <<_ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6671 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>conftest.er1
6690 grep -v '^ *+' conftest.er1 >conftest.err
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -z "$ac_c_werror_flag"
6696 || test ! -s conftest.err'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; } &&
6702 { ac_try='test -s conftest$ac_exeext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 ac_cv_search_ldexp="none required"
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6714 rm -f conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716 if test "$ac_cv_search_ldexp" = no; then
6718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6719 cat >conftest.$ac_ext <<_ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6726 /* Override any gcc2 internal prototype to avoid an error. */
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6741 rm -f conftest.$ac_objext conftest$ac_exeext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743 (eval $ac_link) 2>conftest.er1
6745 grep -v '^ *+' conftest.er1 >conftest.err
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } &&
6750 { ac_try='test -z "$ac_c_werror_flag"
6751 || test ! -s conftest.err'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; } &&
6757 { ac_try='test -s conftest$ac_exeext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_cv_search_ldexp="-l$ac_lib"
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6770 rm -f conftest.err conftest.$ac_objext \
6771 conftest$ac_exeext conftest.$ac_ext
6774 LIBS=$ac_func_search_save_LIBS
6776 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6777 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6778 if test "$ac_cv_search_ldexp" != no; then
6779 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6787 # Use <inttypes.h> only if it exists,
6788 # doesn't clash with <sys/types.h>, and declares intmax_t.
6789 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6790 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6791 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 cat >conftest.$ac_ext <<_ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 #include <sys/types.h>
6801 #include <inttypes.h>
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>conftest.er1
6814 grep -v '^ *+' conftest.er1 >conftest.err
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -z "$ac_c_werror_flag"
6820 || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 gcc_cv_header_inttypes_h=yes
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 gcc_cv_header_inttypes_h=no
6839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6842 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6843 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6844 if test $gcc_cv_header_inttypes_h = yes; then
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_INTTYPES_H 1
6878 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6879 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6880 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6881 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6885 echo "$as_me:$LINENO: checking for $ac_func" >&5
6886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6887 if eval "test \"\${$as_ac_var+set}\" = set"; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6898 #define $ac_func innocuous_$ac_func
6900 /* System header to define __stub macros and hopefully few prototypes,
6901 which can conflict with char $ac_func (); below.
6902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6903 <limits.h> exists even on freestanding compilers. */
6906 # include <limits.h>
6908 # include <assert.h>
6913 /* Override any gcc2 internal prototype to avoid an error. */
6918 /* We use char because int might match the return type of a gcc2
6919 builtin and then its argument prototype would still apply. */
6921 /* The GNU C library defines this for functions which it implements
6922 to always fail with ENOSYS. Some functions are actually named
6923 something starting with __ and the normal name is an alias. */
6924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6927 char (*f) () = $ac_func;
6936 return f != $ac_func;
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>conftest.er1
6945 grep -v '^ *+' conftest.er1 >conftest.err
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag"
6951 || test ! -s conftest.err'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 eval "$as_ac_var=yes"
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 eval "$as_ac_var=no"
6970 rm -f conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6975 if test `eval echo '${'$as_ac_var'}'` = yes; then
6976 cat >>confdefs.h <<_ACEOF
6977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6984 if test x$ac_cv_func_mbstowcs = xyes; then
6985 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6986 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6987 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 if test "$cross_compiling" = yes; then
6991 gcc_cv_func_mbstowcs_works=yes
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
7006 rm -f conftest$ac_exeext
7007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7008 (eval $ac_link) 2>&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 gcc_cv_func_mbstowcs_works=yes
7019 echo "$as_me: program exited with status $ac_status" >&5
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7024 gcc_cv_func_mbstowcs_works=no
7026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7029 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7030 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7031 if test x$gcc_cv_func_mbstowcs_works = xyes; then
7033 cat >>confdefs.h <<\_ACEOF
7034 #define HAVE_WORKING_MBSTOWCS 1
7040 echo "$as_me:$LINENO: checking for ssize_t" >&5
7041 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7042 if test "${ac_cv_type_ssize_t+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 $ac_includes_default
7057 if (sizeof (ssize_t))
7063 rm -f conftest.$ac_objext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065 (eval $ac_compile) 2>conftest.er1
7067 grep -v '^ *+' conftest.er1 >conftest.err
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try='test -z "$ac_c_werror_flag"
7073 || test ! -s conftest.err'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; } &&
7079 { ac_try='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 ac_cv_type_ssize_t=yes
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_type_ssize_t=no
7092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7095 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7096 if test $ac_cv_type_ssize_t = yes; then
7100 cat >>confdefs.h <<_ACEOF
7107 # Try to determine the array type of the second argument of getgroups
7108 # for the target system (int or gid_t).
7109 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7110 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7111 if test "${ac_cv_type_uid_t+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 cat >conftest.$ac_ext <<_ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7120 #include <sys/types.h>
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124 $EGREP "uid_t" >/dev/null 2>&1; then
7125 ac_cv_type_uid_t=yes
7132 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7133 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7134 if test $ac_cv_type_uid_t = no; then
7136 cat >>confdefs.h <<\_ACEOF
7141 cat >>confdefs.h <<\_ACEOF
7147 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7148 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7149 if test "${ac_cv_type_getgroups+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 if test "$cross_compiling" = yes; then
7153 ac_cv_type_getgroups=cross
7155 cat >conftest.$ac_ext <<_ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 /* Thanks to Mike Rendell for this test. */
7162 #include <sys/types.h>
7165 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7172 union { gid_t gval; long lval; } val;
7175 for (i = 0; i < NGID; i++)
7176 gidset[i] = val.gval;
7177 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7179 /* Exit non-zero if getgroups seems to require an array of ints. This
7180 happens when gid_t is short but getgroups modifies an array of ints. */
7181 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7184 rm -f conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_type_getgroups=gid_t
7197 echo "$as_me: program exited with status $ac_status" >&5
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7202 ac_cv_type_getgroups=int
7204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7206 if test $ac_cv_type_getgroups = cross; then
7207 cat >conftest.$ac_ext <<_ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7217 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7218 ac_cv_type_getgroups=gid_t
7220 ac_cv_type_getgroups=int
7226 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7227 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7229 cat >>confdefs.h <<_ACEOF
7230 #define GETGROUPS_T $ac_cv_type_getgroups
7234 if test "${target}" = "${build}"; then
7235 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7238 # This condition may need some tweaking. It should include all
7239 # targets where the array type of the second argument of getgroups
7240 # is int and the type of gid_t is not equivalent to int.
7241 *-*-sunos* | *-*-ultrix*)
7242 TARGET_GETGROUPS_T=int
7245 TARGET_GETGROUPS_T=gid_t
7251 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7252 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7253 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 if test "$cross_compiling" = yes; then
7257 gcc_cv_func_printf_ptr=no
7259 cat >conftest.$ac_ext <<_ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7270 char *p = buf, *q = NULL;
7271 sprintf(buf, "%p", p);
7272 sscanf(buf, "%p", &q);
7276 rm -f conftest$ac_exeext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7278 (eval $ac_link) 2>&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; }; then
7287 gcc_cv_func_printf_ptr=yes
7289 echo "$as_me: program exited with status $ac_status" >&5
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7294 gcc_cv_func_printf_ptr=no
7296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7298 rm -f core core.* *.core
7300 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7301 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7302 if test $gcc_cv_func_printf_ptr = yes ; then
7304 cat >>confdefs.h <<\_ACEOF
7305 #define HAVE_PRINTF_PTR 1
7310 if test $ac_cv_header_sys_mman_h != yes \
7311 || test $ac_cv_func_mmap != yes; then
7312 gcc_cv_func_mmap_file=no
7313 gcc_cv_func_mmap_dev_zero=no
7314 gcc_cv_func_mmap_anon=no
7316 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7317 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7318 if test "${gcc_cv_func_mmap_file+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 # Add a system to this blacklist if
7322 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7323 # memory area containing the same data that you'd get if you applied
7324 # read() to the same fd. The only system known to have a problem here
7325 # is VMS, where text files have record structure.
7328 gcc_cv_func_mmap_file=no ;;
7330 gcc_cv_func_mmap_file=yes;;
7333 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7334 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7335 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7336 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7337 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 # Add a system to this blacklist if it has mmap() but /dev/zero
7341 # does not exist, or if mmapping /dev/zero does not give anonymous
7342 # zeroed pages with both the following properties:
7343 # 1. If you map N consecutive pages in with one call, and then
7344 # unmap any subset of those pages, the pages that were not
7345 # explicitly unmapped remain accessible.
7346 # 2. If you map two adjacent blocks of memory and then unmap them
7347 # both at once, they must both go away.
7348 # Systems known to be in this category are Windows (all variants),
7351 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7352 gcc_cv_func_mmap_dev_zero=no ;;
7354 gcc_cv_func_mmap_dev_zero=yes;;
7357 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7358 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7360 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7361 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7362 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7363 if test "${gcc_cv_decl_map_anon+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 cat >conftest.$ac_ext <<_ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <sys/types.h>
7373 #include <sys/mman.h>
7376 #ifndef MAP_ANONYMOUS
7377 #define MAP_ANONYMOUS MAP_ANON
7383 int n = MAP_ANONYMOUS;
7388 rm -f conftest.$ac_objext
7389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7390 (eval $ac_compile) 2>conftest.er1
7392 grep -v '^ *+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -z "$ac_c_werror_flag"
7398 || test ! -s conftest.err'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; } &&
7404 { ac_try='test -s conftest.$ac_objext'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; }; then
7410 gcc_cv_decl_map_anon=yes
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 gcc_cv_decl_map_anon=no
7417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7419 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7420 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7422 if test $gcc_cv_decl_map_anon = no; then
7423 gcc_cv_func_mmap_anon=no
7425 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7426 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7427 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7431 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7432 # doesn't give anonymous zeroed pages with the same properties listed
7433 # above for use of /dev/zero.
7434 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7436 vms* | cygwin* | pe | mingw* | sco* | udk* )
7437 gcc_cv_func_mmap_anon=no ;;
7439 gcc_cv_func_mmap_anon=yes;;
7442 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7443 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7447 if test $gcc_cv_func_mmap_file = yes; then
7449 cat >>confdefs.h <<\_ACEOF
7450 #define HAVE_MMAP_FILE 1
7454 if test $gcc_cv_func_mmap_dev_zero = yes; then
7456 cat >>confdefs.h <<\_ACEOF
7457 #define HAVE_MMAP_DEV_ZERO 1
7461 if test $gcc_cv_func_mmap_anon = yes; then
7463 cat >>confdefs.h <<\_ACEOF
7464 #define HAVE_MMAP_ANON 1
7472 # Under VMS, vfork works very differently than on Unix. The standard test
7473 # won't work, and it isn't easily adaptable. It makes more sense to
7475 ac_cv_func_vfork_works=yes
7478 echo "$as_me:$LINENO: checking for pid_t" >&5
7479 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7480 if test "${ac_cv_type_pid_t+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 $ac_includes_default
7501 rm -f conftest.$ac_objext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503 (eval $ac_compile) 2>conftest.er1
7505 grep -v '^ *+' conftest.er1 >conftest.err
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try='test -z "$ac_c_werror_flag"
7511 || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try='test -s conftest.$ac_objext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_cv_type_pid_t=yes
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7532 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7533 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7534 if test $ac_cv_type_pid_t = yes; then
7538 cat >>confdefs.h <<_ACEOF
7546 for ac_header in unistd.h vfork.h
7548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7549 echo "$as_me:$LINENO: checking for $ac_header" >&5
7550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 cat >conftest.$ac_ext <<_ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 #include <$ac_header>
7562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7565 grep -v '^ *+' conftest.er1 >conftest.err
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } >/dev/null; then
7570 if test -s conftest.err; then
7571 ac_cpp_err=$ac_c_preproc_warn_flag
7572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7579 if test -z "$ac_cpp_err"; then
7580 eval "$as_ac_Header=yes"
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7585 eval "$as_ac_Header=no"
7587 rm -f conftest.err conftest.$ac_ext
7589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7592 cat >>confdefs.h <<_ACEOF
7593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7601 for ac_func in fork vfork
7603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7604 echo "$as_me:$LINENO: checking for $ac_func" >&5
7605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7606 if eval "test \"\${$as_ac_var+set}\" = set"; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 cat >conftest.$ac_ext <<_ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7617 #define $ac_func innocuous_$ac_func
7619 /* System header to define __stub macros and hopefully few prototypes,
7620 which can conflict with char $ac_func (); below.
7621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7622 <limits.h> exists even on freestanding compilers. */
7625 # include <limits.h>
7627 # include <assert.h>
7632 /* Override any gcc2 internal prototype to avoid an error. */
7637 /* We use char because int might match the return type of a gcc2
7638 builtin and then its argument prototype would still apply. */
7640 /* The GNU C library defines this for functions which it implements
7641 to always fail with ENOSYS. Some functions are actually named
7642 something starting with __ and the normal name is an alias. */
7643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7646 char (*f) () = $ac_func;
7655 return f != $ac_func;
7660 rm -f conftest.$ac_objext conftest$ac_exeext
7661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7662 (eval $ac_link) 2>conftest.er1
7664 grep -v '^ *+' conftest.er1 >conftest.err
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -z "$ac_c_werror_flag"
7670 || test ! -s conftest.err'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; } &&
7676 { ac_try='test -s conftest$ac_exeext'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; }; then
7682 eval "$as_ac_var=yes"
7684 echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7687 eval "$as_ac_var=no"
7689 rm -f conftest.err conftest.$ac_objext \
7690 conftest$ac_exeext conftest.$ac_ext
7692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7694 if test `eval echo '${'$as_ac_var'}'` = yes; then
7695 cat >>confdefs.h <<_ACEOF
7696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7702 if test "x$ac_cv_func_fork" = xyes; then
7703 echo "$as_me:$LINENO: checking for working fork" >&5
7704 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7705 if test "${ac_cv_func_fork_works+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 if test "$cross_compiling" = yes; then
7709 ac_cv_func_fork_works=cross
7711 cat >conftest.$ac_ext <<_ACEOF
7712 /* By Ruediger Kuhlmann. */
7713 #include <sys/types.h>
7715 # include <unistd.h>
7717 /* Some systems only have a dummy stub for fork() */
7725 rm -f conftest$ac_exeext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7727 (eval $ac_link) 2>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; }; then
7736 ac_cv_func_fork_works=yes
7738 echo "$as_me: program exited with status $ac_status" >&5
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7743 ac_cv_func_fork_works=no
7745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7748 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7749 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7752 ac_cv_func_fork_works=$ac_cv_func_fork
7754 if test "x$ac_cv_func_fork_works" = xcross; then
7756 *-*-amigaos* | *-*-msdosdjgpp*)
7757 # Override, as these systems have only a dummy fork() stub
7758 ac_cv_func_fork_works=no
7761 ac_cv_func_fork_works=yes
7764 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7765 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7767 ac_cv_func_vfork_works=$ac_cv_func_vfork
7768 if test "x$ac_cv_func_vfork" = xyes; then
7769 echo "$as_me:$LINENO: checking for working vfork" >&5
7770 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7771 if test "${ac_cv_func_vfork_works+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 if test "$cross_compiling" = yes; then
7775 ac_cv_func_vfork_works=cross
7777 cat >conftest.$ac_ext <<_ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 /* Thanks to Paul Eggert for this test. */
7786 #include <sys/types.h>
7787 #include <sys/stat.h>
7788 #include <sys/wait.h>
7790 # include <unistd.h>
7795 /* On some sparc systems, changes by the child to local and incoming
7796 argument registers are propagated back to the parent. The compiler
7797 is told about this with #include <vfork.h>, but some compilers
7798 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7799 static variable whose address is put into a register that is
7800 clobbered by the vfork. */
7803 sparc_address_test (int arg)
7805 sparc_address_test (arg) int arg;
7826 pid_t parent = getpid ();
7829 sparc_address_test (0);
7834 /* Here is another test for sparc vfork register problems. This
7835 test uses lots of local variables, at least as many local
7836 variables as main has allocated so far including compiler
7837 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7838 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7839 reuse the register of parent for one of the local variables,
7840 since it will think that parent can't possibly be used any more
7841 in this routine. Assigning to the local variable will thus
7842 munge parent in the parent process. */
7844 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7845 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7846 /* Convince the compiler that p..p7 are live; otherwise, it might
7847 use the same hardware register for all 8 local variables. */
7848 if (p != p1 || p != p2 || p != p3 || p != p4
7849 || p != p5 || p != p6 || p != p7)
7852 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7853 from child file descriptors. If the child closes a descriptor
7854 before it execs or exits, this munges the parent's descriptor
7855 as well. Test for this by closing stdout in the child. */
7856 _exit(close(fileno(stdout)) != 0);
7861 while (wait(&status) != child)
7864 /* Was there some problem with vforking? */
7867 /* Did the child fail? (This shouldn't happen.) */
7870 /* Did the vfork/compiler bug occur? */
7871 || parent != getpid()
7873 /* Did the file descriptor bug occur? */
7874 || fstat(fileno(stdout), &st) != 0
7879 rm -f conftest$ac_exeext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7881 (eval $ac_link) 2>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 ac_cv_func_vfork_works=yes
7892 echo "$as_me: program exited with status $ac_status" >&5
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7897 ac_cv_func_vfork_works=no
7899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7902 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7903 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7906 if test "x$ac_cv_func_fork_works" = xcross; then
7907 ac_cv_func_vfork_works=$ac_cv_func_vfork
7908 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7909 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7912 if test "x$ac_cv_func_vfork_works" = xyes; then
7914 cat >>confdefs.h <<\_ACEOF
7915 #define HAVE_WORKING_VFORK 1
7920 cat >>confdefs.h <<\_ACEOF
7925 if test "x$ac_cv_func_fork_works" = xyes; then
7927 cat >>confdefs.h <<\_ACEOF
7928 #define HAVE_WORKING_FORK 1
7936 am_cv_lib_iconv_ldpath=
7938 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7939 if test "${with_libiconv_prefix+set}" = set; then
7940 withval="$with_libiconv_prefix"
7942 for dir in `echo "$withval" | tr : ' '`; do
7943 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7944 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7950 for ac_header in iconv.h
7952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953 echo "$as_me:$LINENO: checking for $ac_header" >&5
7954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 #include <$ac_header>
7966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7969 grep -v '^ *+' conftest.er1 >conftest.err
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } >/dev/null; then
7974 if test -s conftest.err; then
7975 ac_cpp_err=$ac_c_preproc_warn_flag
7976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7983 if test -z "$ac_cpp_err"; then
7984 eval "$as_ac_Header=yes"
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 eval "$as_ac_Header=no"
7991 rm -f conftest.err conftest.$ac_ext
7993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7996 cat >>confdefs.h <<_ACEOF
7997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8004 echo "$as_me:$LINENO: checking for iconv" >&5
8005 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8006 if test "${am_cv_func_iconv+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 am_cv_func_iconv="no, consider installing GNU libiconv"
8012 cat >conftest.$ac_ext <<_ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8023 iconv_t cd = iconv_open("","");
8024 iconv(cd,NULL,NULL,NULL,NULL);
8030 rm -f conftest.$ac_objext conftest$ac_exeext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8032 (eval $ac_link) 2>conftest.er1
8034 grep -v '^ *+' conftest.er1 >conftest.err
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } &&
8039 { ac_try='test -z "$ac_c_werror_flag"
8040 || test ! -s conftest.err'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 am_cv_func_iconv=yes
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8058 rm -f conftest.err conftest.$ac_objext \
8059 conftest$ac_exeext conftest.$ac_ext
8060 if test "$am_cv_func_iconv" != yes; then
8061 am_save_LIBS="$LIBS"
8062 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8063 cat >conftest.$ac_ext <<_ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8074 iconv_t cd = iconv_open("","");
8075 iconv(cd,NULL,NULL,NULL,NULL);
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>conftest.er1
8085 grep -v '^ *+' conftest.er1 >conftest.err
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } &&
8090 { ac_try='test -z "$ac_c_werror_flag"
8091 || test ! -s conftest.err'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; } &&
8097 { ac_try='test -s conftest$ac_exeext'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8104 am_cv_func_iconv=yes
8106 echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8110 rm -f conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 LIBS="$am_save_LIBS"
8116 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8117 echo "${ECHO_T}$am_cv_func_iconv" >&6
8118 if test "$am_cv_func_iconv" = yes; then
8120 cat >>confdefs.h <<\_ACEOF
8121 #define HAVE_ICONV 1
8124 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8125 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8126 if test "${am_cv_proto_iconv+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8143 #if defined(__STDC__) || defined(__cplusplus)
8144 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8157 rm -f conftest.$ac_objext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8159 (eval $ac_compile) 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -z "$ac_c_werror_flag"
8167 || test ! -s conftest.err'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; } &&
8173 { ac_try='test -s conftest.$ac_objext'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 am_cv_proto_iconv_arg1=""
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 am_cv_proto_iconv_arg1="const"
8186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8187 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);"
8190 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8191 echo "$as_me:$LINENO: result: ${ac_t:-
8192 }$am_cv_proto_iconv" >&5
8193 echo "${ECHO_T}${ac_t:-
8194 }$am_cv_proto_iconv" >&6
8196 cat >>confdefs.h <<_ACEOF
8197 #define ICONV_CONST $am_cv_proto_iconv_arg1
8202 if test "$am_cv_lib_iconv" = yes; then
8203 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8207 # Until we have in-tree GNU iconv:
8212 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8213 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8214 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 cat >conftest.$ac_ext <<_ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8234 (eval $ac_link) 2>conftest.er1
8236 grep -v '^ *+' conftest.er1 >conftest.err
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -z "$ac_c_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest$ac_exeext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 am_cv_val_LC_MESSAGES=yes
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 am_cv_val_LC_MESSAGES=no
8261 rm -f conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8264 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8265 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8266 if test $am_cv_val_LC_MESSAGES = yes; then
8268 cat >>confdefs.h <<\_ACEOF
8269 #define HAVE_LC_MESSAGES 1
8275 # We will need to find libiberty.h and ansidecl.h
8276 saved_CFLAGS="$CFLAGS"
8277 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8278 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8279 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8280 fprintf_unlocked strstr errno snprintf vasprintf \
8281 malloc realloc calloc free basename getopt clock
8283 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8284 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8285 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8286 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 cat >conftest.$ac_ext <<_ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8296 #define $ac_tr_decl 1
8298 #include "ansidecl.h"
8305 char *(*pfn) = (char *(*)) $ac_func ;
8311 rm -f conftest.$ac_objext
8312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8313 (eval $ac_compile) 2>conftest.er1
8315 grep -v '^ *+' conftest.er1 >conftest.err
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -z "$ac_c_werror_flag"
8321 || test ! -s conftest.err'
8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; } &&
8327 { ac_try='test -s conftest.$ac_objext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333 eval "gcc_cv_have_decl_$ac_func=yes"
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 eval "gcc_cv_have_decl_$ac_func=no"
8340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8343 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8344 echo "$as_me:$LINENO: result: yes" >&5
8345 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8346 #define $ac_tr_decl 1
8350 echo "$as_me:$LINENO: result: no" >&5
8351 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8352 #define $ac_tr_decl 0
8358 if test x = y ; then
8360 cat >>confdefs.h <<\_ACEOF
8361 #define HAVE_DECL_GETENV 1
8364 cat >>confdefs.h <<\_ACEOF
8365 #define HAVE_DECL_ATOL 1
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_DECL_SBRK 1
8372 cat >>confdefs.h <<\_ACEOF
8373 #define HAVE_DECL_ABORT 1
8376 cat >>confdefs.h <<\_ACEOF
8377 #define HAVE_DECL_ATOF 1
8380 cat >>confdefs.h <<\_ACEOF
8381 #define HAVE_DECL_GETCWD 1
8384 cat >>confdefs.h <<\_ACEOF
8385 #define HAVE_DECL_GETWD 1
8389 cat >>confdefs.h <<\_ACEOF
8390 #define HAVE_DECL_STRSIGNAL 1
8393 cat >>confdefs.h <<\_ACEOF
8394 #define HAVE_DECL_PUTC_UNLOCKED 1
8397 cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_DECL_FPUTS_UNLOCKED 1
8401 cat >>confdefs.h <<\_ACEOF
8402 #define HAVE_DECL_FWRITE_UNLOCKED 1
8406 cat >>confdefs.h <<\_ACEOF
8407 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8410 cat >>confdefs.h <<\_ACEOF
8411 #define HAVE_DECL_STRSTR 1
8414 cat >>confdefs.h <<\_ACEOF
8415 #define HAVE_DECL_ERRNO 1
8418 cat >>confdefs.h <<\_ACEOF
8419 #define HAVE_DECL_SNPRINTF 1
8422 cat >>confdefs.h <<\_ACEOF
8423 #define HAVE_DECL_VASPRINTF 1
8427 cat >>confdefs.h <<\_ACEOF
8428 #define HAVE_DECL_MALLOC 1
8431 cat >>confdefs.h <<\_ACEOF
8432 #define HAVE_DECL_REALLOC 1
8435 cat >>confdefs.h <<\_ACEOF
8436 #define HAVE_DECL_CALLOC 1
8439 cat >>confdefs.h <<\_ACEOF
8440 #define HAVE_DECL_FREE 1
8443 cat >>confdefs.h <<\_ACEOF
8444 #define HAVE_DECL_BASENAME 1
8447 cat >>confdefs.h <<\_ACEOF
8448 #define HAVE_DECL_GETOPT 1
8451 cat >>confdefs.h <<\_ACEOF
8452 #define HAVE_DECL_CLOCK 1
8457 for ac_func in getrlimit setrlimit getrusage
8459 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8460 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8461 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8462 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8472 #define $ac_tr_decl 1
8474 #include "ansidecl.h"
8476 #ifdef HAVE_SYS_RESOURCE_H
8477 #include <sys/resource.h>
8485 char *(*pfn) = (char *(*)) $ac_func ;
8491 rm -f conftest.$ac_objext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>conftest.er1
8495 grep -v '^ *+' conftest.er1 >conftest.err
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag"
8501 || test ! -s conftest.err'
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest.$ac_objext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 eval "gcc_cv_have_decl_$ac_func=yes"
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 eval "gcc_cv_have_decl_$ac_func=no"
8520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8524 echo "$as_me:$LINENO: result: yes" >&5
8525 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8526 #define $ac_tr_decl 1
8530 echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8532 #define $ac_tr_decl 0
8538 if test x = y ; then
8540 cat >>confdefs.h <<\_ACEOF
8541 #define HAVE_DECL_GETRLIMIT 1
8544 cat >>confdefs.h <<\_ACEOF
8545 #define HAVE_DECL_SETRLIMIT 1
8548 cat >>confdefs.h <<\_ACEOF
8549 #define HAVE_DECL_GETRUSAGE 1
8554 cat >conftest.$ac_ext <<_ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8561 #include "ansidecl.h"
8563 #ifdef HAVE_SYS_RESOURCE_H
8564 #include <sys/resource.h>
8575 rm -f conftest.$ac_objext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8577 (eval $ac_compile) 2>conftest.er1
8579 grep -v '^ *+' conftest.er1 >conftest.err
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_c_werror_flag"
8585 || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest.$ac_objext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8603 cat >>confdefs.h <<\_ACEOF
8608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8610 for ac_func in ldgetname
8612 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8613 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8614 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8615 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 cat >conftest.$ac_ext <<_ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8625 #define $ac_tr_decl 1
8627 #include "ansidecl.h"
8638 char *(*pfn) = (char *(*)) $ac_func ;
8644 rm -f conftest.$ac_objext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646 (eval $ac_compile) 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag"
8654 || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest.$ac_objext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 eval "gcc_cv_have_decl_$ac_func=yes"
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8671 eval "gcc_cv_have_decl_$ac_func=no"
8673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8676 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8677 echo "$as_me:$LINENO: result: yes" >&5
8678 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8679 #define $ac_tr_decl 1
8683 echo "$as_me:$LINENO: result: no" >&5
8684 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8685 #define $ac_tr_decl 0
8691 if test x = y ; then
8693 cat >>confdefs.h <<\_ACEOF
8694 #define HAVE_DECL_LDGETNAME 1
8699 for ac_func in times
8701 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8702 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8703 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8704 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 cat >conftest.$ac_ext <<_ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8714 #define $ac_tr_decl 1
8716 #include "ansidecl.h"
8718 #ifdef HAVE_SYS_TIMES_H
8719 #include <sys/times.h>
8727 char *(*pfn) = (char *(*)) $ac_func ;
8733 rm -f conftest.$ac_objext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8735 (eval $ac_compile) 2>conftest.er1
8737 grep -v '^ *+' conftest.er1 >conftest.err
8739 cat conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try='test -z "$ac_c_werror_flag"
8743 || test ! -s conftest.err'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; } &&
8749 { ac_try='test -s conftest.$ac_objext'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 eval "gcc_cv_have_decl_$ac_func=yes"
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 eval "gcc_cv_have_decl_$ac_func=no"
8762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8765 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8766 echo "$as_me:$LINENO: result: yes" >&5
8767 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8768 #define $ac_tr_decl 1
8772 echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8774 #define $ac_tr_decl 0
8780 if test x = y ; then
8782 cat >>confdefs.h <<\_ACEOF
8783 #define HAVE_DECL_TIMES 1
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"
8826 || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest.$ac_objext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 ac_cv_struct_tms=yes
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8848 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8849 if test $ac_cv_struct_tms = yes; then
8851 cat >>confdefs.h <<\_ACEOF
8852 #define HAVE_STRUCT_TMS 1
8857 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8858 # revisit after autoconf 2.50.
8859 echo "$as_me:$LINENO: checking for clock_t" >&5
8860 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8861 if test "${gcc_cv_type_clock_t+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 cat >conftest.$ac_ext <<_ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8872 #include "ansidecl.h"
8883 rm -f conftest.$ac_objext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885 (eval $ac_compile) 2>conftest.er1
8887 grep -v '^ *+' conftest.er1 >conftest.err
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -z "$ac_c_werror_flag"
8893 || test ! -s conftest.err'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; } &&
8899 { ac_try='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 gcc_cv_type_clock_t=yes
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8910 gcc_cv_type_clock_t=no
8912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8914 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8915 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8916 if test $gcc_cv_type_clock_t = yes; then
8918 cat >>confdefs.h <<\_ACEOF
8919 #define HAVE_CLOCK_T 1
8924 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8925 CFLAGS="$saved_CFLAGS"
8927 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8928 if test "${enable_initfini_array+set}" = set; then
8929 enableval="$enable_initfini_array"
8933 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8934 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8935 if test "${gcc_cv_initfini_array+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 if test "$cross_compiling" = yes; then
8939 gcc_cv_initfini_array=no
8941 cat >conftest.$ac_ext <<_ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8949 int main (void) { return x; }
8950 int foo (void) { x = 0; }
8951 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8953 rm -f conftest$ac_exeext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 gcc_cv_initfini_array=yes
8966 echo "$as_me: program exited with status $ac_status" >&5
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8971 gcc_cv_initfini_array=no
8973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8976 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8977 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8978 enable_initfini_array=$gcc_cv_initfini_array
8981 if test $enable_initfini_array = yes; then
8983 cat >>confdefs.h <<\_ACEOF
8984 #define HAVE_INITFINI_ARRAY 1
8989 # mkdir takes a single argument on some systems.
8990 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8991 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8992 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 cat >conftest.$ac_ext <<_ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9002 #include <sys/types.h>
9003 #ifdef HAVE_SYS_STAT_H
9004 # include <sys/stat.h>
9006 #ifdef HAVE_UNISTD_H
9007 # include <unistd.h>
9009 #ifdef HAVE_DIRECT_H
9010 # include <direct.h>
9020 rm -f conftest.$ac_objext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9022 (eval $ac_compile) 2>conftest.er1
9024 grep -v '^ *+' conftest.er1 >conftest.err
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag"
9030 || test ! -s conftest.err'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; } &&
9036 { ac_try='test -s conftest.$ac_objext'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9042 gcc_cv_mkdir_takes_one_arg=no
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 gcc_cv_mkdir_takes_one_arg=yes
9049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9051 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9052 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9053 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9055 cat >>confdefs.h <<\_ACEOF
9056 #define MKDIR_TAKES_ONE_ARG 1
9068 # With Setjmp/Longjmp based exception handling.
9069 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9070 if test "${enable_sjlj_exceptions+set}" = set; then
9071 enableval="$enable_sjlj_exceptions"
9072 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9074 cat >>confdefs.h <<_ACEOF
9075 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9080 if test x$host = x$target; then
9081 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9082 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9083 if test "${ac_cv_lib_unwind_main+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 ac_check_lib_save_LIBS=$LIBS
9087 LIBS="-lunwind $LIBS"
9088 cat >conftest.$ac_ext <<_ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9104 rm -f conftest.$ac_objext conftest$ac_exeext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9106 (eval $ac_link) 2>conftest.er1
9108 grep -v '^ *+' conftest.er1 >conftest.err
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag"
9114 || test ! -s conftest.err'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_lib_unwind_main=yes
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9131 ac_cv_lib_unwind_main=no
9133 rm -f conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_lib_save_LIBS
9137 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9138 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9139 if test $ac_cv_lib_unwind_main = yes; then
9140 use_libunwind_default=yes
9142 use_libunwind_default=no
9146 use_libunwind_default=no
9148 # Use libunwind based exception handling.
9149 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9150 if test "${enable_libunwind_exceptions+set}" = set; then
9151 enableval="$enable_libunwind_exceptions"
9152 use_libunwind_exceptions=$enableval
9154 use_libunwind_exceptions=$use_libunwind_default
9156 if test x"$use_libunwind_exceptions" = xyes; then
9158 cat >>confdefs.h <<\_ACEOF
9159 #define USE_LIBUNWIND_EXCEPTIONS 1
9164 # --------------------------------------------------------
9165 # Build, host, and target specific configuration fragments
9166 # --------------------------------------------------------
9168 # Collect build-machine-specific information.
9169 . ${srcdir}/config.build
9171 # Collect host-machine-specific information.
9172 . ${srcdir}/config.host
9176 # Collect target-machine-specific information.
9177 . ${srcdir}/config.gcc
9179 extra_objs="${host_extra_objs} ${extra_objs}"
9180 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9182 # Default the target-machine variables that were not explicitly set.
9183 if test x"$tm_file" = x
9184 then tm_file=$cpu_type/$cpu_type.h; fi
9186 if test x"$extra_headers" = x
9187 then extra_headers=; fi
9189 if test x$md_file = x
9190 then md_file=$cpu_type/$cpu_type.md; fi
9192 if test x$out_file = x
9193 then out_file=$cpu_type/$cpu_type.c; fi
9195 if test x"$tmake_file" = x
9196 then tmake_file=$cpu_type/t-$cpu_type
9199 if test x"$dwarf2" = xyes
9200 then tm_file="$tm_file tm-dwarf2.h"
9203 # Say what files are being used for the output code and MD file.
9204 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9205 echo "Using \`$srcdir/config/$md_file' as machine description file."
9207 # If any of the xm_file variables contain nonexistent files, warn
9208 # about them and drop them.
9211 for x in $build_xm_file; do
9212 if test -f $srcdir/config/$x
9214 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9215 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9221 for x in $host_xm_file; do
9222 if test -f $srcdir/config/$x
9224 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9225 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9231 for x in $xm_file; do
9232 if test -f $srcdir/config/$x
9234 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9235 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9241 for f in $tm_file; do
9244 if test $count = ax; then
9245 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9247 echo "Using the following target machine macro files:"
9248 for f in $tm_file; do
9249 echo " $srcdir/config/$f"
9253 if test x$need_64bit_hwint = xyes; then
9255 cat >>confdefs.h <<\_ACEOF
9256 #define NEED_64BIT_HOST_WIDE_INT 1
9262 for f in $host_xm_file; do
9265 if test $count = a; then
9267 elif test $count = ax; then
9268 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9270 echo "Using the following host machine macro files:"
9271 for f in $host_xm_file; do
9272 echo " $srcdir/config/$f"
9275 echo "Using ${out_host_hook_obj} for host machine hooks."
9277 if test "$host_xm_file" != "$build_xm_file"; then
9279 for f in $build_xm_file; do
9282 if test $count = a; then
9284 elif test $count = ax; then
9285 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9287 echo "Using the following build machine macro files:"
9288 for f in $build_xm_file; do
9289 echo " $srcdir/config/$f"
9298 # Check if a valid thread package
9299 case ${enable_threads} in
9302 target_thread_file='single'
9306 target_thread_file='single'
9308 aix | dce | gnat | irix | posix | rtems | \
9309 single | solaris | vxworks | win32 )
9310 target_thread_file=${enable_threads}
9313 echo "${enable_threads} is an unknown thread package" 1>&2
9318 if test x${thread_file} = x; then
9319 # No thread file set by target-specific clauses in config.gcc,
9320 # so use file chosen by default logic above
9321 thread_file=${target_thread_file}
9324 # Make gthr-default.h if we have a thread file.
9326 if test $thread_file != single; then
9327 rm -f gthr-default.h
9328 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9329 gthread_flags=-DHAVE_GTHR_DEFAULT
9337 if test x$enable___cxa_atexit = xyes || \
9338 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9339 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9340 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9341 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9344 cat >conftest.$ac_ext <<_ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9352 #define __cxa_atexit innocuous___cxa_atexit
9354 /* System header to define __stub macros and hopefully few prototypes,
9355 which can conflict with char __cxa_atexit (); below.
9356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357 <limits.h> exists even on freestanding compilers. */
9360 # include <limits.h>
9362 # include <assert.h>
9367 /* Override any gcc2 internal prototype to avoid an error. */
9372 /* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */
9374 char __cxa_atexit ();
9375 /* The GNU C library defines this for functions which it implements
9376 to always fail with ENOSYS. Some functions are actually named
9377 something starting with __ and the normal name is an alias. */
9378 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9381 char (*f) () = __cxa_atexit;
9390 return f != __cxa_atexit;
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9397 (eval $ac_link) 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_c_werror_flag"
9405 || test ! -s conftest.err'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; } &&
9411 { ac_try='test -s conftest$ac_exeext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 ac_cv_func___cxa_atexit=yes
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_cv_func___cxa_atexit=no
9424 rm -f conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9427 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9428 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9429 if test $ac_cv_func___cxa_atexit = yes; then
9431 cat >>confdefs.h <<\_ACEOF
9432 #define DEFAULT_USE_CXA_ATEXIT 1
9436 echo "__cxa_atexit can't be enabled on this target"
9441 # Look for a file containing extra machine modes.
9442 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9443 extra_modes_file='$(srcdir)'/config/${extra_modes}
9446 cat >>confdefs.h <<_ACEOF
9447 #define EXTRA_MODES_FILE "config/$extra_modes"
9452 # auto-host.h is the file containing items generated by autoconf and is
9453 # the first file included by config.h.
9454 # If host=build, it is correct to have bconfig include auto-host.h
9455 # as well. If host!=build, we are in error and need to do more
9456 # work to find out the build config parameters.
9457 if test x$host = x$build
9459 build_auto=auto-host.h
9462 # We create a subdir, then run autoconf in the subdir.
9463 # To prevent recursion we set host and build for the new
9464 # invocation of configure to the build for this invocation
9471 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9472 *) realsrcdir=../${srcdir};;
9474 saved_CFLAGS="${CFLAGS}"
9475 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9476 ${realsrcdir}/configure \
9477 --enable-languages=${enable_languages-all} \
9478 --target=$target_alias --host=$build_alias --build=$build_alias
9479 CFLAGS="${saved_CFLAGS}"
9481 # We just finished tests for the build machine, so rename
9482 # the file auto-build.h in the gcc directory.
9483 mv auto-host.h ../auto-build.h
9486 build_auto=auto-build.h
9487 FORBUILD=../${build_subdir}
9491 tm_file="${tm_file} defaults.h"
9492 tm_p_file="${tm_p_file} tm-preds.h"
9493 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9494 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9495 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9496 # put this back in temporarily.
9497 xm_file="ansidecl.h ${xm_file}"
9503 # Get the version trigger filename from the toplevel
9504 if test "${with_gcc_version_trigger+set}" = set; then
9505 gcc_version_trigger=$with_gcc_version_trigger
9507 gcc_version_trigger=${srcdir}/version.c
9509 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9510 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9512 # Compile in configure arguments.
9513 if test -f configargs.h ; then
9514 # Being re-configured.
9515 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9516 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9518 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9521 # Double all backslashes and backslash all quotes to turn
9522 # gcc_config_arguments into a C string.
9523 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9524 $gcc_config_arguments
9526 gcc_config_arguments_str=`cat conftest.out`
9529 cat > configargs.h <<EOF
9530 /* Generated automatically. */
9531 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9532 static const char thread_model[] = "$thread_file";
9534 static const struct {
9535 const char *name, *value;
9536 } configure_default_options[] = $configure_default_options;
9539 # Internationalization
9541 VERSION="$gcc_version"
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"
9670 || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 ac_cv_search_RegOpenKeyExA="none required"
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9688 rm -f conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9691 for ac_lib in advapi32; do
9692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9693 cat >conftest.$ac_ext <<_ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9700 /* Override any gcc2 internal prototype to avoid an error. */
9704 /* We use char because int might match the return type of a gcc2
9705 builtin and then its argument prototype would still apply. */
9706 char RegOpenKeyExA ();
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>conftest.er1
9719 grep -v '^ *+' conftest.er1 >conftest.err
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -z "$ac_c_werror_flag"
9725 || test ! -s conftest.err'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try='test -s conftest$ac_exeext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9744 rm -f conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_func_search_save_LIBS
9750 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9751 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9752 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9753 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9758 echo "$as_me:$LINENO: result: no" >&5
9759 echo "${ECHO_T}no" >&6
9762 # Check if user specified a different registry key.
9763 case "x${enable_win32_registry}" in
9766 gcc_cv_win32_registry_key="$VERSION"
9769 # no registry lookup.
9770 gcc_cv_win32_registry_key=''
9773 # user-specified key.
9774 gcc_cv_win32_registry_key="$enable_win32_registry"
9778 if test "x$enable_win32_registry" != xno; then
9779 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9780 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9782 cat >>confdefs.h <<_ACEOF
9783 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9786 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9787 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9792 # Get an absolute path to the GCC top-level source directory
9793 holddir=`${PWDCMD-pwd}`
9795 topdir=`${PWDCMD-pwd}`
9798 # Conditionalize the makefile for this host machine.
9800 for f in ${host_xmake_file}
9802 if test -f ${srcdir}/config/$f
9804 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9808 # Conditionalize the makefile for this target machine.
9810 for f in ${tmake_file}
9812 if test -f ${srcdir}/config/$f
9814 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9817 tmake_file="${tmake_file_}"
9819 symbolic_link='ln -s'
9821 # If the host doesn't support symlinks, modify CC in
9822 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9823 # Otherwise, we can use "CC=$(CC)".
9825 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9827 cc_set_by_configure="\$(CC)"
9828 quoted_cc_set_by_configure="\$(CC)"
9829 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9830 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9833 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9835 symbolic_link="cp -p"
9839 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9840 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9841 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9842 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9846 out_object_file=`basename $out_file .c`.o
9850 for f in $tm_file; do
9853 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9854 tm_include_list="${tm_include_list} $f"
9857 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9858 tm_include_list="${tm_include_list} config/$f"
9865 for f in $tm_p_file; do
9868 tm_p_file_list="${tm_p_file_list} $f"
9869 tm_p_include_list="${tm_p_include_list} $f"
9872 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9873 tm_p_include_list="${tm_p_include_list} config/$f"
9879 for f in $xm_file; do
9882 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9883 xm_include_list="${xm_include_list} $f"
9886 xm_file_list="${xm_file_list} $f"
9887 xm_include_list="${xm_include_list} $f"
9890 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9891 xm_include_list="${xm_include_list} config/$f"
9897 host_xm_include_list=
9898 for f in $host_xm_file; do
9901 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9902 host_xm_include_list="${host_xm_include_list} $f"
9905 host_xm_file_list="${host_xm_file_list} $f"
9906 host_xm_include_list="${host_xm_include_list} $f"
9909 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9910 host_xm_include_list="${host_xm_include_list} config/$f"
9916 for f in $build_xm_file; do
9919 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9920 build_xm_include_list="${build_xm_include_list} $f"
9922 auto-build.h | auto-host.h )
9923 build_xm_file_list="${build_xm_file_list} $f"
9924 build_xm_include_list="${build_xm_include_list} $f"
9927 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9928 build_xm_include_list="${build_xm_include_list} config/$f"
9933 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9934 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9937 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9938 if test x$host != x$target
9940 CROSS="-DCROSS_COMPILE"
9942 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9943 case "$host","$target" in
9944 # Darwin crosses can use the host system's libraries and headers,
9945 # because of the fat library support. Of course, it must be the
9946 # same version of Darwin on both sides. Allow the user to
9947 # just say --target=foo-darwin without a version number to mean
9948 # "the version on this system".
9949 *-*-darwin*,*-*-darwin*)
9950 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9951 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9952 if test $hostos = $targetos -o $targetos = darwin ; then
9954 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9959 i?86-*-*,x86_64-*-* \
9960 | powerpc*-*-*,powerpc64*-*-*)
9961 CROSS="$CROSS -DNATIVE_CROSS" ;;
9963 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9964 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9965 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9968 # If this is a cross-compiler that does not
9969 # have its own set of headers then define
9972 # If this is using newlib, without having the headers available now,
9973 # then define inhibit_libc in LIBGCC2_CFLAGS.
9974 # This prevents libgcc2 from containing any code which requires libc
9977 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9978 test x$with_newlib = xyes ; } &&
9979 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9980 inhibit_libc=-Dinhibit_libc
9984 # When building gcc with a cross-compiler, we need to adjust things so
9985 # that the generator programs are still built with the native compiler.
9986 # Also, we cannot run fixincludes or fix-header.
9988 # These are the normal (build=host) settings:
9990 BUILD_PREFIX_1=ignore-
9991 CC_FOR_BUILD='$(CC)'
9992 BUILD_CFLAGS='$(ALL_CFLAGS)'
9994 STMP_FIXINC=stmp-fixinc
9996 # Possibly disable fixproto, on a per-target basis.
9997 case ${use_fixproto} in
10002 STMP_FIXPROTO=stmp-fixproto
10007 # And these apply if build != host, or we are generating coverage data
10008 if test x$build != x$host || test "x$coverage_flags" != x
10010 BUILD_PREFIX=build-
10011 BUILD_PREFIX_1=build-
10012 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10014 if test "x$TARGET_SYSTEM_ROOT" = x; then
10020 # Expand extra_headers to include complete path.
10021 # This substitutes for lots of t-* files.
10022 extra_headers_list=
10023 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10024 for file in ${extra_headers} ; do
10025 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10028 # Define collect2 in Makefile.
10029 case $host_can_use_collect2 in
10031 *) collect2='collect2$(exeext)' ;;
10035 # Add a definition of USE_COLLECT2 if system wants one.
10036 case $use_collect2 in
10037 no) use_collect2= ;;
10040 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10041 xm_defines="${xm_defines} USE_COLLECT2"
10042 case $host_can_use_collect2 in
10044 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10045 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10046 { (exit 1); exit 1; }; }
10052 # ---------------------------
10053 # Assembler & linker features
10054 # ---------------------------
10056 # Identify the assembler which will work hand-in-glove with the newly
10057 # built GCC, so that we can examine its features. This is the assembler
10058 # which will be driven by the driver program.
10060 # If build != host, and we aren't building gas in-tree, we identify a
10061 # build->target assembler and hope that it will have the same features
10062 # as the host->target assembler we'll be using.
10063 echo "$as_me:$LINENO: checking what assembler to use" >&5
10064 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10067 gcc_cv_gas_major_version=
10068 gcc_cv_gas_minor_version=
10069 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10070 if test -x "$DEFAULT_ASSEMBLER"; then
10071 gcc_cv_as="$DEFAULT_ASSEMBLER"
10072 elif test -x as$host_exeext; then
10073 # Build using assembler in the current directory.
10074 gcc_cv_as=./as$host_exeext
10075 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10076 && test -f ../gas/Makefile \
10077 && test x$build = x$host; then
10078 # Single tree build which includes gas. We want to prefer it
10079 # over whatever linker top-level may have detected, since
10080 # we'll use what we're building after installation anyway.
10082 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10083 for f in $gcc_cv_as_bfd_srcdir/configure \
10084 $gcc_cv_as_gas_srcdir/configure \
10085 $gcc_cv_as_gas_srcdir/configure.in \
10086 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10087 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10088 if test x$gcc_cv_gas_version != x; then
10092 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10093 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10094 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10095 case $gcc_cv_gas_patch_version in
10096 "") gcc_cv_gas_patch_version="0" ;;
10098 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10099 + $gcc_cv_gas_minor_version \) \* 1000 \
10100 + $gcc_cv_gas_patch_version`
10102 rm -f as$host_exeext
10103 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10104 in_tree_gas_is_elf=no
10105 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10106 || (grep 'obj_format = multi' ../gas/Makefile \
10107 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10109 in_tree_gas_is_elf=yes
10111 elif test -x "$AS_FOR_TARGET"; then
10112 gcc_cv_as="$AS_FOR_TARGET"
10113 elif test -x "$AS" && test x$host = x$target; then
10117 if test "x$gcc_cv_as" = x; then
10118 # Search the same directories that the installed compiler will
10119 # search. Else we may find the wrong assembler and lose. If we
10120 # do not find a suitable assembler binary, then try the user's
10123 # Also note we have to check MD_EXEC_PREFIX before checking the
10124 # user's path. Unfortunately, there is no good way to get at the
10125 # value of MD_EXEC_PREFIX here. So we do a brute force search
10126 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10127 # to be fixed as part of the make/configure rewrite too.
10129 if test "x$exec_prefix" = xNONE; then
10130 if test "x$prefix" = xNONE; then
10131 test_prefix=/usr/local
10133 test_prefix=$prefix
10136 test_prefix=$exec_prefix
10139 # If the loop below does not find an assembler, then use whatever
10140 # one we can find in the users's path.
10142 if test "x$program_prefix" != xNONE; then
10143 gcc_cv_as=${program_prefix}as$host_exeext
10145 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10148 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10149 $test_prefix/libexec/gcc/$target_noncanonical \
10150 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10151 /usr/lib/gcc/$target_noncanonical \
10152 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10153 $test_prefix/$target_noncanonical/bin"
10155 if test x$host = x$target; then
10156 test_dirs="$test_dirs \
10161 /bsd43/usr/lib/cmplrs/cc \
10162 /usr/cross64/usr/bin \
10163 /usr/lib/cmplrs/cc \
10164 /sysv/usr/lib/cmplrs/cc \
10165 /svr4/usr/lib/cmplrs/cc \
10169 for dir in $test_dirs; do
10170 if test -x $dir/as$host_exeext; then
10171 gcc_cv_as=$dir/as$host_exeext
10176 case $in_tree_gas in
10178 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10179 echo "${ECHO_T}\"newly built gas\"" >&6
10182 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10183 echo "${ECHO_T}$gcc_cv_as" >&6
10187 # Identify the linker which will work hand-in-glove with the newly
10188 # built GCC, so that we can examine its features. This is the linker
10189 # which will be driven by the driver program.
10191 # If build != host, and we aren't building gas in-tree, we identify a
10192 # build->target linker and hope that it will have the same features
10193 # as the host->target linker we'll be using.
10194 echo "$as_me:$LINENO: checking what linker to use" >&5
10195 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10198 gcc_cv_gld_major_version=
10199 gcc_cv_gld_minor_version=
10200 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10201 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10202 if test -x "$DEFAULT_LINKER"; then
10203 gcc_cv_ld="$DEFAULT_LINKER"
10204 elif test -x collect-ld$host_exeext; then
10205 # Build using linker in the current directory.
10206 gcc_cv_ld=./collect-ld$host_exeext
10207 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10208 && test -f ../ld/Makefile \
10209 && test x$build = x$host; then
10210 # Single tree build which includes ld. We want to prefer it
10211 # over whatever linker top-level may have detected, since
10212 # we'll use what we're building after installation anyway.
10214 in_tree_ld_is_elf=no
10215 if (grep 'EMUL = .*elf' ../ld/Makefile \
10216 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10217 in_tree_ld_is_elf=yes
10219 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
10221 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10222 if test x$gcc_cv_gld_version != x; then
10226 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10227 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10228 rm -f collect-ld$host_exeext
10229 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10231 elif test -x "$LD_FOR_TARGET"; then
10232 gcc_cv_ld="$LD_FOR_TARGET"
10233 elif test -x "$LD" && test x$host = x$target; then
10237 if test "x$gcc_cv_ld" = x; then
10238 # Search the same directories that the installed compiler will
10239 # search. Else we may find the wrong linker and lose. If we
10240 # do not find a suitable linker binary, then try the user's
10243 # Also note we have to check MD_EXEC_PREFIX before checking the
10244 # user's path. Unfortunately, there is no good way to get at the
10245 # value of MD_EXEC_PREFIX here. So we do a brute force search
10246 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10247 # to be fixed as part of the make/configure rewrite too.
10249 if test "x$exec_prefix" = xNONE; then
10250 if test "x$prefix" = xNONE; then
10251 test_prefix=/usr/local
10253 test_prefix=$prefix
10256 test_prefix=$exec_prefix
10259 # If the loop below does not find an linker, then use whatever
10260 # one we can find in the users's path.
10262 if test "x$program_prefix" != xNONE; then
10263 gcc_cv_ld=${program_prefix}ld$host_exeext
10265 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10268 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10269 $test_prefix/libexec/gcc/$target_noncanonical \
10270 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10271 /usr/lib/gcc/$target_noncanonical \
10272 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10273 $test_prefix/$target_noncanonical/bin"
10275 if test x$host = x$target; then
10276 test_dirs="$test_dirs \
10281 /bsd43/usr/lib/cmplrs/cc \
10282 /usr/cross64/usr/bin \
10283 /usr/lib/cmplrs/cc \
10284 /sysv/usr/lib/cmplrs/cc \
10285 /svr4/usr/lib/cmplrs/cc \
10289 for dir in $test_dirs; do
10290 if test -x $dir/ld$host_exeext; then
10291 gcc_cv_ld=$dir/ld$host_exeext
10296 case $in_tree_ld in
10298 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10299 echo "${ECHO_T}\"newly built ld\"" >&6
10302 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10303 echo "${ECHO_T}$gcc_cv_ld" >&6
10307 # Figure out what nm we will be using.
10308 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10309 echo "$as_me:$LINENO: checking what nm to use" >&5
10310 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10312 if test -x nm$host_exeext; then
10313 gcc_cv_nm=./nm$host_exeext
10314 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10315 && test -f ../binutils/Makefile; then
10316 # Single tree build which includes binutils.
10318 gcc_cv_nm=./nm$host_exeext
10319 rm -f nm$host_exeext
10320 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10321 elif test "x$program_prefix" != xNONE; then
10322 gcc_cv_nm=${program_prefix}nm$host_exeext
10324 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10326 case $in_tree_nm in
10327 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10328 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10329 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10330 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10333 # Figure out what objdump we will be using.
10334 echo "$as_me:$LINENO: checking what objdump to use" >&5
10335 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10337 if test -x objdump$host_exeext; then
10338 gcc_cv_objdump=./objdump$host_exeext
10339 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10340 && test -f ../binutils/Makefile; then
10341 # Single tree build which includes binutils.
10342 in_tree_objdump=yes
10343 gcc_cv_objdump=./objdump$host_exeext
10344 rm -f objdump$host_exeext
10345 $symbolic_link ../binutils/objdump$host_exeext \
10346 objdump$host_exeext 2>/dev/null
10347 elif test "x$program_prefix" != xNONE; then
10348 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10350 gcc_cv_objdump=`echo objdump | \
10351 sed "${program_transform_name}"`$host_exeext
10353 case $in_tree_objdump in
10354 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10355 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10356 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10357 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10360 # Figure out what assembler alignment features are present.
10361 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10362 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10363 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 gcc_cv_as_balign_and_p2align=no
10367 if test $in_tree_gas = yes; then
10368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10369 then gcc_cv_as_balign_and_p2align=yes
10371 elif test x$gcc_cv_as != x; then
10373 .p2align 2' > conftest.s
10374 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }
10381 gcc_cv_as_balign_and_p2align=yes
10383 echo "configure: failed program was" >&5
10386 rm -f conftest.o conftest.s
10389 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10390 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10391 if test $gcc_cv_as_balign_and_p2align = yes; then
10393 cat >>confdefs.h <<\_ACEOF
10394 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10399 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10400 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10401 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 gcc_cv_as_max_skip_p2align=no
10405 if test $in_tree_gas = yes; then
10406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10407 then gcc_cv_as_max_skip_p2align=yes
10409 elif test x$gcc_cv_as != x; then
10410 echo '.p2align 4,,7' > conftest.s
10411 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }
10418 gcc_cv_as_max_skip_p2align=yes
10420 echo "configure: failed program was" >&5
10423 rm -f conftest.o conftest.s
10426 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10427 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10428 if test $gcc_cv_as_max_skip_p2align = yes; then
10430 cat >>confdefs.h <<\_ACEOF
10431 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10436 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10437 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10438 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 gcc_cv_as_subsection_m1=no
10442 if test $in_tree_gas = yes; then
10443 if test $in_tree_gas_is_elf = yes \
10444 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10445 then gcc_cv_as_subsection_m1=yes
10447 elif test x$gcc_cv_as != x; then
10448 echo 'conftest_label1: .word 0
10450 conftest_label2: .word 0
10451 .previous' > conftest.s
10452 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }
10459 if test x$gcc_cv_nm != x; then
10460 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10461 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10462 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10464 else gcc_cv_as_subsection_m1=yes
10466 rm -f conftest.nm1 conftest.nm2
10469 echo "configure: failed program was" >&5
10472 rm -f conftest.o conftest.s
10475 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10476 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10477 if test $gcc_cv_as_subsection_m1 = yes; then
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_GAS_SUBSECTION_ORDERING 1
10485 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10486 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10487 if test "${gcc_cv_as_weak+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 if test $in_tree_gas = yes; then
10492 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10493 then gcc_cv_as_weak=yes
10495 elif test x$gcc_cv_as != x; then
10496 echo ' .weak foobar' > conftest.s
10497 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }
10506 echo "configure: failed program was" >&5
10509 rm -f conftest.o conftest.s
10512 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10513 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10514 if test $gcc_cv_as_weak = yes; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define HAVE_GAS_WEAK 1
10522 # .hidden needs to be supported in both the assembler and the linker,
10523 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10524 # This is irritatingly difficult to feature test for; we have to check the
10525 # date string after the version number. If we've got an in-tree
10526 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10528 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10529 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10530 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10531 if test "${gcc_cv_as_hidden+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 gcc_cv_as_hidden=no
10535 if test $in_tree_gas = yes; then
10536 if test $in_tree_gas_is_elf = yes \
10537 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10538 then gcc_cv_as_hidden=yes
10540 elif test x$gcc_cv_as != x; then
10541 echo ' .hidden foobar
10542 foobar:' > conftest.s
10543 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }
10550 gcc_cv_as_hidden=yes
10552 echo "configure: failed program was" >&5
10555 rm -f conftest.o conftest.s
10558 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10559 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10562 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10563 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10564 if test "${gcc_cv_ld_hidden+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 if test $in_tree_ld = yes ; then
10568 gcc_cv_ld_hidden=no
10569 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 \
10570 && test $in_tree_ld_is_elf = yes; then
10571 gcc_cv_ld_hidden=yes
10574 gcc_cv_ld_hidden=yes
10575 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10576 if echo "$ld_ver" | grep GNU > /dev/null; then
10577 ld_vers=`echo $ld_ver | sed -n \
10578 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10579 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10580 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10581 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10582 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10583 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10584 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'`
10585 if test 0"$ld_date" -lt 20020404; then
10586 if test -n "$ld_date"; then
10587 # If there was date string, but was earlier than 2002-04-04, fail
10588 gcc_cv_ld_hidden=no
10589 elif test -z "$ld_vers"; then
10590 # If there was no date string nor ld version number, something is wrong
10591 gcc_cv_ld_hidden=no
10593 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10594 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10595 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10596 test -z "$ld_vers_patch" && ld_vers_patch=0
10597 if test "$ld_vers_major" -lt 2; then
10598 gcc_cv_ld_hidden=no
10599 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10600 gcc_cv_ld_hidden="no"
10601 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10602 gcc_cv_ld_hidden=no
10607 case "${target}" in
10608 hppa64*-*-hpux* | ia64*-*-hpux*)
10609 gcc_cv_ld_hidden=yes
10612 gcc_cv_ld_hidden=no
10618 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10619 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10620 libgcc_visibility=no
10622 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10623 libgcc_visibility=yes
10625 cat >>confdefs.h <<\_ACEOF
10626 #define HAVE_GAS_HIDDEN 1
10631 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10632 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10633 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10634 if test "${gcc_cv_as_leb128+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 gcc_cv_as_leb128=no
10638 if test $in_tree_gas = yes; then
10639 if test $in_tree_gas_is_elf = yes \
10640 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10641 then gcc_cv_as_leb128=yes
10643 elif test x$gcc_cv_as != x; then
10650 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }
10657 # GAS versions before 2.11 do not support uleb128,
10658 # despite appearing to.
10659 # ??? There exists an elf-specific test that will crash
10660 # the assembler. Perhaps it's better to figure out whether
10661 # arbitrary sections are supported and try the test.
10662 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10663 if echo "$as_ver" | grep GNU > /dev/null; then
10664 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10665 as_major=`echo $as_ver | sed 's/\..*//'`
10666 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10667 if test $as_major -eq 2 && test $as_minor -lt 11
10669 else gcc_cv_as_leb128=yes
10673 echo "configure: failed program was" >&5
10676 rm -f conftest.o conftest.s
10679 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10680 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10681 if test $gcc_cv_as_leb128 = yes; then
10683 cat >>confdefs.h <<\_ACEOF
10684 #define HAVE_AS_LEB128 1
10689 # GAS versions up to and including 2.11.0 may mis-optimize
10691 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10692 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10693 if test "${gcc_cv_as_eh_frame+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 gcc_cv_as_eh_frame=no
10697 if test $in_tree_gas = yes; then
10698 if test $in_tree_gas_is_elf = yes \
10699 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10700 then gcc_cv_as_eh_frame=yes
10702 elif test x$gcc_cv_as != x; then
10709 .section .eh_frame,"aw",@progbits
10711 .4byte .LECIE1-.LSCIE1
10725 .4byte .LEFDE1-.LASFDE1
10727 .4byte .LASFDE1-__FRAME_BEGIN__
10734 .LEFDE1:' > conftest.s
10735 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }
10742 cat > conftest.lit <<EOF
10743 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10744 0010 01000000 12000000 18000000 00000000 ................
10745 0020 08000000 04080000 0044 .........D
10747 cat > conftest.big <<EOF
10748 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10749 0010 00000001 00000012 00000018 00000000 ................
10750 0020 00000008 04000000 0844 .........D
10752 # If the assembler didn't choke, and we can objdump,
10753 # and we got the correct data, then succeed.
10754 if test x$gcc_cv_objdump != x \
10755 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10756 | tail -3 > conftest.got \
10757 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10758 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10760 gcc_cv_as_eh_frame=yes
10761 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 gcc_cv_as_eh_frame=buggy
10769 # Uh oh, what do we do now?
10770 gcc_cv_as_eh_frame=no
10773 echo "configure: failed program was" >&5
10776 rm -f conftest.o conftest.s
10779 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10780 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10783 if test $gcc_cv_as_eh_frame = buggy; then
10785 cat >>confdefs.h <<\_ACEOF
10786 #define USE_AS_TRADITIONAL_FORMAT 1
10791 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10792 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10793 if test "${gcc_cv_as_shf_merge+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 gcc_cv_as_shf_merge=no
10797 if test $in_tree_gas = yes; then
10798 if test $in_tree_gas_is_elf = yes \
10799 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10800 then gcc_cv_as_shf_merge=yes
10802 elif test x$gcc_cv_as != x; then
10803 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10804 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }
10811 gcc_cv_as_shf_merge=yes
10813 echo "configure: failed program was" >&5
10816 rm -f conftest.o conftest.s
10819 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10820 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10823 cat >>confdefs.h <<_ACEOF
10824 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10828 # Thread-local storage - the check is heavily parametrized.
10836 .section ".tdata","awT",@progbits
10839 ldq $27,__tls_get_addr($29) !literal!1
10840 lda $16,foo($29) !tlsgd!1
10841 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10842 ldq $27,__tls_get_addr($29) !literal!2
10843 lda $16,foo($29) !tlsldm!2
10844 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10845 ldq $1,foo($29) !gotdtprel
10846 ldah $2,foo($29) !dtprelhi
10847 lda $3,foo($2) !dtprello
10848 lda $4,foo($29) !dtprel
10849 ldq $1,foo($29) !gottprel
10850 ldah $2,foo($29) !tprelhi
10851 lda $3,foo($2) !tprello
10852 lda $4,foo($29) !tprel'
10855 tls_as_opt=--fatal-warnings
10859 .section ".tdata","awT",@progbits
10863 leal foo@TLSGD(,%ebx,1), %eax
10864 leal foo@TLSLDM(%ebx), %eax
10865 leal foo@DTPOFF(%eax), %edx
10866 movl foo@GOTTPOFF(%ebx), %eax
10867 subl foo@GOTTPOFF(%ebx), %eax
10868 addl foo@GOTNTPOFF(%ebx), %eax
10869 movl foo@INDNTPOFF, %eax
10870 movl $foo@TPOFF, %eax
10871 subl $foo@TPOFF, %eax
10872 leal foo@NTPOFF(%ecx), %eax'
10875 tls_as_opt=--fatal-warnings
10879 .section ".tdata","awT",@progbits
10883 leaq foo@TLSGD(%rip), %rdi
10884 leaq foo@TLSLD(%rip), %rdi
10885 leaq foo@DTPOFF(%rax), %rdx
10886 movq foo@GOTTPOFF(%rip), %rax
10887 movq $foo@TPOFF, %rax'
10890 tls_as_opt=--fatal-warnings
10894 .section ".tdata","awT",@progbits
10897 addl r16 = @ltoff(@dtpmod(foo#)), gp
10898 addl r17 = @ltoff(@dtprel(foo#)), gp
10899 addl r18 = @ltoff(@tprel(foo#)), gp
10900 addl r19 = @dtprel(foo#), gp
10901 adds r21 = @dtprel(foo#), r13
10902 movl r23 = @dtprel(foo#)
10903 addl r20 = @tprel(foo#), gp
10904 adds r22 = @tprel(foo#), r13
10905 movl r24 = @tprel(foo#)'
10908 tls_as_opt=--fatal-warnings
10912 .section ".tdata","awT",@progbits
10920 addi 3,31,ld0@got@tlsgd
10922 addi 3,31,x1@got@tlsld
10925 addis 9,3,x2@dtprel@ha
10926 addi 9,9,x2@dtprel@l
10927 lwz 9,x3@got@tprel(31)
10930 addis 9,2,x2@tprel@ha
10931 addi 9,9,x2@tprel@l'
10934 tls_as_opt="-a32 --fatal-warnings"
10938 .section ".tdata","awT",@progbits
10946 addi 3,2,ld0@got@tlsgd
10952 addi 3,2,x1@got@tlsld
10958 addis 9,3,x2@dtprel@ha
10959 addi 9,9,x2@dtprel@l
10962 ld 9,x3@got@dtprel(2)
10968 tls_as_opt="-a64 --fatal-warnings"
10972 .section ".tdata","awT",@progbits
10979 .long foo@GOTNTPOFF
10980 .long foo@INDNTPOFF
10981 l %r1,foo@GOTNTPOFF(%r12)
10982 l %r1,0(%r1):tls_load:foo
10983 bas %r14,0(%r1,%r13):tls_gdcall:foo
10984 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10987 tls_as_opt="-m31 --fatal-warnings"
10991 .section ".tdata","awT",@progbits
10998 .quad foo@GOTNTPOFF
10999 lg %r1,foo@GOTNTPOFF(%r12)
11000 larl %r1,foo@INDNTPOFF
11001 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
11002 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11005 tls_as_opt="-m64 -Aesame --fatal-warnings"
11007 sh-*-* | sh[34]-*-*)
11009 .section ".tdata","awT",@progbits
11019 tls_as_opt=--fatal-warnings
11023 sparc*-sun-solaris2.*)
11030 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11032 .section ".tdata",#alloc,#write,#tls
11035 sethi %tgd_hi22(foo), %o0
11036 add %o0, %tgd_lo10(foo), %o1
11037 add %l7, %o1, %o0, %tgd_add(foo)
11038 call __tls_get_addr, %tgd_call(foo)
11039 sethi %tldm_hi22(foo), %l1
11040 add %l1, %tldm_lo10(foo), %l2
11041 add %l7, %l2, %o0, %tldm_add(foo)
11042 call __tls_get_addr, %tldm_call(foo)
11043 sethi %tldo_hix22(foo), %l3
11044 xor %l3, %tldo_lox10(foo), %l4
11045 add %o0, %l4, %l5, %tldo_add(foo)
11046 sethi %tie_hi22(foo), %o3
11047 add %o3, %tie_lo10(foo), %o3
11048 ld [%l7 + %o3], %o2, %tie_ld(foo)
11049 add %g7, %o2, %o4, %tie_add(foo)
11050 sethi %tle_hix22(foo), %l1
11051 xor %l1, %tle_lox10(foo), %o5
11052 ld [%g7 + %o5], %o1'
11057 .section ".tdata","awT",@progbits
11060 sethi %tgd_hi22(foo), %o0
11061 add %o0, %tgd_lo10(foo), %o1
11062 add %l7, %o1, %o0, %tgd_add(foo)
11063 call __tls_get_addr, %tgd_call(foo)
11064 sethi %tldm_hi22(foo), %l1
11065 add %l1, %tldm_lo10(foo), %l2
11066 add %l7, %l2, %o0, %tldm_add(foo)
11067 call __tls_get_addr, %tldm_call(foo)
11068 sethi %tldo_hix22(foo), %l3
11069 xor %l3, %tldo_lox10(foo), %l4
11070 add %o0, %l4, %l5, %tldo_add(foo)
11071 sethi %tie_hi22(foo), %o3
11072 add %o3, %tie_lo10(foo), %o3
11073 ld [%l7 + %o3], %o2, %tie_ld(foo)
11074 add %g7, %o2, %o4, %tie_add(foo)
11075 sethi %tle_hix22(foo), %l1
11076 xor %l1, %tle_lox10(foo), %o5
11077 ld [%g7 + %o5], %o1'
11080 tls_as_opt="-32 --fatal-warnings"
11084 if test -z "$tls_first_major"; then
11085 : # If we don't have a check, assume no support.
11087 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11088 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11089 if test "${gcc_cv_as_tls+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 if test $in_tree_gas = yes; then
11094 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11095 then gcc_cv_as_tls=yes
11097 elif test x$gcc_cv_as != x; then
11098 echo "$conftest_s" > conftest.s
11099 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }
11108 echo "configure: failed program was" >&5
11111 rm -f conftest.o conftest.s
11114 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11115 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11116 if test $gcc_cv_as_tls = yes; then
11118 cat >>confdefs.h <<\_ACEOF
11119 #define HAVE_AS_TLS 1
11125 # Target-specific assembler checks.
11128 # All TARGET_ABI_OSF targets.
11129 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11130 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11131 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11132 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 gcc_cv_as_alpha_explicit_relocs=no
11136 if test $in_tree_gas = yes; then
11137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11138 then gcc_cv_as_alpha_explicit_relocs=yes
11140 elif test x$gcc_cv_as != x; then
11141 echo ' .set nomacro
11143 extbl $3, $2, $3 !lituse_bytoff!1
11144 ldq $2, a($29) !literal!1
11145 ldq $4, b($29) !literal!2
11146 ldq_u $3, 0($2) !lituse_base!1
11147 ldq $27, f($29) !literal!5
11148 jsr $26, ($27), f !lituse_jsr!5
11149 ldah $29, 0($26) !gpdisp!3
11150 lda $0, c($29) !gprel
11151 ldah $1, d($29) !gprelhigh
11152 lda $1, d($1) !gprellow
11153 lda $29, 0($29) !gpdisp!3' > conftest.s
11154 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }
11161 gcc_cv_as_alpha_explicit_relocs=yes
11163 echo "configure: failed program was" >&5
11166 rm -f conftest.o conftest.s
11169 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11170 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11171 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11173 cat >>confdefs.h <<\_ACEOF
11174 #define HAVE_AS_EXPLICIT_RELOCS 1
11181 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11182 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11183 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 gcc_cv_as_cris_no_mul_bug=no
11187 if test $in_tree_gas = yes; then
11188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11189 then gcc_cv_as_cris_no_mul_bug=yes
11191 elif test x$gcc_cv_as != x; then
11192 echo '.text' > conftest.s
11193 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }
11200 gcc_cv_as_cris_no_mul_bug=yes
11202 echo "configure: failed program was" >&5
11205 rm -f conftest.o conftest.s
11208 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11209 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11210 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11212 cat >>confdefs.h <<\_ACEOF
11213 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11220 echo "$as_me:$LINENO: checking assembler for .register" >&5
11221 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11222 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 gcc_cv_as_sparc_register_op=no
11226 if test x$gcc_cv_as != x; then
11227 echo '.register %g2, #scratch' > conftest.s
11228 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }
11235 gcc_cv_as_sparc_register_op=yes
11237 echo "configure: failed program was" >&5
11240 rm -f conftest.o conftest.s
11243 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11244 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11245 if test $gcc_cv_as_sparc_register_op = yes; then
11247 cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11253 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11254 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11255 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 gcc_cv_as_sparc_relax=no
11259 if test x$gcc_cv_as != x; then
11260 echo '.text' > conftest.s
11261 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }
11268 gcc_cv_as_sparc_relax=yes
11270 echo "configure: failed program was" >&5
11273 rm -f conftest.o conftest.s
11276 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11277 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11278 if test $gcc_cv_as_sparc_relax = yes; then
11280 cat >>confdefs.h <<\_ACEOF
11281 #define HAVE_AS_RELAX_OPTION 1
11286 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11287 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11288 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 gcc_cv_as_sparc_ua_pcrel=no
11292 if test x$gcc_cv_as != x; then
11299 .uaword %r_disp32(foo)' > conftest.s
11300 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }
11307 if test x$gcc_cv_ld != x \
11308 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11309 gcc_cv_as_sparc_ua_pcrel=yes
11313 echo "configure: failed program was" >&5
11316 rm -f conftest.o conftest.s
11319 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11320 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11321 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11323 cat >>confdefs.h <<\_ACEOF
11324 #define HAVE_AS_SPARC_UA_PCREL 1
11328 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11329 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11330 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 gcc_cv_as_sparc_ua_pcrel_hidden=no
11334 if test x$gcc_cv_as != x; then
11338 .uaword %r_disp32(foo)
11339 .byte 0x32, 0x33, 0x34
11343 .skip 4' > conftest.s
11344 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }
11351 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11352 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11353 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11354 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11355 if $gcc_cv_objdump -R conftest 2> /dev/null \
11356 | grep 'DISP32' > /dev/null 2>&1; then
11359 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11364 echo "configure: failed program was" >&5
11367 rm -f conftest.o conftest.s
11370 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11371 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11372 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11380 fi # unaligned pcrel relocs
11382 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11383 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11384 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 gcc_cv_as_sparc_offsetable_lo10=no
11388 if test x$gcc_cv_as != x; then
11390 or %g1, %lo(ab) + 12, %g1
11391 or %g1, %lo(ab + 12), %g1' > conftest.s
11392 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; }
11399 if test x$gcc_cv_objdump != x \
11400 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11401 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11402 gcc_cv_as_offsetable_lo10=yes
11405 echo "configure: failed program was" >&5
11408 rm -f conftest.o conftest.s
11411 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11412 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11413 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11415 cat >>confdefs.h <<\_ACEOF
11416 #define HAVE_AS_OFFSETABLE_LO10 1
11422 i[34567]86-*-* | x86_64-*-*)
11424 cygwin* | pe | mingw32*)
11425 # Used for DWARF 2 in PE
11426 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11427 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11428 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 gcc_cv_as_ix86_pe_secrel32=no
11432 if test $in_tree_gas = yes; then
11433 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11434 then gcc_cv_as_ix86_pe_secrel32=yes
11436 elif test x$gcc_cv_as != x; then
11440 .secrel32 foo' > conftest.s
11441 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }
11448 if test x$gcc_cv_ld != x \
11449 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11450 gcc_cv_as_ix86_pe_secrel32=yes
11454 echo "configure: failed program was" >&5
11457 rm -f conftest.o conftest.s
11460 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11461 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11462 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11464 cat >>confdefs.h <<\_ACEOF
11465 #define HAVE_GAS_PE_SECREL32_RELOC 1
11472 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11473 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11474 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 gcc_cv_as_ix86_filds_fists=no
11478 if test $in_tree_gas = yes; then
11479 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11480 then gcc_cv_as_ix86_filds_fists=yes
11482 elif test x$gcc_cv_as != x; then
11483 echo 'filds mem; fists mem' > conftest.s
11484 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }
11491 gcc_cv_as_ix86_filds_fists=yes
11493 echo "configure: failed program was" >&5
11496 rm -f conftest.o conftest.s
11499 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11500 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11501 if test $gcc_cv_as_ix86_filds_fists = yes; then
11503 cat >>confdefs.h <<\_ACEOF
11504 #define HAVE_GAS_FILDS_FISTS 1
11509 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11510 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11511 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 gcc_cv_as_ix86_cmov_sun_syntax=no
11515 if test x$gcc_cv_as != x; then
11516 echo 'cmovl.l %edx, %eax' > conftest.s
11517 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; }
11524 gcc_cv_as_ix86_cmov_sun_syntax=yes
11526 echo "configure: failed program was" >&5
11529 rm -f conftest.o conftest.s
11532 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11533 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11534 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11536 cat >>confdefs.h <<\_ACEOF
11537 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11542 # This one is used unconditionally by i386.[ch]; it is to be defined
11543 # to 1 if the feature is present, 0 otherwise.
11544 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11545 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11546 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 gcc_cv_as_ix86_gotoff_in_data=no
11550 if test $in_tree_gas = yes; then
11551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11552 then gcc_cv_as_ix86_gotoff_in_data=yes
11554 elif test x$gcc_cv_as != x; then
11559 .long .L0@GOTOFF' > conftest.s
11560 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }
11567 gcc_cv_as_ix86_gotoff_in_data=yes
11569 echo "configure: failed program was" >&5
11572 rm -f conftest.o conftest.s
11575 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11576 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11579 cat >>confdefs.h <<_ACEOF
11580 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11586 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11587 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11588 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11592 if test $in_tree_gas = yes; then
11593 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11594 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11596 elif test x$gcc_cv_as != x; then
11598 addl r15 = @ltoffx(x#), gp
11600 ld8.mov r16 = [r15], x#' > conftest.s
11601 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }
11608 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11610 echo "configure: failed program was" >&5
11613 rm -f conftest.o conftest.s
11616 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11617 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11618 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11620 cat >>confdefs.h <<\_ACEOF
11621 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11630 *-*-aix*) conftest_s=' .csect .text[PR]
11632 *-*-darwin*) conftest_s=' .text
11634 *) conftest_s=' .text
11638 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11639 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11640 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 gcc_cv_as_powerpc_mfcrf=no
11644 if test $in_tree_gas = yes; then
11645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11646 then gcc_cv_as_powerpc_mfcrf=yes
11648 elif test x$gcc_cv_as != x; then
11649 echo "$conftest_s" > conftest.s
11650 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }
11657 gcc_cv_as_powerpc_mfcrf=yes
11659 echo "configure: failed program was" >&5
11662 rm -f conftest.o conftest.s
11665 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11666 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11667 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11669 cat >>confdefs.h <<\_ACEOF
11670 #define HAVE_AS_MFCRF 1
11677 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11678 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11679 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 gcc_cv_as_mips_explicit_relocs=no
11683 if test $in_tree_gas = yes; then
11684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11685 then gcc_cv_as_mips_explicit_relocs=yes
11687 elif test x$gcc_cv_as != x; then
11688 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11689 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }
11696 gcc_cv_as_mips_explicit_relocs=yes
11698 echo "configure: failed program was" >&5
11701 rm -f conftest.o conftest.s
11704 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11705 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11706 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11707 if test x$target_cpu_default = x
11708 then target_cpu_default=MASK_EXPLICIT_RELOCS
11709 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11715 # ??? Not all targets support dwarf2 debug_line, even within a version
11716 # of gas. Moreover, we need to emit a valid instruction to trigger any
11717 # info to the output file. So, as supported targets are added to gas 2.11,
11718 # add some instruction here to (also) show we expect this might work.
11719 # ??? Once 2.11 is released, probably need to add first known working
11720 # version to the per-target configury.
11722 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11723 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11724 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11727 ia64*-*-* | s390*-*-*)
11734 if test x"$insn" != x; then
11736 .file 1 \"conftest.s\"
11739 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11740 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11741 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 gcc_cv_as_dwarf2_debug_line=no
11745 if test $in_tree_gas = yes; then
11746 if test $in_tree_gas_is_elf = yes \
11747 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11748 then gcc_cv_as_dwarf2_debug_line=yes
11750 elif test x$gcc_cv_as != x; then
11751 echo "$conftest_s" > conftest.s
11752 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }
11759 # ??? This fails with non-gnu grep. Maybe use objdump?
11760 if grep debug_line conftest.o > /dev/null 2>&1; then
11761 gcc_cv_as_dwarf2_debug_line=yes
11764 echo "configure: failed program was" >&5
11767 rm -f conftest.o conftest.s
11770 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11771 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11774 # The .debug_line file table must be in the exact order that
11775 # we specified the files, since these indices are also used
11776 # by DW_AT_decl_file. Approximate this test by testing if
11777 # the assembler bitches if the same index is assigned twice.
11778 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11779 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11780 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11783 gcc_cv_as_dwarf2_file_buggy=no
11784 if test x$gcc_cv_as != x; then
11785 echo ' .file 1 "foo.s"
11786 .file 1 "bar.s"' > conftest.s
11787 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }
11794 gcc_cv_as_dwarf2_file_buggy=yes
11796 echo "configure: failed program was" >&5
11799 rm -f conftest.o conftest.s
11802 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11803 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11806 if test $gcc_cv_as_dwarf2_debug_line = yes \
11807 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11809 cat >>confdefs.h <<\_ACEOF
11810 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11815 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11816 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11817 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 gcc_cv_as_gdwarf2_flag=no
11821 if test $in_tree_gas = yes; then
11822 if test $in_tree_gas_is_elf = yes \
11823 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11824 then gcc_cv_as_gdwarf2_flag=yes
11826 elif test x$gcc_cv_as != x; then
11827 echo "$insn" > conftest.s
11828 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }
11835 gcc_cv_as_gdwarf2_flag=yes
11837 echo "configure: failed program was" >&5
11840 rm -f conftest.o conftest.s
11843 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11844 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11845 if test $gcc_cv_as_gdwarf2_flag = yes; then
11847 cat >>confdefs.h <<\_ACEOF
11848 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11853 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11854 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11855 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 gcc_cv_as_gstabs_flag=no
11859 if test $in_tree_gas = yes; then
11860 if test $in_tree_gas_is_elf = yes \
11861 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11862 then gcc_cv_as_gstabs_flag=yes
11864 elif test x$gcc_cv_as != x; then
11865 echo "$insn" > conftest.s
11866 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; }
11873 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11874 # and warns about it, but still exits successfully. So check for
11876 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }
11883 else gcc_cv_as_gstabs_flag=yes
11886 echo "configure: failed program was" >&5
11889 rm -f conftest.o conftest.s
11892 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11893 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11894 if test $gcc_cv_as_gstabs_flag = yes; then
11896 cat >>confdefs.h <<\_ACEOF
11897 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11903 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11904 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11905 gcc_cv_ld_ro_rw_mix=unknown
11906 if test $in_tree_ld = yes ; then
11907 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 \
11908 && test $in_tree_ld_is_elf = yes; then
11909 gcc_cv_ld_ro_rw_mix=read-write
11911 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11912 echo '.section myfoosect, "a"' > conftest1.s
11913 echo '.section myfoosect, "aw"' > conftest2.s
11914 echo '.byte 1' >> conftest2.s
11915 echo '.section myfoosect, "a"' > conftest3.s
11916 echo '.byte 0' >> conftest3.s
11917 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11918 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11919 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11920 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11921 conftest2.o conftest3.o > /dev/null 2>&1; then
11922 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11923 | sed -e '/myfoosect/!d' -e N`
11924 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11925 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11926 gcc_cv_ld_ro_rw_mix=read-only
11928 gcc_cv_ld_ro_rw_mix=read-write
11932 rm -f conftest.* conftest[123].*
11934 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11936 cat >>confdefs.h <<\_ACEOF
11937 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11941 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11942 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11944 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11945 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11946 gcc_cv_ld_eh_frame_hdr=no
11947 if test $in_tree_ld = yes ; then
11948 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 \
11949 && test $in_tree_ld_is_elf = yes; then
11950 gcc_cv_ld_eh_frame_hdr=yes
11952 elif test x$gcc_cv_ld != x; then
11953 # Check if linker supports --eh-frame-hdr option
11954 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11955 gcc_cv_ld_eh_frame_hdr=yes
11958 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11960 cat >>confdefs.h <<\_ACEOF
11961 #define HAVE_LD_EH_FRAME_HDR 1
11965 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11966 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11968 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11969 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11971 if test $in_tree_ld = yes ; then
11972 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 \
11973 && test $in_tree_ld_is_elf = yes; then
11976 elif test x$gcc_cv_ld != x; then
11977 # Check if linker supports -pie option
11978 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11982 if test x"$gcc_cv_ld_pie" = xyes; then
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_LD_PIE 1
11989 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11990 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11996 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11997 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11998 if test "${gcc_cv_ld_as_needed+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 gcc_cv_ld_as_needed=no
12002 if test $in_tree_ld = yes ; then
12003 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 \
12004 && test $in_tree_ld_is_elf = yes; then
12005 gcc_cv_ld_as_needed=yes
12007 elif test x$gcc_cv_ld != x; then
12008 # Check if linker supports --as-needed and --no-as-needed options
12009 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12010 gcc_cv_ld_as_needed=yes
12015 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12016 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12017 if test x"$gcc_cv_ld_as_needed" = xyes; then
12019 cat >>confdefs.h <<\_ACEOF
12020 #define HAVE_LD_AS_NEEDED 1
12025 if test x$with_sysroot = x && test x$host = x$target \
12026 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12028 cat >>confdefs.h <<_ACEOF
12029 #define PREFIX_INCLUDE_DIR "$prefix/include"
12034 # Find out what GC implementation we want, or may, use.
12036 # Check whether --with-gc or --without-gc was given.
12037 if test "${with_gc+set}" = set; then
12044 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12045 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12046 { (exit 1); exit 1; }; }
12053 echo "Using $GGC for garbage collection."
12055 # Use the system's zlib library.
12057 zlibinc="-I\$(srcdir)/../zlib"
12059 # Check whether --with-system-zlib or --without-system-zlib was given.
12060 if test "${with_system_zlib+set}" = set; then
12061 withval="$with_system_zlib"
12070 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12071 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12072 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12073 if test "${enable_maintainer_mode+set}" = set; then
12074 enableval="$enable_maintainer_mode"
12075 maintainer_mode=$enableval
12080 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12081 echo "${ECHO_T}$maintainer_mode" >&6
12083 if test "$maintainer_mode" = "yes"; then
12089 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
12090 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
12092 # Check whether --with-libbanshee or --without-libbanshee was given.
12093 if test "${with_libbanshee+set}" = set; then
12094 withval="$with_libbanshee"
12095 libbanshee="$with_libbanshee"
12100 if test x"$libbanshee" = xyes; then
12101 BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
12102 BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
12103 ANDER="tree-alias-ander.o"
12105 cat >>confdefs.h <<\_ACEOF
12106 #define HAVE_BANSHEE 1
12114 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
12115 echo "${ECHO_T}$with_libbanshee" >&6
12125 # Make empty files to contain the specs and options for each language.
12126 # Then add #include lines to for a compiler that has specs and/or options.
12131 for subdir in . $subdirs
12133 if test -f $srcdir/$subdir/lang.opt; then
12134 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12136 if test -f $srcdir/$subdir/lang-specs.h; then
12137 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12139 if test -f $srcdir/$subdir/$subdir-tree.def; then
12140 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12144 # These (without "all_") are set in each config-lang.in.
12145 # `language' must be a single word so is spelled singularly.
12147 all_boot_languages=
12150 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
12151 # List of language makefile fragments.
12152 all_lang_makefrags=
12153 # List of language subdirectory makefiles. Deprecated.
12154 all_lang_makefiles=
12155 # Files for gengtype
12156 all_gtfiles="$target_gtfiles"
12157 # Files for gengtype with language
12158 all_gtfiles_files_langs=
12159 all_gtfiles_files_files=
12161 # Add the language fragments.
12162 # Languages are added via two mechanisms. Some information must be
12163 # recorded in makefile variables, these are defined in config-lang.in.
12164 # We accumulate them and plug them into the main Makefile.
12165 # The other mechanism is a set of hooks for each of the main targets
12166 # like `clean', `install', etc.
12168 language_hooks="Make-hooks"
12178 . ${srcdir}/$s/config-lang.in
12179 if test "x$language" = x
12181 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12184 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12185 if test -f ${srcdir}/$s/Makefile.in
12186 then all_lang_makefiles="$s/Makefile"
12188 all_languages="$all_languages $language"
12189 if test "x$boot_language" = xyes
12191 all_boot_languages="$all_boot_languages $language"
12193 all_compilers="$all_compilers $compilers"
12194 all_stagestuff="$all_stagestuff $stagestuff"
12195 all_outputs="$all_outputs $outputs"
12196 all_gtfiles="$all_gtfiles $gtfiles"
12199 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12200 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12204 # Pick up gtfiles for c
12207 . ${srcdir}/c-config-lang.in
12208 all_gtfiles="$all_gtfiles $gtfiles"
12211 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12212 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12216 for language in $all_languages
12218 check_languages="$check_languages check-$language"
12221 # We link each language in with a set of hooks, reached indirectly via
12226 target_list="all.build all.cross start.encap rest.encap tags \
12227 install-normal install-common install-man \
12228 uninstall info man srcextra srcman srcinfo \
12229 mostlyclean clean distclean maintainer-clean \
12230 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12231 for t in $target_list
12234 for lang in $all_languages
12238 echo "lang.$t: $x" >> Make-hooks
12247 echo "dir ." > .gdbinit
12248 echo "dir ${srcdir}" >> .gdbinit
12249 if test x$gdb_needs_out_file_path = xyes
12251 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12253 if test "x$subdirs" != x; then
12256 echo "dir ${srcdir}/$s" >> .gdbinit
12259 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12261 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12262 # absolute path for gcc_tooldir based on inserting the number of up-directory
12263 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12264 # $(libsubdir)/@(unlibsubdir) based path.
12265 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12266 # make and thus we'd get different behavior depending on where we built the
12268 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12269 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12271 # An explanation of the sed strings:
12272 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12273 # -e 's|/$||' match a trailing forward slash and eliminates it
12274 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12275 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12277 # (*) Note this pattern overwrites the first character of the string
12278 # with a forward slash if one is not already present. This is not a
12279 # problem because the exact names of the sub-directories concerned is
12280 # unimportant, just the number of them matters.
12282 # The practical upshot of these patterns is like this:
12284 # prefix exec_prefix result
12285 # ------ ----------- ------
12286 # /foo /foo/bar ../
12287 # /foo/ /foo/bar ../
12288 # /foo /foo/bar/ ../
12289 # /foo/ /foo/bar/ ../
12290 # /foo /foo/bar/ugg ../../
12293 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12298 # Find a directory in which to install a shared libgcc.
12300 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12301 if test "${enable_version_specific_runtime_libs+set}" = set; then
12302 enableval="$enable_version_specific_runtime_libs"
12307 # Check whether --with-slibdir or --without-slibdir was given.
12308 if test "${with_slibdir+set}" = set; then
12309 withval="$with_slibdir"
12310 slibdir="$with_slibdir"
12312 if test "${enable_version_specific_runtime_libs+set}" = set; then
12313 slibdir='$(libsubdir)'
12314 elif test "$host" != "$target"; then
12315 slibdir='$(build_tooldir)/lib'
12317 slibdir='$(libdir)'
12322 objdir=`${PWDCMD-pwd}`
12325 # Substitute configuration variables
12394 # If it doesn't already exist, create document directory
12395 echo "checking for the document directory." 1>&2
12396 if test -d doc ; then
12403 if test x${build} = x${host} ; then
12404 if test x${host} = x${target} ; then
12405 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12407 echo "Links are now set up to build a cross-compiler" 1>&2
12408 echo " from ${host} to ${target}." 1>&2
12411 if test x${host} = x${target} ; then
12412 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12413 echo " for ${target}." 1>&2
12415 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12416 echo " from ${host} to ${target}." 1>&2
12423 # Configure the subdirectories
12424 # AC_CONFIG_SUBDIRS($subdirs)
12426 # Create the Makefile
12427 # and configure language subdirectories
12428 ac_config_files="$ac_config_files $all_outputs"
12431 ac_config_commands="$ac_config_commands default"
12433 cat >confcache <<\_ACEOF
12434 # This file is a shell script that caches the results of configure
12435 # tests run on this system so they can be shared between configure
12436 # scripts and configure runs, see configure's option --config-cache.
12437 # It is not useful on other systems. If it contains results you don't
12438 # want to keep, you may remove or edit it.
12440 # config.status only pays attention to the cache file if you give it
12441 # the --recheck option to rerun configure.
12443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12445 # following values.
12449 # The following way of writing the cache mishandles newlines in values,
12450 # but we know of no workaround that is simple, portable, and efficient.
12451 # So, don't put newlines in cache variables' values.
12452 # Ultrix sh set writes to stderr and can't be redirected directly,
12453 # and sets the high bit in the cache file unless we assign to the vars.
12456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12458 # `set' does not quote correctly, so add quotes (double-quote
12459 # substitution turns \\\\ into \\, and sed turns \\ into \).
12462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12465 # `set' quotes correctly as required by POSIX, so do not add quotes.
12467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12476 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12478 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12479 if test -w $cache_file; then
12480 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12481 cat confcache >$cache_file
12483 echo "not updating unwritable cache $cache_file"
12488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12489 # Let make expand exec_prefix.
12490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12494 # trailing colons and then remove the whole line if VPATH becomes empty
12495 # (actually we leave an empty line to preserve line numbers).
12496 if test "x$srcdir" = x.; then
12497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12498 s/:*\$(srcdir):*/:/;
12499 s/:*\${srcdir}:*/:/;
12501 s/^\([^=]*=[ ]*\):*/\1/;
12507 DEFS=-DHAVE_CONFIG_H
12511 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12512 # 1. Remove the extension, and $U if already installed.
12513 ac_i=`echo "$ac_i" |
12514 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12516 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12517 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12519 LIBOBJS=$ac_libobjs
12521 LTLIBOBJS=$ac_ltlibobjs
12525 : ${CONFIG_STATUS=./config.status}
12526 ac_clean_files_save=$ac_clean_files
12527 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12530 cat >$CONFIG_STATUS <<_ACEOF
12532 # Generated by $as_me.
12533 # Run this file to recreate the current configuration.
12534 # Compiler output produced by configure, useful for debugging
12535 # configure, is in config.log if it exists.
12538 ac_cs_recheck=false
12540 SHELL=\${CONFIG_SHELL-$SHELL}
12543 cat >>$CONFIG_STATUS <<\_ACEOF
12544 ## --------------------- ##
12545 ## M4sh Initialization. ##
12546 ## --------------------- ##
12548 # Be Bourne compatible
12549 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12553 # is contrary to our usage. Disable this feature.
12554 alias -g '${1+"$@"}'='"$@"'
12555 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12558 DUALCASE=1; export DUALCASE # for MKS sh
12560 # Support unset when possible.
12561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12568 # Work around bugs in pre-3.0 UWIN ksh.
12569 $as_unset ENV MAIL MAILPATH
12576 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12577 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12578 LC_TELEPHONE LC_TIME
12580 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12581 eval $as_var=C; export $as_var
12587 # Required to use basename.
12588 if expr a : '\(a\)' >/dev/null 2>&1; then
12594 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12595 as_basename=basename
12601 # Name of the executable.
12602 as_me=`$as_basename "$0" ||
12603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12604 X"$0" : 'X\(//\)$' \| \
12605 X"$0" : 'X\(/\)$' \| \
12606 . : '\(.\)' 2>/dev/null ||
12608 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12609 /^X\/\(\/\/\)$/{ s//\1/; q; }
12610 /^X\/\(\/\).*/{ s//\1/; q; }
12614 # PATH needs CR, and LINENO needs CR and PATH.
12615 # Avoid depending upon Character Ranges.
12616 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12617 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12618 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12619 as_cr_digits='0123456789'
12620 as_cr_alnum=$as_cr_Letters$as_cr_digits
12622 # The user is always right.
12623 if test "${PATH_SEPARATOR+set}" != set; then
12624 echo "#! /bin/sh" >conf$$.sh
12625 echo "exit 0" >>conf$$.sh
12627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12636 as_lineno_1=$LINENO
12637 as_lineno_2=$LINENO
12638 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12639 test "x$as_lineno_1" != "x$as_lineno_2" &&
12640 test "x$as_lineno_3" = "x$as_lineno_2" || {
12641 # Find who we are. Look in the path if we contain no path at all
12644 *[\\/]* ) as_myself=$0 ;;
12645 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12649 test -z "$as_dir" && as_dir=.
12650 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12655 # We did not find ourselves, most probably we were run as `sh COMMAND'
12656 # in which case we are not to be found in the path.
12657 if test "x$as_myself" = x; then
12660 if test ! -f "$as_myself"; then
12661 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12662 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12663 { (exit 1); exit 1; }; }
12665 case $CONFIG_SHELL in
12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12671 test -z "$as_dir" && as_dir=.
12672 for as_base in sh bash ksh sh5; do
12675 if ("$as_dir/$as_base" -c '
12676 as_lineno_1=$LINENO
12677 as_lineno_2=$LINENO
12678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12679 test "x$as_lineno_1" != "x$as_lineno_2" &&
12680 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12681 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12682 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12683 CONFIG_SHELL=$as_dir/$as_base
12684 export CONFIG_SHELL
12685 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12693 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12694 # uniformly replaced by the line number. The first 'sed' inserts a
12695 # line-number line before each line; the second 'sed' does the real
12696 # work. The second script uses 'N' to pair each line-number line
12697 # with the numbered line, and appends trailing '-' during
12698 # substitution so that $LINENO is not a special case at line end.
12699 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12700 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12701 sed '=' <$as_myself |
12706 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12709 s,^['$as_cr_digits']*\n,,
12710 ' >$as_me.lineno &&
12711 chmod +x $as_me.lineno ||
12712 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12713 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12714 { (exit 1); exit 1; }; }
12716 # Don't try to exec as it changes $[0], causing all sort of problems
12717 # (the dirname of $[0] is not the place where we might find the
12718 # original and so on. Autoconf is especially sensible to this).
12720 # Exit status is that of the last command.
12725 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12726 *c*,-n*) ECHO_N= ECHO_C='
12728 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12729 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12732 if expr a : '\(a\)' >/dev/null 2>&1; then
12738 rm -f conf$$ conf$$.exe conf$$.file
12740 if ln -s conf$$.file conf$$ 2>/dev/null; then
12741 # We could just check for DJGPP; but this test a) works b) is more generic
12742 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12743 if test -f conf$$.exe; then
12744 # Don't use ln at all; we don't have any links
12749 elif ln conf$$.file conf$$ 2>/dev/null; then
12754 rm -f conf$$ conf$$.exe conf$$.file
12756 if mkdir -p . 2>/dev/null; then
12759 test -d ./-p && rmdir ./-p
12763 as_executable_p="test -f"
12765 # Sed expression to map a string onto a valid CPP name.
12766 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12768 # Sed expression to map a string onto a valid variable name.
12769 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12773 # We need space, tab and new line, in precisely that order.
12783 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12784 # report actual input values of CONFIG_FILES etc. instead of their
12785 # values after options handling. Logging --version etc. is OK.
12789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12790 ## Running $as_me. ##
12795 This file was extended by $as_me, which was
12796 generated by GNU Autoconf 2.59. Invocation command line was
12798 CONFIG_FILES = $CONFIG_FILES
12799 CONFIG_HEADERS = $CONFIG_HEADERS
12800 CONFIG_LINKS = $CONFIG_LINKS
12801 CONFIG_COMMANDS = $CONFIG_COMMANDS
12805 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12809 # Files that config.status was made for.
12810 if test -n "$ac_config_files"; then
12811 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12814 if test -n "$ac_config_headers"; then
12815 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12818 if test -n "$ac_config_links"; then
12819 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12822 if test -n "$ac_config_commands"; then
12823 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12826 cat >>$CONFIG_STATUS <<\_ACEOF
12829 \`$as_me' instantiates files from templates according to the
12830 current configuration.
12832 Usage: $0 [OPTIONS] [FILE]...
12834 -h, --help print this help, then exit
12835 -V, --version print version number, then exit
12836 -q, --quiet do not print progress messages
12837 -d, --debug don't remove temporary files
12838 --recheck update $as_me by reconfiguring in the same conditions
12839 --file=FILE[:TEMPLATE]
12840 instantiate the configuration file FILE
12841 --header=FILE[:TEMPLATE]
12842 instantiate the configuration header FILE
12844 Configuration files:
12847 Configuration headers:
12850 Configuration commands:
12853 Report bugs to <bug-autoconf@gnu.org>."
12856 cat >>$CONFIG_STATUS <<_ACEOF
12859 configured by $0, generated by GNU Autoconf 2.59,
12860 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12862 Copyright (C) 2003 Free Software Foundation, Inc.
12863 This config.status script is free software; the Free Software Foundation
12864 gives unlimited permission to copy, distribute and modify it."
12868 cat >>$CONFIG_STATUS <<\_ACEOF
12869 # If no file are specified by the user, then we need to provide default
12870 # value. By we need to know if files were specified by the user.
12876 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12877 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12885 *) # This is not an option, so the user has probably given explicit
12888 ac_need_defaults=false;;
12892 # Handling of the options.
12894 cat >>$CONFIG_STATUS <<\_ACEOF
12895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12897 --version | --vers* | -V )
12898 echo "$ac_cs_version"; exit 0 ;;
12900 # Conflict between --help and --header
12901 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12902 Try \`$0 --help' for more information." >&5
12903 echo "$as_me: error: ambiguous option: $1
12904 Try \`$0 --help' for more information." >&2;}
12905 { (exit 1); exit 1; }; };;
12906 --help | --hel | -h )
12907 echo "$ac_cs_usage"; exit 0 ;;
12908 --debug | --d* | -d )
12910 --file | --fil | --fi | --f )
12912 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12913 ac_need_defaults=false;;
12914 --header | --heade | --head | --hea )
12916 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12917 ac_need_defaults=false;;
12918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12919 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12922 # This is an error.
12923 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12924 Try \`$0 --help' for more information." >&5
12925 echo "$as_me: error: unrecognized option: $1
12926 Try \`$0 --help' for more information." >&2;}
12927 { (exit 1); exit 1; }; } ;;
12929 *) ac_config_targets="$ac_config_targets $1" ;;
12935 ac_configure_extra_args=
12937 if $ac_cs_silent; then
12939 ac_configure_extra_args="$ac_configure_extra_args --silent"
12943 cat >>$CONFIG_STATUS <<_ACEOF
12944 if \$ac_cs_recheck; then
12945 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12946 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12951 cat >>$CONFIG_STATUS <<_ACEOF
12953 # INIT-COMMANDS section.
12957 symbolic_link='$symbolic_link'
12964 cat >>$CONFIG_STATUS <<\_ACEOF
12965 for ac_config_target in $ac_config_targets
12967 case "$ac_config_target" in
12968 # Handling of arguments.
12969 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12970 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12971 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12972 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12973 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12974 { (exit 1); exit 1; }; };;
12978 # If the user did not use the arguments to specify the items to instantiate,
12979 # then the envvar interface is used. Set only those that are not.
12980 # We use the long form for the default assignment because of an extremely
12981 # bizarre bug on SunOS 4.1.3.
12982 if $ac_need_defaults; then
12983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12985 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12988 # Have a temporary directory for convenience. Make it in the build tree
12989 # simply because there is no reason to put it here, and in addition,
12990 # creating and moving files from /tmp can sometimes cause problems.
12991 # Create a temporary directory, and hook for its removal unless debugging.
12994 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12995 trap '{ (exit 1); exit 1; }' 1 2 13 15
12998 # Create a (secure) tmp directory for tmp files.
13001 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13002 test -n "$tmp" && test -d "$tmp"
13005 tmp=./confstat$$-$RANDOM
13006 (umask 077 && mkdir $tmp)
13009 echo "$me: cannot create a temporary directory in ." >&2
13010 { (exit 1); exit 1; }
13015 cat >>$CONFIG_STATUS <<_ACEOF
13018 # CONFIG_FILES section.
13021 # No need to generate the scripts if there are no CONFIG_FILES.
13022 # This happens for instance when ./config.status config.h
13023 if test -n "\$CONFIG_FILES"; then
13024 # Protect against being on the right side of a sed subst in config.status.
13025 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13026 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13027 s,@SHELL@,$SHELL,;t t
13028 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13029 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13030 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13031 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13032 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13033 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13034 s,@exec_prefix@,$exec_prefix,;t t
13035 s,@prefix@,$prefix,;t t
13036 s,@program_transform_name@,$program_transform_name,;t t
13037 s,@bindir@,$bindir,;t t
13038 s,@sbindir@,$sbindir,;t t
13039 s,@libexecdir@,$libexecdir,;t t
13040 s,@datadir@,$datadir,;t t
13041 s,@sysconfdir@,$sysconfdir,;t t
13042 s,@sharedstatedir@,$sharedstatedir,;t t
13043 s,@localstatedir@,$localstatedir,;t t
13044 s,@libdir@,$libdir,;t t
13045 s,@includedir@,$includedir,;t t
13046 s,@oldincludedir@,$oldincludedir,;t t
13047 s,@infodir@,$infodir,;t t
13048 s,@mandir@,$mandir,;t t
13049 s,@build_alias@,$build_alias,;t t
13050 s,@host_alias@,$host_alias,;t t
13051 s,@target_alias@,$target_alias,;t t
13052 s,@DEFS@,$DEFS,;t t
13053 s,@ECHO_C@,$ECHO_C,;t t
13054 s,@ECHO_N@,$ECHO_N,;t t
13055 s,@ECHO_T@,$ECHO_T,;t t
13056 s,@LIBS@,$LIBS,;t t
13057 s,@build@,$build,;t t
13058 s,@build_cpu@,$build_cpu,;t t
13059 s,@build_vendor@,$build_vendor,;t t
13060 s,@build_os@,$build_os,;t t
13061 s,@host@,$host,;t t
13062 s,@host_cpu@,$host_cpu,;t t
13063 s,@host_vendor@,$host_vendor,;t t
13064 s,@host_os@,$host_os,;t t
13065 s,@target@,$target,;t t
13066 s,@target_cpu@,$target_cpu,;t t
13067 s,@target_vendor@,$target_vendor,;t t
13068 s,@target_os@,$target_os,;t t
13069 s,@build_subdir@,$build_subdir,;t t
13070 s,@host_subdir@,$host_subdir,;t t
13071 s,@target_subdir@,$target_subdir,;t t
13072 s,@GENINSRC@,$GENINSRC,;t t
13074 s,@CFLAGS@,$CFLAGS,;t t
13075 s,@LDFLAGS@,$LDFLAGS,;t t
13076 s,@CPPFLAGS@,$CPPFLAGS,;t t
13077 s,@ac_ct_CC@,$ac_ct_CC,;t t
13078 s,@EXEEXT@,$EXEEXT,;t t
13079 s,@OBJEXT@,$OBJEXT,;t t
13080 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13081 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13083 s,@strict1_warn@,$strict1_warn,;t t
13084 s,@warn_cflags@,$warn_cflags,;t t
13085 s,@WERROR@,$WERROR,;t t
13086 s,@nocommon_flag@,$nocommon_flag,;t t
13087 s,@TREEBROWSER@,$TREEBROWSER,;t t
13088 s,@EGREP@,$EGREP,;t t
13089 s,@valgrind_path@,$valgrind_path,;t t
13090 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13091 s,@valgrind_command@,$valgrind_command,;t t
13092 s,@coverage_flags@,$coverage_flags,;t t
13093 s,@enable_multilib@,$enable_multilib,;t t
13094 s,@enable_shared@,$enable_shared,;t t
13095 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13096 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13097 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13098 s,@onestep@,$onestep,;t t
13099 s,@SET_MAKE@,$SET_MAKE,;t t
13102 s,@LN_S@,$LN_S,;t t
13103 s,@RANLIB@,$RANLIB,;t t
13104 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13105 s,@INSTALL@,$INSTALL,;t t
13106 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13107 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13108 s,@make_compare_target@,$make_compare_target,;t t
13109 s,@have_mktemp_command@,$have_mktemp_command,;t t
13110 s,@MAKEINFO@,$MAKEINFO,;t t
13111 s,@BUILD_INFO@,$BUILD_INFO,;t t
13112 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13113 s,@FLEX@,$FLEX,;t t
13114 s,@BISON@,$BISON,;t t
13115 s,@stage1_cflags@,$stage1_cflags,;t t
13116 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13117 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13118 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13119 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13120 s,@LIBICONV@,$LIBICONV,;t t
13121 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13122 s,@manext@,$manext,;t t
13123 s,@objext@,$objext,;t t
13124 s,@gthread_flags@,$gthread_flags,;t t
13125 s,@extra_modes_file@,$extra_modes_file,;t t
13126 s,@FORBUILD@,$FORBUILD,;t t
13127 s,@PACKAGE@,$PACKAGE,;t t
13128 s,@VERSION@,$VERSION,;t t
13129 s,@USE_NLS@,$USE_NLS,;t t
13130 s,@LIBINTL@,$LIBINTL,;t t
13131 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13132 s,@INCINTL@,$INCINTL,;t t
13133 s,@XGETTEXT@,$XGETTEXT,;t t
13134 s,@GMSGFMT@,$GMSGFMT,;t t
13135 s,@POSUB@,$POSUB,;t t
13136 s,@CATALOGS@,$CATALOGS,;t t
13137 s,@CROSS@,$CROSS,;t t
13139 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13140 s,@inhibit_libc@,$inhibit_libc,;t t
13141 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13142 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13143 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13144 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13145 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13146 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13147 s,@collect2@,$collect2,;t t
13148 s,@libgcc_visibility@,$libgcc_visibility,;t t
13150 s,@zlibdir@,$zlibdir,;t t
13151 s,@zlibinc@,$zlibinc,;t t
13152 s,@MAINT@,$MAINT,;t t
13153 s,@ANDER@,$ANDER,;t t
13154 s,@BANSHEEINC@,$BANSHEEINC,;t t
13155 s,@BANSHEELIB@,$BANSHEELIB,;t t
13156 s,@gcc_tooldir@,$gcc_tooldir,;t t
13157 s,@dollar@,$dollar,;t t
13158 s,@slibdir@,$slibdir,;t t
13159 s,@objdir@,$objdir,;t t
13160 s,@subdirs@,$subdirs,;t t
13161 s,@srcdir@,$srcdir,;t t
13162 s,@all_boot_languages@,$all_boot_languages,;t t
13163 s,@all_compilers@,$all_compilers,;t t
13164 s,@all_gtfiles@,$all_gtfiles,;t t
13165 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13166 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13167 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13168 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13169 s,@all_languages@,$all_languages,;t t
13170 s,@all_stagestuff@,$all_stagestuff,;t t
13171 s,@build_exeext@,$build_exeext,;t t
13172 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13173 s,@build_xm_file_list@,$build_xm_file_list,;t t
13174 s,@build_xm_include_list@,$build_xm_include_list,;t t
13175 s,@build_xm_defines@,$build_xm_defines,;t t
13176 s,@check_languages@,$check_languages,;t t
13177 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13178 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13179 s,@cpp_install_dir@,$cpp_install_dir,;t t
13180 s,@xmake_file@,$xmake_file,;t t
13181 s,@tmake_file@,$tmake_file,;t t
13182 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13183 s,@extra_headers_list@,$extra_headers_list,;t t
13184 s,@extra_objs@,$extra_objs,;t t
13185 s,@extra_parts@,$extra_parts,;t t
13186 s,@extra_passes@,$extra_passes,;t t
13187 s,@extra_programs@,$extra_programs,;t t
13188 s,@float_h_file@,$float_h_file,;t t
13189 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13190 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13191 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13192 s,@gcc_version@,$gcc_version,;t t
13193 s,@gcc_version_full@,$gcc_version_full,;t t
13194 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13195 s,@host_exeext@,$host_exeext,;t t
13196 s,@host_xm_file_list@,$host_xm_file_list,;t t
13197 s,@host_xm_include_list@,$host_xm_include_list,;t t
13198 s,@host_xm_defines@,$host_xm_defines,;t t
13199 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13200 s,@install@,$install,;t t
13201 s,@lang_opt_files@,$lang_opt_files,;t t
13202 s,@lang_specs_files@,$lang_specs_files,;t t
13203 s,@lang_tree_files@,$lang_tree_files,;t t
13204 s,@local_prefix@,$local_prefix,;t t
13205 s,@md_file@,$md_file,;t t
13206 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13207 s,@out_file@,$out_file,;t t
13208 s,@out_object_file@,$out_object_file,;t t
13209 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13210 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13211 s,@symbolic_link@,$symbolic_link,;t t
13212 s,@thread_file@,$thread_file,;t t
13213 s,@tm_file_list@,$tm_file_list,;t t
13214 s,@tm_include_list@,$tm_include_list,;t t
13215 s,@tm_defines@,$tm_defines,;t t
13216 s,@tm_p_file_list@,$tm_p_file_list,;t t
13217 s,@tm_p_include_list@,$tm_p_include_list,;t t
13218 s,@xm_file_list@,$xm_file_list,;t t
13219 s,@xm_include_list@,$xm_include_list,;t t
13220 s,@xm_defines@,$xm_defines,;t t
13221 s,@target_noncanonical@,$target_noncanonical,;t t
13222 s,@c_target_objs@,$c_target_objs,;t t
13223 s,@cxx_target_objs@,$cxx_target_objs,;t t
13224 s,@target_cpu_default@,$target_cpu_default,;t t
13225 s,@GMPLIBS@,$GMPLIBS,;t t
13226 s,@GMPINC@,$GMPINC,;t t
13227 s,@LIBOBJS@,$LIBOBJS,;t t
13228 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13229 /@language_hooks@/r $language_hooks
13230 s,@language_hooks@,,;t t
13235 cat >>$CONFIG_STATUS <<\_ACEOF
13236 # Split the substitutions into bite-sized pieces for seds with
13237 # small command number limits, like on Digital OSF/1 and HP-UX.
13238 ac_max_sed_lines=48
13239 ac_sed_frag=1 # Number of current file.
13240 ac_beg=1 # First line for current file.
13241 ac_end=$ac_max_sed_lines # Line after last line for current file.
13244 while $ac_more_lines; do
13245 if test $ac_beg -gt 1; then
13246 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13248 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13250 if test ! -s $tmp/subs.frag; then
13251 ac_more_lines=false
13253 # The purpose of the label and of the branching condition is to
13254 # speed up the sed processing (if there are no `@' at all, there
13255 # is no need to browse any of the substitutions).
13256 # These are the two extra sed commands mentioned above.
13258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13259 if test -z "$ac_sed_cmds"; then
13260 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13262 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13264 ac_sed_frag=`expr $ac_sed_frag + 1`
13266 ac_end=`expr $ac_end + $ac_max_sed_lines`
13269 if test -z "$ac_sed_cmds"; then
13272 fi # test -n "$CONFIG_FILES"
13275 cat >>$CONFIG_STATUS <<\_ACEOF
13276 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13279 - | *:- | *:-:* ) # input from stdin
13281 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13283 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13284 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13285 * ) ac_file_in=$ac_file.in ;;
13288 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13289 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13291 X"$ac_file" : 'X\(//\)[^/]' \| \
13292 X"$ac_file" : 'X\(//\)$' \| \
13293 X"$ac_file" : 'X\(/\)' \| \
13294 . : '\(.\)' 2>/dev/null ||
13296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13298 /^X\(\/\/\)$/{ s//\1/; q; }
13299 /^X\(\/\).*/{ s//\1/; q; }
13301 { if $as_mkdir_p; then
13306 while test ! -d "$as_dir"; do
13307 as_dirs="$as_dir $as_dirs"
13308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13310 X"$as_dir" : 'X\(//\)[^/]' \| \
13311 X"$as_dir" : 'X\(//\)$' \| \
13312 X"$as_dir" : 'X\(/\)' \| \
13313 . : '\(.\)' 2>/dev/null ||
13315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13317 /^X\(\/\/\)$/{ s//\1/; q; }
13318 /^X\(\/\).*/{ s//\1/; q; }
13321 test ! -n "$as_dirs" || mkdir $as_dirs
13322 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13324 { (exit 1); exit 1; }; }; }
13328 if test "$ac_dir" != .; then
13329 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13330 # A "../" for each directory in $ac_dir_suffix.
13331 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13333 ac_dir_suffix= ac_top_builddir=
13337 .) # No --srcdir option. We are building in place.
13339 if test -z "$ac_top_builddir"; then
13342 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13344 [\\/]* | ?:[\\/]* ) # Absolute path.
13345 ac_srcdir=$srcdir$ac_dir_suffix;
13346 ac_top_srcdir=$srcdir ;;
13347 *) # Relative path.
13348 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13349 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13352 # Do not use `cd foo && pwd` to compute absolute paths, because
13353 # the directories may not exist.
13355 .) ac_abs_builddir="$ac_dir";;
13358 .) ac_abs_builddir=`pwd`;;
13359 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13360 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13363 case $ac_abs_builddir in
13364 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13366 case ${ac_top_builddir}. in
13367 .) ac_abs_top_builddir=$ac_abs_builddir;;
13368 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13369 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13372 case $ac_abs_builddir in
13373 .) ac_abs_srcdir=$ac_srcdir;;
13376 .) ac_abs_srcdir=$ac_abs_builddir;;
13377 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13378 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13381 case $ac_abs_builddir in
13382 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13384 case $ac_top_srcdir in
13385 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13386 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13387 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13393 if test x"$ac_file" != x-; then
13394 { echo "$as_me:$LINENO: creating $ac_file" >&5
13395 echo "$as_me: creating $ac_file" >&6;}
13398 # Let's still pretend it is `configure' which instantiates (i.e., don't
13399 # use $as_me), people would be surprised to read:
13400 # /* config.h. Generated by config.status. */
13401 if test x"$ac_file" = x-; then
13404 configure_input="$ac_file. "
13406 configure_input=$configure_input"Generated from `echo $ac_file_in |
13407 sed 's,.*/,,'` by configure."
13409 # First look for the input files in the build tree, otherwise in the
13411 ac_file_inputs=`IFS=:
13412 for f in $ac_file_in; do
13414 -) echo $tmp/stdin ;;
13416 # Absolute (can't be DOS-style, as IFS=:)
13417 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13418 echo "$as_me: error: cannot find input file: $f" >&2;}
13419 { (exit 1); exit 1; }; }
13422 if test -f "$f"; then
13425 elif test -f "$srcdir/$f"; then
13430 { { 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 done` || { (exit 1); exit 1; }
13437 cat >>$CONFIG_STATUS <<_ACEOF
13441 cat >>$CONFIG_STATUS <<\_ACEOF
13443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13444 s,@configure_input@,$configure_input,;t t
13445 s,@srcdir@,$ac_srcdir,;t t
13446 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13447 s,@top_srcdir@,$ac_top_srcdir,;t t
13448 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13449 s,@builddir@,$ac_builddir,;t t
13450 s,@abs_builddir@,$ac_abs_builddir,;t t
13451 s,@top_builddir@,$ac_top_builddir,;t t
13452 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13453 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13455 if test x"$ac_file" != x-; then
13456 mv $tmp/out $ac_file
13464 cat >>$CONFIG_STATUS <<\_ACEOF
13467 # CONFIG_HEADER section.
13470 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13471 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13473 # ac_d sets the value in "#define NAME VALUE" lines.
13474 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13475 ac_dB='[ ].*$,\1#\2'
13478 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13479 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13480 ac_uB='$,\1#\2define\3'
13484 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13485 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13487 - | *:- | *:-:* ) # input from stdin
13489 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13490 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13491 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13493 * ) ac_file_in=$ac_file.in ;;
13496 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13497 echo "$as_me: creating $ac_file" >&6;}
13499 # First look for the input files in the build tree, otherwise in the
13501 ac_file_inputs=`IFS=:
13502 for f in $ac_file_in; do
13504 -) echo $tmp/stdin ;;
13506 # Absolute (can't be DOS-style, as IFS=:)
13507 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13508 echo "$as_me: error: cannot find input file: $f" >&2;}
13509 { (exit 1); exit 1; }; }
13510 # Do quote $f, to prevent DOS paths from being IFS'd.
13513 if test -f "$f"; then
13516 elif test -f "$srcdir/$f"; then
13521 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13522 echo "$as_me: error: cannot find input file: $f" >&2;}
13523 { (exit 1); exit 1; }; }
13526 done` || { (exit 1); exit 1; }
13527 # Remove the trailing spaces.
13528 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13532 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13533 # `conftest.undefs', that substitutes the proper values into
13534 # config.h.in to produce config.h. The first handles `#define'
13535 # templates, and the second `#undef' templates.
13536 # And first: Protect against being on the right side of a sed subst in
13537 # config.status. Protect against being in an unquoted here document
13538 # in config.status.
13539 rm -f conftest.defines conftest.undefs
13540 # Using a here document instead of a string reduces the quoting nightmare.
13541 # Putting comments in sed scripts is not portable.
13543 # `end' is used to avoid that the second main sed command (meant for
13544 # 0-ary CPP macros) applies to n-ary macro definitions.
13545 # See the Autoconf documentation for `clear'.
13546 cat >confdef2sed.sed <<\_ACEOF
13551 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13553 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13556 # If some macros were called several times there might be several times
13557 # the same #defines, which is useless. Nevertheless, we may not want to
13558 # sort them, since we want the *last* AC-DEFINE to be honored.
13559 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13560 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13561 rm -f confdef2sed.sed
13563 # This sed command replaces #undef with comments. This is necessary, for
13564 # example, in the case of _POSIX_SOURCE, which is predefined and required
13565 # on some systems where configure will not decide to define it.
13566 cat >>conftest.undefs <<\_ACEOF
13567 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13570 # Break up conftest.defines because some shells have a limit on the size
13571 # of here documents, and old seds have small limits too (100 cmds).
13572 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13573 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13574 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13575 echo ' :' >>$CONFIG_STATUS
13576 rm -f conftest.tail
13577 while grep . conftest.defines >/dev/null
13579 # Write a limited-size here document to $tmp/defines.sed.
13580 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13581 # Speed up: don't consider the non `#define' lines.
13582 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13583 # Work around the forget-to-reset-the-flag bug.
13584 echo 't clr' >>$CONFIG_STATUS
13585 echo ': clr' >>$CONFIG_STATUS
13586 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13588 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13590 mv $tmp/out $tmp/in
13592 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13593 rm -f conftest.defines
13594 mv conftest.tail conftest.defines
13596 rm -f conftest.defines
13597 echo ' fi # grep' >>$CONFIG_STATUS
13598 echo >>$CONFIG_STATUS
13600 # Break up conftest.undefs because some shells have a limit on the size
13601 # of here documents, and old seds have small limits too (100 cmds).
13602 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13603 rm -f conftest.tail
13604 while grep . conftest.undefs >/dev/null
13606 # Write a limited-size here document to $tmp/undefs.sed.
13607 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13608 # Speed up: don't consider the non `#undef'
13609 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13610 # Work around the forget-to-reset-the-flag bug.
13611 echo 't clr' >>$CONFIG_STATUS
13612 echo ': clr' >>$CONFIG_STATUS
13613 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13615 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13617 mv $tmp/out $tmp/in
13619 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13620 rm -f conftest.undefs
13621 mv conftest.tail conftest.undefs
13623 rm -f conftest.undefs
13625 cat >>$CONFIG_STATUS <<\_ACEOF
13626 # Let's still pretend it is `configure' which instantiates (i.e., don't
13627 # use $as_me), people would be surprised to read:
13628 # /* config.h. Generated by config.status. */
13629 if test x"$ac_file" = x-; then
13630 echo "/* Generated by configure. */" >$tmp/config.h
13632 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13634 cat $tmp/in >>$tmp/config.h
13636 if test x"$ac_file" != x-; then
13637 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13638 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13639 echo "$as_me: $ac_file is unchanged" >&6;}
13641 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13643 X"$ac_file" : 'X\(//\)[^/]' \| \
13644 X"$ac_file" : 'X\(//\)$' \| \
13645 X"$ac_file" : 'X\(/\)' \| \
13646 . : '\(.\)' 2>/dev/null ||
13648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13650 /^X\(\/\/\)$/{ s//\1/; q; }
13651 /^X\(\/\).*/{ s//\1/; q; }
13653 { if $as_mkdir_p; then
13658 while test ! -d "$as_dir"; do
13659 as_dirs="$as_dir $as_dirs"
13660 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13662 X"$as_dir" : 'X\(//\)[^/]' \| \
13663 X"$as_dir" : 'X\(//\)$' \| \
13664 X"$as_dir" : '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; }
13673 test ! -n "$as_dirs" || mkdir $as_dirs
13674 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13676 { (exit 1); exit 1; }; }; }
13679 mv $tmp/config.h $ac_file
13683 rm -f $tmp/config.h
13687 cat >>$CONFIG_STATUS <<\_ACEOF
13690 # CONFIG_COMMANDS section.
13692 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13693 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13694 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13695 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13696 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13697 X"$ac_dest" : 'X\(//\)[^/]' \| \
13698 X"$ac_dest" : 'X\(//\)$' \| \
13699 X"$ac_dest" : 'X\(/\)' \| \
13700 . : '\(.\)' 2>/dev/null ||
13702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13704 /^X\(\/\/\)$/{ s//\1/; q; }
13705 /^X\(\/\).*/{ s//\1/; q; }
13707 { if $as_mkdir_p; then
13712 while test ! -d "$as_dir"; do
13713 as_dirs="$as_dir $as_dirs"
13714 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13716 X"$as_dir" : 'X\(//\)[^/]' \| \
13717 X"$as_dir" : 'X\(//\)$' \| \
13718 X"$as_dir" : '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; }
13727 test ! -n "$as_dirs" || mkdir $as_dirs
13728 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13729 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13730 { (exit 1); exit 1; }; }; }
13734 if test "$ac_dir" != .; then
13735 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13736 # A "../" for each directory in $ac_dir_suffix.
13737 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13739 ac_dir_suffix= ac_top_builddir=
13743 .) # No --srcdir option. We are building in place.
13745 if test -z "$ac_top_builddir"; then
13748 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13750 [\\/]* | ?:[\\/]* ) # Absolute path.
13751 ac_srcdir=$srcdir$ac_dir_suffix;
13752 ac_top_srcdir=$srcdir ;;
13753 *) # Relative path.
13754 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13755 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13758 # Do not use `cd foo && pwd` to compute absolute paths, because
13759 # the directories may not exist.
13761 .) ac_abs_builddir="$ac_dir";;
13764 .) ac_abs_builddir=`pwd`;;
13765 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13766 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13769 case $ac_abs_builddir in
13770 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13772 case ${ac_top_builddir}. in
13773 .) ac_abs_top_builddir=$ac_abs_builddir;;
13774 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13775 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13778 case $ac_abs_builddir in
13779 .) ac_abs_srcdir=$ac_srcdir;;
13782 .) ac_abs_srcdir=$ac_abs_builddir;;
13783 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13784 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13787 case $ac_abs_builddir in
13788 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13790 case $ac_top_srcdir in
13791 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13792 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13793 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13798 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13799 echo "$as_me: executing $ac_dest commands" >&6;}
13802 case ${CONFIG_HEADERS} in
13803 *auto-host.h:config.in*)
13806 # Make sure all the subdirs exist.
13809 test -d $d || mkdir $d
13811 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13812 # bootstrapping and the installation procedure can still use
13813 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13814 # FLAGS_TO_PASS has been modified to solve the problem there.
13815 # This is virtually a duplicate of what happens in configure.lang; we do
13816 # an extra check to make sure this only happens if ln -s can be used.
13817 if test "$symbolic_link" = "ln -s"; then
13818 for d in ${subdirs} fixinc ; do
13819 STARTDIR=`${PWDCMD-pwd}`
13821 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13824 $symbolic_link ../$t $t 2>/dev/null
13834 cat >>$CONFIG_STATUS <<\_ACEOF
13836 { (exit 0); exit 0; }
13838 chmod +x $CONFIG_STATUS
13839 ac_clean_files=$ac_clean_files_save
13842 # configure is writing to config.log, and then calls config.status.
13843 # config.status does its own redirection, appending to config.log.
13844 # Unfortunately, on DOS this fails, as config.log is still kept open
13845 # by configure, so config.status won't be able to write to it; its
13846 # output is simply discarded. So we exec the FD to /dev/null,
13847 # effectively closing config.log, so it can be properly (re)opened and
13848 # appended to by config.status. When coming back to configure, we
13849 # need to make the FD available again.
13850 if test "$no_create" != yes; then
13852 ac_config_status_args=
13853 test "$silent" = yes &&
13854 ac_config_status_args="$ac_config_status_args --quiet"
13856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13859 # would make configure fail if this is the last instruction.
13860 $ac_cs_success || { (exit 1); exit 1; }