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 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 libgcc_visibility GGC zlibdir zlibinc MAINT 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 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
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-generated-files-in-srcdir
854 put copies of generated files in source dir
855 intended for creating source tarballs for users
856 without texinfo bison or flex.
857 --enable-werror enable -Werror in bootstrap stage2 and later
858 --enable-checking=LIST
859 enable expensive run-time checks. With LIST,
860 enable only specific categories of checks.
861 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
862 default is misc,tree,gc,rtlflag
863 --enable-coverage=LEVEL
864 enable compiler\'s code coverage collection.
865 Use to measure compiler performance and locate
866 unused parts of the compiler. With LEVEL, specify
867 optimization. Values are opt, noopt,
869 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
870 --enable-multilib enable library support for multiple ABIs
871 --enable-__cxa_atexit enable __cxa_atexit for C++
872 --enable-threads enable thread usage for target GCC
873 --enable-threads=LIB use LIB thread package for target GCC
874 --enable-objc-gc enable the use of Boehm's garbage collector with
875 the GNU Objective-C runtime
876 --disable-shared don't provide a shared libgcc
877 --enable-intermodule build the compiler in one step
878 --enable-languages=LIST specify which front-ends to build
879 --enable-initfini-array use .init_array/.fini_array sections
880 --enable-sjlj-exceptions
881 arrange to use setjmp/longjmp exception handling
882 --enable-libunwind-exceptions force use libunwind for exceptions
883 --disable-win32-registry
884 disable lookup of installation paths in the
885 Registry on Windows hosts
886 --enable-win32-registry enable registry lookup (default)
887 --enable-win32-registry=KEY
888 use KEY instead of GCC version as the last portion
890 --enable-maintainer-mode
891 enable make rules and dependencies not useful
892 (and sometimes confusing) to the casual installer
893 --enable-version-specific-runtime-libs
894 specify that runtime libraries should be
895 installed in a compiler-specific directory
898 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
899 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
900 --with-local-prefix=DIR specifies directory to put local include
901 --with-gxx-include-dir=DIR
902 specifies directory to put g++ header files
903 --with-cpp-install-dir=DIR
904 install the user visible C preprocessor in DIR
905 (relative to PREFIX) as well as PREFIX/bin
906 --with-gnu-ld arrange to work with GNU ld.
907 --with-ld arrange to use the specified ld (full pathname)
908 --with-gnu-as arrange to work with GNU as
909 --with-as arrange to use the specified as (full pathname)
910 --with-stabs arrange to use stabs instead of host debug format
911 --with-dwarf2 force the default debug format to be DWARF 2
912 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
913 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
914 --with-gc={page,zone} choose the garbage collection mechanism to use
916 --with-system-zlib use installed libz
917 --with-slibdir=DIR shared libraries in DIR LIBDIR
919 Some influential environment variables:
920 CC C compiler command
921 CFLAGS C compiler flags
922 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
923 nonstandard directory <lib dir>
924 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
925 headers in a nonstandard directory <include dir>
928 Use these variables to override the choices made by `configure' or to help
929 it to find libraries and programs with nonstandard names/locations.
934 if test "$ac_init_help" = "recursive"; then
935 # If there are subdirs, report their specific --help.
937 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
938 test -d $ac_dir || continue
941 if test "$ac_dir" != .; then
942 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
943 # A "../" for each directory in $ac_dir_suffix.
944 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
946 ac_dir_suffix= ac_top_builddir=
950 .) # No --srcdir option. We are building in place.
952 if test -z "$ac_top_builddir"; then
955 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
957 [\\/]* | ?:[\\/]* ) # Absolute path.
958 ac_srcdir=$srcdir$ac_dir_suffix;
959 ac_top_srcdir=$srcdir ;;
961 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
962 ac_top_srcdir=$ac_top_builddir$srcdir ;;
965 # Do not use `cd foo && pwd` to compute absolute paths, because
966 # the directories may not exist.
968 .) ac_abs_builddir="$ac_dir";;
971 .) ac_abs_builddir=`pwd`;;
972 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
973 *) ac_abs_builddir=`pwd`/"$ac_dir";;
976 case $ac_abs_builddir in
977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
979 case ${ac_top_builddir}. in
980 .) ac_abs_top_builddir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
982 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
985 case $ac_abs_builddir in
986 .) ac_abs_srcdir=$ac_srcdir;;
989 .) ac_abs_srcdir=$ac_abs_builddir;;
990 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
991 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
994 case $ac_abs_builddir in
995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
997 case $ac_top_srcdir in
998 .) ac_abs_top_srcdir=$ac_abs_builddir;;
999 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1000 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1005 # Check for guested configure; otherwise get Cygnus style configure.
1006 if test -f $ac_srcdir/configure.gnu; then
1008 $SHELL $ac_srcdir/configure.gnu --help=recursive
1009 elif test -f $ac_srcdir/configure; then
1011 $SHELL $ac_srcdir/configure --help=recursive
1012 elif test -f $ac_srcdir/configure.ac ||
1013 test -f $ac_srcdir/configure.in; then
1015 $ac_configure --help
1017 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1023 test -n "$ac_init_help" && exit 0
1024 if $ac_init_version; then
1027 Copyright (C) 2003 Free Software Foundation, Inc.
1028 This configure script is free software; the Free Software Foundation
1029 gives unlimited permission to copy, distribute and modify it.
1035 This file contains any messages produced by compilers while
1036 running configure, to aid debugging if configure makes a mistake.
1038 It was created by $as_me, which was
1039 generated by GNU Autoconf 2.59. Invocation command line was
1050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1057 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1059 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1060 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1062 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1063 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1064 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1065 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1073 test -z "$as_dir" && as_dir=.
1074 echo "PATH: $as_dir"
1089 # Keep a trace of the command line.
1090 # Strip out --no-create and --no-recursion so they do not pile up.
1091 # Strip out --silent because we don't want to record it for future runs.
1092 # Also quote any args containing shell meta-characters.
1093 # Make two passes to allow for proper duplicate-argument suppression.
1098 ac_must_keep_next=false
1104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1108 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1109 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1112 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1114 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1115 if test $ac_must_keep_next = true; then
1116 ac_must_keep_next=false # Got value, back to normal.
1119 *=* | --config-cache | -C | -disable-* | --disable-* \
1120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1122 | -with-* | --with-* | -without-* | --without-* | --x)
1123 case "$ac_configure_args0 " in
1124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1127 -* ) ac_must_keep_next=true ;;
1130 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1131 # Get rid of the leading space.
1137 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1138 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1140 # When interrupted or exit'd, cleanup temporary files, and complete
1141 # config.log. We remove comments because anyway the quotes in there
1142 # would cause problems or look ugly.
1143 # WARNING: Be sure not to use single quotes in there, as some shells,
1144 # such as our DU 5.0 friend, will then `close' the trap.
1145 trap 'exit_status=$?
1146 # Save into config.log some information that might help in debugging.
1151 ## ---------------- ##
1152 ## Cache variables. ##
1153 ## ---------------- ##
1156 # The following way of writing the cache mishandles newlines in values,
1159 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1162 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1167 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1174 ## ----------------- ##
1175 ## Output variables. ##
1176 ## ----------------- ##
1179 for ac_var in $ac_subst_vars
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1186 if test -n "$ac_subst_files"; then
1193 for ac_var in $ac_subst_files
1195 eval ac_val=$`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1201 if test -s confdefs.h; then
1208 sed "/^$/d" confdefs.h | sort
1211 test "$ac_signal" != 0 &&
1212 echo "$as_me: caught signal $ac_signal"
1213 echo "$as_me: exit $exit_status"
1215 rm -f core *.core &&
1216 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1219 for ac_signal in 1 2 13 15; do
1220 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1225 rm -rf conftest* confdefs.h
1226 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1229 # Predefined preprocessor variables.
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_NAME "$PACKAGE_NAME"
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_STRING "$PACKAGE_STRING"
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1256 # Let the site file select an alternate cache file if it wants to.
1257 # Prefer explicitly selected file to automatically selected ones.
1258 if test -z "$CONFIG_SITE"; then
1259 if test "x$prefix" != xNONE; then
1260 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1262 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1265 for ac_site_file in $CONFIG_SITE; do
1266 if test -r "$ac_site_file"; then
1267 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1268 echo "$as_me: loading site script $ac_site_file" >&6;}
1269 sed 's/^/| /' "$ac_site_file" >&5
1274 if test -r "$cache_file"; then
1275 # Some versions of bash will fail to source /dev/null (special
1276 # files actually), so we avoid doing that.
1277 if test -f "$cache_file"; then
1278 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1279 echo "$as_me: loading cache $cache_file" >&6;}
1281 [\\/]* | ?:[\\/]* ) . $cache_file;;
1282 *) . ./$cache_file;;
1286 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1287 echo "$as_me: creating cache $cache_file" >&6;}
1291 # Check that the precious variables saved in the cache have kept the same
1293 ac_cache_corrupted=false
1294 for ac_var in `(set) 2>&1 |
1295 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1296 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1297 eval ac_new_set=\$ac_env_${ac_var}_set
1298 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1299 eval ac_new_val="\$ac_env_${ac_var}_value"
1300 case $ac_old_set,$ac_new_set in
1302 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1303 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1304 ac_cache_corrupted=: ;;
1306 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1307 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1308 ac_cache_corrupted=: ;;
1311 if test "x$ac_old_val" != "x$ac_new_val"; then
1312 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1313 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1314 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1315 echo "$as_me: former value: $ac_old_val" >&2;}
1316 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1317 echo "$as_me: current value: $ac_new_val" >&2;}
1318 ac_cache_corrupted=:
1321 # Pass precious variables to config.status.
1322 if test "$ac_new_set" = set; then
1324 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1326 *) ac_arg=$ac_var=$ac_new_val ;;
1328 case " $ac_configure_args " in
1329 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1330 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1334 if $ac_cache_corrupted; then
1335 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1336 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1337 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1338 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1339 { (exit 1); exit 1; }; }
1343 ac_cpp='$CPP $CPPFLAGS'
1344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1370 # Determine the host, build, and target systems
1372 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1373 if test -f $ac_dir/install-sh; then
1375 ac_install_sh="$ac_aux_dir/install-sh -c"
1377 elif test -f $ac_dir/install.sh; then
1379 ac_install_sh="$ac_aux_dir/install.sh -c"
1381 elif test -f $ac_dir/shtool; then
1383 ac_install_sh="$ac_aux_dir/shtool install -c"
1387 if test -z "$ac_aux_dir"; then
1388 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390 { (exit 1); exit 1; }; }
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1396 # Make sure we can run config.sub.
1397 $ac_config_sub sun4 >/dev/null 2>&1 ||
1398 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409 ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413 { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435 ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450 echo "$as_me:$LINENO: checking target system type" >&5
1451 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452 if test "${ac_cv_target+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 ac_cv_target_alias=$target_alias
1456 test "x$ac_cv_target_alias" = "x" &&
1457 ac_cv_target_alias=$ac_cv_host_alias
1458 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465 echo "${ECHO_T}$ac_cv_target" >&6
1466 target=$ac_cv_target
1467 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475 test "$program_prefix$program_suffix$program_transform_name" = \
1477 program_prefix=${target_alias}-
1479 # Determine the noncanonical target name, for directory use.
1480 case ${build_alias} in
1481 "") build_noncanonical=${build} ;;
1482 *) build_noncanonical=${build_alias} ;;
1485 case ${host_alias} in
1486 "") host_noncanonical=${build_noncanonical} ;;
1487 *) host_noncanonical=${host_alias} ;;
1490 case ${target_alias} in
1491 "") target_noncanonical=${host_noncanonical} ;;
1492 *) target_noncanonical=${target_alias} ;;
1496 # Determine the target- and build-specific subdirectories
1497 # Prefix 'build-' so this never conflicts with target_subdir.
1498 build_subdir="build-${build_noncanonical}"
1499 # Not really a subdirectory, but here for completeness.
1502 target_subdir=${target_noncanonical}
1505 # Set program_transform_name
1506 test "$program_prefix" != NONE &&
1507 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1508 # Use a double $ so make ignores it.
1509 test "$program_suffix" != NONE &&
1510 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1511 # Double any \ or $. echo might interpret backslashes.
1512 # By default was `s,x,x', remove it if useless.
1513 cat <<\_ACEOF >conftest.sed
1514 s/[\\$]/&&/g;s/;s,x,x,$//
1516 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1520 # Check for bogus environment variables.
1521 # Test if LIBRARY_PATH contains the notation for the current directory
1522 # since this would lead to problems installing/building glibc.
1523 # LIBRARY_PATH contains the current directory if one of the following
1525 # - one of the terminals (":" and ";") is the first or last sign
1526 # - two terminals occur directly after each other
1527 # - the path contains an element with a dot in it
1528 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1529 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1530 case ${LIBRARY_PATH} in
1531 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1532 library_path_setting="contains current directory"
1535 library_path_setting="ok"
1538 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1539 echo "${ECHO_T}$library_path_setting" >&6
1540 if test "$library_path_setting" != "ok"; then
1541 { { echo "$as_me:$LINENO: error:
1542 *** LIBRARY_PATH shouldn't contain the current directory when
1543 *** building gcc. Please change the environment variable
1544 *** and run configure again." >&5
1545 echo "$as_me: error:
1546 *** LIBRARY_PATH shouldn't contain the current directory when
1547 *** building gcc. Please change the environment variable
1548 *** and run configure again." >&2;}
1549 { (exit 1); exit 1; }; }
1552 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1553 # since this would lead to problems installing/building glibc.
1554 # GCC_EXEC_PREFIX contains the current directory if one of the following
1556 # - one of the terminals (":" and ";") is the first or last sign
1557 # - two terminals occur directly after each other
1558 # - the path contains an element with a dot in it
1559 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1560 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1561 case ${GCC_EXEC_PREFIX} in
1562 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1563 gcc_exec_prefix_setting="contains current directory"
1566 gcc_exec_prefix_setting="ok"
1569 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1570 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1571 if test "$gcc_exec_prefix_setting" != "ok"; then
1572 { { echo "$as_me:$LINENO: error:
1573 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1574 *** building gcc. Please change the environment variable
1575 *** and run configure again." >&5
1576 echo "$as_me: error:
1577 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1578 *** building gcc. Please change the environment variable
1579 *** and run configure again." >&2;}
1580 { (exit 1); exit 1; }; }
1587 # Specify the local prefix
1590 # Check whether --with-local-prefix or --without-local-prefix was given.
1591 if test "${with_local_prefix+set}" = set; then
1592 withval="$with_local_prefix"
1593 case "${withval}" in
1594 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1595 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1596 { (exit 1); exit 1; }; } ;;
1598 *) local_prefix=$with_local_prefix ;;
1602 # Default local prefix if it is empty
1603 if test x$local_prefix = x; then
1604 local_prefix=/usr/local
1607 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1608 # passed in by the toplevel make and thus we'd get different behavior
1609 # depending on where we built the sources.
1610 gcc_gxx_include_dir=
1611 # Specify the g++ header file directory
1613 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1614 if test "${with_gxx_include_dir+set}" = set; then
1615 withval="$with_gxx_include_dir"
1616 case "${withval}" in
1617 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1618 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1619 { (exit 1); exit 1; }; } ;;
1621 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1625 if test x${gcc_gxx_include_dir} = x; then
1626 if test x${enable_version_specific_runtime_libs} = xyes; then
1627 gcc_gxx_include_dir='${libsubdir}/include/c++'
1629 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1630 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1635 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1636 if test "${with_cpp_install_dir+set}" = set; then
1637 withval="$with_cpp_install_dir"
1638 if test x$withval = xyes; then
1639 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1640 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1641 { (exit 1); exit 1; }; }
1642 elif test x$withval != xno; then
1643 cpp_install_dir=$withval
1647 # We would like to our source tree to be readonly. However when releases or
1648 # pre-releases are generated, the flex/bison generated files as well as the
1649 # various formats of manuals need to be included along with the rest of the
1650 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1653 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1654 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1655 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1656 if test "${enable_generated_files_in_srcdir+set}" = set; then
1657 enableval="$enable_generated_files_in_srcdir"
1658 generated_files_in_srcdir=$enableval
1660 generated_files_in_srcdir=no
1663 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1664 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1666 if test "$generated_files_in_srcdir" = "yes"; then
1673 # -------------------
1674 # Find default linker
1675 # -------------------
1679 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1680 if test "${with_gnu_ld+set}" = set; then
1681 withval="$with_gnu_ld"
1682 gnu_ld_flag="$with_gnu_ld"
1687 # With pre-defined ld
1689 # Check whether --with-ld or --without-ld was given.
1690 if test "${with_ld+set}" = set; then
1692 DEFAULT_LINKER="$with_ld"
1694 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1695 if test ! -x "$DEFAULT_LINKER"; then
1696 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1697 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1698 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1702 cat >>confdefs.h <<_ACEOF
1703 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1708 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1709 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1710 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1711 if test x"$gnu_ld_flag" = x"no"; then
1712 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1713 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1715 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1716 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 # ----------------------
1724 # Find default assembler
1725 # ----------------------
1729 # Check whether --with-gnu-as or --without-gnu-as was given.
1730 if test "${with_gnu_as+set}" = set; then
1731 withval="$with_gnu_as"
1732 gas_flag="$with_gnu_as"
1738 # Check whether --with-as or --without-as was given.
1739 if test "${with_as+set}" = set; then
1741 DEFAULT_ASSEMBLER="$with_as"
1743 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1744 if test ! -x "$DEFAULT_ASSEMBLER"; then
1745 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1746 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1747 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1751 cat >>confdefs.h <<_ACEOF
1752 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1757 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1758 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1759 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1760 if test x"$gas_flag" = x"no"; then
1761 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1762 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1764 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1765 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1776 # If a non-executable a.out is present (e.g. created by GNU as above even if
1777 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1778 # file, even when creating an executable, so an execution test fails.
1779 # Remove possible default executable files to avoid this.
1781 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1782 # Autoconf includes it.
1783 rm -f a.out a.exe b.out
1785 # Find the native compiler
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791 if test -n "$ac_tool_prefix"; then
1792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_CC+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 if test -n "$CC"; then
1800 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 test -z "$as_dir" && as_dir=.
1807 for ac_exec_ext in '' $ac_executable_extensions; do
1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1828 if test -z "$ac_cv_prog_CC"; then
1830 # Extract the first word of "gcc", so it can be a program name with args.
1831 set dummy gcc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$ac_ct_CC"; then
1838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_ac_ct_CC="gcc"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857 if test -n "$ac_ct_CC"; then
1858 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859 echo "${ECHO_T}$ac_ct_CC" >&6
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1870 if test -z "$CC"; then
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}cc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_CC="${ac_tool_prefix}cc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1908 if test -z "$ac_cv_prog_CC"; then
1910 # Extract the first word of "cc", so it can be a program name with args.
1911 set dummy cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_ac_ct_CC="cc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1951 if test -z "$CC"; then
1952 # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1971 ac_prog_rejected=yes
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 if test $ac_prog_rejected = yes; then
1982 # We found a bogon in the path, so make sure we never use it.
1983 set dummy $ac_cv_prog_CC
1985 if test $# != 0; then
1986 # We chose a different compiler from the bogus one.
1987 # However, it has the same basename, so the bogon will be chosen
1988 # first if we set CC to just the basename; use the full file name.
1990 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1996 if test -n "$CC"; then
1997 echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2005 if test -z "$CC"; then
2006 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2044 test -n "$CC" && break
2047 if test -z "$CC"; then
2051 # Extract the first word of "$ac_prog", so it can be a program name with args.
2052 set dummy $ac_prog; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_CC="$ac_prog"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2086 test -n "$ac_ct_CC" && break
2095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: no acceptable C compiler found in \$PATH
2098 See \`config.log' for more details." >&2;}
2099 { (exit 1); exit 1; }; }
2101 # Provide some information about the compiler.
2102 echo "$as_me:$LINENO:" \
2103 "checking for C compiler version" >&5
2104 ac_compiler=`set X $ac_compile; echo $2`
2105 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2106 (eval $ac_compiler --version </dev/null >&5) 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2111 (eval $ac_compiler -v </dev/null >&5) 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2116 (eval $ac_compiler -V </dev/null >&5) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2121 cat >conftest.$ac_ext <<_ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
2136 ac_clean_files_save=$ac_clean_files
2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2141 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2142 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2145 (eval $ac_link_default) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # Find the output, starting from the most likely. This scheme is
2150 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2153 # Be careful to initialize this variable, since it used to be cached.
2154 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2156 # b.out is created by i960 compilers.
2157 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2159 test -f "$ac_file" || continue
2161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2164 # This is the source file.
2167 # We found the default executable, but exeext='' is most
2171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172 # FIXME: I believe we export ac_cv_exeext for Libtool,
2173 # but it would be cool to find out if it's true. Does anybody
2174 # maintain Libtool? --akim.
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2185 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: C compiler cannot create executables
2188 See \`config.log' for more details." >&2;}
2189 { (exit 77); exit 77; }; }
2192 ac_exeext=$ac_cv_exeext
2193 echo "$as_me:$LINENO: result: $ac_file" >&5
2194 echo "${ECHO_T}$ac_file" >&6
2196 # Check the compiler produces executables we can run. If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2199 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2200 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2201 # If not cross compiling, check that we can run a simple program.
2202 if test "$cross_compiling" != yes; then
2203 if { ac_try='./$ac_file'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2211 if test "$cross_compiling" = maybe; then
2214 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2215 If you meant to cross compile, use \`--host'.
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot run C compiled programs.
2218 If you meant to cross compile, use \`--host'.
2219 See \`config.log' for more details." >&2;}
2220 { (exit 1); exit 1; }; }
2224 echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6
2227 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2228 ac_clean_files=$ac_clean_files_save
2229 # Check the compiler produces executables we can run. If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2232 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2233 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2234 echo "${ECHO_T}$cross_compiling" >&6
2236 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2237 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239 (eval $ac_link) 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; then
2243 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2244 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2245 # work properly (i.e., refer to `conftest.exe'), while it won't with
2247 for ac_file in conftest.exe conftest conftest.*; do
2248 test -f "$ac_file" || continue
2250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2251 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2258 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2261 See \`config.log' for more details." >&2;}
2262 { (exit 1); exit 1; }; }
2265 rm -f conftest$ac_cv_exeext
2266 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2267 echo "${ECHO_T}$ac_cv_exeext" >&6
2269 rm -f conftest.$ac_ext
2270 EXEEXT=$ac_cv_exeext
2272 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2273 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2274 if test "${ac_cv_objext+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 cat >conftest.$ac_ext <<_ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2292 rm -f conftest.o conftest.obj
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2318 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2319 echo "${ECHO_T}$ac_cv_objext" >&6
2320 OBJEXT=$ac_cv_objext
2322 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.$ac_ext <<_ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2349 grep -v '^ *+' conftest.er1 >conftest.err
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2377 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2378 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2379 GCC=`test $ac_compiler_gnu = yes && echo yes`
2380 ac_test_CFLAGS=${CFLAGS+set}
2381 ac_save_CFLAGS=$CFLAGS
2383 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2384 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2385 if test "${ac_cv_prog_cc_g+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 cat >conftest.$ac_ext <<_ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2403 rm -f conftest.$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>conftest.er1
2407 grep -v '^ *+' conftest.er1 >conftest.err
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2426 echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2434 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2435 if test "$ac_test_CFLAGS" = set; then
2436 CFLAGS=$ac_save_CFLAGS
2437 elif test $ac_cv_prog_cc_g = yes; then
2438 if test "$GCC" = yes; then
2444 if test "$GCC" = yes; then
2450 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2451 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2452 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 ac_cv_prog_cc_stdc=no
2457 cat >conftest.$ac_ext <<_ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2465 #include <sys/types.h>
2466 #include <sys/stat.h>
2467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2468 struct buf { int x; };
2469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2470 static char *e (p, i)
2476 static char *f (char * (*g) (char **, int), char **p, ...)
2481 s = g (p, va_arg (v,int));
2486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2487 function prototypes and stuff, but not '\xHH' hex character constants.
2488 These don't provoke an error unfortunately, instead are silently treated
2489 as 'x'. The following induces an error, until -std1 is added to get
2490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2491 array size at least. It's necessary to write '\x00'==0 to get something
2492 that's true only with -std1. */
2493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2495 int test (int i, double x);
2496 struct s1 {int (*f) (int a);};
2497 struct s2 {int (*f) (double a);};
2498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2509 # Don't try gcc -ansi; that turns off useful extensions and
2510 # breaks some systems' header files.
2511 # AIX -qlanglvl=ansi
2512 # Ultrix and OSF/1 -std1
2513 # HP-UX 10.20 and later -Ae
2514 # HP-UX older versions -Aa -D_HPUX_SOURCE
2515 # SVR4 -Xc -D__EXTENSIONS__
2516 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2518 CC="$ac_save_CC $ac_arg"
2519 rm -f conftest.$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>conftest.er1
2523 grep -v '^ *+' conftest.er1 >conftest.err
2525 cat conftest.err >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 ac_cv_prog_cc_stdc=$ac_arg
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2547 rm -f conftest.err conftest.$ac_objext
2549 rm -f conftest.$ac_ext conftest.$ac_objext
2554 case "x$ac_cv_prog_cc_stdc" in
2556 echo "$as_me:$LINENO: result: none needed" >&5
2557 echo "${ECHO_T}none needed" >&6 ;;
2559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2560 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2561 CC="$CC $ac_cv_prog_cc_stdc" ;;
2564 # Some people use a C++ compiler to compile C. Since we use `exit',
2565 # in C++ we need to declare it. In case someone uses the same compiler
2566 # for both compiling C and C++ we need to have the C++ compiler decide
2567 # the declaration of exit, since it's the most demanding environment.
2568 cat >conftest.$ac_ext <<_ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>conftest.er1
2577 grep -v '^ *+' conftest.er1 >conftest.err
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 for ac_declaration in \
2596 'extern "C" void std::exit (int) throw (); using std::exit;' \
2597 'extern "C" void std::exit (int); using std::exit;' \
2598 'extern "C" void exit (int) throw ();' \
2599 'extern "C" void exit (int);' \
2602 cat >conftest.$ac_ext <<_ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>conftest.er1
2622 grep -v '^ *+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692 if test -n "$ac_declaration"; then
2693 echo '#ifdef __cplusplus' >>confdefs.h
2694 echo $ac_declaration >>confdefs.h
2695 echo '#endif' >>confdefs.h
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 if test "x$CC" != xcc; then
2711 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2712 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2714 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2715 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2717 set dummy $CC; ac_cc=`echo $2 |
2718 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2719 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2737 # Make sure it works both with $CC and with simple cc.
2738 # We do the test twice because some compilers refuse to overwrite an
2739 # existing .o file with -o, though they will create one.
2740 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2741 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); };
2752 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2753 if test "x$CC" != xcc; then
2754 # Test first that cc exists at all.
2755 if { ac_try='cc -c conftest.$ac_ext >&5'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2762 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); };
2776 # cc exists but doesn't like -o.
2777 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2782 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2787 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2788 echo "$as_me:$LINENO: result: yes" >&5
2789 echo "${ECHO_T}yes" >&6
2791 echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2794 cat >>confdefs.h <<\_ACEOF
2795 #define NO_MINUS_C_MINUS_O 1
2800 # autoconf is lame and doesn't give us any substitution variable for this.
2801 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2802 NO_MINUS_C_MINUS_O=yes
2804 OUTPUT_OPTION='-o $@'
2809 # -------------------------
2810 # Check C compiler features
2811 # -------------------------
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2819 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2820 # On Suns, sometimes $CPP names a directory.
2821 if test -n "$CPP" && test -d "$CPP"; then
2824 if test -z "$CPP"; then
2825 if test "${ac_cv_prog_CPP+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 # Double quotes because CPP needs to be expanded
2829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2832 for ac_c_preproc_warn_flag in '' yes
2834 # Use a header file that comes with gcc, so configuring glibc
2835 # with a fresh cross-compiler works.
2836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2837 # <limits.h> exists even on freestanding compilers.
2838 # On the NeXT, cc -E runs the code through the compiler's parser,
2839 # not just through cpp. "Syntax error" is here to catch this case.
2840 cat >conftest.$ac_ext <<_ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2847 # include <limits.h>
2849 # include <assert.h>
2853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2856 grep -v '^ *+' conftest.er1 >conftest.err
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } >/dev/null; then
2861 if test -s conftest.err; then
2862 ac_cpp_err=$ac_c_preproc_warn_flag
2863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2870 if test -z "$ac_cpp_err"; then
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2876 # Broken: fails on valid input.
2879 rm -f conftest.err conftest.$ac_ext
2881 # OK, works on sane cases. Now check whether non-existent headers
2882 # can be detected and how.
2883 cat >conftest.$ac_ext <<_ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2889 #include <ac_nonexistent.h>
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_c_preproc_warn_flag
2901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2908 if test -z "$ac_cpp_err"; then
2909 # Broken: success on invalid input.
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2915 # Passes both tests.
2919 rm -f conftest.err conftest.$ac_ext
2922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2923 rm -f conftest.err conftest.$ac_ext
2924 if $ac_preproc_ok; then
2936 echo "$as_me:$LINENO: result: $CPP" >&5
2937 echo "${ECHO_T}$CPP" >&6
2939 for ac_c_preproc_warn_flag in '' yes
2941 # Use a header file that comes with gcc, so configuring glibc
2942 # with a fresh cross-compiler works.
2943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2944 # <limits.h> exists even on freestanding compilers.
2945 # On the NeXT, cc -E runs the code through the compiler's parser,
2946 # not just through cpp. "Syntax error" is here to catch this case.
2947 cat >conftest.$ac_ext <<_ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2954 # include <limits.h>
2956 # include <assert.h>
2960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2963 grep -v '^ *+' conftest.er1 >conftest.err
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } >/dev/null; then
2968 if test -s conftest.err; then
2969 ac_cpp_err=$ac_c_preproc_warn_flag
2970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2977 if test -z "$ac_cpp_err"; then
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2983 # Broken: fails on valid input.
2986 rm -f conftest.err conftest.$ac_ext
2988 # OK, works on sane cases. Now check whether non-existent headers
2989 # can be detected and how.
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2996 #include <ac_nonexistent.h>
2998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3001 grep -v '^ *+' conftest.er1 >conftest.err
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev/null; then
3006 if test -s conftest.err; then
3007 ac_cpp_err=$ac_c_preproc_warn_flag
3008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3015 if test -z "$ac_cpp_err"; then
3016 # Broken: success on invalid input.
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 # Passes both tests.
3026 rm -f conftest.err conftest.$ac_ext
3029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3030 rm -f conftest.err conftest.$ac_ext
3031 if $ac_preproc_ok; then
3034 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3035 See \`config.log' for more details." >&5
3036 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3037 See \`config.log' for more details." >&2;}
3038 { (exit 1); exit 1; }; }
3042 ac_cpp='$CPP $CPPFLAGS'
3043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 echo "$as_me:$LINENO: checking for inline" >&5
3049 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3050 if test "${ac_cv_c_inline+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 for ac_kw in inline __inline__ __inline; do
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3063 static $ac_kw foo_t static_foo () {return 0; }
3064 $ac_kw foo_t foo () {return 0; }
3068 rm -f conftest.$ac_objext
3069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3070 (eval $ac_compile) 2>conftest.er1
3072 grep -v '^ *+' conftest.er1 >conftest.err
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; } &&
3083 { ac_try='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 ac_cv_c_inline=$ac_kw; break
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3099 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3100 echo "${ECHO_T}$ac_cv_c_inline" >&6
3103 case $ac_cv_c_inline in
3106 case $ac_cv_c_inline in
3108 *) ac_val=$ac_cv_c_inline;;
3110 cat >>confdefs.h <<_ACEOF
3112 #define inline $ac_val
3119 echo "$as_me:$LINENO: checking for long long int" >&5
3120 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3121 if test "${ac_cv_c_long_long+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 cat >conftest.$ac_ext <<_ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>conftest.er1
3143 grep -v '^ *+' conftest.er1 >conftest.err
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_c_long_long=yes
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 ac_cv_c_long_long=no
3167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3170 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3171 if test $ac_cv_c_long_long = yes; then
3173 cat >>confdefs.h <<\_ACEOF
3174 #define HAVE_LONG_LONG 1
3178 echo "$as_me:$LINENO: checking for __int64" >&5
3179 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3180 if test "${ac_cv_c___int64+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3202 grep -v '^ *+' conftest.er1 >conftest.err
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3228 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3229 echo "${ECHO_T}$ac_cv_c___int64" >&6
3230 if test $ac_cv_c___int64 = yes; then
3232 cat >>confdefs.h <<\_ACEOF
3233 #define HAVE___INT64 1
3238 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3239 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3240 if test "${gcc_cv_c__bool+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 cat >conftest.$ac_ext <<_ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>conftest.er1
3262 grep -v '^ *+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3289 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3290 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3291 if test $gcc_cv_c__bool = yes; then
3293 cat >>confdefs.h <<\_ACEOF
3294 #define HAVE__BOOL 1
3300 # sizeof(char) is 1 by definition.
3301 echo "$as_me:$LINENO: checking size of void *" >&5
3302 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3303 if test "${ac_cv_sizeof_void_p+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include "confdefs.h"
3314 #include <sys/types.h>
3320 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3325 rm -f conftest.$ac_objext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>conftest.er1
3329 grep -v '^ *+' conftest.er1 >conftest.err
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } &&
3334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 ac_cv_sizeof_void_p=$ac_size
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3353 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3358 if test x$ac_cv_sizeof_void_p = x ; then
3359 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3360 echo "$as_me: error: cannot determine a size for void *" >&2;}
3361 { (exit 1); exit 1; }; }
3363 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3364 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3366 cat >>confdefs.h <<_ACEOF
3367 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3371 echo "$as_me:$LINENO: checking size of short" >&5
3372 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3373 if test "${ac_cv_sizeof_short+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 #include "confdefs.h"
3384 #include <sys/types.h>
3390 switch (0) case 0: case (sizeof (short) == $ac_size):;
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_sizeof_short=$ac_size
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3423 if test x$ac_cv_sizeof_short != x ; then break; fi
3428 if test x$ac_cv_sizeof_short = x ; then
3429 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3430 echo "$as_me: error: cannot determine a size for short" >&2;}
3431 { (exit 1); exit 1; }; }
3433 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3434 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3436 cat >>confdefs.h <<_ACEOF
3437 #define SIZEOF_SHORT $ac_cv_sizeof_short
3441 echo "$as_me:$LINENO: checking size of int" >&5
3442 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3443 if test "${ac_cv_sizeof_int+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3447 cat >conftest.$ac_ext <<_ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #include "confdefs.h"
3454 #include <sys/types.h>
3460 switch (0) case 0: case (sizeof (int) == $ac_size):;
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
3474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_cv_sizeof_int=$ac_size
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493 if test x$ac_cv_sizeof_int != x ; then break; fi
3498 if test x$ac_cv_sizeof_int = x ; then
3499 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3500 echo "$as_me: error: cannot determine a size for int" >&2;}
3501 { (exit 1); exit 1; }; }
3503 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3504 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3506 cat >>confdefs.h <<_ACEOF
3507 #define SIZEOF_INT $ac_cv_sizeof_int
3511 echo "$as_me:$LINENO: checking size of long" >&5
3512 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3513 if test "${ac_cv_sizeof_long+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include "confdefs.h"
3524 #include <sys/types.h>
3530 switch (0) case 0: case (sizeof (long) == $ac_size):;
3535 rm -f conftest.$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; } &&
3550 { ac_try='test -s conftest.$ac_objext'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 ac_cv_sizeof_long=$ac_size
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563 if test x$ac_cv_sizeof_long != x ; then break; fi
3568 if test x$ac_cv_sizeof_long = x ; then
3569 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3570 echo "$as_me: error: cannot determine a size for long" >&2;}
3571 { (exit 1); exit 1; }; }
3573 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3574 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3576 cat >>confdefs.h <<_ACEOF
3577 #define SIZEOF_LONG $ac_cv_sizeof_long
3581 if test $ac_cv_c_long_long = yes; then
3582 echo "$as_me:$LINENO: checking size of long long" >&5
3583 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3584 if test "${ac_cv_sizeof_long_long+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #include "confdefs.h"
3595 #include <sys/types.h>
3601 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3606 rm -f conftest.$ac_objext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3608 (eval $ac_compile) 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } &&
3615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; } &&
3621 { ac_try='test -s conftest.$ac_objext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_sizeof_long_long=$ac_size
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3634 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3639 if test x$ac_cv_sizeof_long_long = x ; then
3640 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3641 echo "$as_me: error: cannot determine a size for long long" >&2;}
3642 { (exit 1); exit 1; }; }
3644 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3645 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3647 cat >>confdefs.h <<_ACEOF
3648 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3653 if test $ac_cv_c___int64 = yes; then
3654 echo "$as_me:$LINENO: checking size of __int64" >&5
3655 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3656 if test "${ac_cv_sizeof___int64+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3673 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3682 grep -v '^ *+' conftest.er1 >conftest.err
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; } &&
3693 { ac_try='test -s conftest.$ac_objext'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; }; then
3699 ac_cv_sizeof___int64=$ac_size
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3711 if test x$ac_cv_sizeof___int64 = x ; then
3712 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3713 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3714 { (exit 1); exit 1; }; }
3716 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3717 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3719 cat >>confdefs.h <<_ACEOF
3720 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3726 # ---------------------
3727 # Warnings and checking
3728 # ---------------------
3730 # Check $CC warning features (if it's GCC).
3731 # We want to use -pedantic, but we don't want warnings about
3734 # So, we only use -pedantic if we can disable those warnings.
3736 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3737 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3738 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 save_CFLAGS="$CFLAGS"
3742 CFLAGS="-Wno-long-long"
3743 cat >conftest.$ac_ext <<_ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3751 rm -f conftest.$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>conftest.er1
3755 grep -v '^ *+' conftest.er1 >conftest.err
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; } &&
3766 { ac_try='test -s conftest.$ac_objext'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 ac_cv_prog_cc_w_no_long_long=yes
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 ac_cv_prog_cc_w_no_long_long=no
3779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3780 CFLAGS="$save_CFLAGS"
3783 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3784 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3786 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3787 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3788 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 save_CFLAGS="$CFLAGS"
3792 CFLAGS="-Wno-variadic-macros"
3793 cat >conftest.$ac_ext <<_ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3805 grep -v '^ *+' conftest.er1 >conftest.err
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; } &&
3816 { ac_try='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_cv_prog_cc_w_no_variadic_macros=yes
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 ac_cv_prog_cc_w_no_variadic_macros=no
3829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 CFLAGS="$save_CFLAGS"
3833 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3834 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3837 if test $ac_cv_prog_cc_w_no_long_long = yes \
3838 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3839 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3843 # Add -Wold-style-definition if it's accepted
3844 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3845 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3846 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 save_CFLAGS="$CFLAGS"
3850 CFLAGS="-Wold-style-definition"
3851 cat >conftest.$ac_ext <<_ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3863 grep -v '^ *+' conftest.er1 >conftest.err
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_prog_cc_w_old_style_definition=yes
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 ac_cv_prog_cc_w_old_style_definition=no
3887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3888 CFLAGS="$save_CFLAGS"
3891 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3892 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3893 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3894 strict1_warn="${strict1_warn} -Wold-style-definition"
3897 # If the native compiler is GCC, we can enable warnings even in stage1.
3898 # That's useful for people building cross-compilers, or just running a
3901 if test "x$GCC" = "xyes"; then
3902 warn_cflags='$(GCC_WARN_CFLAGS)'
3906 # Enable -Werror in bootstrap stage2 and later.
3907 # Change the default to "no" on release branches.
3908 # Check whether --enable-werror or --disable-werror was given.
3909 if test "${enable_werror+set}" = set; then
3910 enableval="$enable_werror"
3915 if test x$enable_werror = xyes ; then
3920 # Enable expensive internal checks
3921 # Check whether --enable-checking or --disable-checking was given.
3922 if test "${enable_checking+set}" = set; then
3923 enableval="$enable_checking"
3927 ac_rtlflag_checking=
3929 ac_gc_always_collect=
3931 case "${enableval}" in
3932 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3933 ac_rtlflag_checking=1 ;;
3935 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3936 set fnord $enableval; shift
3941 misc) ac_checking=1 ;;
3942 tree) ac_tree_checking=1 ;;
3943 rtlflag) ac_rtlflag_checking=1 ;;
3944 rtl) ac_rtl_checking=1 ;;
3945 gc) ac_gc_checking=1 ;;
3946 gcac) ac_gc_always_collect=1 ;;
3947 fold) ac_fold_checking=1 ;;
3948 valgrind) ac_checking_valgrind=1 ;;
3949 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3950 echo "$as_me: error: unknown check category $check" >&2;}
3951 { (exit 1); exit 1; }; } ;;
3958 # Enable some checks by default for development versions of GCC
3959 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3962 if test x$ac_checking != x ; then
3964 cat >>confdefs.h <<\_ACEOF
3965 #define ENABLE_CHECKING 1
3968 nocommon_flag=-fno-common
3971 if test x$ac_tree_checking != x ; then
3973 cat >>confdefs.h <<\_ACEOF
3974 #define ENABLE_TREE_CHECKING 1
3978 if test x$ac_rtl_checking != x ; then
3980 cat >>confdefs.h <<\_ACEOF
3981 #define ENABLE_RTL_CHECKING 1
3985 if test x$ac_rtlflag_checking != x ; then
3987 cat >>confdefs.h <<\_ACEOF
3988 #define ENABLE_RTL_FLAG_CHECKING 1
3992 if test x$ac_gc_checking != x ; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define ENABLE_GC_CHECKING 1
3999 if test x$ac_gc_always_collect != x ; then
4001 cat >>confdefs.h <<\_ACEOF
4002 #define ENABLE_GC_ALWAYS_COLLECT 1
4006 if test x$ac_fold_checking != x ; then
4008 cat >>confdefs.h <<\_ACEOF
4009 #define ENABLE_FOLD_CHECKING 1
4013 valgrind_path_defines=
4017 echo "$as_me:$LINENO: checking for egrep" >&5
4018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4019 if test "${ac_cv_prog_egrep+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4023 then ac_cv_prog_egrep='grep -E'
4024 else ac_cv_prog_egrep='egrep'
4027 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4028 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4029 EGREP=$ac_cv_prog_egrep
4032 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4033 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4034 if test "${ac_cv_header_stdc+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 ac_cv_header_stdc=yes
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4082 ac_cv_header_stdc=no
4084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4086 if test $ac_cv_header_stdc = yes; then
4087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4098 $EGREP "memchr" >/dev/null 2>&1; then
4101 ac_cv_header_stdc=no
4107 if test $ac_cv_header_stdc = yes; then
4108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119 $EGREP "free" >/dev/null 2>&1; then
4122 ac_cv_header_stdc=no
4128 if test $ac_cv_header_stdc = yes; then
4129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4130 if test "$cross_compiling" = yes; then
4133 cat >conftest.$ac_ext <<_ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4140 #if ((' ' & 0x0FF) == 0x020)
4141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4144 # define ISLOWER(c) \
4145 (('a' <= (c) && (c) <= 'i') \
4146 || ('j' <= (c) && (c) <= 'r') \
4147 || ('s' <= (c) && (c) <= 'z'))
4148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4156 for (i = 0; i < 256; i++)
4157 if (XOR (islower (i), ISLOWER (i))
4158 || toupper (i) != TOUPPER (i))
4163 rm -f conftest$ac_exeext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4165 (eval $ac_link) 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4176 echo "$as_me: program exited with status $ac_status" >&5
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4181 ac_cv_header_stdc=no
4183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4189 if test $ac_cv_header_stdc = yes; then
4191 cat >>confdefs.h <<\_ACEOF
4192 #define STDC_HEADERS 1
4197 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4207 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4208 inttypes.h stdint.h unistd.h
4210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4211 echo "$as_me:$LINENO: checking for $ac_header" >&5
4212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 cat >conftest.$ac_ext <<_ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 $ac_includes_default
4224 #include <$ac_header>
4226 rm -f conftest.$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>conftest.er1
4230 grep -v '^ *+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; } &&
4241 { ac_try='test -s conftest.$ac_objext'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 eval "$as_ac_Header=yes"
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 eval "$as_ac_Header=no"
4254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4259 cat >>confdefs.h <<_ACEOF
4260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4268 if test "${ac_cv_header_valgrind_h+set}" = set; then
4269 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4270 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4271 if test "${ac_cv_header_valgrind_h+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4275 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4277 # Is the header compilable?
4278 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4279 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4287 #include <valgrind.h>
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>conftest.er1
4293 grep -v '^ *+' conftest.er1 >conftest.err
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest.$ac_objext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 ac_header_compiler=yes
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_header_compiler=no
4317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4319 echo "${ECHO_T}$ac_header_compiler" >&6
4321 # Is the header present?
4322 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4323 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <valgrind.h>
4332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4335 grep -v '^ *+' conftest.er1 >conftest.err
4337 cat conftest.err >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } >/dev/null; then
4340 if test -s conftest.err; then
4341 ac_cpp_err=$ac_c_preproc_warn_flag
4342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4349 if test -z "$ac_cpp_err"; then
4350 ac_header_preproc=yes
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 ac_header_preproc=no
4357 rm -f conftest.err conftest.$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4359 echo "${ECHO_T}$ac_header_preproc" >&6
4361 # So? What about this header?
4362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4364 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4365 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4366 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4367 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4368 ac_header_preproc=yes
4371 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4372 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4373 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4374 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4375 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4376 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4377 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4378 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4379 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4380 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4381 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4382 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4385 ## ------------------------------------------ ##
4386 ## Report this to the AC_PACKAGE_NAME lists. ##
4387 ## ------------------------------------------ ##
4390 sed "s/^/$as_me: WARNING: /" >&2
4393 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4394 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4395 if test "${ac_cv_header_valgrind_h+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 ac_cv_header_valgrind_h=$ac_header_preproc
4400 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4401 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4404 if test $ac_cv_header_valgrind_h = yes; then
4412 if test x$ac_checking_valgrind != x ; then
4413 # It is certainly possible that there's valgrind but no valgrind.h.
4414 # GCC relies on making annotations so we must have both.
4415 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4416 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4417 cat >conftest.$ac_ext <<_ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #include <valgrind/memcheck.h>
4424 #ifndef VALGRIND_DISCARD
4425 #error VALGRIND_DISCARD not defined
4428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } >/dev/null; then
4436 if test -s conftest.err; then
4437 ac_cpp_err=$ac_c_preproc_warn_flag
4438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4445 if test -z "$ac_cpp_err"; then
4446 gcc_cv_header_valgrind_memcheck_h=yes
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 gcc_cv_header_valgrind_memcheck_h=no
4453 rm -f conftest.err conftest.$ac_ext
4454 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4455 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4456 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4457 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4458 cat >conftest.$ac_ext <<_ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <memcheck.h>
4465 #ifndef VALGRIND_DISCARD
4466 #error VALGRIND_DISCARD not defined
4469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4472 grep -v '^ *+' conftest.er1 >conftest.err
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } >/dev/null; then
4477 if test -s conftest.err; then
4478 ac_cpp_err=$ac_c_preproc_warn_flag
4479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4486 if test -z "$ac_cpp_err"; then
4487 gcc_cv_header_memcheck_h=yes
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 gcc_cv_header_memcheck_h=no
4494 rm -f conftest.err conftest.$ac_ext
4495 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4496 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4498 # Prepare PATH_SEPARATOR.
4499 # The user is always right.
4500 if test "${PATH_SEPARATOR+set}" != set; then
4501 echo "#! /bin/sh" >conf$$.sh
4502 echo "exit 0" >>conf$$.sh
4504 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4512 # Find out how to test for executable files. Don't use a zero-byte file,
4513 # as systems may use methods other than mode bits to determine executability.
4514 cat >conf$$.file <<_ASEOF
4518 chmod +x conf$$.file
4519 if test -x conf$$.file >/dev/null 2>&1; then
4520 ac_executable_p="test -x"
4522 ac_executable_p="test -f"
4526 # Extract the first word of "valgrind", so it can be a program name with args.
4527 set dummy valgrind; ac_word=$2
4528 echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_path_valgrind_path+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 case "$valgrind_path" in
4535 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4538 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4539 for ac_dir in $PATH; do
4541 test -z "$ac_dir" && ac_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4544 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4545 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4555 valgrind_path="$ac_cv_path_valgrind_path"
4556 if test -n "$valgrind_path"; then
4557 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4558 echo "${ECHO_T}$valgrind_path" >&6
4560 echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6
4564 if test "x$valgrind_path" = "x" \
4565 || (test $have_valgrind_h = no \
4566 && test $gcc_cv_header_memcheck_h = no \
4567 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4568 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4569 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4570 { (exit 1); exit 1; }; }
4572 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4573 valgrind_command="$valgrind_path -q"
4575 cat >>confdefs.h <<\_ACEOF
4576 #define ENABLE_VALGRIND_CHECKING 1
4579 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4581 cat >>confdefs.h <<\_ACEOF
4582 #define HAVE_VALGRIND_MEMCHECK_H 1
4586 if test $gcc_cv_header_memcheck_h = yes; then
4588 cat >>confdefs.h <<\_ACEOF
4589 #define HAVE_MEMCHECK_H 1
4597 # Enable code coverage collection
4598 # Check whether --enable-coverage or --disable-coverage was given.
4599 if test "${enable_coverage+set}" = set; then
4600 enableval="$enable_coverage"
4601 case "${enableval}" in
4603 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4606 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4609 # a.k.a. --disable-coverage
4613 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4614 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4615 { (exit 1); exit 1; }; }
4623 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4624 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4625 enableval="$enable_gather_detailed_mem_stats"
4628 enable_gather_detailed_mem_stats=no
4630 if test x$enable_gather_detailed_mem_stats = xyes ; then
4632 cat >>confdefs.h <<\_ACEOF
4633 #define GATHER_STATISTICS 1
4638 # -------------------------------
4639 # Miscenalleous configure options
4640 # -------------------------------
4644 # Check whether --with-stabs or --without-stabs was given.
4645 if test "${with_stabs+set}" = set; then
4646 withval="$with_stabs"
4652 # Determine whether or not multilibs are enabled.
4653 # Check whether --enable-multilib or --disable-multilib was given.
4654 if test "${enable_multilib+set}" = set; then
4655 enableval="$enable_multilib"
4662 # Enable __cxa_atexit for C++.
4663 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4664 if test "${enable___cxa_atexit+set}" = set; then
4665 enableval="$enable___cxa_atexit"
4670 # Pass with no value to take the default
4671 # Pass with a value to specify a thread package
4672 # Check whether --enable-threads or --disable-threads was given.
4673 if test "${enable_threads+set}" = set; then
4674 enableval="$enable_threads"
4679 # Save in case it gets overwritten in config.gcc
4680 enable_threads_flag=$enable_threads
4682 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4683 if test "${enable_objc_gc+set}" = set; then
4684 enableval="$enable_objc_gc"
4685 if test x$enable_objc_gc = xno; then
4695 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4696 if test "${with_dwarf2+set}" = set; then
4697 withval="$with_dwarf2"
4698 dwarf2="$with_dwarf2"
4703 # Check whether --enable-shared or --disable-shared was given.
4704 if test "${enable_shared+set}" = set; then
4705 enableval="$enable_shared"
4707 case $enable_shared in
4711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4712 for pkg in $enableval; do
4713 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4727 # Check whether --with-sysroot or --without-sysroot was given.
4728 if test "${with_sysroot+set}" = set; then
4729 withval="$with_sysroot"
4731 case ${with_sysroot} in
4732 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4733 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4736 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4737 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4739 if test "x$exec_prefix" = xNONE; then
4740 if test "x$prefix" = xNONE; then
4741 test_prefix=/usr/local
4746 test_prefix=$exec_prefix
4748 case ${TARGET_SYSTEM_ROOT} in
4749 "${test_prefix}"|"${test_prefix}/"*|\
4750 '${exec_prefix}'|'${exec_prefix}/'*)
4751 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4752 TARGET_SYSTEM_ROOT_DEFINE="$t"
4759 TARGET_SYSTEM_ROOT_DEFINE=
4760 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4767 # Build with intermodule optimisations
4768 # Check whether --enable-intermodule or --disable-intermodule was given.
4769 if test "${enable_intermodule+set}" = set; then
4770 enableval="$enable_intermodule"
4771 case ${enable_intermodule} in
4772 yes) onestep="-onestep";;
4780 # Sanity check enable_languages in case someone does not run the toplevel
4781 # configure # script.
4782 # Check whether --enable-languages or --disable-languages was given.
4783 if test "${enable_languages+set}" = set; then
4784 enableval="$enable_languages"
4785 case ,${enable_languages}, in
4787 # go safe -- we cannot be much sure without the toplevel
4789 # analysis of which target libs are present and usable
4793 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4794 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4795 { (exit 1); exit 1; }; }
4800 enable_languages=c,${enable_languages}
4808 for lang in ${srcdir}/*/config-lang.in
4811 # The odd quoting in the next line works around
4812 # an apparent bug in bash 1.12 on linux.
4813 ${srcdir}/[*]/config-lang.in) ;;
4815 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4816 if test "x$lang_alias" = x
4818 echo "$lang doesn't set \$language." 1>&2
4821 case ",$enable_languages," in
4823 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4830 # -------------------------
4831 # Checks for other programs
4832 # -------------------------
4834 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4835 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4836 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4837 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 cat >conftest.make <<\_ACEOF
4842 @echo 'ac_maketemp="$(MAKE)"'
4844 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4845 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4846 if test -n "$ac_maketemp"; then
4847 eval ac_cv_prog_make_${ac_make}_set=yes
4849 eval ac_cv_prog_make_${ac_make}_set=no
4853 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4854 echo "$as_me:$LINENO: result: yes" >&5
4855 echo "${ECHO_T}yes" >&6
4858 echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6
4860 SET_MAKE="MAKE=${MAKE-make}"
4864 # Find some useful tools
4865 for ac_prog in gawk mawk nawk awk
4867 # Extract the first word of "$ac_prog", so it can be a program name with args.
4868 set dummy $ac_prog; ac_word=$2
4869 echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871 if test "${ac_cv_prog_AWK+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 if test -n "$AWK"; then
4875 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884 ac_cv_prog_AWK="$ac_prog"
4885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 if test -n "$AWK"; then
4895 echo "$as_me:$LINENO: result: $AWK" >&5
4896 echo "${ECHO_T}$AWK" >&6
4898 echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6
4902 test -n "$AWK" && break
4905 # We need awk to run opts.sh (to create options.c and options.h).
4906 # Bail out if it's missing.
4908 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4909 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4910 { (exit 1); exit 1; }; } ;;
4913 echo "$as_me:$LINENO: checking whether ln works" >&5
4914 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4915 if test "${gcc_cv_prog_LN+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 rm -f conftestdata_t
4919 echo >conftestdata_f
4920 if ln conftestdata_f conftestdata_t 2>/dev/null
4924 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4926 gcc_cv_prog_LN="ln -s"
4931 rm -f conftestdata_f conftestdata_t
4934 LN="$gcc_cv_prog_LN"
4935 if test "$gcc_cv_prog_LN" = "ln"; then
4936 echo "$as_me:$LINENO: result: yes" >&5
4937 echo "${ECHO_T}yes" >&6
4939 if test "$gcc_cv_prog_LN" = "ln -s"; then
4940 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4941 echo "${ECHO_T}no, using ln -s" >&6
4943 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4944 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4948 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4949 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4950 if test "${gcc_cv_prog_LN_S+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 rm -f conftestdata_t
4954 echo >conftestdata_f
4955 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4957 gcc_cv_prog_LN_S="ln -s"
4959 if ln conftestdata_f conftestdata_t 2>/dev/null
4966 rm -f conftestdata_f conftestdata_t
4969 LN_S="$gcc_cv_prog_LN_S"
4970 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4971 echo "$as_me:$LINENO: result: yes" >&5
4972 echo "${ECHO_T}yes" >&6
4974 if test "$gcc_cv_prog_LN_S" = "ln"; then
4975 echo "$as_me:$LINENO: result: no, using ln" >&5
4976 echo "${ECHO_T}no, using ln" >&6
4978 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4979 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4983 if test -n "$ac_tool_prefix"; then
4984 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4985 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4986 echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4988 if test "${ac_cv_prog_RANLIB+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 if test -n "$RANLIB"; then
4992 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 RANLIB=$ac_cv_prog_RANLIB
5011 if test -n "$RANLIB"; then
5012 echo "$as_me:$LINENO: result: $RANLIB" >&5
5013 echo "${ECHO_T}$RANLIB" >&6
5015 echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6
5020 if test -z "$ac_cv_prog_RANLIB"; then
5021 ac_ct_RANLIB=$RANLIB
5022 # Extract the first word of "ranlib", so it can be a program name with args.
5023 set dummy ranlib; ac_word=$2
5024 echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5026 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 if test -n "$ac_ct_RANLIB"; then
5030 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_ac_ct_RANLIB="ranlib"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5049 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5050 if test -n "$ac_ct_RANLIB"; then
5051 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5052 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5054 echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5058 RANLIB=$ac_ct_RANLIB
5060 RANLIB="$ac_cv_prog_RANLIB"
5063 # Find a good install program. We prefer a C program (faster),
5064 # so one script is as good as another. But avoid the broken or
5065 # incompatible versions:
5066 # SysV /etc/install, /usr/sbin/install
5067 # SunOS /usr/etc/install
5068 # IRIX /sbin/install
5070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5072 # ./install, which can be erroneously created by make from ./install.sh.
5073 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5074 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5075 if test -z "$INSTALL"; then
5076 if test "${ac_cv_path_install+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5080 for ac_dir in $PATH; do
5081 # Account for people who put trailing slashes in PATH elements.
5083 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5085 # OSF1 and SCO ODT 3.0 have their own names for install.
5086 for ac_prog in ginstall scoinst install; do
5087 if test -f $ac_dir/$ac_prog; then
5088 if test $ac_prog = install &&
5089 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5090 # AIX install. It has an incompatible calling convention.
5091 # OSF/1 installbsd also uses dspmsg, but is usable.
5094 ac_cv_path_install="$ac_dir/$ac_prog -c"
5105 if test "${ac_cv_path_install+set}" = set; then
5106 INSTALL="$ac_cv_path_install"
5108 # As a last resort, use the slow shell script. We don't cache a
5109 # path for INSTALL within a source directory, because that will
5110 # break other packages using the cache if that directory is
5111 # removed, or if the path is relative.
5112 INSTALL="$ac_install_sh"
5115 echo "$as_me:$LINENO: result: $INSTALL" >&5
5116 echo "${ECHO_T}$INSTALL" >&6
5118 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5119 # It thinks the first close brace ends the variable substitution.
5120 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5122 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5125 # See if cmp has --ignore-initial.
5126 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5127 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5128 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 gcc_cv_prog_cmp_skip=slowcompare
5134 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5135 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5138 gcc_cv_prog_cmp_skip=gnucompare
5141 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5142 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5143 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5146 gcc_cv_prog_cmp_skip=fastcompare
5153 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5154 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5155 make_compare_target=$gcc_cv_prog_cmp_skip
5159 # See if we have the mktemp command.
5160 # Extract the first word of "mktemp", so it can be a program name with args.
5161 set dummy mktemp; ac_word=$2
5162 echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 if test -n "$have_mktemp_command"; then
5168 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_have_mktemp_command="yes"
5178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5187 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5188 if test -n "$have_mktemp_command"; then
5189 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5190 echo "${ECHO_T}$have_mktemp_command" >&6
5192 echo "$as_me:$LINENO: result: no" >&5
5193 echo "${ECHO_T}no" >&6
5197 # Do we have a single-tree copy of texinfo?
5198 if test -f $srcdir/../texinfo/Makefile.in; then
5199 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5200 gcc_cv_prog_makeinfo_modern=yes
5201 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5202 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5204 # See if makeinfo has been installed and is modern enough
5205 # that we can use it.
5206 # Extract the first word of "makeinfo", so it can be a program name with args.
5207 set dummy makeinfo; ac_word=$2
5208 echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 if test -n "$MAKEINFO"; then
5214 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5223 ac_cv_prog_MAKEINFO="makeinfo"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 MAKEINFO=$ac_cv_prog_MAKEINFO
5233 if test -n "$MAKEINFO"; then
5234 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5235 echo "${ECHO_T}$MAKEINFO" >&6
5237 echo "$as_me:$LINENO: result: no" >&5
5238 echo "${ECHO_T}no" >&6
5241 if test -n "$MAKEINFO"; then
5242 # Found it, now check the version.
5243 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5244 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5245 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 ac_prog_version=`$MAKEINFO --version 2>&1 |
5249 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5250 echo "configure:5250: version of makeinfo is $ac_prog_version" >&5
5251 case $ac_prog_version in
5252 '') gcc_cv_prog_makeinfo_modern=no;;
5254 gcc_cv_prog_makeinfo_modern=yes;;
5255 *) gcc_cv_prog_makeinfo_modern=no;;
5259 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5260 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5262 gcc_cv_prog_makeinfo_modern=no
5267 if test $gcc_cv_prog_makeinfo_modern = no; then
5268 { echo "$as_me:$LINENO: WARNING:
5269 *** Makeinfo is missing or too old.
5270 *** Info documentation will not be built." >&5
5271 echo "$as_me: WARNING:
5272 *** Makeinfo is missing or too old.
5273 *** Info documentation will not be built." >&2;}
5279 # Is pod2man recent enough to regenerate manpages?
5280 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5281 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5282 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5283 echo "$as_me:$LINENO: result: yes" >&5
5284 echo "${ECHO_T}yes" >&6
5285 GENERATED_MANPAGES=generated-manpages
5287 echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6
5293 if test -f $srcdir/../flex/skel.c; then
5294 FLEX='$(objdir)/../flex/flex'
5296 # Extract the first word of "flex", so it can be a program name with args.
5297 set dummy flex; ac_word=$2
5298 echo "$as_me:$LINENO: checking for $ac_word" >&5
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300 if test "${ac_cv_prog_FLEX+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 if test -n "$FLEX"; then
5304 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_FLEX="flex"
5314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5323 FLEX=$ac_cv_prog_FLEX
5324 if test -n "$FLEX"; then
5325 echo "$as_me:$LINENO: result: $FLEX" >&5
5326 echo "${ECHO_T}$FLEX" >&6
5328 echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5335 # The -L switch is so bison can find its skeleton file.
5336 if test -f $srcdir/../bison/bison.simple; then
5337 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5339 # Extract the first word of "bison", so it can be a program name with args.
5340 set dummy bison; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_prog_BISON+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 if test -n "$BISON"; then
5347 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_BISON="bison"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5366 BISON=$ac_cv_prog_BISON
5367 if test -n "$BISON"; then
5368 echo "$as_me:$LINENO: result: $BISON" >&5
5369 echo "${ECHO_T}$BISON" >&6
5371 echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6
5377 # --------------------
5378 # Checks for C headers
5379 # --------------------
5381 echo "$as_me:$LINENO: checking for GNU C library" >&5
5382 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5383 if test "${gcc_cv_glibc+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 cat >conftest.$ac_ext <<_ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <features.h>
5397 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5398 #error Not a GNU C library system
5404 rm -f conftest.$ac_objext
5405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406 (eval $ac_compile) 2>conftest.er1
5408 grep -v '^ *+' conftest.er1 >conftest.err
5410 cat conftest.err >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } &&
5413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; } &&
5419 { ac_try='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5435 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5436 echo "${ECHO_T}$gcc_cv_glibc" >&6
5437 if test $gcc_cv_glibc = yes; then
5439 cat >>confdefs.h <<\_ACEOF
5440 #define _GNU_SOURCE 1
5445 # Need to reject headers which give warnings, so that the -Werror bootstrap
5446 # works later. *sigh* This needs to come before all header checks.
5448 ac_c_preproc_warn_flag=yes
5450 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5451 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5452 if test "${ac_cv_header_stdc+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 cat >conftest.$ac_ext <<_ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; } &&
5489 { ac_try='test -s conftest.$ac_objext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_header_stdc=yes
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_cv_header_stdc=no
5502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5504 if test $ac_cv_header_stdc = yes; then
5505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5506 cat >conftest.$ac_ext <<_ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516 $EGREP "memchr" >/dev/null 2>&1; then
5519 ac_cv_header_stdc=no
5525 if test $ac_cv_header_stdc = yes; then
5526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5527 cat >conftest.$ac_ext <<_ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537 $EGREP "free" >/dev/null 2>&1; then
5540 ac_cv_header_stdc=no
5546 if test $ac_cv_header_stdc = yes; then
5547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5548 if test "$cross_compiling" = yes; then
5551 cat >conftest.$ac_ext <<_ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5558 #if ((' ' & 0x0FF) == 0x020)
5559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5562 # define ISLOWER(c) \
5563 (('a' <= (c) && (c) <= 'i') \
5564 || ('j' <= (c) && (c) <= 'r') \
5565 || ('s' <= (c) && (c) <= 'z'))
5566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5574 for (i = 0; i < 256; i++)
5575 if (XOR (islower (i), ISLOWER (i))
5576 || toupper (i) != TOUPPER (i))
5581 rm -f conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; }; then
5594 echo "$as_me: program exited with status $ac_status" >&5
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5599 ac_cv_header_stdc=no
5601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5605 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5606 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5607 if test $ac_cv_header_stdc = yes; then
5609 cat >>confdefs.h <<\_ACEOF
5610 #define STDC_HEADERS 1
5615 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5616 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5617 if test "${ac_cv_header_time+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 cat >conftest.$ac_ext <<_ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <sys/types.h>
5627 #include <sys/time.h>
5633 if ((struct tm *) 0)
5639 rm -f conftest.$ac_objext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5641 (eval $ac_compile) 2>conftest.er1
5643 grep -v '^ *+' conftest.er1 >conftest.err
5645 cat conftest.err >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; } &&
5654 { ac_try='test -s conftest.$ac_objext'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5660 ac_cv_header_time=yes
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 ac_cv_header_time=no
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5669 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5670 echo "${ECHO_T}$ac_cv_header_time" >&6
5671 if test $ac_cv_header_time = yes; then
5673 cat >>confdefs.h <<\_ACEOF
5674 #define TIME_WITH_SYS_TIME 1
5679 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5680 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5681 if test "${ac_cv_header_stdbool_h+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 #include <stdbool.h>
5699 rm -f conftest.$ac_objext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701 (eval $ac_compile) 2>conftest.er1
5703 grep -v '^ *+' conftest.er1 >conftest.err
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest.$ac_objext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 ac_cv_header_stdbool_h=yes
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 ac_cv_header_stdbool_h=no
5727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5729 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5730 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5731 if test $ac_cv_header_stdbool_h = yes; then
5733 cat >>confdefs.h <<\_ACEOF
5734 #define HAVE_STDBOOL_H 1
5739 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5740 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5741 if test "${gcc_cv_header_string+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 cat >conftest.$ac_ext <<_ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5751 #include <strings.h>
5760 rm -f conftest.$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 gcc_cv_header_string=yes
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786 gcc_cv_header_string=no
5788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5790 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5791 echo "${ECHO_T}$gcc_cv_header_string" >&6
5792 if test $gcc_cv_header_string = yes; then
5794 cat >>confdefs.h <<\_ACEOF
5795 #define STRING_WITH_STRINGS 1
5800 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5801 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5802 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <sys/types.h>
5812 #include <sys/wait.h>
5814 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5817 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5825 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5830 rm -f conftest.$ac_objext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5832 (eval $ac_compile) 2>conftest.er1
5834 grep -v '^ *+' conftest.er1 >conftest.err
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_header_sys_wait_h=yes
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5856 ac_cv_header_sys_wait_h=no
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5860 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5861 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5862 if test $ac_cv_header_sys_wait_h = yes; then
5864 cat >>confdefs.h <<\_ACEOF
5865 #define HAVE_SYS_WAIT_H 1
5891 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5892 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5893 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5894 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5897 echo "$as_me:$LINENO: checking for $ac_header" >&5
5898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 #include <$ac_header>
5910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5913 grep -v '^ *+' conftest.er1 >conftest.err
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } >/dev/null; then
5918 if test -s conftest.err; then
5919 ac_cpp_err=$ac_c_preproc_warn_flag
5920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5927 if test -z "$ac_cpp_err"; then
5928 eval "$as_ac_Header=yes"
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5933 eval "$as_ac_Header=no"
5935 rm -f conftest.err conftest.$ac_ext
5937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5940 cat >>confdefs.h <<_ACEOF
5941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5948 # Check for thread headers.
5949 echo "$as_me:$LINENO: checking for thread.h" >&5
5950 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5951 if test "${ac_cv_header_thread_h+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 cat >conftest.$ac_ext <<_ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5965 grep -v '^ *+' conftest.er1 >conftest.err
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } >/dev/null; then
5970 if test -s conftest.err; then
5971 ac_cpp_err=$ac_c_preproc_warn_flag
5972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5979 if test -z "$ac_cpp_err"; then
5980 ac_cv_header_thread_h=yes
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5985 ac_cv_header_thread_h=no
5987 rm -f conftest.err conftest.$ac_ext
5989 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5990 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5991 if test $ac_cv_header_thread_h = yes; then
5997 echo "$as_me:$LINENO: checking for pthread.h" >&5
5998 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5999 if test "${ac_cv_header_pthread_h+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <pthread.h>
6010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } >/dev/null; then
6018 if test -s conftest.err; then
6019 ac_cpp_err=$ac_c_preproc_warn_flag
6020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6027 if test -z "$ac_cpp_err"; then
6028 ac_cv_header_pthread_h=yes
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 ac_cv_header_pthread_h=no
6035 rm -f conftest.err conftest.$ac_ext
6037 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6038 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6039 if test $ac_cv_header_pthread_h = yes; then
6046 # These tests can't be done till we know if we have limits.h.
6047 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6048 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6049 if test "${gcc_cv_decl_char_bit+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #ifdef HAVE_LIMITS_H
6065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6066 $EGREP "found" >/dev/null 2>&1; then
6067 gcc_cv_decl_char_bit=yes
6069 gcc_cv_decl_char_bit=no
6075 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6076 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6077 if test $gcc_cv_decl_char_bit = no; then
6078 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6079 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6080 if test "${gcc_cv_c_nbby+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 while test $i -lt 65; do
6086 cat >conftest.$ac_ext <<_ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6097 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6098 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6104 rm -f conftest.$ac_objext
6105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6106 (eval $ac_compile) 2>conftest.er1
6108 grep -v '^ *+' conftest.er1 >conftest.err
6110 cat conftest.err >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } &&
6113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; } &&
6119 { ac_try='test -s conftest.$ac_objext'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6125 gcc_cv_c_nbby=$i; break
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6134 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6137 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6138 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6139 if test $gcc_cv_c_nbby = failed; then
6140 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6141 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6142 { (exit 1); exit 1; }; }
6145 cat >>confdefs.h <<_ACEOF
6146 #define CHAR_BIT $gcc_cv_c_nbby
6151 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6152 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6153 if test "${ac_cv_c_bigendian+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 ac_cv_c_bigendian=unknown
6157 # See if sys/param.h defines the BYTE_ORDER macro.
6158 cat >conftest.$ac_ext <<_ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 #include <sys/types.h>
6165 #include <sys/param.h>
6170 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 # It does; now see whether it defined to BIG_ENDIAN or not.
6199 cat >conftest.$ac_ext <<_ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 #include <sys/types.h>
6206 #include <sys/param.h>
6211 #if BYTE_ORDER != BIG_ENDIAN
6218 rm -f conftest.$ac_objext
6219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220 (eval $ac_compile) 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } &&
6227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 ac_cv_c_bigendian=yes
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6244 ac_cv_c_bigendian=no
6246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6253 if test $ac_cv_c_bigendian = unknown; then
6254 if test "$cross_compiling" = yes; then
6255 echo $ac_n "cross-compiling... " 2>&6
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6264 /* Are we little or big endian? From Harbison&Steele. */
6268 char c[sizeof (long)];
6271 exit (u.c[sizeof (long) - 1] == 1);
6274 rm -f conftest$ac_exeext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276 (eval $ac_link) 2>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 ac_cv_c_bigendian=no
6287 echo "$as_me: program exited with status $ac_status" >&5
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6292 ac_cv_c_bigendian=yes
6294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6298 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6299 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6300 if test $ac_cv_c_bigendian = unknown; then
6301 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6302 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6304 cat >conftest.c <<EOF
6305 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6306 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6307 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6308 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6309 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6310 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6311 int main() { _ascii (); _ebcdic (); return 0; }
6313 if test -f conftest.c ; then
6314 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6315 if test `grep -l BIGenDianSyS conftest.o` ; then
6316 echo $ac_n ' big endian probe OK, ' 1>&6
6317 ac_cv_c_bigendian=yes
6319 if test `grep -l LiTTleEnDian conftest.o` ; then
6320 echo $ac_n ' little endian probe OK, ' 1>&6
6321 if test $ac_cv_c_bigendian = yes ; then
6322 ac_cv_c_bigendian=unknown;
6324 ac_cv_c_bigendian=no
6327 echo $ac_n 'guessing bigendian ... ' >&6
6330 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6331 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6333 if test $ac_cv_c_bigendian = yes; then
6335 cat >>confdefs.h <<\_ACEOF
6336 #define WORDS_BIGENDIAN 1
6340 cat >>confdefs.h <<\_ACEOF
6341 #define HOST_WORDS_BIG_ENDIAN 1
6349 cat >>confdefs.h <<_ACEOF
6350 #define BYTEORDER $BYTEORDER
6353 if test $ac_cv_c_bigendian = unknown; then
6354 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6355 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6356 { (exit 1); exit 1; }; }
6364 # Stage specific cflags for build.
6368 if test x$GCC = xyes
6370 stage1_cflags="-Wa,-J"
6376 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6377 # sources; use -no-cpp-precomp to get to GNU cpp.
6378 # Apple's GCC has bugs in designated initializer handling, so disable
6380 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6385 # These libraries may be used by collect2.
6386 # We may need a special search path to get them linked.
6387 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6388 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6389 if test "${gcc_cv_collect2_libs+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 for libs in '' -lld -lmld \
6394 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6395 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6405 /* Override any gcc2 internal prototype to avoid an error. */
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6420 rm -f conftest.$ac_objext conftest$ac_exeext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422 (eval $ac_link) 2>conftest.er1
6424 grep -v '^ *+' conftest.er1 >conftest.err
6426 cat conftest.err >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; } &&
6435 { ac_try='test -s conftest$ac_exeext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6441 gcc_cv_collect2_libs="$libs"; break
6443 echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6447 rm -f conftest.err conftest.$ac_objext \
6448 conftest$ac_exeext conftest.$ac_ext
6451 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6453 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6454 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6455 case $gcc_cv_collect2_libs in
6457 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6461 # When building Ada code on Alpha, we need exc_resume which is usually in
6462 # -lexc. So test for it.
6465 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6466 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6467 if test "${ac_cv_search_exc_resume+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 ac_func_search_save_LIBS=$LIBS
6471 ac_cv_search_exc_resume=no
6472 cat >conftest.$ac_ext <<_ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6479 /* Override any gcc2 internal prototype to avoid an error. */
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6494 rm -f conftest.$ac_objext conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>conftest.er1
6498 grep -v '^ *+' conftest.er1 >conftest.err
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 ac_cv_search_exc_resume="none required"
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6521 rm -f conftest.err conftest.$ac_objext \
6522 conftest$ac_exeext conftest.$ac_ext
6523 if test "$ac_cv_search_exc_resume" = no; then
6524 for ac_lib in exc; do
6525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6526 cat >conftest.$ac_ext <<_ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6533 /* Override any gcc2 internal prototype to avoid an error. */
6537 /* We use char because int might match the return type of a gcc2
6538 builtin and then its argument prototype would still apply. */
6548 rm -f conftest.$ac_objext conftest$ac_exeext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6550 (eval $ac_link) 2>conftest.er1
6552 grep -v '^ *+' conftest.er1 >conftest.err
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_cv_search_exc_resume="-l$ac_lib"
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6576 rm -f conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6580 LIBS=$ac_func_search_save_LIBS
6582 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6583 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6584 if test "$ac_cv_search_exc_resume" != no; then
6585 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6593 # Some systems put ldexp and frexp in libm instead of libc; assume
6594 # they're both in the same place. jcf-dump needs them.
6597 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6598 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6599 if test "${ac_cv_search_ldexp+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 ac_func_search_save_LIBS=$LIBS
6603 ac_cv_search_ldexp=no
6604 cat >conftest.$ac_ext <<_ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6611 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try='test -s conftest$ac_exeext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_search_ldexp="none required"
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6653 rm -f conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext conftest.$ac_ext
6655 if test "$ac_cv_search_ldexp" = no; then
6657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6658 cat >conftest.$ac_ext <<_ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6665 /* Override any gcc2 internal prototype to avoid an error. */
6669 /* We use char because int might match the return type of a gcc2
6670 builtin and then its argument prototype would still apply. */
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6682 (eval $ac_link) 2>conftest.er1
6684 grep -v '^ *+' conftest.er1 >conftest.err
6686 cat conftest.err >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest$ac_exeext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 ac_cv_search_ldexp="-l$ac_lib"
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6708 rm -f conftest.err conftest.$ac_objext \
6709 conftest$ac_exeext conftest.$ac_ext
6712 LIBS=$ac_func_search_save_LIBS
6714 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6715 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6716 if test "$ac_cv_search_ldexp" != no; then
6717 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6725 # Use <inttypes.h> only if it exists,
6726 # doesn't clash with <sys/types.h>, and declares intmax_t.
6727 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6728 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6729 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 cat >conftest.$ac_ext <<_ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <sys/types.h>
6739 #include <inttypes.h>
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>conftest.er1
6752 grep -v '^ *+' conftest.er1 >conftest.err
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; } &&
6763 { ac_try='test -s conftest.$ac_objext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 gcc_cv_header_inttypes_h=yes
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 gcc_cv_header_inttypes_h=no
6776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6779 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6780 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6781 if test $gcc_cv_header_inttypes_h = yes; then
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_INTTYPES_H 1
6815 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6816 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6817 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6818 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6822 echo "$as_me:$LINENO: checking for $ac_func" >&5
6823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6824 if eval "test \"\${$as_ac_var+set}\" = set"; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 cat >conftest.$ac_ext <<_ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6835 #define $ac_func innocuous_$ac_func
6837 /* System header to define __stub macros and hopefully few prototypes,
6838 which can conflict with char $ac_func (); below.
6839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6840 <limits.h> exists even on freestanding compilers. */
6843 # include <limits.h>
6845 # include <assert.h>
6850 /* Override any gcc2 internal prototype to avoid an error. */
6855 /* We use char because int might match the return type of a gcc2
6856 builtin and then its argument prototype would still apply. */
6858 /* The GNU C library defines this for functions which it implements
6859 to always fail with ENOSYS. Some functions are actually named
6860 something starting with __ and the normal name is an alias. */
6861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6864 char (*f) () = $ac_func;
6873 return f != $ac_func;
6878 rm -f conftest.$ac_objext conftest$ac_exeext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880 (eval $ac_link) 2>conftest.er1
6882 grep -v '^ *+' conftest.er1 >conftest.err
6884 cat conftest.err >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; } &&
6893 { ac_try='test -s conftest$ac_exeext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 eval "$as_ac_var=yes"
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 eval "$as_ac_var=no"
6906 rm -f conftest.err conftest.$ac_objext \
6907 conftest$ac_exeext conftest.$ac_ext
6909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6911 if test `eval echo '${'$as_ac_var'}'` = yes; then
6912 cat >>confdefs.h <<_ACEOF
6913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6920 if test x$ac_cv_func_mbstowcs = xyes; then
6921 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6922 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6923 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 if test "$cross_compiling" = yes; then
6927 gcc_cv_func_mbstowcs_works=yes
6929 cat >conftest.$ac_ext <<_ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6942 rm -f conftest$ac_exeext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6944 (eval $ac_link) 2>&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 gcc_cv_func_mbstowcs_works=yes
6955 echo "$as_me: program exited with status $ac_status" >&5
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6960 gcc_cv_func_mbstowcs_works=no
6962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6965 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6966 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6967 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_WORKING_MBSTOWCS 1
6976 echo "$as_me:$LINENO: checking for ssize_t" >&5
6977 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6978 if test "${ac_cv_type_ssize_t+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6993 if (sizeof (ssize_t))
6999 rm -f conftest.$ac_objext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001 (eval $ac_compile) 2>conftest.er1
7003 grep -v '^ *+' conftest.er1 >conftest.err
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; } &&
7014 { ac_try='test -s conftest.$ac_objext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 ac_cv_type_ssize_t=yes
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 ac_cv_type_ssize_t=no
7027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7030 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7031 if test $ac_cv_type_ssize_t = yes; then
7035 cat >>confdefs.h <<_ACEOF
7042 # Try to determine the array type of the second argument of getgroups
7043 # for the target system (int or gid_t).
7044 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7045 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7046 if test "${ac_cv_type_uid_t+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 cat >conftest.$ac_ext <<_ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 #include <sys/types.h>
7058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7059 $EGREP "uid_t" >/dev/null 2>&1; then
7060 ac_cv_type_uid_t=yes
7067 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7068 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7069 if test $ac_cv_type_uid_t = no; then
7071 cat >>confdefs.h <<\_ACEOF
7076 cat >>confdefs.h <<\_ACEOF
7082 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7083 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7084 if test "${ac_cv_type_getgroups+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 if test "$cross_compiling" = yes; then
7088 ac_cv_type_getgroups=cross
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 /* Thanks to Mike Rendell for this test. */
7097 #include <sys/types.h>
7100 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7107 union { gid_t gval; long lval; } val;
7110 for (i = 0; i < NGID; i++)
7111 gidset[i] = val.gval;
7112 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7114 /* Exit non-zero if getgroups seems to require an array of ints. This
7115 happens when gid_t is short but getgroups modifies an array of ints. */
7116 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7119 rm -f conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121 (eval $ac_link) 2>&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 ac_cv_type_getgroups=gid_t
7132 echo "$as_me: program exited with status $ac_status" >&5
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7137 ac_cv_type_getgroups=int
7139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7141 if test $ac_cv_type_getgroups = cross; then
7142 cat >conftest.$ac_ext <<_ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7152 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7153 ac_cv_type_getgroups=gid_t
7155 ac_cv_type_getgroups=int
7161 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7162 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7164 cat >>confdefs.h <<_ACEOF
7165 #define GETGROUPS_T $ac_cv_type_getgroups
7169 if test "${target}" = "${build}"; then
7170 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7173 # This condition may need some tweaking. It should include all
7174 # targets where the array type of the second argument of getgroups
7175 # is int and the type of gid_t is not equivalent to int.
7176 *-*-sunos* | *-*-ultrix*)
7177 TARGET_GETGROUPS_T=int
7180 TARGET_GETGROUPS_T=gid_t
7186 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7187 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7188 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 if test "$cross_compiling" = yes; then
7192 gcc_cv_func_printf_ptr=no
7194 cat >conftest.$ac_ext <<_ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7205 char *p = buf, *q = NULL;
7206 sprintf(buf, "%p", p);
7207 sscanf(buf, "%p", &q);
7211 rm -f conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213 (eval $ac_link) 2>&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 gcc_cv_func_printf_ptr=yes
7224 echo "$as_me: program exited with status $ac_status" >&5
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7229 gcc_cv_func_printf_ptr=no
7231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7233 rm -f core core.* *.core
7235 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7236 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7237 if test $gcc_cv_func_printf_ptr = yes ; then
7239 cat >>confdefs.h <<\_ACEOF
7240 #define HAVE_PRINTF_PTR 1
7245 if test $ac_cv_header_sys_mman_h != yes \
7246 || test $ac_cv_func_mmap != yes; then
7247 gcc_cv_func_mmap_file=no
7248 gcc_cv_func_mmap_dev_zero=no
7249 gcc_cv_func_mmap_anon=no
7251 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7252 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7253 if test "${gcc_cv_func_mmap_file+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 # Add a system to this blacklist if
7257 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7258 # memory area containing the same data that you'd get if you applied
7259 # read() to the same fd. The only system known to have a problem here
7260 # is VMS, where text files have record structure.
7263 gcc_cv_func_mmap_file=no ;;
7265 gcc_cv_func_mmap_file=yes;;
7268 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7269 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7270 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7271 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7272 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 # Add a system to this blacklist if it has mmap() but /dev/zero
7276 # does not exist, or if mmapping /dev/zero does not give anonymous
7277 # zeroed pages with both the following properties:
7278 # 1. If you map N consecutive pages in with one call, and then
7279 # unmap any subset of those pages, the pages that were not
7280 # explicitly unmapped remain accessible.
7281 # 2. If you map two adjacent blocks of memory and then unmap them
7282 # both at once, they must both go away.
7283 # Systems known to be in this category are Windows (all variants),
7286 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7287 gcc_cv_func_mmap_dev_zero=no ;;
7289 gcc_cv_func_mmap_dev_zero=yes;;
7292 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7293 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7295 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7296 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7297 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7298 if test "${gcc_cv_decl_map_anon+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <sys/types.h>
7308 #include <sys/mman.h>
7311 #ifndef MAP_ANONYMOUS
7312 #define MAP_ANONYMOUS MAP_ANON
7318 int n = MAP_ANONYMOUS;
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>conftest.er1
7327 grep -v '^ *+' conftest.er1 >conftest.err
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; } &&
7338 { ac_try='test -s conftest.$ac_objext'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 gcc_cv_decl_map_anon=yes
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 gcc_cv_decl_map_anon=no
7351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7353 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7354 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7356 if test $gcc_cv_decl_map_anon = no; then
7357 gcc_cv_func_mmap_anon=no
7359 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7360 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7361 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7365 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7366 # doesn't give anonymous zeroed pages with the same properties listed
7367 # above for use of /dev/zero.
7368 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7370 vms* | cygwin* | pe | mingw* | sco* | udk* )
7371 gcc_cv_func_mmap_anon=no ;;
7373 gcc_cv_func_mmap_anon=yes;;
7376 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7377 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7381 if test $gcc_cv_func_mmap_file = yes; then
7383 cat >>confdefs.h <<\_ACEOF
7384 #define HAVE_MMAP_FILE 1
7388 if test $gcc_cv_func_mmap_dev_zero = yes; then
7390 cat >>confdefs.h <<\_ACEOF
7391 #define HAVE_MMAP_DEV_ZERO 1
7395 if test $gcc_cv_func_mmap_anon = yes; then
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_MMAP_ANON 1
7406 # Under VMS, vfork works very differently than on Unix. The standard test
7407 # won't work, and it isn't easily adaptable. It makes more sense to
7409 ac_cv_func_vfork_works=yes
7412 echo "$as_me:$LINENO: checking for pid_t" >&5
7413 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7414 if test "${ac_cv_type_pid_t+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 $ac_includes_default
7435 rm -f conftest.$ac_objext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437 (eval $ac_compile) 2>conftest.er1
7439 grep -v '^ *+' conftest.er1 >conftest.err
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try='test -s conftest.$ac_objext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_cv_type_pid_t=yes
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7465 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7466 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7467 if test $ac_cv_type_pid_t = yes; then
7471 cat >>confdefs.h <<_ACEOF
7479 for ac_header in unistd.h vfork.h
7481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7482 echo "$as_me:$LINENO: checking for $ac_header" >&5
7483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 cat >conftest.$ac_ext <<_ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 #include <$ac_header>
7495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7498 grep -v '^ *+' conftest.er1 >conftest.err
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } >/dev/null; then
7503 if test -s conftest.err; then
7504 ac_cpp_err=$ac_c_preproc_warn_flag
7505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7512 if test -z "$ac_cpp_err"; then
7513 eval "$as_ac_Header=yes"
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 eval "$as_ac_Header=no"
7520 rm -f conftest.err conftest.$ac_ext
7522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525 cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7534 for ac_func in fork vfork
7536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7537 echo "$as_me:$LINENO: checking for $ac_func" >&5
7538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7539 if eval "test \"\${$as_ac_var+set}\" = set"; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 cat >conftest.$ac_ext <<_ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7550 #define $ac_func innocuous_$ac_func
7552 /* System header to define __stub macros and hopefully few prototypes,
7553 which can conflict with char $ac_func (); below.
7554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7555 <limits.h> exists even on freestanding compilers. */
7558 # include <limits.h>
7560 # include <assert.h>
7565 /* Override any gcc2 internal prototype to avoid an error. */
7570 /* We use char because int might match the return type of a gcc2
7571 builtin and then its argument prototype would still apply. */
7573 /* The GNU C library defines this for functions which it implements
7574 to always fail with ENOSYS. Some functions are actually named
7575 something starting with __ and the normal name is an alias. */
7576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7579 char (*f) () = $ac_func;
7588 return f != $ac_func;
7593 rm -f conftest.$ac_objext conftest$ac_exeext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 (eval $ac_link) 2>conftest.er1
7597 grep -v '^ *+' conftest.er1 >conftest.err
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; } &&
7608 { ac_try='test -s conftest$ac_exeext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 eval "$as_ac_var=yes"
7616 echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7619 eval "$as_ac_var=no"
7621 rm -f conftest.err conftest.$ac_objext \
7622 conftest$ac_exeext conftest.$ac_ext
7624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7626 if test `eval echo '${'$as_ac_var'}'` = yes; then
7627 cat >>confdefs.h <<_ACEOF
7628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7634 if test "x$ac_cv_func_fork" = xyes; then
7635 echo "$as_me:$LINENO: checking for working fork" >&5
7636 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7637 if test "${ac_cv_func_fork_works+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 if test "$cross_compiling" = yes; then
7641 ac_cv_func_fork_works=cross
7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* By Ruediger Kuhlmann. */
7645 #include <sys/types.h>
7647 # include <unistd.h>
7649 /* Some systems only have a dummy stub for fork() */
7657 rm -f conftest$ac_exeext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_cv_func_fork_works=yes
7670 echo "$as_me: program exited with status $ac_status" >&5
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7675 ac_cv_func_fork_works=no
7677 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7680 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7681 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7684 ac_cv_func_fork_works=$ac_cv_func_fork
7686 if test "x$ac_cv_func_fork_works" = xcross; then
7688 *-*-amigaos* | *-*-msdosdjgpp*)
7689 # Override, as these systems have only a dummy fork() stub
7690 ac_cv_func_fork_works=no
7693 ac_cv_func_fork_works=yes
7696 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7697 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7699 ac_cv_func_vfork_works=$ac_cv_func_vfork
7700 if test "x$ac_cv_func_vfork" = xyes; then
7701 echo "$as_me:$LINENO: checking for working vfork" >&5
7702 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7703 if test "${ac_cv_func_vfork_works+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 if test "$cross_compiling" = yes; then
7707 ac_cv_func_vfork_works=cross
7709 cat >conftest.$ac_ext <<_ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 /* Thanks to Paul Eggert for this test. */
7718 #include <sys/types.h>
7719 #include <sys/stat.h>
7720 #include <sys/wait.h>
7722 # include <unistd.h>
7727 /* On some sparc systems, changes by the child to local and incoming
7728 argument registers are propagated back to the parent. The compiler
7729 is told about this with #include <vfork.h>, but some compilers
7730 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7731 static variable whose address is put into a register that is
7732 clobbered by the vfork. */
7735 sparc_address_test (int arg)
7737 sparc_address_test (arg) int arg;
7758 pid_t parent = getpid ();
7761 sparc_address_test (0);
7766 /* Here is another test for sparc vfork register problems. This
7767 test uses lots of local variables, at least as many local
7768 variables as main has allocated so far including compiler
7769 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7770 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7771 reuse the register of parent for one of the local variables,
7772 since it will think that parent can't possibly be used any more
7773 in this routine. Assigning to the local variable will thus
7774 munge parent in the parent process. */
7776 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7777 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7778 /* Convince the compiler that p..p7 are live; otherwise, it might
7779 use the same hardware register for all 8 local variables. */
7780 if (p != p1 || p != p2 || p != p3 || p != p4
7781 || p != p5 || p != p6 || p != p7)
7784 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7785 from child file descriptors. If the child closes a descriptor
7786 before it execs or exits, this munges the parent's descriptor
7787 as well. Test for this by closing stdout in the child. */
7788 _exit(close(fileno(stdout)) != 0);
7793 while (wait(&status) != child)
7796 /* Was there some problem with vforking? */
7799 /* Did the child fail? (This shouldn't happen.) */
7802 /* Did the vfork/compiler bug occur? */
7803 || parent != getpid()
7805 /* Did the file descriptor bug occur? */
7806 || fstat(fileno(stdout), &st) != 0
7811 rm -f conftest$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813 (eval $ac_link) 2>&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7822 ac_cv_func_vfork_works=yes
7824 echo "$as_me: program exited with status $ac_status" >&5
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7829 ac_cv_func_vfork_works=no
7831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7835 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7838 if test "x$ac_cv_func_fork_works" = xcross; then
7839 ac_cv_func_vfork_works=$ac_cv_func_vfork
7840 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7841 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7844 if test "x$ac_cv_func_vfork_works" = xyes; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_WORKING_VFORK 1
7852 cat >>confdefs.h <<\_ACEOF
7857 if test "x$ac_cv_func_fork_works" = xyes; then
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_WORKING_FORK 1
7868 am_cv_lib_iconv_ldpath=
7870 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7871 if test "${with_libiconv_prefix+set}" = set; then
7872 withval="$with_libiconv_prefix"
7874 for dir in `echo "$withval" | tr : ' '`; do
7875 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7876 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7882 for ac_header in iconv.h
7884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7885 echo "$as_me:$LINENO: checking for $ac_header" >&5
7886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 #include <$ac_header>
7898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7901 grep -v '^ *+' conftest.er1 >conftest.err
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } >/dev/null; then
7906 if test -s conftest.err; then
7907 ac_cpp_err=$ac_c_preproc_warn_flag
7908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7915 if test -z "$ac_cpp_err"; then
7916 eval "$as_ac_Header=yes"
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7921 eval "$as_ac_Header=no"
7923 rm -f conftest.err conftest.$ac_ext
7925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7928 cat >>confdefs.h <<_ACEOF
7929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7936 echo "$as_me:$LINENO: checking for iconv" >&5
7937 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7938 if test "${am_cv_func_iconv+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 am_cv_func_iconv="no, consider installing GNU libiconv"
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7955 iconv_t cd = iconv_open("","");
7956 iconv(cd,NULL,NULL,NULL,NULL);
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>conftest.er1
7966 grep -v '^ *+' conftest.er1 >conftest.err
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; } &&
7977 { ac_try='test -s conftest$ac_exeext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 am_cv_func_iconv=yes
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7989 rm -f conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7991 if test "$am_cv_func_iconv" != yes; then
7992 am_save_LIBS="$LIBS"
7993 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7994 cat >conftest.$ac_ext <<_ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8005 iconv_t cd = iconv_open("","");
8006 iconv(cd,NULL,NULL,NULL,NULL);
8012 rm -f conftest.$ac_objext conftest$ac_exeext
8013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014 (eval $ac_link) 2>conftest.er1
8016 grep -v '^ *+' conftest.er1 >conftest.err
8018 cat conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } &&
8021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
8027 { ac_try='test -s conftest$ac_exeext'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
8034 am_cv_func_iconv=yes
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8040 rm -f conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8042 LIBS="$am_save_LIBS"
8046 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8047 echo "${ECHO_T}$am_cv_func_iconv" >&6
8048 if test "$am_cv_func_iconv" = yes; then
8050 cat >>confdefs.h <<\_ACEOF
8051 #define HAVE_ICONV 1
8054 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8055 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8056 if test "${am_cv_proto_iconv+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 cat >conftest.$ac_ext <<_ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8073 #if defined(__STDC__) || defined(__cplusplus)
8074 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8087 rm -f conftest.$ac_objext
8088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8089 (eval $ac_compile) 2>conftest.er1
8091 grep -v '^ *+' conftest.er1 >conftest.err
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } &&
8096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest.$ac_objext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 am_cv_proto_iconv_arg1=""
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 am_cv_proto_iconv_arg1="const"
8115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8116 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);"
8119 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8120 echo "$as_me:$LINENO: result: ${ac_t:-
8121 }$am_cv_proto_iconv" >&5
8122 echo "${ECHO_T}${ac_t:-
8123 }$am_cv_proto_iconv" >&6
8125 cat >>confdefs.h <<_ACEOF
8126 #define ICONV_CONST $am_cv_proto_iconv_arg1
8131 if test "$am_cv_lib_iconv" = yes; then
8132 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8136 # Until we have in-tree GNU iconv:
8141 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8142 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8143 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 cat >conftest.$ac_ext <<_ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8161 rm -f conftest.$ac_objext conftest$ac_exeext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8163 (eval $ac_link) 2>conftest.er1
8165 grep -v '^ *+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 am_cv_val_LC_MESSAGES=yes
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 am_cv_val_LC_MESSAGES=no
8189 rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8193 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8194 if test $am_cv_val_LC_MESSAGES = yes; then
8196 cat >>confdefs.h <<\_ACEOF
8197 #define HAVE_LC_MESSAGES 1
8203 # We will need to find libiberty.h and ansidecl.h
8204 saved_CFLAGS="$CFLAGS"
8205 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8206 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8207 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8208 fprintf_unlocked strstr errno snprintf vasprintf \
8209 malloc realloc calloc free basename getopt clock
8211 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8212 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8213 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8214 if eval "test \"\${gcc_cv_have_decl_$ac_func+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. */
8224 #define $ac_tr_decl 1
8226 #include "ansidecl.h"
8233 char *(*pfn) = (char *(*)) $ac_func ;
8239 rm -f conftest.$ac_objext
8240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8241 (eval $ac_compile) 2>conftest.er1
8243 grep -v '^ *+' conftest.er1 >conftest.err
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 eval "gcc_cv_have_decl_$ac_func=yes"
8262 echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8265 eval "gcc_cv_have_decl_$ac_func=no"
8267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8270 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8271 echo "$as_me:$LINENO: result: yes" >&5
8272 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8273 #define $ac_tr_decl 1
8277 echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8279 #define $ac_tr_decl 0
8285 if test x = y ; then
8287 cat >>confdefs.h <<\_ACEOF
8288 #define HAVE_DECL_GETENV 1
8291 cat >>confdefs.h <<\_ACEOF
8292 #define HAVE_DECL_ATOL 1
8295 cat >>confdefs.h <<\_ACEOF
8296 #define HAVE_DECL_SBRK 1
8299 cat >>confdefs.h <<\_ACEOF
8300 #define HAVE_DECL_ABORT 1
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_DECL_ATOF 1
8307 cat >>confdefs.h <<\_ACEOF
8308 #define HAVE_DECL_GETCWD 1
8311 cat >>confdefs.h <<\_ACEOF
8312 #define HAVE_DECL_GETWD 1
8316 cat >>confdefs.h <<\_ACEOF
8317 #define HAVE_DECL_STRSIGNAL 1
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_DECL_PUTC_UNLOCKED 1
8324 cat >>confdefs.h <<\_ACEOF
8325 #define HAVE_DECL_FPUTS_UNLOCKED 1
8328 cat >>confdefs.h <<\_ACEOF
8329 #define HAVE_DECL_FWRITE_UNLOCKED 1
8333 cat >>confdefs.h <<\_ACEOF
8334 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8337 cat >>confdefs.h <<\_ACEOF
8338 #define HAVE_DECL_STRSTR 1
8341 cat >>confdefs.h <<\_ACEOF
8342 #define HAVE_DECL_ERRNO 1
8345 cat >>confdefs.h <<\_ACEOF
8346 #define HAVE_DECL_SNPRINTF 1
8349 cat >>confdefs.h <<\_ACEOF
8350 #define HAVE_DECL_VASPRINTF 1
8354 cat >>confdefs.h <<\_ACEOF
8355 #define HAVE_DECL_MALLOC 1
8358 cat >>confdefs.h <<\_ACEOF
8359 #define HAVE_DECL_REALLOC 1
8362 cat >>confdefs.h <<\_ACEOF
8363 #define HAVE_DECL_CALLOC 1
8366 cat >>confdefs.h <<\_ACEOF
8367 #define HAVE_DECL_FREE 1
8370 cat >>confdefs.h <<\_ACEOF
8371 #define HAVE_DECL_BASENAME 1
8374 cat >>confdefs.h <<\_ACEOF
8375 #define HAVE_DECL_GETOPT 1
8378 cat >>confdefs.h <<\_ACEOF
8379 #define HAVE_DECL_CLOCK 1
8384 for ac_func in getrlimit setrlimit getrusage
8386 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8387 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8388 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8389 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 cat >conftest.$ac_ext <<_ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8399 #define $ac_tr_decl 1
8401 #include "ansidecl.h"
8403 #ifdef HAVE_SYS_RESOURCE_H
8404 #include <sys/resource.h>
8412 char *(*pfn) = (char *(*)) $ac_func ;
8418 rm -f conftest.$ac_objext
8419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8420 (eval $ac_compile) 2>conftest.er1
8422 grep -v '^ *+' conftest.er1 >conftest.err
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } &&
8427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest.$ac_objext'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
8439 eval "gcc_cv_have_decl_$ac_func=yes"
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8444 eval "gcc_cv_have_decl_$ac_func=no"
8446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8449 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8450 echo "$as_me:$LINENO: result: yes" >&5
8451 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8452 #define $ac_tr_decl 1
8456 echo "$as_me:$LINENO: result: no" >&5
8457 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8458 #define $ac_tr_decl 0
8464 if test x = y ; then
8466 cat >>confdefs.h <<\_ACEOF
8467 #define HAVE_DECL_GETRLIMIT 1
8470 cat >>confdefs.h <<\_ACEOF
8471 #define HAVE_DECL_SETRLIMIT 1
8474 cat >>confdefs.h <<\_ACEOF
8475 #define HAVE_DECL_GETRUSAGE 1
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8487 #include "ansidecl.h"
8489 #ifdef HAVE_SYS_RESOURCE_H
8490 #include <sys/resource.h>
8501 rm -f conftest.$ac_objext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8503 (eval $ac_compile) 2>conftest.er1
8505 grep -v '^ *+' conftest.er1 >conftest.err
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } &&
8510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; } &&
8516 { ac_try='test -s conftest.$ac_objext'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8528 cat >>confdefs.h <<\_ACEOF
8533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8535 for ac_func in ldgetname
8537 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8538 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8539 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8540 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 cat >conftest.$ac_ext <<_ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8550 #define $ac_tr_decl 1
8552 #include "ansidecl.h"
8563 char *(*pfn) = (char *(*)) $ac_func ;
8569 rm -f conftest.$ac_objext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8571 (eval $ac_compile) 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 eval "gcc_cv_have_decl_$ac_func=yes"
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 eval "gcc_cv_have_decl_$ac_func=no"
8597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8600 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8601 echo "$as_me:$LINENO: result: yes" >&5
8602 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8603 #define $ac_tr_decl 1
8607 echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8609 #define $ac_tr_decl 0
8615 if test x = y ; then
8617 cat >>confdefs.h <<\_ACEOF
8618 #define HAVE_DECL_LDGETNAME 1
8623 for ac_func in times
8625 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8626 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8627 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8628 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 cat >conftest.$ac_ext <<_ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8638 #define $ac_tr_decl 1
8640 #include "ansidecl.h"
8642 #ifdef HAVE_SYS_TIMES_H
8643 #include <sys/times.h>
8651 char *(*pfn) = (char *(*)) $ac_func ;
8657 rm -f conftest.$ac_objext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8659 (eval $ac_compile) 2>conftest.er1
8661 grep -v '^ *+' conftest.er1 >conftest.err
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } &&
8666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 eval "gcc_cv_have_decl_$ac_func=yes"
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 eval "gcc_cv_have_decl_$ac_func=no"
8685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8688 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8689 echo "$as_me:$LINENO: result: yes" >&5
8690 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8691 #define $ac_tr_decl 1
8695 echo "$as_me:$LINENO: result: no" >&5
8696 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8697 #define $ac_tr_decl 0
8703 if test x = y ; then
8705 cat >>confdefs.h <<\_ACEOF
8706 #define HAVE_DECL_TIMES 1
8711 # More time-related stuff.
8712 echo "$as_me:$LINENO: checking for struct tms" >&5
8713 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8714 if test "${ac_cv_struct_tms+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 cat >conftest.$ac_ext <<_ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8725 #include "ansidecl.h"
8727 #ifdef HAVE_SYS_TIMES_H
8728 #include <sys/times.h>
8739 rm -f conftest.$ac_objext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741 (eval $ac_compile) 2>conftest.er1
8743 grep -v '^ *+' conftest.er1 >conftest.err
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; } &&
8754 { ac_try='test -s conftest.$ac_objext'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 ac_cv_struct_tms=yes
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8769 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8770 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8771 if test $ac_cv_struct_tms = yes; then
8773 cat >>confdefs.h <<\_ACEOF
8774 #define HAVE_STRUCT_TMS 1
8779 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8780 # revisit after autoconf 2.50.
8781 echo "$as_me:$LINENO: checking for clock_t" >&5
8782 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8783 if test "${gcc_cv_type_clock_t+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 cat >conftest.$ac_ext <<_ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8794 #include "ansidecl.h"
8805 rm -f conftest.$ac_objext
8806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8807 (eval $ac_compile) 2>conftest.er1
8809 grep -v '^ *+' conftest.er1 >conftest.err
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } &&
8814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; } &&
8820 { ac_try='test -s conftest.$ac_objext'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; }; then
8826 gcc_cv_type_clock_t=yes
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 gcc_cv_type_clock_t=no
8833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8835 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8836 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8837 if test $gcc_cv_type_clock_t = yes; then
8839 cat >>confdefs.h <<\_ACEOF
8840 #define HAVE_CLOCK_T 1
8845 echo "$as_me:$LINENO: checking for uchar" >&5
8846 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8847 if test "${gcc_cv_type_uchar+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 cat >conftest.$ac_ext <<_ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8857 #include "ansidecl.h"
8863 if ((uchar *)0) return 0;
8864 if (sizeof(uchar)) return 0;
8869 rm -f conftest.$ac_objext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871 (eval $ac_compile) 2>conftest.er1
8873 grep -v '^ *+' conftest.er1 >conftest.err
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; } &&
8884 { ac_try='test -s conftest.$ac_objext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_cv_type_uchar=yes
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8899 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8900 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8901 if test $ac_cv_type_uchar = yes; then
8903 cat >>confdefs.h <<\_ACEOF
8904 #define HAVE_UCHAR 1
8909 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8910 CFLAGS="$saved_CFLAGS"
8912 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8913 if test "${enable_initfini_array+set}" = set; then
8914 enableval="$enable_initfini_array"
8918 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8919 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8920 if test "${gcc_cv_initfini_array+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 if test "$cross_compiling" = yes; then
8924 gcc_cv_initfini_array=no
8926 cat >conftest.$ac_ext <<_ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8934 int main (void) { return x; }
8935 int foo (void) { x = 0; }
8936 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8938 rm -f conftest$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 gcc_cv_initfini_array=yes
8951 echo "$as_me: program exited with status $ac_status" >&5
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8956 gcc_cv_initfini_array=no
8958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8961 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8962 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8963 enable_initfini_array=$gcc_cv_initfini_array
8966 if test $enable_initfini_array = yes; then
8968 cat >>confdefs.h <<\_ACEOF
8969 #define HAVE_INITFINI_ARRAY 1
8974 # mkdir takes a single argument on some systems.
8975 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8976 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8977 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 cat >conftest.$ac_ext <<_ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8987 #include <sys/types.h>
8988 #ifdef HAVE_SYS_STAT_H
8989 # include <sys/stat.h>
8991 #ifdef HAVE_UNISTD_H
8992 # include <unistd.h>
8994 #ifdef HAVE_DIRECT_H
8995 # include <direct.h>
9005 rm -f conftest.$ac_objext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>conftest.er1
9009 grep -v '^ *+' conftest.er1 >conftest.err
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; } &&
9020 { ac_try='test -s conftest.$ac_objext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9026 gcc_cv_mkdir_takes_one_arg=no
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 gcc_cv_mkdir_takes_one_arg=yes
9033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9035 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9036 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9037 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9039 cat >>confdefs.h <<\_ACEOF
9040 #define MKDIR_TAKES_ONE_ARG 1
9052 # With Setjmp/Longjmp based exception handling.
9053 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9054 if test "${enable_sjlj_exceptions+set}" = set; then
9055 enableval="$enable_sjlj_exceptions"
9056 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9058 cat >>confdefs.h <<_ACEOF
9059 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9064 if test x$host = x$target; then
9065 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9066 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9067 if test "${ac_cv_lib_unwind_main+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 ac_check_lib_save_LIBS=$LIBS
9071 LIBS="-lunwind $LIBS"
9072 cat >conftest.$ac_ext <<_ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>conftest.er1
9092 grep -v '^ *+' conftest.er1 >conftest.err
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_cv_lib_unwind_main=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9114 ac_cv_lib_unwind_main=no
9116 rm -f conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9118 LIBS=$ac_check_lib_save_LIBS
9120 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9121 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9122 if test $ac_cv_lib_unwind_main = yes; then
9123 use_libunwind_default=yes
9125 use_libunwind_default=no
9129 use_libunwind_default=no
9131 # Use libunwind based exception handling.
9132 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9133 if test "${enable_libunwind_exceptions+set}" = set; then
9134 enableval="$enable_libunwind_exceptions"
9135 use_libunwind_exceptions=$enableval
9137 use_libunwind_exceptions=$use_libunwind_default
9139 if test x"$use_libunwind_exceptions" = xyes; then
9141 cat >>confdefs.h <<\_ACEOF
9142 #define USE_LIBUNWIND_EXCEPTIONS 1
9147 # --------------------------------------------------------
9148 # Build, host, and target specific configuration fragments
9149 # --------------------------------------------------------
9151 # Collect build-machine-specific information.
9152 . ${srcdir}/config.build
9154 # Collect host-machine-specific information.
9155 . ${srcdir}/config.host
9159 # Collect target-machine-specific information.
9160 . ${srcdir}/config.gcc
9162 extra_objs="${host_extra_objs} ${extra_objs}"
9163 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9165 # Default the target-machine variables that were not explicitly set.
9166 if test x"$tm_file" = x
9167 then tm_file=$cpu_type/$cpu_type.h; fi
9169 if test x"$extra_headers" = x
9170 then extra_headers=; fi
9172 if test x$md_file = x
9173 then md_file=$cpu_type/$cpu_type.md; fi
9175 if test x$out_file = x
9176 then out_file=$cpu_type/$cpu_type.c; fi
9178 if test x"$tmake_file" = x
9179 then tmake_file=$cpu_type/t-$cpu_type
9182 if test x"$dwarf2" = xyes
9183 then tm_file="$tm_file tm-dwarf2.h"
9186 # Say what files are being used for the output code and MD file.
9187 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9188 echo "Using \`$srcdir/config/$md_file' as machine description file."
9190 # If any of the xm_file variables contain nonexistent files, warn
9191 # about them and drop them.
9194 for x in $build_xm_file; do
9195 if test -f $srcdir/config/$x
9197 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9198 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9204 for x in $host_xm_file; do
9205 if test -f $srcdir/config/$x
9207 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9208 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9214 for x in $xm_file; do
9215 if test -f $srcdir/config/$x
9217 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9218 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9224 for f in $tm_file; do
9227 if test $count = ax; then
9228 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9230 echo "Using the following target machine macro files:"
9231 for f in $tm_file; do
9232 echo " $srcdir/config/$f"
9236 if test x$need_64bit_hwint = xyes; then
9238 cat >>confdefs.h <<\_ACEOF
9239 #define NEED_64BIT_HOST_WIDE_INT 1
9245 for f in $host_xm_file; do
9248 if test $count = a; then
9250 elif test $count = ax; then
9251 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9253 echo "Using the following host machine macro files:"
9254 for f in $host_xm_file; do
9255 echo " $srcdir/config/$f"
9258 echo "Using ${out_host_hook_obj} for host machine hooks."
9260 if test "$host_xm_file" != "$build_xm_file"; then
9262 for f in $build_xm_file; do
9265 if test $count = a; then
9267 elif test $count = ax; then
9268 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9270 echo "Using the following build machine macro files:"
9271 for f in $build_xm_file; do
9272 echo " $srcdir/config/$f"
9281 # Check if a valid thread package
9282 case ${enable_threads_flag} in
9285 target_thread_file='single'
9289 target_thread_file='single'
9291 aix | dce | gnat | irix | posix | rtems | \
9292 single | solaris | vxworks | win32 )
9293 target_thread_file=${enable_threads_flag}
9296 echo "${enable_threads_flag} is an unknown thread package" 1>&2
9301 if test x${thread_file} = x; then
9302 # No thread file set by target-specific clauses in config.gcc,
9303 # so use file chosen by default logic above
9304 thread_file=${target_thread_file}
9307 # Make gthr-default.h if we have a thread file.
9309 if test $thread_file != single; then
9310 rm -f gthr-default.h
9311 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9312 gthread_flags=-DHAVE_GTHR_DEFAULT
9320 if test x$enable___cxa_atexit = xyes || \
9321 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9322 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9323 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9324 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 cat >conftest.$ac_ext <<_ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9333 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9335 #define __cxa_atexit innocuous___cxa_atexit
9337 /* System header to define __stub macros and hopefully few prototypes,
9338 which can conflict with char __cxa_atexit (); below.
9339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9340 <limits.h> exists even on freestanding compilers. */
9343 # include <limits.h>
9345 # include <assert.h>
9350 /* Override any gcc2 internal prototype to avoid an error. */
9355 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9357 char __cxa_atexit ();
9358 /* The GNU C library defines this for functions which it implements
9359 to always fail with ENOSYS. Some functions are actually named
9360 something starting with __ and the normal name is an alias. */
9361 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9364 char (*f) () = __cxa_atexit;
9373 return f != __cxa_atexit;
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380 (eval $ac_link) 2>conftest.er1
9382 grep -v '^ *+' conftest.er1 >conftest.err
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; } &&
9393 { ac_try='test -s conftest$ac_exeext'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; }; then
9399 ac_cv_func___cxa_atexit=yes
9401 echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.$ac_ext >&5
9404 ac_cv_func___cxa_atexit=no
9406 rm -f conftest.err conftest.$ac_objext \
9407 conftest$ac_exeext conftest.$ac_ext
9409 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9410 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9411 if test $ac_cv_func___cxa_atexit = yes; then
9413 cat >>confdefs.h <<\_ACEOF
9414 #define DEFAULT_USE_CXA_ATEXIT 1
9418 echo "__cxa_atexit can't be enabled on this target"
9423 # Look for a file containing extra machine modes.
9424 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9425 extra_modes_file='$(srcdir)'/config/${extra_modes}
9428 cat >>confdefs.h <<_ACEOF
9429 #define EXTRA_MODES_FILE "config/$extra_modes"
9434 # auto-host.h is the file containing items generated by autoconf and is
9435 # the first file included by config.h.
9436 # If host=build, it is correct to have bconfig include auto-host.h
9437 # as well. If host!=build, we are in error and need to do more
9438 # work to find out the build config parameters.
9439 if test x$host = x$build
9441 build_auto=auto-host.h
9444 # We create a subdir, then run autoconf in the subdir.
9445 # To prevent recursion we set host and build for the new
9446 # invocation of configure to the build for this invocation
9453 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9454 *) realsrcdir=../${srcdir};;
9456 saved_CFLAGS="${CFLAGS}"
9457 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9458 ${realsrcdir}/configure \
9459 --enable-languages=${enable_languages-all} \
9460 --target=$target_alias --host=$build_alias --build=$build_alias
9461 CFLAGS="${saved_CFLAGS}"
9463 # We just finished tests for the build machine, so rename
9464 # the file auto-build.h in the gcc directory.
9465 mv auto-host.h ../auto-build.h
9468 build_auto=auto-build.h
9469 FORBUILD=../${build_subdir}
9473 tm_file="${tm_file} defaults.h"
9474 tm_p_file="${tm_p_file} tm-preds.h"
9475 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9476 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9477 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9478 # put this back in temporarily.
9479 xm_file="ansidecl.h ${xm_file}"
9485 # Get the version trigger filename from the toplevel
9486 if test "${with_gcc_version_trigger+set}" = set; then
9487 gcc_version_trigger=$with_gcc_version_trigger
9489 gcc_version_trigger=${srcdir}/version.c
9491 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9492 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9494 # Compile in configure arguments.
9495 if test -f configargs.h ; then
9496 # Being re-configured.
9497 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9498 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9500 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9503 # Double all backslashes and backslash all quotes to turn
9504 # gcc_config_arguments into a C string.
9505 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9506 $gcc_config_arguments
9508 gcc_config_arguments_str=`cat conftest.out`
9511 cat > configargs.h <<EOF
9512 /* Generated automatically. */
9513 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9514 static const char thread_model[] = "$thread_file";
9516 static const struct {
9517 const char *name, *value;
9518 } configure_default_options[] = $configure_default_options;
9521 # Internationalization
9523 VERSION="$gcc_version"
9527 # If we haven't got the data from the intl directory,
9528 # assume NLS is disabled.
9536 if test -f ../intl/config.intl; then
9537 . ../intl/config.intl
9539 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9540 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9541 if test x"$USE_NLS" != xyes; then
9542 echo "$as_me:$LINENO: result: no" >&5
9543 echo "${ECHO_T}no" >&6
9545 echo "$as_me:$LINENO: result: yes" >&5
9546 echo "${ECHO_T}yes" >&6
9548 cat >>confdefs.h <<\_ACEOF
9549 #define ENABLE_NLS 1
9553 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9554 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9555 # Look for .po and .gmo files in the source directory.
9558 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9559 # If there aren't any .gmo files the shell will give us the
9560 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9562 case "$cat" in *\**)
9565 # The quadruple backslash is collapsed to a double backslash
9566 # by the backticks, then collapsed again by the double quotes,
9567 # leaving us with one backslash in the sed expression (right
9568 # before the dot that mustn't act as a wildcard).
9569 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9570 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9571 # The user is allowed to set LINGUAS to a list of languages to
9572 # install catalogs for. If it's empty that means "all of them."
9573 if test "x$LINGUAS" = x; then
9574 CATALOGS="$CATALOGS $cat"
9575 XLINGUAS="$XLINGUAS $lang"
9577 case "$LINGUAS" in *$lang*)
9578 CATALOGS="$CATALOGS $cat"
9579 XLINGUAS="$XLINGUAS $lang"
9585 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9586 echo "${ECHO_T}$LINGUAS" >&6
9589 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9590 # -liconv on the link line twice.
9591 case "$LIBINTL" in *$LIBICONV*)
9595 # Windows32 Registry support for specifying GCC installation paths.
9596 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9597 if test "${enable_win32_registry+set}" = set; then
9598 enableval="$enable_win32_registry"
9602 win32 | pe | cygwin* | mingw32* | uwin*)
9603 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9604 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9605 if test "x$enable_win32_registry" != xno; then
9607 cat >>confdefs.h <<\_ACEOF
9608 #define ENABLE_WIN32_REGISTRY 1
9611 echo "$as_me:$LINENO: result: yes" >&5
9612 echo "${ECHO_T}yes" >&6
9613 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9614 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9615 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 ac_func_search_save_LIBS=$LIBS
9619 ac_cv_search_RegOpenKeyExA=no
9620 cat >conftest.$ac_ext <<_ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9627 /* Override any gcc2 internal prototype to avoid an error. */
9631 /* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9633 char RegOpenKeyExA ();
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try='test -s conftest$ac_exeext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 ac_cv_search_RegOpenKeyExA="none required"
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9669 rm -f conftest.err conftest.$ac_objext \
9670 conftest$ac_exeext conftest.$ac_ext
9671 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9672 for ac_lib in advapi32; do
9673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9674 cat >conftest.$ac_ext <<_ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9681 /* Override any gcc2 internal prototype to avoid an error. */
9685 /* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687 char RegOpenKeyExA ();
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>conftest.er1
9700 grep -v '^ *+' conftest.er1 >conftest.err
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9724 rm -f conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_func_search_save_LIBS
9730 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9731 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9732 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9733 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9738 echo "$as_me:$LINENO: result: no" >&5
9739 echo "${ECHO_T}no" >&6
9742 # Check if user specified a different registry key.
9743 case "x${enable_win32_registry}" in
9746 gcc_cv_win32_registry_key="$VERSION"
9749 # no registry lookup.
9750 gcc_cv_win32_registry_key=''
9753 # user-specified key.
9754 gcc_cv_win32_registry_key="$enable_win32_registry"
9758 if test "x$enable_win32_registry" != xno; then
9759 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9760 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9762 cat >>confdefs.h <<_ACEOF
9763 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9766 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9767 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9772 # Get an absolute path to the GCC top-level source directory
9773 holddir=`${PWDCMD-pwd}`
9775 topdir=`${PWDCMD-pwd}`
9778 # Conditionalize the makefile for this host machine.
9780 for f in ${host_xmake_file}
9782 if test -f ${srcdir}/config/$f
9784 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9788 # Conditionalize the makefile for this target machine.
9790 for f in ${tmake_file}
9792 if test -f ${srcdir}/config/$f
9794 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9797 tmake_file="${tmake_file_}"
9799 symbolic_link='ln -s'
9801 # If the host doesn't support symlinks, modify CC in
9802 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9803 # Otherwise, we can use "CC=$(CC)".
9805 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9807 cc_set_by_configure="\$(CC)"
9808 quoted_cc_set_by_configure="\$(CC)"
9809 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9810 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9813 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9815 symbolic_link="cp -p"
9819 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9820 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9821 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9822 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9826 out_object_file=`basename $out_file .c`.o
9830 for f in $tm_file; do
9833 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9834 tm_include_list="${tm_include_list} $f"
9837 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9838 tm_include_list="${tm_include_list} config/$f"
9845 for f in $tm_p_file; do
9848 tm_p_file_list="${tm_p_file_list} $f"
9849 tm_p_include_list="${tm_p_include_list} $f"
9852 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9853 tm_p_include_list="${tm_p_include_list} config/$f"
9859 for f in $xm_file; do
9862 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9863 xm_include_list="${xm_include_list} $f"
9866 xm_file_list="${xm_file_list} $f"
9867 xm_include_list="${xm_include_list} $f"
9870 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9871 xm_include_list="${xm_include_list} config/$f"
9877 host_xm_include_list=
9878 for f in $host_xm_file; do
9881 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9882 host_xm_include_list="${host_xm_include_list} $f"
9885 host_xm_file_list="${host_xm_file_list} $f"
9886 host_xm_include_list="${host_xm_include_list} $f"
9889 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9890 host_xm_include_list="${host_xm_include_list} config/$f"
9896 for f in $build_xm_file; do
9899 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9900 build_xm_include_list="${build_xm_include_list} $f"
9902 auto-build.h | auto-host.h )
9903 build_xm_file_list="${build_xm_file_list} $f"
9904 build_xm_include_list="${build_xm_include_list} $f"
9907 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9908 build_xm_include_list="${build_xm_include_list} config/$f"
9913 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9914 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9917 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9918 if test x$host != x$target
9920 CROSS="-DCROSS_COMPILE"
9922 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9923 case "$host","$target" in
9924 # Darwin crosses can use the host system's libraries and headers,
9925 # because of the fat library support. Of course, it must be the
9926 # same version of Darwin on both sides. Allow the user to
9927 # just say --target=foo-darwin without a version number to mean
9928 # "the version on this system".
9929 *-*-darwin*,*-*-darwin*)
9930 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9931 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9932 if test $hostos = $targetos -o $targetos = darwin ; then
9934 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9939 i?86-*-*,x86_64-*-* \
9940 | powerpc*-*-*,powerpc64*-*-*)
9941 CROSS="$CROSS -DNATIVE_CROSS" ;;
9943 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9944 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9945 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9948 # If this is a cross-compiler that does not
9949 # have its own set of headers then define
9952 # If this is using newlib, without having the headers available now,
9953 # then define inhibit_libc in LIBGCC2_CFLAGS.
9954 # This prevents libgcc2 from containing any code which requires libc
9957 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9958 test x$with_newlib = xyes ; } &&
9959 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9960 inhibit_libc=-Dinhibit_libc
9964 # When building gcc with a cross-compiler, we need to adjust things so
9965 # that the generator programs are still built with the native compiler.
9966 # Also, we cannot run fixincludes or fix-header.
9968 # These are the normal (build=host) settings:
9970 BUILD_PREFIX_1=ignore-
9971 CC_FOR_BUILD='$(CC)'
9972 BUILD_CFLAGS='$(ALL_CFLAGS)'
9974 STMP_FIXINC=stmp-fixinc
9976 # Possibly disable fixproto, on a per-target basis.
9977 case ${use_fixproto} in
9982 STMP_FIXPROTO=stmp-fixproto
9987 # And these apply if build != host, or we are generating coverage data
9988 if test x$build != x$host || test "x$coverage_flags" != x
9991 BUILD_PREFIX_1=build-
9992 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9994 if test "x$TARGET_SYSTEM_ROOT" = x; then
10000 # Expand extra_headers to include complete path.
10001 # This substitutes for lots of t-* files.
10002 extra_headers_list=
10003 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10004 for file in ${extra_headers} ; do
10005 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10008 # Add a definition of USE_COLLECT2 if system wants one.
10009 case $use_collect2 in
10010 no) use_collect2= ;;
10013 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10014 xm_defines="${xm_defines} USE_COLLECT2"
10018 # ---------------------------
10019 # Assembler & linker features
10020 # ---------------------------
10022 # Identify the assembler which will work hand-in-glove with the newly
10023 # built GCC, so that we can examine its features. This is the assembler
10024 # which will be driven by the driver program.
10026 # If build != host, and we aren't building gas in-tree, we identify a
10027 # build->target assembler and hope that it will have the same features
10028 # as the host->target assembler we'll be using.
10029 echo "$as_me:$LINENO: checking what assembler to use" >&5
10030 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10033 gcc_cv_gas_major_version=
10034 gcc_cv_gas_minor_version=
10035 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10036 if test -x "$DEFAULT_ASSEMBLER"; then
10037 gcc_cv_as="$DEFAULT_ASSEMBLER"
10038 elif test -x "$AS"; then
10040 elif test -x as$host_exeext; then
10041 # Build using assembler in the current directory.
10042 gcc_cv_as=./as$host_exeext
10043 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10044 && test -f ../gas/Makefile; then
10045 # Single tree build which includes gas.
10047 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10048 for f in $gcc_cv_as_bfd_srcdir/configure \
10049 $gcc_cv_as_gas_srcdir/configure \
10050 $gcc_cv_as_gas_srcdir/configure.in \
10051 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10052 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10053 if test x$gcc_cv_gas_version != x; then
10057 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10058 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10059 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10060 case $gcc_cv_gas_patch_version in
10061 "") gcc_cv_gas_patch_version="0" ;;
10063 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10064 + $gcc_cv_gas_minor_version \) \* 1000 \
10065 + $gcc_cv_gas_patch_version`
10067 rm -f as$host_exeext
10068 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10069 in_tree_gas_is_elf=no
10070 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10071 || (grep 'obj_format = multi' ../gas/Makefile \
10072 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10074 in_tree_gas_is_elf=yes
10078 if test "x$gcc_cv_as" = x; then
10079 # Search the same directories that the installed compiler will
10080 # search. Else we may find the wrong assembler and lose. If we
10081 # do not find a suitable assembler binary, then try the user's
10084 # Also note we have to check MD_EXEC_PREFIX before checking the
10085 # user's path. Unfortunately, there is no good way to get at the
10086 # value of MD_EXEC_PREFIX here. So we do a brute force search
10087 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10088 # to be fixed as part of the make/configure rewrite too.
10090 if test "x$exec_prefix" = xNONE; then
10091 if test "x$prefix" = xNONE; then
10092 test_prefix=/usr/local
10094 test_prefix=$prefix
10097 test_prefix=$exec_prefix
10100 # If the loop below does not find an assembler, then use whatever
10101 # one we can find in the users's path.
10103 if test "x$program_prefix" != xNONE; then
10104 gcc_cv_as=${program_prefix}as$host_exeext
10106 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10109 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10110 $test_prefix/libexec/gcc/$target_noncanonical \
10111 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10112 /usr/lib/gcc/$target_noncanonical \
10113 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10114 $test_prefix/$target_noncanonical/bin"
10116 if test x$host = x$target; then
10117 test_dirs="$test_dirs \
10122 /bsd43/usr/lib/cmplrs/cc \
10123 /usr/cross64/usr/bin \
10124 /usr/lib/cmplrs/cc \
10125 /sysv/usr/lib/cmplrs/cc \
10126 /svr4/usr/lib/cmplrs/cc \
10130 for dir in $test_dirs; do
10131 if test -x $dir/as$host_exeext; then
10132 gcc_cv_as=$dir/as$host_exeext
10137 case $in_tree_gas in
10139 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10140 echo "${ECHO_T}\"newly built gas\"" >&6
10143 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10144 echo "${ECHO_T}$gcc_cv_as" >&6
10148 # Identify the linker which will work hand-in-glove with the newly
10149 # built GCC, so that we can examine its features. This is the linker
10150 # which will be driven by the driver program.
10152 # If build != host, and we aren't building gas in-tree, we identify a
10153 # build->target linker and hope that it will have the same features
10154 # as the host->target linker we'll be using.
10155 echo "$as_me:$LINENO: checking what linker to use" >&5
10156 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10159 gcc_cv_gld_major_version=
10160 gcc_cv_gld_minor_version=
10161 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10162 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10163 if test -x "$DEFAULT_LINKER"; then
10164 gcc_cv_ld="$DEFAULT_LINKER"
10165 elif test -x "$LD_FOR_TARGET"; then
10166 gcc_cv_ld="$LD_FOR_TARGET"
10167 elif test -x "$LD" && test x$host = x$target; then
10169 elif test -x collect-ld$host_exeext; then
10170 # Build using linker in the current directory.
10171 gcc_cv_ld=./collect-ld$host_exeext
10172 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10173 && test -f ../ld/Makefile; then
10174 # Single tree build which includes ld.
10176 in_tree_ld_is_elf=no
10177 if (grep 'EMUL = .*elf' ../ld/Makefile \
10178 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10179 in_tree_ld_is_elf=yes
10181 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
10183 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10184 if test x$gcc_cv_gld_version != x; then
10188 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10189 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10190 rm -f collect-ld$host_exeext
10191 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10195 if test "x$gcc_cv_ld" = x; then
10196 # Search the same directories that the installed compiler will
10197 # search. Else we may find the wrong linker and lose. If we
10198 # do not find a suitable linker binary, then try the user's
10201 # Also note we have to check MD_EXEC_PREFIX before checking the
10202 # user's path. Unfortunately, there is no good way to get at the
10203 # value of MD_EXEC_PREFIX here. So we do a brute force search
10204 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10205 # to be fixed as part of the make/configure rewrite too.
10207 if test "x$exec_prefix" = xNONE; then
10208 if test "x$prefix" = xNONE; then
10209 test_prefix=/usr/local
10211 test_prefix=$prefix
10214 test_prefix=$exec_prefix
10217 # If the loop below does not find an linker, then use whatever
10218 # one we can find in the users's path.
10220 if test "x$program_prefix" != xNONE; then
10221 gcc_cv_ld=${program_prefix}ld$host_exeext
10223 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10226 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10227 $test_prefix/libexec/gcc/$target_noncanonical \
10228 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10229 /usr/lib/gcc/$target_noncanonical \
10230 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10231 $test_prefix/$target_noncanonical/bin"
10233 if test x$host = x$target; then
10234 test_dirs="$test_dirs \
10239 /bsd43/usr/lib/cmplrs/cc \
10240 /usr/cross64/usr/bin \
10241 /usr/lib/cmplrs/cc \
10242 /sysv/usr/lib/cmplrs/cc \
10243 /svr4/usr/lib/cmplrs/cc \
10247 for dir in $test_dirs; do
10248 if test -x $dir/ld$host_exeext; then
10249 gcc_cv_ld=$dir/ld$host_exeext
10254 case $in_tree_ld in
10256 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10257 echo "${ECHO_T}\"newly built ld\"" >&6
10260 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10261 echo "${ECHO_T}$gcc_cv_ld" >&6
10265 # Figure out what nm we will be using.
10266 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10267 echo "$as_me:$LINENO: checking what nm to use" >&5
10268 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10270 if test -x nm$host_exeext; then
10271 gcc_cv_nm=./nm$host_exeext
10272 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10273 && test -f ../binutils/Makefile; then
10274 # Single tree build which includes binutils.
10276 gcc_cv_nm=./nm$host_exeext
10277 rm -f nm$host_exeext
10278 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10279 elif test "x$program_prefix" != xNONE; then
10280 gcc_cv_nm=${program_prefix}nm$host_exeext
10282 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10284 case $in_tree_nm in
10285 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10286 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10287 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10288 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10291 # Figure out what objdump we will be using.
10292 echo "$as_me:$LINENO: checking what objdump to use" >&5
10293 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10295 if test -x objdump$host_exeext; then
10296 gcc_cv_objdump=./objdump$host_exeext
10297 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10298 && test -f ../binutils/Makefile; then
10299 # Single tree build which includes binutils.
10300 in_tree_objdump=yes
10301 gcc_cv_objdump=./objdump$host_exeext
10302 rm -f objdump$host_exeext
10303 $symbolic_link ../binutils/objdump$host_exeext \
10304 objdump$host_exeext 2>/dev/null
10305 elif test "x$program_prefix" != xNONE; then
10306 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10308 gcc_cv_objdump=`echo objdump | \
10309 sed "${program_transform_name}"`$host_exeext
10311 case $in_tree_objdump in
10312 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10313 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10314 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10315 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10318 # Figure out what assembler alignment features are present.
10319 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10320 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10321 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 gcc_cv_as_balign_and_p2align=no
10325 if test $in_tree_gas = yes; then
10326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10327 then gcc_cv_as_balign_and_p2align=yes
10329 elif test x$gcc_cv_as != x; then
10331 .p2align 2' > conftest.s
10332 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }
10339 gcc_cv_as_balign_and_p2align=yes
10341 echo "configure: failed program was" >&5
10344 rm -f conftest.o conftest.s
10347 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10348 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10349 if test $gcc_cv_as_balign_and_p2align = yes; then
10351 cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10357 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10358 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10359 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 gcc_cv_as_max_skip_p2align=no
10363 if test $in_tree_gas = yes; then
10364 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10365 then gcc_cv_as_max_skip_p2align=yes
10367 elif test x$gcc_cv_as != x; then
10368 echo '.p2align 4,,7' > conftest.s
10369 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }
10376 gcc_cv_as_max_skip_p2align=yes
10378 echo "configure: failed program was" >&5
10381 rm -f conftest.o conftest.s
10384 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10385 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10386 if test $gcc_cv_as_max_skip_p2align = yes; then
10388 cat >>confdefs.h <<\_ACEOF
10389 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10394 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10395 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10396 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 gcc_cv_as_subsection_m1=no
10400 if test $in_tree_gas = yes; then
10401 if test $in_tree_gas_is_elf = yes \
10402 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10403 then gcc_cv_as_subsection_m1=yes
10405 elif test x$gcc_cv_as != x; then
10406 echo 'conftest_label1: .word 0
10408 conftest_label2: .word 0
10409 .previous' > conftest.s
10410 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; }
10417 if test x$gcc_cv_nm != x; then
10418 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10419 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10420 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10422 else gcc_cv_as_subsection_m1=yes
10424 rm -f conftest.nm1 conftest.nm2
10427 echo "configure: failed program was" >&5
10430 rm -f conftest.o conftest.s
10433 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10434 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10435 if test $gcc_cv_as_subsection_m1 = yes; then
10437 cat >>confdefs.h <<\_ACEOF
10438 #define HAVE_GAS_SUBSECTION_ORDERING 1
10443 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10444 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10445 if test "${gcc_cv_as_weak+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 if test $in_tree_gas = yes; then
10450 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10451 then gcc_cv_as_weak=yes
10453 elif test x$gcc_cv_as != x; then
10454 echo ' .weak foobar' > conftest.s
10455 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; }
10464 echo "configure: failed program was" >&5
10467 rm -f conftest.o conftest.s
10470 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10471 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10472 if test $gcc_cv_as_weak = yes; then
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_GAS_WEAK 1
10480 # .hidden needs to be supported in both the assembler and the linker,
10481 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10482 # This is irritatingly difficult to feature test for; we have to check the
10483 # date string after the version number. If we've got an in-tree
10484 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10486 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10487 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10488 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10489 if test "${gcc_cv_as_hidden+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 gcc_cv_as_hidden=no
10493 if test $in_tree_gas = yes; then
10494 if test $in_tree_gas_is_elf = yes \
10495 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10496 then gcc_cv_as_hidden=yes
10498 elif test x$gcc_cv_as != x; then
10499 echo ' .hidden foobar
10500 foobar:' > conftest.s
10501 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }
10508 gcc_cv_as_hidden=yes
10510 echo "configure: failed program was" >&5
10513 rm -f conftest.o conftest.s
10516 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10517 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10520 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10521 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10522 if test "${gcc_cv_ld_hidden+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 if test $in_tree_ld = yes ; then
10526 gcc_cv_ld_hidden=no
10527 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 \
10528 && test $in_tree_ld_is_elf = yes; then
10529 gcc_cv_ld_hidden=yes
10532 gcc_cv_ld_hidden=yes
10533 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10534 if echo "$ld_ver" | grep GNU > /dev/null; then
10535 ld_vers=`echo $ld_ver | sed -n \
10536 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10537 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10538 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10539 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10540 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10541 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10542 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'`
10543 if test 0"$ld_date" -lt 20020404; then
10544 if test -n "$ld_date"; then
10545 # If there was date string, but was earlier than 2002-04-04, fail
10546 gcc_cv_ld_hidden=no
10547 elif test -z "$ld_vers"; then
10548 # If there was no date string nor ld version number, something is wrong
10549 gcc_cv_ld_hidden=no
10551 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10552 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10553 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10554 test -z "$ld_vers_patch" && ld_vers_patch=0
10555 if test "$ld_vers_major" -lt 2; then
10556 gcc_cv_ld_hidden=no
10557 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10558 gcc_cv_ld_hidden="no"
10559 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10560 gcc_cv_ld_hidden=no
10565 case "${target}" in
10566 hppa64*-*-hpux* | ia64*-*-hpux*)
10567 gcc_cv_ld_hidden=yes
10570 gcc_cv_ld_hidden=no
10576 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10577 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10578 libgcc_visibility=no
10580 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10581 libgcc_visibility=yes
10583 cat >>confdefs.h <<\_ACEOF
10584 #define HAVE_GAS_HIDDEN 1
10589 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10590 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10591 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10592 if test "${gcc_cv_as_leb128+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 gcc_cv_as_leb128=no
10596 if test $in_tree_gas = yes; then
10597 if test $in_tree_gas_is_elf = yes \
10598 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10599 then gcc_cv_as_leb128=yes
10601 elif test x$gcc_cv_as != x; then
10608 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }
10615 # GAS versions before 2.11 do not support uleb128,
10616 # despite appearing to.
10617 # ??? There exists an elf-specific test that will crash
10618 # the assembler. Perhaps it's better to figure out whether
10619 # arbitrary sections are supported and try the test.
10620 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10621 if echo "$as_ver" | grep GNU > /dev/null; then
10622 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10623 as_major=`echo $as_ver | sed 's/\..*//'`
10624 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10625 if test $as_major -eq 2 && test $as_minor -lt 11
10627 else gcc_cv_as_leb128=yes
10631 echo "configure: failed program was" >&5
10634 rm -f conftest.o conftest.s
10637 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10638 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10639 if test $gcc_cv_as_leb128 = yes; then
10641 cat >>confdefs.h <<\_ACEOF
10642 #define HAVE_AS_LEB128 1
10647 # GAS versions up to and including 2.11.0 may mis-optimize
10649 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10650 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10651 if test "${gcc_cv_as_eh_frame+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 gcc_cv_as_eh_frame=no
10655 if test $in_tree_gas = yes; then
10656 if test $in_tree_gas_is_elf = yes \
10657 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10658 then gcc_cv_as_eh_frame=yes
10660 elif test x$gcc_cv_as != x; then
10667 .section .eh_frame,"aw",@progbits
10669 .4byte .LECIE1-.LSCIE1
10683 .4byte .LEFDE1-.LASFDE1
10685 .4byte .LASFDE1-__FRAME_BEGIN__
10692 .LEFDE1:' > conftest.s
10693 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }
10700 cat > conftest.lit <<EOF
10701 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10702 0010 01000000 12000000 18000000 00000000 ................
10703 0020 08000000 04080000 0044 .........D
10705 cat > conftest.big <<EOF
10706 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10707 0010 00000001 00000012 00000018 00000000 ................
10708 0020 00000008 04000000 0844 .........D
10710 # If the assembler didn't choke, and we can objdump,
10711 # and we got the correct data, then succeed.
10712 if test x$gcc_cv_objdump != x \
10713 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10714 | tail -3 > conftest.got \
10715 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10716 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10718 gcc_cv_as_eh_frame=yes
10719 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 gcc_cv_as_eh_frame=buggy
10727 # Uh oh, what do we do now?
10728 gcc_cv_as_eh_frame=no
10731 echo "configure: failed program was" >&5
10734 rm -f conftest.o conftest.s
10737 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10738 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10741 if test $gcc_cv_as_eh_frame = buggy; then
10743 cat >>confdefs.h <<\_ACEOF
10744 #define USE_AS_TRADITIONAL_FORMAT 1
10749 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10750 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10751 if test "${gcc_cv_as_shf_merge+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 gcc_cv_as_shf_merge=no
10755 if test $in_tree_gas = yes; then
10756 if test $in_tree_gas_is_elf = yes \
10757 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10758 then gcc_cv_as_shf_merge=yes
10760 elif test x$gcc_cv_as != x; then
10761 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10762 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }
10769 gcc_cv_as_shf_merge=yes
10771 echo "configure: failed program was" >&5
10774 rm -f conftest.o conftest.s
10777 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10778 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10781 cat >>confdefs.h <<_ACEOF
10782 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10786 # Thread-local storage - the check is heavily parametrized.
10794 .section ".tdata","awT",@progbits
10797 ldq $27,__tls_get_addr($29) !literal!1
10798 lda $16,foo($29) !tlsgd!1
10799 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10800 ldq $27,__tls_get_addr($29) !literal!2
10801 lda $16,foo($29) !tlsldm!2
10802 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10803 ldq $1,foo($29) !gotdtprel
10804 ldah $2,foo($29) !dtprelhi
10805 lda $3,foo($2) !dtprello
10806 lda $4,foo($29) !dtprel
10807 ldq $1,foo($29) !gottprel
10808 ldah $2,foo($29) !tprelhi
10809 lda $3,foo($2) !tprello
10810 lda $4,foo($29) !tprel'
10813 tls_as_opt=--fatal-warnings
10817 .section ".tdata","awT",@progbits
10821 leal foo@TLSGD(,%ebx,1), %eax
10822 leal foo@TLSLDM(%ebx), %eax
10823 leal foo@DTPOFF(%eax), %edx
10824 movl foo@GOTTPOFF(%ebx), %eax
10825 subl foo@GOTTPOFF(%ebx), %eax
10826 addl foo@GOTNTPOFF(%ebx), %eax
10827 movl foo@INDNTPOFF, %eax
10828 movl $foo@TPOFF, %eax
10829 subl $foo@TPOFF, %eax
10830 leal foo@NTPOFF(%ecx), %eax'
10833 tls_as_opt=--fatal-warnings
10837 .section ".tdata","awT",@progbits
10841 leaq foo@TLSGD(%rip), %rdi
10842 leaq foo@TLSLD(%rip), %rdi
10843 leaq foo@DTPOFF(%rax), %rdx
10844 movq foo@GOTTPOFF(%rip), %rax
10845 movq $foo@TPOFF, %rax'
10848 tls_as_opt=--fatal-warnings
10852 .section ".tdata","awT",@progbits
10855 addl r16 = @ltoff(@dtpmod(foo#)), gp
10856 addl r17 = @ltoff(@dtprel(foo#)), gp
10857 addl r18 = @ltoff(@tprel(foo#)), gp
10858 addl r19 = @dtprel(foo#), gp
10859 adds r21 = @dtprel(foo#), r13
10860 movl r23 = @dtprel(foo#)
10861 addl r20 = @tprel(foo#), gp
10862 adds r22 = @tprel(foo#), r13
10863 movl r24 = @tprel(foo#)'
10866 tls_as_opt=--fatal-warnings
10870 .section ".tdata","awT",@progbits
10878 addi 3,31,ld0@got@tlsgd
10880 addi 3,31,x1@got@tlsld
10883 addis 9,3,x2@dtprel@ha
10884 addi 9,9,x2@dtprel@l
10885 lwz 9,x3@got@tprel(31)
10888 addis 9,2,x2@tprel@ha
10889 addi 9,9,x2@tprel@l'
10892 tls_as_opt="-a32 --fatal-warnings"
10896 .section ".tdata","awT",@progbits
10904 addi 3,2,ld0@got@tlsgd
10910 addi 3,2,x1@got@tlsld
10916 addis 9,3,x2@dtprel@ha
10917 addi 9,9,x2@dtprel@l
10920 ld 9,x3@got@dtprel(2)
10926 tls_as_opt="-a64 --fatal-warnings"
10930 .section ".tdata","awT",@progbits
10937 .long foo@GOTNTPOFF
10938 .long foo@INDNTPOFF
10939 l %r1,foo@GOTNTPOFF(%r12)
10940 l %r1,0(%r1):tls_load:foo
10941 bas %r14,0(%r1,%r13):tls_gdcall:foo
10942 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10945 tls_as_opt="-m31 --fatal-warnings"
10949 .section ".tdata","awT",@progbits
10956 .quad foo@GOTNTPOFF
10957 lg %r1,foo@GOTNTPOFF(%r12)
10958 larl %r1,foo@INDNTPOFF
10959 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10960 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10963 tls_as_opt="-m64 -Aesame --fatal-warnings"
10965 sh-*-* | sh[34]-*-*)
10967 .section ".tdata","awT",@progbits
10977 tls_as_opt=--fatal-warnings
10981 sparc*-sun-solaris2.*)
10988 if test x$on_solaris = xyes && test x$gas_flag = xno; then
10990 .section ".tdata",#alloc,#write,#tls
10993 sethi %tgd_hi22(foo), %o0
10994 add %o0, %tgd_lo10(foo), %o1
10995 add %l7, %o1, %o0, %tgd_add(foo)
10996 call __tls_get_addr, %tgd_call(foo)
10997 sethi %tldm_hi22(foo), %l1
10998 add %l1, %tldm_lo10(foo), %l2
10999 add %l7, %l2, %o0, %tldm_add(foo)
11000 call __tls_get_addr, %tldm_call(foo)
11001 sethi %tldo_hix22(foo), %l3
11002 xor %l3, %tldo_lox10(foo), %l4
11003 add %o0, %l4, %l5, %tldo_add(foo)
11004 sethi %tie_hi22(foo), %o3
11005 add %o3, %tie_lo10(foo), %o3
11006 ld [%l7 + %o3], %o2, %tie_ld(foo)
11007 add %g7, %o2, %o4, %tie_add(foo)
11008 sethi %tle_hix22(foo), %l1
11009 xor %l1, %tle_lox10(foo), %o5
11010 ld [%g7 + %o5], %o1'
11015 .section ".tdata","awT",@progbits
11018 sethi %tgd_hi22(foo), %o0
11019 add %o0, %tgd_lo10(foo), %o1
11020 add %l7, %o1, %o0, %tgd_add(foo)
11021 call __tls_get_addr, %tgd_call(foo)
11022 sethi %tldm_hi22(foo), %l1
11023 add %l1, %tldm_lo10(foo), %l2
11024 add %l7, %l2, %o0, %tldm_add(foo)
11025 call __tls_get_addr, %tldm_call(foo)
11026 sethi %tldo_hix22(foo), %l3
11027 xor %l3, %tldo_lox10(foo), %l4
11028 add %o0, %l4, %l5, %tldo_add(foo)
11029 sethi %tie_hi22(foo), %o3
11030 add %o3, %tie_lo10(foo), %o3
11031 ld [%l7 + %o3], %o2, %tie_ld(foo)
11032 add %g7, %o2, %o4, %tie_add(foo)
11033 sethi %tle_hix22(foo), %l1
11034 xor %l1, %tle_lox10(foo), %o5
11035 ld [%g7 + %o5], %o1'
11038 tls_as_opt="-32 --fatal-warnings"
11042 if test -z "$tls_first_major"; then
11043 : # If we don't have a check, assume no support.
11045 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11046 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11047 if test "${gcc_cv_as_tls+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 if test $in_tree_gas = yes; then
11052 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11053 then gcc_cv_as_tls=yes
11055 elif test x$gcc_cv_as != x; then
11056 echo "$conftest_s" > conftest.s
11057 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }
11066 echo "configure: failed program was" >&5
11069 rm -f conftest.o conftest.s
11072 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11073 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11074 if test $gcc_cv_as_tls = yes; then
11076 cat >>confdefs.h <<\_ACEOF
11077 #define HAVE_AS_TLS 1
11083 # Target-specific assembler checks.
11086 # All TARGET_ABI_OSF targets.
11087 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11088 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11089 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11090 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 gcc_cv_as_alpha_explicit_relocs=no
11094 if test $in_tree_gas = yes; then
11095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11096 then gcc_cv_as_alpha_explicit_relocs=yes
11098 elif test x$gcc_cv_as != x; then
11099 echo ' .set nomacro
11101 extbl $3, $2, $3 !lituse_bytoff!1
11102 ldq $2, a($29) !literal!1
11103 ldq $4, b($29) !literal!2
11104 ldq_u $3, 0($2) !lituse_base!1
11105 ldq $27, f($29) !literal!5
11106 jsr $26, ($27), f !lituse_jsr!5
11107 ldah $29, 0($26) !gpdisp!3
11108 lda $0, c($29) !gprel
11109 ldah $1, d($29) !gprelhigh
11110 lda $1, d($1) !gprellow
11111 lda $29, 0($29) !gpdisp!3' > conftest.s
11112 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }
11119 gcc_cv_as_alpha_explicit_relocs=yes
11121 echo "configure: failed program was" >&5
11124 rm -f conftest.o conftest.s
11127 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11128 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11129 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11131 cat >>confdefs.h <<\_ACEOF
11132 #define HAVE_AS_EXPLICIT_RELOCS 1
11139 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11140 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11141 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 gcc_cv_as_cris_no_mul_bug=no
11145 if test $in_tree_gas = yes; then
11146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11147 then gcc_cv_as_cris_no_mul_bug=yes
11149 elif test x$gcc_cv_as != x; then
11150 echo '.text' > conftest.s
11151 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }
11158 gcc_cv_as_cris_no_mul_bug=yes
11160 echo "configure: failed program was" >&5
11163 rm -f conftest.o conftest.s
11166 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11167 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11168 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11178 echo "$as_me:$LINENO: checking assembler for .register" >&5
11179 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11180 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 gcc_cv_as_sparc_register_op=no
11184 if test x$gcc_cv_as != x; then
11185 echo '.register %g2, #scratch' > conftest.s
11186 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }
11193 gcc_cv_as_sparc_register_op=yes
11195 echo "configure: failed program was" >&5
11198 rm -f conftest.o conftest.s
11201 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11202 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11203 if test $gcc_cv_as_sparc_register_op = yes; then
11205 cat >>confdefs.h <<\_ACEOF
11206 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11211 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11212 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11213 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 gcc_cv_as_sparc_relax=no
11217 if test x$gcc_cv_as != x; then
11218 echo '.text' > conftest.s
11219 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221 (eval $ac_try) 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }
11226 gcc_cv_as_sparc_relax=yes
11228 echo "configure: failed program was" >&5
11231 rm -f conftest.o conftest.s
11234 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11235 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11236 if test $gcc_cv_as_sparc_relax = yes; then
11238 cat >>confdefs.h <<\_ACEOF
11239 #define HAVE_AS_RELAX_OPTION 1
11244 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11245 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11246 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 gcc_cv_as_sparc_ua_pcrel=no
11250 if test x$gcc_cv_as != x; then
11257 .uaword %r_disp32(foo)' > conftest.s
11258 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }
11265 if test x$gcc_cv_ld != x \
11266 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11267 gcc_cv_as_sparc_ua_pcrel=yes
11271 echo "configure: failed program was" >&5
11274 rm -f conftest.o conftest.s
11277 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11278 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11279 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11281 cat >>confdefs.h <<\_ACEOF
11282 #define HAVE_AS_SPARC_UA_PCREL 1
11286 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11287 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11288 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 gcc_cv_as_sparc_ua_pcrel_hidden=no
11292 if test x$gcc_cv_as != x; then
11296 .uaword %r_disp32(foo)
11297 .byte 0x32, 0x33, 0x34
11301 .skip 4' > conftest.s
11302 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }
11309 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11310 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11311 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11312 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11313 if $gcc_cv_objdump -R conftest 2> /dev/null \
11314 | grep 'DISP32' > /dev/null 2>&1; then
11317 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11322 echo "configure: failed program was" >&5
11325 rm -f conftest.o conftest.s
11328 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11329 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11330 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11332 cat >>confdefs.h <<\_ACEOF
11333 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11338 fi # unaligned pcrel relocs
11340 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11341 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11342 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 gcc_cv_as_sparc_offsetable_lo10=no
11346 if test x$gcc_cv_as != x; then
11348 or %g1, %lo(ab) + 12, %g1
11349 or %g1, %lo(ab + 12), %g1' > conftest.s
11350 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }
11357 if test x$gcc_cv_objdump != x \
11358 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11359 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11360 gcc_cv_as_offsetable_lo10=yes
11363 echo "configure: failed program was" >&5
11366 rm -f conftest.o conftest.s
11369 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11370 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11371 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11373 cat >>confdefs.h <<\_ACEOF
11374 #define HAVE_AS_OFFSETABLE_LO10 1
11380 i[34567]86-*-* | x86_64-*-*)
11381 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11382 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11383 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 gcc_cv_as_ix86_filds_fists=no
11387 if test $in_tree_gas = yes; then
11388 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11389 then gcc_cv_as_ix86_filds_fists=yes
11391 elif test x$gcc_cv_as != x; then
11392 echo 'filds mem; fists mem' > conftest.s
11393 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }
11400 gcc_cv_as_ix86_filds_fists=yes
11402 echo "configure: failed program was" >&5
11405 rm -f conftest.o conftest.s
11408 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11409 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11410 if test $gcc_cv_as_ix86_filds_fists = yes; then
11412 cat >>confdefs.h <<\_ACEOF
11413 #define HAVE_GAS_FILDS_FISTS 1
11418 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11419 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11420 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 gcc_cv_as_ix86_cmov_sun_syntax=no
11424 if test x$gcc_cv_as != x; then
11425 echo 'cmovl.l %edx, %eax' > conftest.s
11426 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }
11433 gcc_cv_as_ix86_cmov_sun_syntax=yes
11435 echo "configure: failed program was" >&5
11438 rm -f conftest.o conftest.s
11441 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11442 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11443 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11445 cat >>confdefs.h <<\_ACEOF
11446 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11451 # This one is used unconditionally by i386.[ch]; it is to be defined
11452 # to 1 if the feature is present, 0 otherwise.
11453 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11454 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11455 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 gcc_cv_as_ix86_gotoff_in_data=no
11459 if test $in_tree_gas = yes; then
11460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11461 then gcc_cv_as_ix86_gotoff_in_data=yes
11463 elif test x$gcc_cv_as != x; then
11468 .long .L0@GOTOFF' > conftest.s
11469 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }
11476 gcc_cv_as_ix86_gotoff_in_data=yes
11478 echo "configure: failed program was" >&5
11481 rm -f conftest.o conftest.s
11484 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11485 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11488 cat >>confdefs.h <<_ACEOF
11489 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11495 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11496 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11497 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11501 if test $in_tree_gas = yes; then
11502 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11503 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11505 elif test x$gcc_cv_as != x; then
11507 addl r15 = @ltoffx(x#), gp
11509 ld8.mov r16 = [r15], x#' > conftest.s
11510 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }
11517 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11519 echo "configure: failed program was" >&5
11522 rm -f conftest.o conftest.s
11525 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11526 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11527 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11529 cat >>confdefs.h <<\_ACEOF
11530 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11539 *-*-aix*) conftest_s=' .csect .text[PR]
11541 *-*-darwin*) conftest_s=' .text
11543 *) conftest_s=' .text
11547 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11548 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11549 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 gcc_cv_as_powerpc_mfcrf=no
11553 if test $in_tree_gas = yes; then
11554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11555 then gcc_cv_as_powerpc_mfcrf=yes
11557 elif test x$gcc_cv_as != x; then
11558 echo "$conftest_s" > conftest.s
11559 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }
11566 gcc_cv_as_powerpc_mfcrf=yes
11568 echo "configure: failed program was" >&5
11571 rm -f conftest.o conftest.s
11574 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11575 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11576 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11578 cat >>confdefs.h <<\_ACEOF
11579 #define HAVE_AS_MFCRF 1
11586 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11587 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11588 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 gcc_cv_as_mips_explicit_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_mips_explicit_relocs=yes
11596 elif test x$gcc_cv_as != x; then
11597 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11598 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }
11605 gcc_cv_as_mips_explicit_relocs=yes
11607 echo "configure: failed program was" >&5
11610 rm -f conftest.o conftest.s
11613 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11614 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11615 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11616 if test x$target_cpu_default = x
11617 then target_cpu_default=MASK_EXPLICIT_RELOCS
11618 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11624 # ??? Not all targets support dwarf2 debug_line, even within a version
11625 # of gas. Moreover, we need to emit a valid instruction to trigger any
11626 # info to the output file. So, as supported targets are added to gas 2.11,
11627 # add some instruction here to (also) show we expect this might work.
11628 # ??? Once 2.11 is released, probably need to add first known working
11629 # version to the per-target configury.
11631 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11632 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11633 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11636 ia64*-*-* | s390*-*-*)
11643 if test x"$insn" != x; then
11645 .file 1 \"conftest.s\"
11648 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11649 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11650 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 gcc_cv_as_dwarf2_debug_line=no
11654 if test $in_tree_gas = yes; then
11655 if test $in_tree_gas_is_elf = yes \
11656 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11657 then gcc_cv_as_dwarf2_debug_line=yes
11659 elif test x$gcc_cv_as != x; then
11660 echo "$conftest_s" > conftest.s
11661 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }
11668 # ??? This fails with non-gnu grep. Maybe use objdump?
11669 if grep debug_line conftest.o > /dev/null 2>&1; then
11670 gcc_cv_as_dwarf2_debug_line=yes
11673 echo "configure: failed program was" >&5
11676 rm -f conftest.o conftest.s
11679 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11680 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11683 # The .debug_line file table must be in the exact order that
11684 # we specified the files, since these indices are also used
11685 # by DW_AT_decl_file. Approximate this test by testing if
11686 # the assembler bitches if the same index is assigned twice.
11687 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11688 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11689 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 gcc_cv_as_dwarf2_file_buggy=no
11693 if test x$gcc_cv_as != x; then
11694 echo ' .file 1 "foo.s"
11695 .file 1 "bar.s"' > conftest.s
11696 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698 (eval $ac_try) 2>&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }
11703 gcc_cv_as_dwarf2_file_buggy=yes
11705 echo "configure: failed program was" >&5
11708 rm -f conftest.o conftest.s
11711 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11712 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11715 if test $gcc_cv_as_dwarf2_debug_line = yes \
11716 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11718 cat >>confdefs.h <<\_ACEOF
11719 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11724 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11725 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11726 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 gcc_cv_as_gdwarf2_flag=no
11730 if test $in_tree_gas = yes; then
11731 if test $in_tree_gas_is_elf = yes \
11732 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11733 then gcc_cv_as_gdwarf2_flag=yes
11735 elif test x$gcc_cv_as != x; then
11736 echo "$insn" > conftest.s
11737 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }
11744 gcc_cv_as_gdwarf2_flag=yes
11746 echo "configure: failed program was" >&5
11749 rm -f conftest.o conftest.s
11752 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11753 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11754 if test $gcc_cv_as_gdwarf2_flag = yes; then
11756 cat >>confdefs.h <<\_ACEOF
11757 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11762 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11763 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11764 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11767 gcc_cv_as_gstabs_flag=no
11768 if test $in_tree_gas = yes; then
11769 if test $in_tree_gas_is_elf = yes \
11770 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11771 then gcc_cv_as_gstabs_flag=yes
11773 elif test x$gcc_cv_as != x; then
11774 echo "$insn" > conftest.s
11775 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }
11782 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11783 # and warns about it, but still exits successfully. So check for
11785 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }
11792 else gcc_cv_as_gstabs_flag=yes
11795 echo "configure: failed program was" >&5
11798 rm -f conftest.o conftest.s
11801 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11802 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11803 if test $gcc_cv_as_gstabs_flag = yes; then
11805 cat >>confdefs.h <<\_ACEOF
11806 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11812 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11813 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11814 gcc_cv_ld_ro_rw_mix=unknown
11815 if test $in_tree_ld = yes ; then
11816 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 \
11817 && test $in_tree_ld_is_elf = yes; then
11818 gcc_cv_ld_ro_rw_mix=read-write
11820 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11821 echo '.section myfoosect, "a"' > conftest1.s
11822 echo '.section myfoosect, "aw"' > conftest2.s
11823 echo '.byte 1' >> conftest2.s
11824 echo '.section myfoosect, "a"' > conftest3.s
11825 echo '.byte 0' >> conftest3.s
11826 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11827 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11828 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11829 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11830 conftest2.o conftest3.o > /dev/null 2>&1; then
11831 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11832 | sed -e '/myfoosect/!d' -e N`
11833 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11834 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11835 gcc_cv_ld_ro_rw_mix=read-only
11837 gcc_cv_ld_ro_rw_mix=read-write
11841 rm -f conftest.* conftest[123].*
11843 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11845 cat >>confdefs.h <<\_ACEOF
11846 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11850 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11851 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11853 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11854 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11855 gcc_cv_ld_eh_frame_hdr=no
11856 if test $in_tree_ld = yes ; then
11857 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 \
11858 && test $in_tree_ld_is_elf = yes; then
11859 gcc_cv_ld_eh_frame_hdr=yes
11861 elif test x$gcc_cv_ld != x; then
11862 # Check if linker supports --eh-frame-hdr option
11863 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11864 gcc_cv_ld_eh_frame_hdr=yes
11867 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11869 cat >>confdefs.h <<\_ACEOF
11870 #define HAVE_LD_EH_FRAME_HDR 1
11874 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11875 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11877 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11878 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11880 if test $in_tree_ld = yes ; then
11881 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 \
11882 && test $in_tree_ld_is_elf = yes; then
11885 elif test x$gcc_cv_ld != x; then
11886 # Check if linker supports -pie option
11887 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11891 if test x"$gcc_cv_ld_pie" = xyes; then
11893 cat >>confdefs.h <<\_ACEOF
11894 #define HAVE_LD_PIE 1
11898 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11899 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11905 if test x$with_sysroot = x && test x$host = x$target \
11906 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11908 cat >>confdefs.h <<_ACEOF
11909 #define PREFIX_INCLUDE_DIR "$prefix/include"
11914 # Find out what GC implementation we want, or may, use.
11916 # Check whether --with-gc or --without-gc was given.
11917 if test "${with_gc+set}" = set; then
11924 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11925 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11926 { (exit 1); exit 1; }; }
11933 echo "Using $GGC for garbage collection."
11935 # Use the system's zlib library.
11937 zlibinc="-I\$(srcdir)/../zlib"
11939 # Check whether --with-system-zlib or --without-system-zlib was given.
11940 if test "${with_system_zlib+set}" = set; then
11941 withval="$with_system_zlib"
11950 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11951 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11952 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11953 if test "${enable_maintainer_mode+set}" = set; then
11954 enableval="$enable_maintainer_mode"
11955 maintainer_mode=$enableval
11960 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11961 echo "${ECHO_T}$maintainer_mode" >&6
11963 if test "$maintainer_mode" = "yes"; then
11973 # Make empty files to contain the specs and options for each language.
11974 # Then add #include lines to for a compiler that has specs and/or options.
11979 for subdir in . $subdirs
11981 if test -f $srcdir/$subdir/lang.opt; then
11982 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11984 if test -f $srcdir/$subdir/lang-specs.h; then
11985 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11987 if test -f $srcdir/$subdir/$subdir-tree.def; then
11988 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11992 # These (without "all_") are set in each config-lang.in.
11993 # `language' must be a single word so is spelled singularly.
11995 all_boot_languages=
11998 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11999 # List of language makefile fragments.
12000 all_lang_makefrags=
12001 # List of language subdirectory makefiles. Deprecated.
12002 all_lang_makefiles=
12003 # Files for gengtype
12004 all_gtfiles="$target_gtfiles"
12005 # Files for gengtype with language
12006 all_gtfiles_files_langs=
12007 all_gtfiles_files_files=
12009 # Add the language fragments.
12010 # Languages are added via two mechanisms. Some information must be
12011 # recorded in makefile variables, these are defined in config-lang.in.
12012 # We accumulate them and plug them into the main Makefile.
12013 # The other mechanism is a set of hooks for each of the main targets
12014 # like `clean', `install', etc.
12016 language_hooks="Make-hooks"
12026 . ${srcdir}/$s/config-lang.in
12027 if test "x$language" = x
12029 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12032 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12033 if test -f ${srcdir}/$s/Makefile.in
12034 then all_lang_makefiles="$s/Makefile"
12036 all_languages="$all_languages $language"
12037 if test "x$boot_language" = xyes
12039 all_boot_languages="$all_boot_languages $language"
12041 all_compilers="$all_compilers $compilers"
12042 all_stagestuff="$all_stagestuff $stagestuff"
12043 all_outputs="$all_outputs $outputs"
12044 all_gtfiles="$all_gtfiles $gtfiles"
12047 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12048 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12052 # Pick up gtfiles for c
12055 . ${srcdir}/c-config-lang.in
12056 all_gtfiles="$all_gtfiles $gtfiles"
12059 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12060 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12064 for language in $all_languages
12066 check_languages="$check_languages check-$language"
12069 # We link each language in with a set of hooks, reached indirectly via
12074 target_list="all.build all.cross start.encap rest.encap tags \
12075 install-normal install-common install-man \
12076 uninstall info man srcextra srcman srcinfo \
12077 mostlyclean clean distclean maintainer-clean \
12078 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12079 for t in $target_list
12082 for lang in $all_languages
12086 echo "lang.$t: $x" >> Make-hooks
12095 echo "dir ." > .gdbinit
12096 echo "dir ${srcdir}" >> .gdbinit
12097 if test x$gdb_needs_out_file_path = xyes
12099 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12101 if test "x$subdirs" != x; then
12104 echo "dir ${srcdir}/$s" >> .gdbinit
12107 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12109 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12110 # absolute path for gcc_tooldir based on inserting the number of up-directory
12111 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12112 # $(libsubdir)/@(unlibsubdir) based path.
12113 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12114 # make and thus we'd get different behavior depending on where we built the
12116 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12117 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12119 # An explanation of the sed strings:
12120 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12121 # -e 's|/$||' match a trailing forward slash and eliminates it
12122 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12123 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12125 # (*) Note this pattern overwrites the first character of the string
12126 # with a forward slash if one is not already present. This is not a
12127 # problem because the exact names of the sub-directories concerned is
12128 # unimportant, just the number of them matters.
12130 # The practical upshot of these patterns is like this:
12132 # prefix exec_prefix result
12133 # ------ ----------- ------
12134 # /foo /foo/bar ../
12135 # /foo/ /foo/bar ../
12136 # /foo /foo/bar/ ../
12137 # /foo/ /foo/bar/ ../
12138 # /foo /foo/bar/ugg ../../
12141 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12146 # Find a directory in which to install a shared libgcc.
12148 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12149 if test "${enable_version_specific_runtime_libs+set}" = set; then
12150 enableval="$enable_version_specific_runtime_libs"
12155 # Check whether --with-slibdir or --without-slibdir was given.
12156 if test "${with_slibdir+set}" = set; then
12157 withval="$with_slibdir"
12158 slibdir="$with_slibdir"
12160 if test "${enable_version_specific_runtime_libs+set}" = set; then
12161 slibdir='$(libsubdir)'
12162 elif test "$host" != "$target"; then
12163 slibdir='$(build_tooldir)/lib'
12165 slibdir='$(libdir)'
12170 objdir=`${PWDCMD-pwd}`
12173 # Substitute configuration variables
12242 # If it doesn't already exist, create document directory
12243 echo "checking for the document directory." 1>&2
12244 if test -d doc ; then
12251 if test x${build} = x${host} ; then
12252 if test x${host} = x${target} ; then
12253 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12255 echo "Links are now set up to build a cross-compiler" 1>&2
12256 echo " from ${host} to ${target}." 1>&2
12259 if test x${host} = x${target} ; then
12260 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12261 echo " for ${target}." 1>&2
12263 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12264 echo " from ${host} to ${target}." 1>&2
12268 # Configure the subdirectories
12269 # AC_CONFIG_SUBDIRS($subdirs)
12271 # Create the Makefile
12272 # and configure language subdirectories
12273 ac_config_files="$ac_config_files $all_outputs"
12276 ac_config_commands="$ac_config_commands default"
12278 cat >confcache <<\_ACEOF
12279 # This file is a shell script that caches the results of configure
12280 # tests run on this system so they can be shared between configure
12281 # scripts and configure runs, see configure's option --config-cache.
12282 # It is not useful on other systems. If it contains results you don't
12283 # want to keep, you may remove or edit it.
12285 # config.status only pays attention to the cache file if you give it
12286 # the --recheck option to rerun configure.
12288 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12289 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12290 # following values.
12294 # The following way of writing the cache mishandles newlines in values,
12295 # but we know of no workaround that is simple, portable, and efficient.
12296 # So, don't put newlines in cache variables' values.
12297 # Ultrix sh set writes to stderr and can't be redirected directly,
12298 # and sets the high bit in the cache file unless we assign to the vars.
12301 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12303 # `set' does not quote correctly, so add quotes (double-quote
12304 # substitution turns \\\\ into \\, and sed turns \\ into \).
12307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12310 # `set' quotes correctly as required by POSIX, so do not add quotes.
12312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12319 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12321 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12323 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12324 if test -w $cache_file; then
12325 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12326 cat confcache >$cache_file
12328 echo "not updating unwritable cache $cache_file"
12333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12334 # Let make expand exec_prefix.
12335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12337 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12338 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12339 # trailing colons and then remove the whole line if VPATH becomes empty
12340 # (actually we leave an empty line to preserve line numbers).
12341 if test "x$srcdir" = x.; then
12342 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12343 s/:*\$(srcdir):*/:/;
12344 s/:*\${srcdir}:*/:/;
12346 s/^\([^=]*=[ ]*\):*/\1/;
12352 DEFS=-DHAVE_CONFIG_H
12356 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12357 # 1. Remove the extension, and $U if already installed.
12358 ac_i=`echo "$ac_i" |
12359 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12361 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12362 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12364 LIBOBJS=$ac_libobjs
12366 LTLIBOBJS=$ac_ltlibobjs
12370 : ${CONFIG_STATUS=./config.status}
12371 ac_clean_files_save=$ac_clean_files
12372 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12373 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12374 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12375 cat >$CONFIG_STATUS <<_ACEOF
12377 # Generated by $as_me.
12378 # Run this file to recreate the current configuration.
12379 # Compiler output produced by configure, useful for debugging
12380 # configure, is in config.log if it exists.
12383 ac_cs_recheck=false
12385 SHELL=\${CONFIG_SHELL-$SHELL}
12388 cat >>$CONFIG_STATUS <<\_ACEOF
12389 ## --------------------- ##
12390 ## M4sh Initialization. ##
12391 ## --------------------- ##
12393 # Be Bourne compatible
12394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12397 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12398 # is contrary to our usage. Disable this feature.
12399 alias -g '${1+"$@"}'='"$@"'
12400 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12403 DUALCASE=1; export DUALCASE # for MKS sh
12405 # Support unset when possible.
12406 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12413 # Work around bugs in pre-3.0 UWIN ksh.
12414 $as_unset ENV MAIL MAILPATH
12421 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12422 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12423 LC_TELEPHONE LC_TIME
12425 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12426 eval $as_var=C; export $as_var
12432 # Required to use basename.
12433 if expr a : '\(a\)' >/dev/null 2>&1; then
12439 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12440 as_basename=basename
12446 # Name of the executable.
12447 as_me=`$as_basename "$0" ||
12448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12449 X"$0" : 'X\(//\)$' \| \
12450 X"$0" : 'X\(/\)$' \| \
12451 . : '\(.\)' 2>/dev/null ||
12453 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12454 /^X\/\(\/\/\)$/{ s//\1/; q; }
12455 /^X\/\(\/\).*/{ s//\1/; q; }
12459 # PATH needs CR, and LINENO needs CR and PATH.
12460 # Avoid depending upon Character Ranges.
12461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12464 as_cr_digits='0123456789'
12465 as_cr_alnum=$as_cr_Letters$as_cr_digits
12467 # The user is always right.
12468 if test "${PATH_SEPARATOR+set}" != set; then
12469 echo "#! /bin/sh" >conf$$.sh
12470 echo "exit 0" >>conf$$.sh
12472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12481 as_lineno_1=$LINENO
12482 as_lineno_2=$LINENO
12483 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12484 test "x$as_lineno_1" != "x$as_lineno_2" &&
12485 test "x$as_lineno_3" = "x$as_lineno_2" || {
12486 # Find who we are. Look in the path if we contain no path at all
12489 *[\\/]* ) as_myself=$0 ;;
12490 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491 for as_dir in $PATH
12494 test -z "$as_dir" && as_dir=.
12495 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12500 # We did not find ourselves, most probably we were run as `sh COMMAND'
12501 # in which case we are not to be found in the path.
12502 if test "x$as_myself" = x; then
12505 if test ! -f "$as_myself"; then
12506 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12507 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12508 { (exit 1); exit 1; }; }
12510 case $CONFIG_SHELL in
12512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12516 test -z "$as_dir" && as_dir=.
12517 for as_base in sh bash ksh sh5; do
12520 if ("$as_dir/$as_base" -c '
12521 as_lineno_1=$LINENO
12522 as_lineno_2=$LINENO
12523 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12524 test "x$as_lineno_1" != "x$as_lineno_2" &&
12525 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12526 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12527 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12528 CONFIG_SHELL=$as_dir/$as_base
12529 export CONFIG_SHELL
12530 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12538 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12539 # uniformly replaced by the line number. The first 'sed' inserts a
12540 # line-number line before each line; the second 'sed' does the real
12541 # work. The second script uses 'N' to pair each line-number line
12542 # with the numbered line, and appends trailing '-' during
12543 # substitution so that $LINENO is not a special case at line end.
12544 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12545 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12546 sed '=' <$as_myself |
12551 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12554 s,^['$as_cr_digits']*\n,,
12555 ' >$as_me.lineno &&
12556 chmod +x $as_me.lineno ||
12557 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12558 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12559 { (exit 1); exit 1; }; }
12561 # Don't try to exec as it changes $[0], causing all sort of problems
12562 # (the dirname of $[0] is not the place where we might find the
12563 # original and so on. Autoconf is especially sensible to this).
12565 # Exit status is that of the last command.
12570 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12571 *c*,-n*) ECHO_N= ECHO_C='
12573 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12574 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12577 if expr a : '\(a\)' >/dev/null 2>&1; then
12583 rm -f conf$$ conf$$.exe conf$$.file
12585 if ln -s conf$$.file conf$$ 2>/dev/null; then
12586 # We could just check for DJGPP; but this test a) works b) is more generic
12587 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12588 if test -f conf$$.exe; then
12589 # Don't use ln at all; we don't have any links
12594 elif ln conf$$.file conf$$ 2>/dev/null; then
12599 rm -f conf$$ conf$$.exe conf$$.file
12601 if mkdir -p . 2>/dev/null; then
12604 test -d ./-p && rmdir ./-p
12608 as_executable_p="test -f"
12610 # Sed expression to map a string onto a valid CPP name.
12611 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12613 # Sed expression to map a string onto a valid variable name.
12614 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12618 # We need space, tab and new line, in precisely that order.
12628 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12629 # report actual input values of CONFIG_FILES etc. instead of their
12630 # values after options handling. Logging --version etc. is OK.
12634 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12635 ## Running $as_me. ##
12640 This file was extended by $as_me, which was
12641 generated by GNU Autoconf 2.59. Invocation command line was
12643 CONFIG_FILES = $CONFIG_FILES
12644 CONFIG_HEADERS = $CONFIG_HEADERS
12645 CONFIG_LINKS = $CONFIG_LINKS
12646 CONFIG_COMMANDS = $CONFIG_COMMANDS
12650 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12654 # Files that config.status was made for.
12655 if test -n "$ac_config_files"; then
12656 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12659 if test -n "$ac_config_headers"; then
12660 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12663 if test -n "$ac_config_links"; then
12664 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12667 if test -n "$ac_config_commands"; then
12668 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12671 cat >>$CONFIG_STATUS <<\_ACEOF
12674 \`$as_me' instantiates files from templates according to the
12675 current configuration.
12677 Usage: $0 [OPTIONS] [FILE]...
12679 -h, --help print this help, then exit
12680 -V, --version print version number, then exit
12681 -q, --quiet do not print progress messages
12682 -d, --debug don't remove temporary files
12683 --recheck update $as_me by reconfiguring in the same conditions
12684 --file=FILE[:TEMPLATE]
12685 instantiate the configuration file FILE
12686 --header=FILE[:TEMPLATE]
12687 instantiate the configuration header FILE
12689 Configuration files:
12692 Configuration headers:
12695 Configuration commands:
12698 Report bugs to <bug-autoconf@gnu.org>."
12701 cat >>$CONFIG_STATUS <<_ACEOF
12704 configured by $0, generated by GNU Autoconf 2.59,
12705 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12707 Copyright (C) 2003 Free Software Foundation, Inc.
12708 This config.status script is free software; the Free Software Foundation
12709 gives unlimited permission to copy, distribute and modify it."
12713 cat >>$CONFIG_STATUS <<\_ACEOF
12714 # If no file are specified by the user, then we need to provide default
12715 # value. By we need to know if files were specified by the user.
12721 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12722 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12730 *) # This is not an option, so the user has probably given explicit
12733 ac_need_defaults=false;;
12737 # Handling of the options.
12739 cat >>$CONFIG_STATUS <<\_ACEOF
12740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12742 --version | --vers* | -V )
12743 echo "$ac_cs_version"; exit 0 ;;
12745 # Conflict between --help and --header
12746 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12747 Try \`$0 --help' for more information." >&5
12748 echo "$as_me: error: ambiguous option: $1
12749 Try \`$0 --help' for more information." >&2;}
12750 { (exit 1); exit 1; }; };;
12751 --help | --hel | -h )
12752 echo "$ac_cs_usage"; exit 0 ;;
12753 --debug | --d* | -d )
12755 --file | --fil | --fi | --f )
12757 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12758 ac_need_defaults=false;;
12759 --header | --heade | --head | --hea )
12761 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12762 ac_need_defaults=false;;
12763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12764 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12767 # This is an error.
12768 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12769 Try \`$0 --help' for more information." >&5
12770 echo "$as_me: error: unrecognized option: $1
12771 Try \`$0 --help' for more information." >&2;}
12772 { (exit 1); exit 1; }; } ;;
12774 *) ac_config_targets="$ac_config_targets $1" ;;
12780 ac_configure_extra_args=
12782 if $ac_cs_silent; then
12784 ac_configure_extra_args="$ac_configure_extra_args --silent"
12788 cat >>$CONFIG_STATUS <<_ACEOF
12789 if \$ac_cs_recheck; then
12790 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12791 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12796 cat >>$CONFIG_STATUS <<_ACEOF
12798 # INIT-COMMANDS section.
12802 symbolic_link='$symbolic_link'
12809 cat >>$CONFIG_STATUS <<\_ACEOF
12810 for ac_config_target in $ac_config_targets
12812 case "$ac_config_target" in
12813 # Handling of arguments.
12814 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12815 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12816 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12817 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12818 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12819 { (exit 1); exit 1; }; };;
12823 # If the user did not use the arguments to specify the items to instantiate,
12824 # then the envvar interface is used. Set only those that are not.
12825 # We use the long form for the default assignment because of an extremely
12826 # bizarre bug on SunOS 4.1.3.
12827 if $ac_need_defaults; then
12828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12829 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12830 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12833 # Have a temporary directory for convenience. Make it in the build tree
12834 # simply because there is no reason to put it here, and in addition,
12835 # creating and moving files from /tmp can sometimes cause problems.
12836 # Create a temporary directory, and hook for its removal unless debugging.
12839 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12840 trap '{ (exit 1); exit 1; }' 1 2 13 15
12843 # Create a (secure) tmp directory for tmp files.
12846 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12847 test -n "$tmp" && test -d "$tmp"
12850 tmp=./confstat$$-$RANDOM
12851 (umask 077 && mkdir $tmp)
12854 echo "$me: cannot create a temporary directory in ." >&2
12855 { (exit 1); exit 1; }
12860 cat >>$CONFIG_STATUS <<_ACEOF
12863 # CONFIG_FILES section.
12866 # No need to generate the scripts if there are no CONFIG_FILES.
12867 # This happens for instance when ./config.status config.h
12868 if test -n "\$CONFIG_FILES"; then
12869 # Protect against being on the right side of a sed subst in config.status.
12870 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12871 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12872 s,@SHELL@,$SHELL,;t t
12873 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12874 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12875 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12876 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12877 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12878 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12879 s,@exec_prefix@,$exec_prefix,;t t
12880 s,@prefix@,$prefix,;t t
12881 s,@program_transform_name@,$program_transform_name,;t t
12882 s,@bindir@,$bindir,;t t
12883 s,@sbindir@,$sbindir,;t t
12884 s,@libexecdir@,$libexecdir,;t t
12885 s,@datadir@,$datadir,;t t
12886 s,@sysconfdir@,$sysconfdir,;t t
12887 s,@sharedstatedir@,$sharedstatedir,;t t
12888 s,@localstatedir@,$localstatedir,;t t
12889 s,@libdir@,$libdir,;t t
12890 s,@includedir@,$includedir,;t t
12891 s,@oldincludedir@,$oldincludedir,;t t
12892 s,@infodir@,$infodir,;t t
12893 s,@mandir@,$mandir,;t t
12894 s,@build_alias@,$build_alias,;t t
12895 s,@host_alias@,$host_alias,;t t
12896 s,@target_alias@,$target_alias,;t t
12897 s,@DEFS@,$DEFS,;t t
12898 s,@ECHO_C@,$ECHO_C,;t t
12899 s,@ECHO_N@,$ECHO_N,;t t
12900 s,@ECHO_T@,$ECHO_T,;t t
12901 s,@LIBS@,$LIBS,;t t
12902 s,@build@,$build,;t t
12903 s,@build_cpu@,$build_cpu,;t t
12904 s,@build_vendor@,$build_vendor,;t t
12905 s,@build_os@,$build_os,;t t
12906 s,@host@,$host,;t t
12907 s,@host_cpu@,$host_cpu,;t t
12908 s,@host_vendor@,$host_vendor,;t t
12909 s,@host_os@,$host_os,;t t
12910 s,@target@,$target,;t t
12911 s,@target_cpu@,$target_cpu,;t t
12912 s,@target_vendor@,$target_vendor,;t t
12913 s,@target_os@,$target_os,;t t
12914 s,@build_subdir@,$build_subdir,;t t
12915 s,@host_subdir@,$host_subdir,;t t
12916 s,@target_subdir@,$target_subdir,;t t
12917 s,@GENINSRC@,$GENINSRC,;t t
12919 s,@CFLAGS@,$CFLAGS,;t t
12920 s,@LDFLAGS@,$LDFLAGS,;t t
12921 s,@CPPFLAGS@,$CPPFLAGS,;t t
12922 s,@ac_ct_CC@,$ac_ct_CC,;t t
12923 s,@EXEEXT@,$EXEEXT,;t t
12924 s,@OBJEXT@,$OBJEXT,;t t
12925 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12926 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12928 s,@strict1_warn@,$strict1_warn,;t t
12929 s,@warn_cflags@,$warn_cflags,;t t
12930 s,@WERROR@,$WERROR,;t t
12931 s,@nocommon_flag@,$nocommon_flag,;t t
12932 s,@EGREP@,$EGREP,;t t
12933 s,@valgrind_path@,$valgrind_path,;t t
12934 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12935 s,@valgrind_command@,$valgrind_command,;t t
12936 s,@coverage_flags@,$coverage_flags,;t t
12937 s,@enable_multilib@,$enable_multilib,;t t
12938 s,@enable_shared@,$enable_shared,;t t
12939 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12940 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12941 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12942 s,@onestep@,$onestep,;t t
12943 s,@SET_MAKE@,$SET_MAKE,;t t
12946 s,@LN_S@,$LN_S,;t t
12947 s,@RANLIB@,$RANLIB,;t t
12948 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12949 s,@INSTALL@,$INSTALL,;t t
12950 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12951 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12952 s,@make_compare_target@,$make_compare_target,;t t
12953 s,@have_mktemp_command@,$have_mktemp_command,;t t
12954 s,@MAKEINFO@,$MAKEINFO,;t t
12955 s,@BUILD_INFO@,$BUILD_INFO,;t t
12956 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12957 s,@FLEX@,$FLEX,;t t
12958 s,@BISON@,$BISON,;t t
12959 s,@stage1_cflags@,$stage1_cflags,;t t
12960 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12961 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12962 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12963 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12964 s,@LIBICONV@,$LIBICONV,;t t
12965 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12966 s,@manext@,$manext,;t t
12967 s,@objext@,$objext,;t t
12968 s,@gthread_flags@,$gthread_flags,;t t
12969 s,@extra_modes_file@,$extra_modes_file,;t t
12970 s,@FORBUILD@,$FORBUILD,;t t
12971 s,@PACKAGE@,$PACKAGE,;t t
12972 s,@VERSION@,$VERSION,;t t
12973 s,@USE_NLS@,$USE_NLS,;t t
12974 s,@LIBINTL@,$LIBINTL,;t t
12975 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12976 s,@INCINTL@,$INCINTL,;t t
12977 s,@XGETTEXT@,$XGETTEXT,;t t
12978 s,@GMSGFMT@,$GMSGFMT,;t t
12979 s,@POSUB@,$POSUB,;t t
12980 s,@CATALOGS@,$CATALOGS,;t t
12981 s,@CROSS@,$CROSS,;t t
12983 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12984 s,@inhibit_libc@,$inhibit_libc,;t t
12985 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12986 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12987 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12988 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12989 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12990 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12991 s,@libgcc_visibility@,$libgcc_visibility,;t t
12993 s,@zlibdir@,$zlibdir,;t t
12994 s,@zlibinc@,$zlibinc,;t t
12995 s,@MAINT@,$MAINT,;t t
12996 s,@gcc_tooldir@,$gcc_tooldir,;t t
12997 s,@dollar@,$dollar,;t t
12998 s,@slibdir@,$slibdir,;t t
12999 s,@objdir@,$objdir,;t t
13000 s,@subdirs@,$subdirs,;t t
13001 s,@srcdir@,$srcdir,;t t
13002 s,@all_boot_languages@,$all_boot_languages,;t t
13003 s,@all_compilers@,$all_compilers,;t t
13004 s,@all_gtfiles@,$all_gtfiles,;t t
13005 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13006 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13007 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13008 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13009 s,@all_languages@,$all_languages,;t t
13010 s,@all_stagestuff@,$all_stagestuff,;t t
13011 s,@build_exeext@,$build_exeext,;t t
13012 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13013 s,@build_xm_file_list@,$build_xm_file_list,;t t
13014 s,@build_xm_include_list@,$build_xm_include_list,;t t
13015 s,@build_xm_defines@,$build_xm_defines,;t t
13016 s,@check_languages@,$check_languages,;t t
13017 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13018 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13019 s,@cpp_install_dir@,$cpp_install_dir,;t t
13020 s,@xmake_file@,$xmake_file,;t t
13021 s,@tmake_file@,$tmake_file,;t t
13022 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13023 s,@extra_headers_list@,$extra_headers_list,;t t
13024 s,@extra_objs@,$extra_objs,;t t
13025 s,@extra_parts@,$extra_parts,;t t
13026 s,@extra_passes@,$extra_passes,;t t
13027 s,@extra_programs@,$extra_programs,;t t
13028 s,@float_h_file@,$float_h_file,;t t
13029 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13030 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13031 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13032 s,@gcc_version@,$gcc_version,;t t
13033 s,@gcc_version_full@,$gcc_version_full,;t t
13034 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13035 s,@host_exeext@,$host_exeext,;t t
13036 s,@host_xm_file_list@,$host_xm_file_list,;t t
13037 s,@host_xm_include_list@,$host_xm_include_list,;t t
13038 s,@host_xm_defines@,$host_xm_defines,;t t
13039 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13040 s,@install@,$install,;t t
13041 s,@lang_opt_files@,$lang_opt_files,;t t
13042 s,@lang_specs_files@,$lang_specs_files,;t t
13043 s,@lang_tree_files@,$lang_tree_files,;t t
13044 s,@local_prefix@,$local_prefix,;t t
13045 s,@md_file@,$md_file,;t t
13046 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13047 s,@out_file@,$out_file,;t t
13048 s,@out_object_file@,$out_object_file,;t t
13049 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13050 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13051 s,@symbolic_link@,$symbolic_link,;t t
13052 s,@thread_file@,$thread_file,;t t
13053 s,@tm_file_list@,$tm_file_list,;t t
13054 s,@tm_include_list@,$tm_include_list,;t t
13055 s,@tm_defines@,$tm_defines,;t t
13056 s,@tm_p_file_list@,$tm_p_file_list,;t t
13057 s,@tm_p_include_list@,$tm_p_include_list,;t t
13058 s,@xm_file_list@,$xm_file_list,;t t
13059 s,@xm_include_list@,$xm_include_list,;t t
13060 s,@xm_defines@,$xm_defines,;t t
13061 s,@target_noncanonical@,$target_noncanonical,;t t
13062 s,@c_target_objs@,$c_target_objs,;t t
13063 s,@cxx_target_objs@,$cxx_target_objs,;t t
13064 s,@target_cpu_default@,$target_cpu_default,;t t
13065 s,@LIBOBJS@,$LIBOBJS,;t t
13066 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13067 /@language_hooks@/r $language_hooks
13068 s,@language_hooks@,,;t t
13073 cat >>$CONFIG_STATUS <<\_ACEOF
13074 # Split the substitutions into bite-sized pieces for seds with
13075 # small command number limits, like on Digital OSF/1 and HP-UX.
13076 ac_max_sed_lines=48
13077 ac_sed_frag=1 # Number of current file.
13078 ac_beg=1 # First line for current file.
13079 ac_end=$ac_max_sed_lines # Line after last line for current file.
13082 while $ac_more_lines; do
13083 if test $ac_beg -gt 1; then
13084 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13086 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13088 if test ! -s $tmp/subs.frag; then
13089 ac_more_lines=false
13091 # The purpose of the label and of the branching condition is to
13092 # speed up the sed processing (if there are no `@' at all, there
13093 # is no need to browse any of the substitutions).
13094 # These are the two extra sed commands mentioned above.
13096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13097 if test -z "$ac_sed_cmds"; then
13098 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13100 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13102 ac_sed_frag=`expr $ac_sed_frag + 1`
13104 ac_end=`expr $ac_end + $ac_max_sed_lines`
13107 if test -z "$ac_sed_cmds"; then
13110 fi # test -n "$CONFIG_FILES"
13113 cat >>$CONFIG_STATUS <<\_ACEOF
13114 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13115 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13117 - | *:- | *:-:* ) # input from stdin
13119 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13120 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13121 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13122 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13123 * ) ac_file_in=$ac_file.in ;;
13126 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13127 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13128 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13129 X"$ac_file" : 'X\(//\)[^/]' \| \
13130 X"$ac_file" : 'X\(//\)$' \| \
13131 X"$ac_file" : 'X\(/\)' \| \
13132 . : '\(.\)' 2>/dev/null ||
13134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13136 /^X\(\/\/\)$/{ s//\1/; q; }
13137 /^X\(\/\).*/{ s//\1/; q; }
13139 { if $as_mkdir_p; then
13144 while test ! -d "$as_dir"; do
13145 as_dirs="$as_dir $as_dirs"
13146 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13147 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13148 X"$as_dir" : 'X\(//\)[^/]' \| \
13149 X"$as_dir" : 'X\(//\)$' \| \
13150 X"$as_dir" : 'X\(/\)' \| \
13151 . : '\(.\)' 2>/dev/null ||
13153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13155 /^X\(\/\/\)$/{ s//\1/; q; }
13156 /^X\(\/\).*/{ s//\1/; q; }
13159 test ! -n "$as_dirs" || mkdir $as_dirs
13160 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13161 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13162 { (exit 1); exit 1; }; }; }
13166 if test "$ac_dir" != .; then
13167 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13168 # A "../" for each directory in $ac_dir_suffix.
13169 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13171 ac_dir_suffix= ac_top_builddir=
13175 .) # No --srcdir option. We are building in place.
13177 if test -z "$ac_top_builddir"; then
13180 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13182 [\\/]* | ?:[\\/]* ) # Absolute path.
13183 ac_srcdir=$srcdir$ac_dir_suffix;
13184 ac_top_srcdir=$srcdir ;;
13185 *) # Relative path.
13186 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13187 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13190 # Do not use `cd foo && pwd` to compute absolute paths, because
13191 # the directories may not exist.
13193 .) ac_abs_builddir="$ac_dir";;
13196 .) ac_abs_builddir=`pwd`;;
13197 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13198 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13201 case $ac_abs_builddir in
13202 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13204 case ${ac_top_builddir}. in
13205 .) ac_abs_top_builddir=$ac_abs_builddir;;
13206 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13207 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13210 case $ac_abs_builddir in
13211 .) ac_abs_srcdir=$ac_srcdir;;
13214 .) ac_abs_srcdir=$ac_abs_builddir;;
13215 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13216 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13219 case $ac_abs_builddir in
13220 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13222 case $ac_top_srcdir in
13223 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13224 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13225 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13231 # Let's still pretend it is `configure' which instantiates (i.e., don't
13232 # use $as_me), people would be surprised to read:
13233 # /* config.h. Generated by config.status. */
13234 if test x"$ac_file" = x-; then
13237 configure_input="$ac_file. "
13239 configure_input=$configure_input"Generated from `echo $ac_file_in |
13240 sed 's,.*/,,'` by configure."
13242 # First look for the input files in the build tree, otherwise in the
13244 ac_file_inputs=`IFS=:
13245 for f in $ac_file_in; do
13247 -) echo $tmp/stdin ;;
13249 # Absolute (can't be DOS-style, as IFS=:)
13250 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13251 echo "$as_me: error: cannot find input file: $f" >&2;}
13252 { (exit 1); exit 1; }; }
13255 if test -f "$f"; then
13258 elif test -f "$srcdir/$f"; then
13263 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13264 echo "$as_me: error: cannot find input file: $f" >&2;}
13265 { (exit 1); exit 1; }; }
13268 done` || { (exit 1); exit 1; }
13270 if test x"$ac_file" != x-; then
13271 { echo "$as_me:$LINENO: creating $ac_file" >&5
13272 echo "$as_me: creating $ac_file" >&6;}
13276 cat >>$CONFIG_STATUS <<_ACEOF
13280 cat >>$CONFIG_STATUS <<\_ACEOF
13282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13283 s,@configure_input@,$configure_input,;t t
13284 s,@srcdir@,$ac_srcdir,;t t
13285 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13286 s,@top_srcdir@,$ac_top_srcdir,;t t
13287 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13288 s,@builddir@,$ac_builddir,;t t
13289 s,@abs_builddir@,$ac_abs_builddir,;t t
13290 s,@top_builddir@,$ac_top_builddir,;t t
13291 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13292 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13294 if test x"$ac_file" != x-; then
13295 mv $tmp/out $ac_file
13303 cat >>$CONFIG_STATUS <<\_ACEOF
13306 # CONFIG_HEADER section.
13309 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13310 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13312 # ac_d sets the value in "#define NAME VALUE" lines.
13313 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13314 ac_dB='[ ].*$,\1#\2'
13317 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13318 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13319 ac_uB='$,\1#\2define\3'
13323 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13324 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13326 - | *:- | *:-:* ) # input from stdin
13328 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13329 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13330 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13331 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13332 * ) ac_file_in=$ac_file.in ;;
13335 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13336 echo "$as_me: creating $ac_file" >&6;}
13338 # First look for the input files in the build tree, otherwise in the
13340 ac_file_inputs=`IFS=:
13341 for f in $ac_file_in; do
13343 -) echo $tmp/stdin ;;
13345 # Absolute (can't be DOS-style, as IFS=:)
13346 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13347 echo "$as_me: error: cannot find input file: $f" >&2;}
13348 { (exit 1); exit 1; }; }
13349 # Do quote $f, to prevent DOS paths from being IFS'd.
13352 if test -f "$f"; then
13355 elif test -f "$srcdir/$f"; then
13360 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13361 echo "$as_me: error: cannot find input file: $f" >&2;}
13362 { (exit 1); exit 1; }; }
13365 done` || { (exit 1); exit 1; }
13366 # Remove the trailing spaces.
13367 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13371 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13372 # `conftest.undefs', that substitutes the proper values into
13373 # config.h.in to produce config.h. The first handles `#define'
13374 # templates, and the second `#undef' templates.
13375 # And first: Protect against being on the right side of a sed subst in
13376 # config.status. Protect against being in an unquoted here document
13377 # in config.status.
13378 rm -f conftest.defines conftest.undefs
13379 # Using a here document instead of a string reduces the quoting nightmare.
13380 # Putting comments in sed scripts is not portable.
13382 # `end' is used to avoid that the second main sed command (meant for
13383 # 0-ary CPP macros) applies to n-ary macro definitions.
13384 # See the Autoconf documentation for `clear'.
13385 cat >confdef2sed.sed <<\_ACEOF
13390 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13392 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13395 # If some macros were called several times there might be several times
13396 # the same #defines, which is useless. Nevertheless, we may not want to
13397 # sort them, since we want the *last* AC-DEFINE to be honored.
13398 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13399 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13400 rm -f confdef2sed.sed
13402 # This sed command replaces #undef with comments. This is necessary, for
13403 # example, in the case of _POSIX_SOURCE, which is predefined and required
13404 # on some systems where configure will not decide to define it.
13405 cat >>conftest.undefs <<\_ACEOF
13406 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13409 # Break up conftest.defines because some shells have a limit on the size
13410 # of here documents, and old seds have small limits too (100 cmds).
13411 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13412 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13413 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13414 echo ' :' >>$CONFIG_STATUS
13415 rm -f conftest.tail
13416 while grep . conftest.defines >/dev/null
13418 # Write a limited-size here document to $tmp/defines.sed.
13419 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13420 # Speed up: don't consider the non `#define' lines.
13421 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13422 # Work around the forget-to-reset-the-flag bug.
13423 echo 't clr' >>$CONFIG_STATUS
13424 echo ': clr' >>$CONFIG_STATUS
13425 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13427 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13429 mv $tmp/out $tmp/in
13431 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13432 rm -f conftest.defines
13433 mv conftest.tail conftest.defines
13435 rm -f conftest.defines
13436 echo ' fi # grep' >>$CONFIG_STATUS
13437 echo >>$CONFIG_STATUS
13439 # Break up conftest.undefs because some shells have a limit on the size
13440 # of here documents, and old seds have small limits too (100 cmds).
13441 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13442 rm -f conftest.tail
13443 while grep . conftest.undefs >/dev/null
13445 # Write a limited-size here document to $tmp/undefs.sed.
13446 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13447 # Speed up: don't consider the non `#undef'
13448 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13449 # Work around the forget-to-reset-the-flag bug.
13450 echo 't clr' >>$CONFIG_STATUS
13451 echo ': clr' >>$CONFIG_STATUS
13452 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13454 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13456 mv $tmp/out $tmp/in
13458 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13459 rm -f conftest.undefs
13460 mv conftest.tail conftest.undefs
13462 rm -f conftest.undefs
13464 cat >>$CONFIG_STATUS <<\_ACEOF
13465 # Let's still pretend it is `configure' which instantiates (i.e., don't
13466 # use $as_me), people would be surprised to read:
13467 # /* config.h. Generated by config.status. */
13468 if test x"$ac_file" = x-; then
13469 echo "/* Generated by configure. */" >$tmp/config.h
13471 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13473 cat $tmp/in >>$tmp/config.h
13475 if test x"$ac_file" != x-; then
13476 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13477 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13478 echo "$as_me: $ac_file is unchanged" >&6;}
13480 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13482 X"$ac_file" : 'X\(//\)[^/]' \| \
13483 X"$ac_file" : 'X\(//\)$' \| \
13484 X"$ac_file" : 'X\(/\)' \| \
13485 . : '\(.\)' 2>/dev/null ||
13487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13489 /^X\(\/\/\)$/{ s//\1/; q; }
13490 /^X\(\/\).*/{ s//\1/; q; }
13492 { if $as_mkdir_p; then
13497 while test ! -d "$as_dir"; do
13498 as_dirs="$as_dir $as_dirs"
13499 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13501 X"$as_dir" : 'X\(//\)[^/]' \| \
13502 X"$as_dir" : 'X\(//\)$' \| \
13503 X"$as_dir" : 'X\(/\)' \| \
13504 . : '\(.\)' 2>/dev/null ||
13506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13508 /^X\(\/\/\)$/{ s//\1/; q; }
13509 /^X\(\/\).*/{ s//\1/; q; }
13512 test ! -n "$as_dirs" || mkdir $as_dirs
13513 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13515 { (exit 1); exit 1; }; }; }
13518 mv $tmp/config.h $ac_file
13522 rm -f $tmp/config.h
13526 cat >>$CONFIG_STATUS <<\_ACEOF
13529 # CONFIG_COMMANDS section.
13531 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13532 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13533 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13534 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13535 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13536 X"$ac_dest" : 'X\(//\)[^/]' \| \
13537 X"$ac_dest" : 'X\(//\)$' \| \
13538 X"$ac_dest" : 'X\(/\)' \| \
13539 . : '\(.\)' 2>/dev/null ||
13541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13542 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13543 /^X\(\/\/\)$/{ s//\1/; q; }
13544 /^X\(\/\).*/{ s//\1/; q; }
13546 { if $as_mkdir_p; then
13551 while test ! -d "$as_dir"; do
13552 as_dirs="$as_dir $as_dirs"
13553 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13554 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13555 X"$as_dir" : 'X\(//\)[^/]' \| \
13556 X"$as_dir" : 'X\(//\)$' \| \
13557 X"$as_dir" : 'X\(/\)' \| \
13558 . : '\(.\)' 2>/dev/null ||
13560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13561 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13562 /^X\(\/\/\)$/{ s//\1/; q; }
13563 /^X\(\/\).*/{ s//\1/; q; }
13566 test ! -n "$as_dirs" || mkdir $as_dirs
13567 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13568 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13569 { (exit 1); exit 1; }; }; }
13573 if test "$ac_dir" != .; then
13574 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13575 # A "../" for each directory in $ac_dir_suffix.
13576 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13578 ac_dir_suffix= ac_top_builddir=
13582 .) # No --srcdir option. We are building in place.
13584 if test -z "$ac_top_builddir"; then
13587 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13589 [\\/]* | ?:[\\/]* ) # Absolute path.
13590 ac_srcdir=$srcdir$ac_dir_suffix;
13591 ac_top_srcdir=$srcdir ;;
13592 *) # Relative path.
13593 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13594 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13597 # Do not use `cd foo && pwd` to compute absolute paths, because
13598 # the directories may not exist.
13600 .) ac_abs_builddir="$ac_dir";;
13603 .) ac_abs_builddir=`pwd`;;
13604 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13605 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13608 case $ac_abs_builddir in
13609 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13611 case ${ac_top_builddir}. in
13612 .) ac_abs_top_builddir=$ac_abs_builddir;;
13613 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13614 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13617 case $ac_abs_builddir in
13618 .) ac_abs_srcdir=$ac_srcdir;;
13621 .) ac_abs_srcdir=$ac_abs_builddir;;
13622 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13623 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13626 case $ac_abs_builddir in
13627 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13629 case $ac_top_srcdir in
13630 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13631 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13632 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13637 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13638 echo "$as_me: executing $ac_dest commands" >&6;}
13641 case ${CONFIG_HEADERS} in
13642 *auto-host.h:config.in*)
13645 # Make sure all the subdirs exist.
13648 test -d $d || mkdir $d
13650 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13651 # bootstrapping and the installation procedure can still use
13652 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13653 # FLAGS_TO_PASS has been modified to solve the problem there.
13654 # This is virtually a duplicate of what happens in configure.lang; we do
13655 # an extra check to make sure this only happens if ln -s can be used.
13656 if test "$symbolic_link" = "ln -s"; then
13657 for d in ${subdirs} fixinc ; do
13658 STARTDIR=`${PWDCMD-pwd}`
13660 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13663 $symbolic_link ../$t $t 2>/dev/null
13673 cat >>$CONFIG_STATUS <<\_ACEOF
13675 { (exit 0); exit 0; }
13677 chmod +x $CONFIG_STATUS
13678 ac_clean_files=$ac_clean_files_save
13681 # configure is writing to config.log, and then calls config.status.
13682 # config.status does its own redirection, appending to config.log.
13683 # Unfortunately, on DOS this fails, as config.log is still kept open
13684 # by configure, so config.status won't be able to write to it; its
13685 # output is simply discarded. So we exec the FD to /dev/null,
13686 # effectively closing config.log, so it can be properly (re)opened and
13687 # appended to by config.status. When coming back to configure, we
13688 # need to make the FD available again.
13689 if test "$no_create" != yes; then
13691 ac_config_status_args=
13692 test "$silent" = yes &&
13693 ac_config_status_args="$ac_config_status_args --quiet"
13695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13698 # would make configure fail if this is the last instruction.
13699 $ac_cs_success || { (exit 1); exit 1; }