2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT ANDER BANSHEEINC BANSHEELIB gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
871 default is misc,tree,gc,rtlflag
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler\'s code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --enable-initfini-array use .init_array/.fini_array sections
890 --enable-sjlj-exceptions
891 arrange to use setjmp/longjmp exception handling
892 --enable-libunwind-exceptions force use libunwind for exceptions
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
925 --with-gc={page,zone} choose the garbage collection mechanism to use
927 --with-system-zlib use installed libz
928 --with-libbanshee enable libbanshee
929 --with-slibdir=DIR shared libraries in DIR LIBDIR
931 Some influential environment variables:
932 CC C compiler command
933 CFLAGS C compiler flags
934 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
935 nonstandard directory <lib dir>
936 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
937 headers in a nonstandard directory <include dir>
939 GMPLIBS How to link GMP
940 GMPINC How to find GMP include files
942 Use these variables to override the choices made by `configure' or to help
943 it to find libraries and programs with nonstandard names/locations.
948 if test "$ac_init_help" = "recursive"; then
949 # If there are subdirs, report their specific --help.
951 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952 test -d $ac_dir || continue
955 if test "$ac_dir" != .; then
956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957 # A "../" for each directory in $ac_dir_suffix.
958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
960 ac_dir_suffix= ac_top_builddir=
964 .) # No --srcdir option. We are building in place.
966 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
971 [\\/]* | ?:[\\/]* ) # Absolute path.
972 ac_srcdir=$srcdir$ac_dir_suffix;
973 ac_top_srcdir=$srcdir ;;
975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 # Do not use `cd foo && pwd` to compute absolute paths, because
980 # the directories may not exist.
982 .) ac_abs_builddir="$ac_dir";;
985 .) ac_abs_builddir=`pwd`;;
986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 case $ac_abs_builddir in
991 .) ac_abs_top_builddir=${ac_top_builddir}.;;
993 case ${ac_top_builddir}. in
994 .) ac_abs_top_builddir=$ac_abs_builddir;;
995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 case $ac_abs_builddir in
1000 .) ac_abs_srcdir=$ac_srcdir;;
1003 .) ac_abs_srcdir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1011 case $ac_top_srcdir in
1012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1019 # Check for guested configure; otherwise get Cygnus style configure.
1020 if test -f $ac_srcdir/configure.gnu; then
1022 $SHELL $ac_srcdir/configure.gnu --help=recursive
1023 elif test -f $ac_srcdir/configure; then
1025 $SHELL $ac_srcdir/configure --help=recursive
1026 elif test -f $ac_srcdir/configure.ac ||
1027 test -f $ac_srcdir/configure.in; then
1029 $ac_configure --help
1031 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1037 test -n "$ac_init_help" && exit 0
1038 if $ac_init_version; then
1041 Copyright (C) 2003 Free Software Foundation, Inc.
1042 This configure script is free software; the Free Software Foundation
1043 gives unlimited permission to copy, distribute and modify it.
1049 This file contains any messages produced by compilers while
1050 running configure, to aid debugging if configure makes a mistake.
1052 It was created by $as_me, which was
1053 generated by GNU Autoconf 2.59. Invocation command line was
1064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1076 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 test -z "$as_dir" && as_dir=.
1088 echo "PATH: $as_dir"
1103 # Keep a trace of the command line.
1104 # Strip out --no-create and --no-recursion so they do not pile up.
1105 # Strip out --silent because we don't want to record it for future runs.
1106 # Also quote any args containing shell meta-characters.
1107 # Make two passes to allow for proper duplicate-argument suppression.
1112 ac_must_keep_next=false
1118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1122 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1128 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1129 if test $ac_must_keep_next = true; then
1130 ac_must_keep_next=false # Got value, back to normal.
1133 *=* | --config-cache | -C | -disable-* | --disable-* \
1134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1136 | -with-* | --with-* | -without-* | --without-* | --x)
1137 case "$ac_configure_args0 " in
1138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 -* ) ac_must_keep_next=true ;;
1144 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1145 # Get rid of the leading space.
1151 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1152 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1154 # When interrupted or exit'd, cleanup temporary files, and complete
1155 # config.log. We remove comments because anyway the quotes in there
1156 # would cause problems or look ugly.
1157 # WARNING: Be sure not to use single quotes in there, as some shells,
1158 # such as our DU 5.0 friend, will then `close' the trap.
1159 trap 'exit_status=$?
1160 # Save into config.log some information that might help in debugging.
1165 ## ---------------- ##
1166 ## Cache variables. ##
1167 ## ---------------- ##
1170 # The following way of writing the cache mishandles newlines in values,
1173 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1181 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1188 ## ----------------- ##
1189 ## Output variables. ##
1190 ## ----------------- ##
1193 for ac_var in $ac_subst_vars
1195 eval ac_val=$`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1200 if test -n "$ac_subst_files"; then
1207 for ac_var in $ac_subst_files
1209 eval ac_val=$`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1215 if test -s confdefs.h; then
1222 sed "/^$/d" confdefs.h | sort
1225 test "$ac_signal" != 0 &&
1226 echo "$as_me: caught signal $ac_signal"
1227 echo "$as_me: exit $exit_status"
1229 rm -f core *.core &&
1230 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 for ac_signal in 1 2 13 15; do
1234 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239 rm -rf conftest* confdefs.h
1240 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 # Predefined preprocessor variables.
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 # Let the site file select an alternate cache file if it wants to.
1271 # Prefer explicitly selected file to automatically selected ones.
1272 if test -z "$CONFIG_SITE"; then
1273 if test "x$prefix" != xNONE; then
1274 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1276 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 for ac_site_file in $CONFIG_SITE; do
1280 if test -r "$ac_site_file"; then
1281 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282 echo "$as_me: loading site script $ac_site_file" >&6;}
1283 sed 's/^/| /' "$ac_site_file" >&5
1288 if test -r "$cache_file"; then
1289 # Some versions of bash will fail to source /dev/null (special
1290 # files actually), so we avoid doing that.
1291 if test -f "$cache_file"; then
1292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293 echo "$as_me: loading cache $cache_file" >&6;}
1295 [\\/]* | ?:[\\/]* ) . $cache_file;;
1296 *) . ./$cache_file;;
1300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301 echo "$as_me: creating cache $cache_file" >&6;}
1305 # Check that the precious variables saved in the cache have kept the same
1307 ac_cache_corrupted=false
1308 for ac_var in `(set) 2>&1 |
1309 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311 eval ac_new_set=\$ac_env_${ac_var}_set
1312 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313 eval ac_new_val="\$ac_env_${ac_var}_value"
1314 case $ac_old_set,$ac_new_set in
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318 ac_cache_corrupted=: ;;
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1325 if test "x$ac_old_val" != "x$ac_new_val"; then
1326 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1328 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1329 echo "$as_me: former value: $ac_old_val" >&2;}
1330 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1331 echo "$as_me: current value: $ac_new_val" >&2;}
1332 ac_cache_corrupted=:
1335 # Pass precious variables to config.status.
1336 if test "$ac_new_set" = set; then
1338 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340 *) ac_arg=$ac_var=$ac_new_val ;;
1342 case " $ac_configure_args " in
1343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348 if $ac_cache_corrupted; then
1349 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353 { (exit 1); exit 1; }; }
1357 ac_cpp='$CPP $CPPFLAGS'
1358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1384 # Determine the host, build, and target systems
1386 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1387 if test -f $ac_dir/install-sh; then
1389 ac_install_sh="$ac_aux_dir/install-sh -c"
1391 elif test -f $ac_dir/install.sh; then
1393 ac_install_sh="$ac_aux_dir/install.sh -c"
1395 elif test -f $ac_dir/shtool; then
1397 ac_install_sh="$ac_aux_dir/shtool install -c"
1401 if test -z "$ac_aux_dir"; then
1402 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1404 { (exit 1); exit 1; }; }
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410 # Make sure we can run config.sub.
1411 $ac_config_sub sun4 >/dev/null 2>&1 ||
1412 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1413 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1414 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: checking build system type" >&5
1417 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1418 if test "${ac_cv_build+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 ac_cv_build_alias=$build_alias
1422 test -z "$ac_cv_build_alias" &&
1423 ac_cv_build_alias=`$ac_config_guess`
1424 test -z "$ac_cv_build_alias" &&
1425 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1426 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1427 { (exit 1); exit 1; }; }
1428 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1429 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1430 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1431 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1435 echo "${ECHO_T}$ac_cv_build" >&6
1437 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442 echo "$as_me:$LINENO: checking host system type" >&5
1443 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1444 if test "${ac_cv_host+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 ac_cv_host_alias=$host_alias
1448 test -z "$ac_cv_host_alias" &&
1449 ac_cv_host_alias=$ac_cv_build_alias
1450 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1453 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1457 echo "${ECHO_T}$ac_cv_host" >&6
1459 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464 echo "$as_me:$LINENO: checking target system type" >&5
1465 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1466 if test "${ac_cv_target+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_target_alias=$target_alias
1470 test "x$ac_cv_target_alias" = "x" &&
1471 ac_cv_target_alias=$ac_cv_host_alias
1472 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1479 echo "${ECHO_T}$ac_cv_target" >&6
1480 target=$ac_cv_target
1481 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486 # The aliases save the names the user supplied, while $host etc.
1487 # will get canonicalized.
1488 test -n "$target_alias" &&
1489 test "$program_prefix$program_suffix$program_transform_name" = \
1491 program_prefix=${target_alias}-
1493 # Determine the noncanonical target name, for directory use.
1494 case ${build_alias} in
1495 "") build_noncanonical=${build} ;;
1496 *) build_noncanonical=${build_alias} ;;
1499 case ${host_alias} in
1500 "") host_noncanonical=${build_noncanonical} ;;
1501 *) host_noncanonical=${host_alias} ;;
1504 case ${target_alias} in
1505 "") target_noncanonical=${host_noncanonical} ;;
1506 *) target_noncanonical=${target_alias} ;;
1510 # Determine the target- and build-specific subdirectories
1511 # Prefix 'build-' so this never conflicts with target_subdir.
1512 build_subdir="build-${build_noncanonical}"
1513 # Not really a subdirectory, but here for completeness.
1516 target_subdir=${target_noncanonical}
1519 # Set program_transform_name
1520 test "$program_prefix" != NONE &&
1521 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1522 # Use a double $ so make ignores it.
1523 test "$program_suffix" != NONE &&
1524 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1525 # Double any \ or $. echo might interpret backslashes.
1526 # By default was `s,x,x', remove it if useless.
1527 cat <<\_ACEOF >conftest.sed
1528 s/[\\$]/&&/g;s/;s,x,x,$//
1530 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1534 # Check for bogus environment variables.
1535 # Test if LIBRARY_PATH contains the notation for the current directory
1536 # since this would lead to problems installing/building glibc.
1537 # LIBRARY_PATH contains the current directory if one of the following
1539 # - one of the terminals (":" and ";") is the first or last sign
1540 # - two terminals occur directly after each other
1541 # - the path contains an element with a dot in it
1542 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1543 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1544 case ${LIBRARY_PATH} in
1545 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1546 library_path_setting="contains current directory"
1549 library_path_setting="ok"
1552 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1553 echo "${ECHO_T}$library_path_setting" >&6
1554 if test "$library_path_setting" != "ok"; then
1555 { { echo "$as_me:$LINENO: error:
1556 *** LIBRARY_PATH shouldn't contain the current directory when
1557 *** building gcc. Please change the environment variable
1558 *** and run configure again." >&5
1559 echo "$as_me: error:
1560 *** LIBRARY_PATH shouldn't contain the current directory when
1561 *** building gcc. Please change the environment variable
1562 *** and run configure again." >&2;}
1563 { (exit 1); exit 1; }; }
1566 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1567 # since this would lead to problems installing/building glibc.
1568 # GCC_EXEC_PREFIX contains the current directory if one of the following
1570 # - one of the terminals (":" and ";") is the first or last sign
1571 # - two terminals occur directly after each other
1572 # - the path contains an element with a dot in it
1573 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1574 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1575 case ${GCC_EXEC_PREFIX} in
1576 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1577 gcc_exec_prefix_setting="contains current directory"
1580 gcc_exec_prefix_setting="ok"
1583 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1584 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1585 if test "$gcc_exec_prefix_setting" != "ok"; then
1586 { { echo "$as_me:$LINENO: error:
1587 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1588 *** building gcc. Please change the environment variable
1589 *** and run configure again." >&5
1590 echo "$as_me: error:
1591 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1592 *** building gcc. Please change the environment variable
1593 *** and run configure again." >&2;}
1594 { (exit 1); exit 1; }; }
1601 # Specify the local prefix
1604 # Check whether --with-local-prefix or --without-local-prefix was given.
1605 if test "${with_local_prefix+set}" = set; then
1606 withval="$with_local_prefix"
1607 case "${withval}" in
1608 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1609 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1610 { (exit 1); exit 1; }; } ;;
1612 *) local_prefix=$with_local_prefix ;;
1616 # Default local prefix if it is empty
1617 if test x$local_prefix = x; then
1618 local_prefix=/usr/local
1621 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1622 # passed in by the toplevel make and thus we'd get different behavior
1623 # depending on where we built the sources.
1624 gcc_gxx_include_dir=
1625 # Specify the g++ header file directory
1627 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1628 if test "${with_gxx_include_dir+set}" = set; then
1629 withval="$with_gxx_include_dir"
1630 case "${withval}" in
1631 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1632 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1633 { (exit 1); exit 1; }; } ;;
1635 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1639 if test x${gcc_gxx_include_dir} = x; then
1640 if test x${enable_version_specific_runtime_libs} = xyes; then
1641 gcc_gxx_include_dir='${libsubdir}/include/c++'
1643 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1644 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1649 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1650 if test "${with_cpp_install_dir+set}" = set; then
1651 withval="$with_cpp_install_dir"
1652 if test x$withval = xyes; then
1653 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1654 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1655 { (exit 1); exit 1; }; }
1656 elif test x$withval != xno; then
1657 cpp_install_dir=$withval
1661 # We would like to our source tree to be readonly. However when releases or
1662 # pre-releases are generated, the flex/bison generated files as well as the
1663 # various formats of manuals need to be included along with the rest of the
1664 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1667 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1668 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1669 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1670 if test "${enable_generated_files_in_srcdir+set}" = set; then
1671 enableval="$enable_generated_files_in_srcdir"
1672 generated_files_in_srcdir=$enableval
1674 generated_files_in_srcdir=no
1677 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1678 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1680 if test "$generated_files_in_srcdir" = "yes"; then
1687 # -------------------
1688 # Find default linker
1689 # -------------------
1693 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1694 if test "${with_gnu_ld+set}" = set; then
1695 withval="$with_gnu_ld"
1696 gnu_ld_flag="$with_gnu_ld"
1701 # With pre-defined ld
1703 # Check whether --with-ld or --without-ld was given.
1704 if test "${with_ld+set}" = set; then
1706 DEFAULT_LINKER="$with_ld"
1708 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1709 if test ! -x "$DEFAULT_LINKER"; then
1710 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1711 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1712 { (exit 1); exit 1; }; }
1713 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1717 cat >>confdefs.h <<_ACEOF
1718 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1723 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1724 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1725 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1726 if test x"$gnu_ld_flag" = x"no"; then
1727 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1728 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1730 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1731 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1738 # With demangler in GNU ld
1740 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1741 if test "${with_demangler_in_ld+set}" = set; then
1742 withval="$with_demangler_in_ld"
1743 demangler_in_ld="$with_demangler_in_ld"
1748 # ----------------------
1749 # Find default assembler
1750 # ----------------------
1754 # Check whether --with-gnu-as or --without-gnu-as was given.
1755 if test "${with_gnu_as+set}" = set; then
1756 withval="$with_gnu_as"
1757 gas_flag="$with_gnu_as"
1763 # Check whether --with-as or --without-as was given.
1764 if test "${with_as+set}" = set; then
1766 DEFAULT_ASSEMBLER="$with_as"
1768 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1769 if test ! -x "$DEFAULT_ASSEMBLER"; then
1770 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1771 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1772 { (exit 1); exit 1; }; }
1773 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1777 cat >>confdefs.h <<_ACEOF
1778 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1783 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1784 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1785 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1786 if test x"$gas_flag" = x"no"; then
1787 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1788 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1790 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1791 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1802 # If a non-executable a.out is present (e.g. created by GNU as above even if
1803 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1804 # file, even when creating an executable, so an execution test fails.
1805 # Remove possible default executable files to avoid this.
1807 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1808 # Autoconf includes it.
1809 rm -f a.out a.exe b.out
1811 # Find the native compiler
1813 ac_cpp='$CPP $CPPFLAGS'
1814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1817 if test -n "$ac_tool_prefix"; then
1818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1849 echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1854 if test -z "$ac_cv_prog_CC"; then
1856 # Extract the first word of "gcc", so it can be a program name with args.
1857 set dummy gcc; ac_word=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_ac_ct_CC="gcc"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1896 if test -z "$CC"; then
1897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}cc; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 ac_cv_prog_CC="${ac_tool_prefix}cc"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 if test -n "$CC"; then
1926 echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1934 if test -z "$ac_cv_prog_CC"; then
1936 # Extract the first word of "cc", so it can be a program name with args.
1937 set dummy cc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 if test -n "$ac_ct_CC"; then
1944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_ac_ct_CC="cc"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1963 if test -n "$ac_ct_CC"; then
1964 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965 echo "${ECHO_T}$ac_ct_CC" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1977 if test -z "$CC"; then
1978 # Extract the first word of "cc", so it can be a program name with args.
1979 set dummy cc; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997 ac_prog_rejected=yes
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 if test $ac_prog_rejected = yes; then
2008 # We found a bogon in the path, so make sure we never use it.
2009 set dummy $ac_cv_prog_CC
2011 if test $# != 0; then
2012 # We chose a different compiler from the bogus one.
2013 # However, it has the same basename, so the bogon will be chosen
2014 # first if we set CC to just the basename; use the full file name.
2016 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2022 if test -n "$CC"; then
2023 echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2031 if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CC"; then
2063 echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2070 test -n "$CC" && break
2073 if test -z "$CC"; then
2077 # Extract the first word of "$ac_prog", so it can be a program name with args.
2078 set dummy $ac_prog; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 if test -n "$ac_ct_CC"; then
2085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094 ac_cv_prog_ac_ct_CC="$ac_prog"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2112 test -n "$ac_ct_CC" && break
2121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2127 # Provide some information about the compiler.
2128 echo "$as_me:$LINENO:" \
2129 "checking for C compiler version" >&5
2130 ac_compiler=`set X $ac_compile; echo $2`
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2132 (eval $ac_compiler --version </dev/null >&5) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2137 (eval $ac_compiler -v </dev/null >&5) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2142 (eval $ac_compiler -V </dev/null >&5) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2147 cat >conftest.$ac_ext <<_ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2167 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2171 (eval $ac_link_default) 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 # Find the output, starting from the most likely. This scheme is
2176 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179 # Be careful to initialize this variable, since it used to be cached.
2180 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2182 # b.out is created by i960 compilers.
2183 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2185 test -f "$ac_file" || continue
2187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190 # This is the source file.
2193 # We found the default executable, but exeext='' is most
2197 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 # FIXME: I believe we export ac_cv_exeext for Libtool,
2199 # but it would be cool to find out if it's true. Does anybody
2200 # maintain Libtool? --akim.
2208 echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215 { (exit 77); exit 77; }; }
2218 ac_exeext=$ac_cv_exeext
2219 echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6
2222 # Check the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229 if { ac_try='./$ac_file'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 if test "$cross_compiling" = maybe; then
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2250 echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check the compiler produces executables we can run. If not, either
2256 # the compiler is broken, or we cross compile.
2257 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2259 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6
2262 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2265 (eval $ac_link) 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2273 for ac_file in conftest.exe conftest conftest.*; do
2274 test -f "$ac_file" || continue
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2291 rm -f conftest$ac_cv_exeext
2292 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6
2295 rm -f conftest.$ac_ext
2296 EXEEXT=$ac_cv_exeext
2298 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300 if test "${ac_cv_objext+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2318 rm -f conftest.o conftest.obj
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6
2346 OBJEXT=$ac_cv_objext
2348 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.$ac_ext <<_ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag"
2381 || test ! -s conftest.err'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; }; then
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2405 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2406 GCC=`test $ac_compiler_gnu = yes && echo yes`
2407 ac_test_CFLAGS=${CFLAGS+set}
2408 ac_save_CFLAGS=$CFLAGS
2410 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2411 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2412 if test "${ac_cv_prog_cc_g+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 cat >conftest.$ac_ext <<_ACEOF
2418 cat confdefs.h >>conftest.$ac_ext
2419 cat >>conftest.$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2430 rm -f conftest.$ac_objext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432 (eval $ac_compile) 2>conftest.er1
2434 grep -v '^ *+' conftest.er1 >conftest.err
2436 cat conftest.err >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -z "$ac_c_werror_flag"
2440 || test ! -s conftest.err'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2462 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2463 if test "$ac_test_CFLAGS" = set; then
2464 CFLAGS=$ac_save_CFLAGS
2465 elif test $ac_cv_prog_cc_g = yes; then
2466 if test "$GCC" = yes; then
2472 if test "$GCC" = yes; then
2478 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2479 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2480 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 ac_cv_prog_cc_stdc=no
2485 cat >conftest.$ac_ext <<_ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2493 #include <sys/types.h>
2494 #include <sys/stat.h>
2495 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2496 struct buf { int x; };
2497 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2498 static char *e (p, i)
2504 static char *f (char * (*g) (char **, int), char **p, ...)
2509 s = g (p, va_arg (v,int));
2514 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2515 function prototypes and stuff, but not '\xHH' hex character constants.
2516 These don't provoke an error unfortunately, instead are silently treated
2517 as 'x'. The following induces an error, until -std1 is added to get
2518 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2519 array size at least. It's necessary to write '\x00'==0 to get something
2520 that's true only with -std1. */
2521 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2523 int test (int i, double x);
2524 struct s1 {int (*f) (int a);};
2525 struct s2 {int (*f) (double a);};
2526 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2532 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2537 # Don't try gcc -ansi; that turns off useful extensions and
2538 # breaks some systems' header files.
2539 # AIX -qlanglvl=ansi
2540 # Ultrix and OSF/1 -std1
2541 # HP-UX 10.20 and later -Ae
2542 # HP-UX older versions -Aa -D_HPUX_SOURCE
2543 # SVR4 -Xc -D__EXTENSIONS__
2544 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2546 CC="$ac_save_CC $ac_arg"
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>conftest.er1
2551 grep -v '^ *+' conftest.er1 >conftest.err
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try='test -z "$ac_c_werror_flag"
2557 || test ! -s conftest.err'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 ac_cv_prog_cc_stdc=$ac_arg
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2576 rm -f conftest.err conftest.$ac_objext
2578 rm -f conftest.$ac_ext conftest.$ac_objext
2583 case "x$ac_cv_prog_cc_stdc" in
2585 echo "$as_me:$LINENO: result: none needed" >&5
2586 echo "${ECHO_T}none needed" >&6 ;;
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2590 CC="$CC $ac_cv_prog_cc_stdc" ;;
2593 # Some people use a C++ compiler to compile C. Since we use `exit',
2594 # in C++ we need to declare it. In case someone uses the same compiler
2595 # for both compiling C and C++ we need to have the C++ compiler decide
2596 # the declaration of exit, since it's the most demanding environment.
2597 cat >conftest.$ac_ext <<_ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1 >conftest.err
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 for ac_declaration in \
2626 'extern "C" void std::exit (int) throw (); using std::exit;' \
2627 'extern "C" void std::exit (int); using std::exit;' \
2628 'extern "C" void exit (int) throw ();' \
2629 'extern "C" void exit (int);' \
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>conftest.er1
2652 grep -v '^ *+' conftest.er1 >conftest.err
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -z "$ac_c_werror_flag"
2658 || test ! -s conftest.err'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag"
2703 || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 if test -n "$ac_declaration"; then
2725 echo '#ifdef __cplusplus' >>confdefs.h
2726 echo $ac_declaration >>confdefs.h
2727 echo '#endif' >>confdefs.h
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 if test "x$CC" != xcc; then
2743 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2744 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2746 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2747 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2749 set dummy $CC; ac_cc=`echo $2 |
2750 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2751 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 cat >conftest.$ac_ext <<_ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2769 # Make sure it works both with $CC and with simple cc.
2770 # We do the test twice because some compilers refuse to overwrite an
2771 # existing .o file with -o, though they will create one.
2772 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2773 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); };
2784 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2785 if test "x$CC" != xcc; then
2786 # Test first that cc exists at all.
2787 if { ac_try='cc -c conftest.$ac_ext >&5'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2794 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); };
2808 # cc exists but doesn't like -o.
2809 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2814 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2819 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2820 echo "$as_me:$LINENO: result: yes" >&5
2821 echo "${ECHO_T}yes" >&6
2823 echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2826 cat >>confdefs.h <<\_ACEOF
2827 #define NO_MINUS_C_MINUS_O 1
2832 # autoconf is lame and doesn't give us any substitution variable for this.
2833 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2834 NO_MINUS_C_MINUS_O=yes
2836 OUTPUT_OPTION='-o $@'
2841 # -------------------------
2842 # Check C compiler features
2843 # -------------------------
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2851 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2852 # On Suns, sometimes $CPP names a directory.
2853 if test -n "$CPP" && test -d "$CPP"; then
2856 if test -z "$CPP"; then
2857 if test "${ac_cv_prog_CPP+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 # Double quotes because CPP needs to be expanded
2861 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2864 for ac_c_preproc_warn_flag in '' yes
2866 # Use a header file that comes with gcc, so configuring glibc
2867 # with a fresh cross-compiler works.
2868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2869 # <limits.h> exists even on freestanding compilers.
2870 # On the NeXT, cc -E runs the code through the compiler's parser,
2871 # not just through cpp. "Syntax error" is here to catch this case.
2872 cat >conftest.$ac_ext <<_ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2879 # include <limits.h>
2881 # include <assert.h>
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_c_preproc_warn_flag
2895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902 if test -z "$ac_cpp_err"; then
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 # Broken: fails on valid input.
2911 rm -f conftest.err conftest.$ac_ext
2913 # OK, works on sane cases. Now check whether non-existent headers
2914 # can be detected and how.
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #include <ac_nonexistent.h>
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1 >conftest.err
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_c_preproc_warn_flag
2933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2940 if test -z "$ac_cpp_err"; then
2941 # Broken: success on invalid input.
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 # Passes both tests.
2951 rm -f conftest.err conftest.$ac_ext
2954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955 rm -f conftest.err conftest.$ac_ext
2956 if $ac_preproc_ok; then
2968 echo "$as_me:$LINENO: result: $CPP" >&5
2969 echo "${ECHO_T}$CPP" >&6
2971 for ac_c_preproc_warn_flag in '' yes
2973 # Use a header file that comes with gcc, so configuring glibc
2974 # with a fresh cross-compiler works.
2975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2976 # <limits.h> exists even on freestanding compilers.
2977 # On the NeXT, cc -E runs the code through the compiler's parser,
2978 # not just through cpp. "Syntax error" is here to catch this case.
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2986 # include <limits.h>
2988 # include <assert.h>
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null; then
3000 if test -s conftest.err; then
3001 ac_cpp_err=$ac_c_preproc_warn_flag
3002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3009 if test -z "$ac_cpp_err"; then
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 # Broken: fails on valid input.
3018 rm -f conftest.err conftest.$ac_ext
3020 # OK, works on sane cases. Now check whether non-existent headers
3021 # can be detected and how.
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 #include <ac_nonexistent.h>
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3047 if test -z "$ac_cpp_err"; then
3048 # Broken: success on invalid input.
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 # Passes both tests.
3058 rm -f conftest.err conftest.$ac_ext
3061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3062 rm -f conftest.err conftest.$ac_ext
3063 if $ac_preproc_ok; then
3066 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3067 See \`config.log' for more details." >&5
3068 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 echo "$as_me:$LINENO: checking for inline" >&5
3081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3082 if test "${ac_cv_c_inline+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 for ac_kw in inline __inline__ __inline; do
3087 cat >conftest.$ac_ext <<_ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3095 static $ac_kw foo_t static_foo () {return 0; }
3096 $ac_kw foo_t foo () {return 0; }
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102 (eval $ac_compile) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -z "$ac_c_werror_flag"
3110 || test ! -s conftest.err'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
3122 ac_cv_c_inline=$ac_kw; break
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3133 echo "${ECHO_T}$ac_cv_c_inline" >&6
3136 case $ac_cv_c_inline in
3139 case $ac_cv_c_inline in
3141 *) ac_val=$ac_cv_c_inline;;
3143 cat >>confdefs.h <<_ACEOF
3145 #define inline $ac_val
3152 echo "$as_me:$LINENO: checking for long long int" >&5
3153 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3154 if test "${ac_cv_c_long_long+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 cat >conftest.$ac_ext <<_ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag"
3182 || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_cv_c_long_long=yes
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 ac_cv_c_long_long=no
3201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3203 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3204 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3205 if test $ac_cv_c_long_long = yes; then
3207 cat >>confdefs.h <<\_ACEOF
3208 #define HAVE_LONG_LONG 1
3212 echo "$as_me:$LINENO: checking for __int64" >&5
3213 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3214 if test "${ac_cv_c___int64+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>conftest.er1
3236 grep -v '^ *+' conftest.er1 >conftest.err
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -z "$ac_c_werror_flag"
3242 || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3264 echo "${ECHO_T}$ac_cv_c___int64" >&6
3265 if test $ac_cv_c___int64 = yes; then
3267 cat >>confdefs.h <<\_ACEOF
3268 #define HAVE___INT64 1
3274 # sizeof(char) is 1 by definition.
3275 echo "$as_me:$LINENO: checking size of void *" >&5
3276 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3277 if test "${ac_cv_sizeof_void_p+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include "confdefs.h"
3288 #include <sys/types.h>
3294 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3299 rm -f conftest.$ac_objext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3301 (eval $ac_compile) 2>conftest.er1
3303 grep -v '^ *+' conftest.er1 >conftest.err
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try='test -z "$ac_c_werror_flag"
3309 || test ! -s conftest.err'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; } &&
3315 { ac_try='test -s conftest.$ac_objext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3321 ac_cv_sizeof_void_p=$ac_size
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3328 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3333 if test x$ac_cv_sizeof_void_p = x ; then
3334 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3335 echo "$as_me: error: cannot determine a size for void *" >&2;}
3336 { (exit 1); exit 1; }; }
3338 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3339 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3341 cat >>confdefs.h <<_ACEOF
3342 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3346 echo "$as_me:$LINENO: checking size of short" >&5
3347 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3348 if test "${ac_cv_sizeof_short+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3358 #include "confdefs.h"
3359 #include <sys/types.h>
3365 switch (0) case 0: case (sizeof (short) == $ac_size):;
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3374 grep -v '^ *+' conftest.er1 >conftest.err
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_c_werror_flag"
3380 || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_sizeof_short=$ac_size
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3399 if test x$ac_cv_sizeof_short != x ; then break; fi
3404 if test x$ac_cv_sizeof_short = x ; then
3405 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3406 echo "$as_me: error: cannot determine a size for short" >&2;}
3407 { (exit 1); exit 1; }; }
3409 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3410 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3412 cat >>confdefs.h <<_ACEOF
3413 #define SIZEOF_SHORT $ac_cv_sizeof_short
3417 echo "$as_me:$LINENO: checking size of int" >&5
3418 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3419 if test "${ac_cv_sizeof_int+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 #include "confdefs.h"
3430 #include <sys/types.h>
3436 switch (0) case 0: case (sizeof (int) == $ac_size):;
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try='test -z "$ac_c_werror_flag"
3451 || test ! -s conftest.err'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try='test -s conftest.$ac_objext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3463 ac_cv_sizeof_int=$ac_size
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3470 if test x$ac_cv_sizeof_int != x ; then break; fi
3475 if test x$ac_cv_sizeof_int = x ; then
3476 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3477 echo "$as_me: error: cannot determine a size for int" >&2;}
3478 { (exit 1); exit 1; }; }
3480 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3481 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3483 cat >>confdefs.h <<_ACEOF
3484 #define SIZEOF_INT $ac_cv_sizeof_int
3488 echo "$as_me:$LINENO: checking size of long" >&5
3489 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3490 if test "${ac_cv_sizeof_long+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3494 cat >conftest.$ac_ext <<_ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 #include "confdefs.h"
3501 #include <sys/types.h>
3507 switch (0) case 0: case (sizeof (long) == $ac_size):;
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3516 grep -v '^ *+' conftest.er1 >conftest.err
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_sizeof_long=$ac_size
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541 if test x$ac_cv_sizeof_long != x ; then break; fi
3546 if test x$ac_cv_sizeof_long = x ; then
3547 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3548 echo "$as_me: error: cannot determine a size for long" >&2;}
3549 { (exit 1); exit 1; }; }
3551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3552 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3554 cat >>confdefs.h <<_ACEOF
3555 #define SIZEOF_LONG $ac_cv_sizeof_long
3559 if test $ac_cv_c_long_long = yes; then
3560 echo "$as_me:$LINENO: checking size of long long" >&5
3561 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3562 if test "${ac_cv_sizeof_long_long+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3566 cat >conftest.$ac_ext <<_ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #include "confdefs.h"
3573 #include <sys/types.h>
3579 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3584 rm -f conftest.$ac_objext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3586 (eval $ac_compile) 2>conftest.er1
3588 grep -v '^ *+' conftest.er1 >conftest.err
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } &&
3593 { ac_try='test -z "$ac_c_werror_flag"
3594 || test ! -s conftest.err'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; } &&
3600 { ac_try='test -s conftest.$ac_objext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_cv_sizeof_long_long=$ac_size
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3618 if test x$ac_cv_sizeof_long_long = x ; then
3619 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3620 echo "$as_me: error: cannot determine a size for long long" >&2;}
3621 { (exit 1); exit 1; }; }
3623 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3624 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3626 cat >>confdefs.h <<_ACEOF
3627 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3632 if test $ac_cv_c___int64 = yes; then
3633 echo "$as_me:$LINENO: checking size of __int64" >&5
3634 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3635 if test "${ac_cv_sizeof___int64+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3639 cat >conftest.$ac_ext <<_ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3652 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3661 grep -v '^ *+' conftest.er1 >conftest.err
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_cv_sizeof___int64=$ac_size
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3691 if test x$ac_cv_sizeof___int64 = x ; then
3692 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3693 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3694 { (exit 1); exit 1; }; }
3696 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3697 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3699 cat >>confdefs.h <<_ACEOF
3700 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3706 # ---------------------
3707 # Warnings and checking
3708 # ---------------------
3710 # Check $CC warning features (if it's GCC).
3711 # We want to use -pedantic, but we don't want warnings about
3714 # So, we only use -pedantic if we can disable those warnings.
3716 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3717 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3718 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 save_CFLAGS="$CFLAGS"
3722 CFLAGS="-Wno-long-long"
3723 cat >conftest.$ac_ext <<_ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>conftest.er1
3735 grep -v '^ *+' conftest.er1 >conftest.err
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 { ac_try='test -z "$ac_c_werror_flag"
3741 || test ! -s conftest.err'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; } &&
3747 { ac_try='test -s conftest.$ac_objext'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 ac_cv_prog_cc_w_no_long_long=yes
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 ac_cv_prog_cc_w_no_long_long=no
3760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761 CFLAGS="$save_CFLAGS"
3764 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3765 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3767 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3768 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3769 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 save_CFLAGS="$CFLAGS"
3773 CFLAGS="-Wno-variadic-macros"
3774 cat >conftest.$ac_ext <<_ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1 >conftest.err
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_cv_prog_cc_w_no_variadic_macros=yes
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 ac_cv_prog_cc_w_no_variadic_macros=no
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812 CFLAGS="$save_CFLAGS"
3815 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3816 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3819 if test $ac_cv_prog_cc_w_no_long_long = yes \
3820 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3821 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3825 # Add -Wold-style-definition if it's accepted
3826 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3827 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3828 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 save_CFLAGS="$CFLAGS"
3832 CFLAGS="-Wold-style-definition"
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3841 rm -f conftest.$ac_objext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3843 (eval $ac_compile) 2>conftest.er1
3845 grep -v '^ *+' conftest.er1 >conftest.err
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -z "$ac_c_werror_flag"
3851 || test ! -s conftest.err'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; }; then
3863 ac_cv_prog_cc_w_old_style_definition=yes
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 ac_cv_prog_cc_w_old_style_definition=no
3870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871 CFLAGS="$save_CFLAGS"
3874 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3875 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3876 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3877 strict1_warn="${strict1_warn} -Wold-style-definition"
3880 # Enable -Werror, period.
3881 # Check whether --enable-werror_always or --disable-werror_always was given.
3882 if test "${enable_werror_always+set}" = set; then
3883 enableval="$enable_werror_always"
3886 enable_werror_always=no
3888 if test x${enable_werror_always} = xyes ; then
3889 strict1_warn="${strict1_warn} -Werror"
3893 # If the native compiler is GCC, we can enable warnings even in stage1.
3894 # That's useful for people building cross-compilers, or just running a
3897 if test "x$GCC" = "xyes"; then
3898 warn_cflags='$(GCC_WARN_CFLAGS)'
3902 # Enable -Werror in bootstrap stage2 and later.
3903 # Change the default to "no" on release branches.
3904 # Check whether --enable-werror or --disable-werror was given.
3905 if test "${enable_werror+set}" = set; then
3906 enableval="$enable_werror"
3911 if test x$enable_werror = xyes ; then
3916 # Enable expensive internal checks
3917 # Check whether --enable-checking or --disable-checking was given.
3918 if test "${enable_checking+set}" = set; then
3919 enableval="$enable_checking"
3923 ac_rtlflag_checking=
3925 ac_gc_always_collect=
3927 case "${enableval}" in
3928 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3929 ac_rtlflag_checking=1 ;;
3931 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3932 set fnord $enableval; shift
3937 misc) ac_checking=1 ;;
3938 tree) ac_tree_checking=1 ;;
3939 rtlflag) ac_rtlflag_checking=1 ;;
3940 rtl) ac_rtl_checking=1 ;;
3941 gc) ac_gc_checking=1 ;;
3942 gcac) ac_gc_always_collect=1 ;;
3943 fold) ac_fold_checking=1 ;;
3944 valgrind) ac_checking_valgrind=1 ;;
3945 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3946 echo "$as_me: error: unknown check category $check" >&2;}
3947 { (exit 1); exit 1; }; } ;;
3954 # Enable some checks by default for development versions of GCC
3955 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3958 if test x$ac_checking != x ; then
3960 cat >>confdefs.h <<\_ACEOF
3961 #define ENABLE_CHECKING 1
3964 nocommon_flag=-fno-common
3967 if test x$ac_tree_checking != x ; then
3969 cat >>confdefs.h <<\_ACEOF
3970 #define ENABLE_TREE_CHECKING 1
3973 TREEBROWSER=tree-browser.o
3976 if test x$ac_rtl_checking != x ; then
3978 cat >>confdefs.h <<\_ACEOF
3979 #define ENABLE_RTL_CHECKING 1
3983 if test x$ac_rtlflag_checking != x ; then
3985 cat >>confdefs.h <<\_ACEOF
3986 #define ENABLE_RTL_FLAG_CHECKING 1
3990 if test x$ac_gc_checking != x ; then
3992 cat >>confdefs.h <<\_ACEOF
3993 #define ENABLE_GC_CHECKING 1
3997 if test x$ac_gc_always_collect != x ; then
3999 cat >>confdefs.h <<\_ACEOF
4000 #define ENABLE_GC_ALWAYS_COLLECT 1
4004 if test x$ac_fold_checking != x ; then
4006 cat >>confdefs.h <<\_ACEOF
4007 #define ENABLE_FOLD_CHECKING 1
4011 valgrind_path_defines=
4015 echo "$as_me:$LINENO: checking for egrep" >&5
4016 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4017 if test "${ac_cv_prog_egrep+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4021 then ac_cv_prog_egrep='grep -E'
4022 else ac_cv_prog_egrep='egrep'
4025 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4026 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4027 EGREP=$ac_cv_prog_egrep
4030 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4032 if test "${ac_cv_header_stdc+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 cat >conftest.$ac_ext <<_ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4054 rm -f conftest.$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>conftest.er1
4058 grep -v '^ *+' conftest.er1 >conftest.err
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag"
4064 || test ! -s conftest.err'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try='test -s conftest.$ac_objext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 ac_cv_header_stdc=yes
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 ac_cv_header_stdc=no
4083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4085 if test $ac_cv_header_stdc = yes; then
4086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "memchr" >/dev/null 2>&1; then
4100 ac_cv_header_stdc=no
4106 if test $ac_cv_header_stdc = yes; then
4107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118 $EGREP "free" >/dev/null 2>&1; then
4121 ac_cv_header_stdc=no
4127 if test $ac_cv_header_stdc = yes; then
4128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4129 if test "$cross_compiling" = yes; then
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4139 #if ((' ' & 0x0FF) == 0x020)
4140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4143 # define ISLOWER(c) \
4144 (('a' <= (c) && (c) <= 'i') \
4145 || ('j' <= (c) && (c) <= 'r') \
4146 || ('s' <= (c) && (c) <= 'z'))
4147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4155 for (i = 0; i < 256; i++)
4156 if (XOR (islower (i), ISLOWER (i))
4157 || toupper (i) != TOUPPER (i))
4162 rm -f conftest$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164 (eval $ac_link) 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4175 echo "$as_me: program exited with status $ac_status" >&5
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4180 ac_cv_header_stdc=no
4182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4186 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4187 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4188 if test $ac_cv_header_stdc = yes; then
4190 cat >>confdefs.h <<\_ACEOF
4191 #define STDC_HEADERS 1
4196 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4206 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4207 inttypes.h stdint.h unistd.h
4209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4210 echo "$as_me:$LINENO: checking for $ac_header" >&5
4211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 cat >conftest.$ac_ext <<_ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 $ac_includes_default
4223 #include <$ac_header>
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -z "$ac_c_werror_flag"
4235 || 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"
4299 || test ! -s conftest.err'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_header_compiler=yes
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 ac_header_compiler=no
4318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4320 echo "${ECHO_T}$ac_header_compiler" >&6
4322 # Is the header present?
4323 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4324 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4325 cat >conftest.$ac_ext <<_ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <valgrind.h>
4333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4336 grep -v '^ *+' conftest.er1 >conftest.err
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } >/dev/null; then
4341 if test -s conftest.err; then
4342 ac_cpp_err=$ac_c_preproc_warn_flag
4343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4350 if test -z "$ac_cpp_err"; then
4351 ac_header_preproc=yes
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 ac_header_preproc=no
4358 rm -f conftest.err conftest.$ac_ext
4359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4360 echo "${ECHO_T}$ac_header_preproc" >&6
4362 # So? What about this header?
4363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4365 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4366 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4368 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4369 ac_header_preproc=yes
4372 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4373 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4374 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4375 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4376 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4377 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4378 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4379 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4380 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4381 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4382 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4383 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4386 ## ------------------------------------------ ##
4387 ## Report this to the AC_PACKAGE_NAME lists. ##
4388 ## ------------------------------------------ ##
4391 sed "s/^/$as_me: WARNING: /" >&2
4394 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4395 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4396 if test "${ac_cv_header_valgrind_h+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 ac_cv_header_valgrind_h=$ac_header_preproc
4401 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4402 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4405 if test $ac_cv_header_valgrind_h = yes; then
4413 if test x$ac_checking_valgrind != x ; then
4414 # It is certainly possible that there's valgrind but no valgrind.h.
4415 # GCC relies on making annotations so we must have both.
4416 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4417 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #include <valgrind/memcheck.h>
4425 #ifndef VALGRIND_DISCARD
4426 #error VALGRIND_DISCARD not defined
4429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } >/dev/null; then
4437 if test -s conftest.err; then
4438 ac_cpp_err=$ac_c_preproc_warn_flag
4439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4446 if test -z "$ac_cpp_err"; then
4447 gcc_cv_header_valgrind_memcheck_h=yes
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 gcc_cv_header_valgrind_memcheck_h=no
4454 rm -f conftest.err conftest.$ac_ext
4455 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4456 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4457 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4458 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4459 cat >conftest.$ac_ext <<_ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <memcheck.h>
4466 #ifndef VALGRIND_DISCARD
4467 #error VALGRIND_DISCARD not defined
4470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4473 grep -v '^ *+' conftest.er1 >conftest.err
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } >/dev/null; then
4478 if test -s conftest.err; then
4479 ac_cpp_err=$ac_c_preproc_warn_flag
4480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4487 if test -z "$ac_cpp_err"; then
4488 gcc_cv_header_memcheck_h=yes
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 gcc_cv_header_memcheck_h=no
4495 rm -f conftest.err conftest.$ac_ext
4496 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4497 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4499 # Prepare PATH_SEPARATOR.
4500 # The user is always right.
4501 if test "${PATH_SEPARATOR+set}" != set; then
4502 echo "#! /bin/sh" >conf$$.sh
4503 echo "exit 0" >>conf$$.sh
4505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4513 # Find out how to test for executable files. Don't use a zero-byte file,
4514 # as systems may use methods other than mode bits to determine executability.
4515 cat >conf$$.file <<_ASEOF
4519 chmod +x conf$$.file
4520 if test -x conf$$.file >/dev/null 2>&1; then
4521 ac_executable_p="test -x"
4523 ac_executable_p="test -f"
4527 # Extract the first word of "valgrind", so it can be a program name with args.
4528 set dummy valgrind; ac_word=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_path_valgrind_path+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 case "$valgrind_path" in
4536 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4539 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4540 for ac_dir in $PATH; do
4542 test -z "$ac_dir" && ac_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4545 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4546 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4556 valgrind_path="$ac_cv_path_valgrind_path"
4557 if test -n "$valgrind_path"; then
4558 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4559 echo "${ECHO_T}$valgrind_path" >&6
4561 echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6
4565 if test "x$valgrind_path" = "x" \
4566 || (test $have_valgrind_h = no \
4567 && test $gcc_cv_header_memcheck_h = no \
4568 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4569 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4570 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4571 { (exit 1); exit 1; }; }
4573 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4574 valgrind_command="$valgrind_path -q"
4576 cat >>confdefs.h <<\_ACEOF
4577 #define ENABLE_VALGRIND_CHECKING 1
4580 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4582 cat >>confdefs.h <<\_ACEOF
4583 #define HAVE_VALGRIND_MEMCHECK_H 1
4587 if test $gcc_cv_header_memcheck_h = yes; then
4589 cat >>confdefs.h <<\_ACEOF
4590 #define HAVE_MEMCHECK_H 1
4598 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4599 if test "${enable_mapped_location+set}" = set; then
4600 enableval="$enable_mapped_location"
4603 enable_mapped_location=no
4606 if test "$enable_mapped_location" = yes ; then
4608 cat >>confdefs.h <<\_ACEOF
4609 #define USE_MAPPED_LOCATION 1
4614 # Enable code coverage collection
4615 # Check whether --enable-coverage or --disable-coverage was given.
4616 if test "${enable_coverage+set}" = set; then
4617 enableval="$enable_coverage"
4618 case "${enableval}" in
4620 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4623 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4626 # a.k.a. --disable-coverage
4630 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4631 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4632 { (exit 1); exit 1; }; }
4640 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4641 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4642 enableval="$enable_gather_detailed_mem_stats"
4645 enable_gather_detailed_mem_stats=no
4647 if test x$enable_gather_detailed_mem_stats = xyes ; then
4649 cat >>confdefs.h <<\_ACEOF
4650 #define GATHER_STATISTICS 1
4655 # -------------------------------
4656 # Miscenalleous configure options
4657 # -------------------------------
4661 # Check whether --with-stabs or --without-stabs was given.
4662 if test "${with_stabs+set}" = set; then
4663 withval="$with_stabs"
4669 # Determine whether or not multilibs are enabled.
4670 # Check whether --enable-multilib or --disable-multilib was given.
4671 if test "${enable_multilib+set}" = set; then
4672 enableval="$enable_multilib"
4679 # Enable __cxa_atexit for C++.
4680 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4681 if test "${enable___cxa_atexit+set}" = set; then
4682 enableval="$enable___cxa_atexit"
4687 # Pass with no value to take the default
4688 # Pass with a value to specify a thread package
4689 # Check whether --enable-threads or --disable-threads was given.
4690 if test "${enable_threads+set}" = set; then
4691 enableval="$enable_threads"
4697 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4698 if test "${enable_objc_gc+set}" = set; then
4699 enableval="$enable_objc_gc"
4700 if test x$enable_objc_gc = xno; then
4710 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4711 if test "${with_dwarf2+set}" = set; then
4712 withval="$with_dwarf2"
4713 dwarf2="$with_dwarf2"
4718 # Check whether --enable-shared or --disable-shared was given.
4719 if test "${enable_shared+set}" = set; then
4720 enableval="$enable_shared"
4722 case $enable_shared in
4726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4727 for pkg in $enableval; do
4728 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4742 # Check whether --with-sysroot or --without-sysroot was given.
4743 if test "${with_sysroot+set}" = set; then
4744 withval="$with_sysroot"
4746 case ${with_sysroot} in
4747 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4748 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4751 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4752 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4754 if test "x$exec_prefix" = xNONE; then
4755 if test "x$prefix" = xNONE; then
4756 test_prefix=/usr/local
4761 test_prefix=$exec_prefix
4763 case ${TARGET_SYSTEM_ROOT} in
4764 "${test_prefix}"|"${test_prefix}/"*|\
4765 '${exec_prefix}'|'${exec_prefix}/'*)
4766 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4767 TARGET_SYSTEM_ROOT_DEFINE="$t"
4774 TARGET_SYSTEM_ROOT_DEFINE=
4775 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4782 # Build with intermodule optimisations
4783 # Check whether --enable-intermodule or --disable-intermodule was given.
4784 if test "${enable_intermodule+set}" = set; then
4785 enableval="$enable_intermodule"
4786 case ${enable_intermodule} in
4787 yes) onestep="-onestep";;
4795 # Sanity check enable_languages in case someone does not run the toplevel
4796 # configure # script.
4797 # Check whether --enable-languages or --disable-languages was given.
4798 if test "${enable_languages+set}" = set; then
4799 enableval="$enable_languages"
4800 case ,${enable_languages}, in
4802 # go safe -- we cannot be much sure without the toplevel
4804 # analysis of which target libs are present and usable
4808 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4809 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4810 { (exit 1); exit 1; }; }
4815 enable_languages=c,${enable_languages}
4823 for lang in ${srcdir}/*/config-lang.in
4826 # The odd quoting in the next line works around
4827 # an apparent bug in bash 1.12 on linux.
4828 ${srcdir}/[*]/config-lang.in) ;;
4830 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4831 if test "x$lang_alias" = x
4833 echo "$lang doesn't set \$language." 1>&2
4836 case ",$enable_languages," in
4838 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4845 # -------------------------
4846 # Checks for other programs
4847 # -------------------------
4849 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4850 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4852 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 cat >conftest.make <<\_ACEOF
4857 @echo 'ac_maketemp="$(MAKE)"'
4859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4860 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4861 if test -n "$ac_maketemp"; then
4862 eval ac_cv_prog_make_${ac_make}_set=yes
4864 eval ac_cv_prog_make_${ac_make}_set=no
4868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4869 echo "$as_me:$LINENO: result: yes" >&5
4870 echo "${ECHO_T}yes" >&6
4873 echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4875 SET_MAKE="MAKE=${MAKE-make}"
4879 # Find some useful tools
4880 for ac_prog in gawk mawk nawk awk
4882 # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_AWK+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 if test -n "$AWK"; then
4890 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_AWK="$ac_prog"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 if test -n "$AWK"; then
4910 echo "$as_me:$LINENO: result: $AWK" >&5
4911 echo "${ECHO_T}$AWK" >&6
4913 echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4917 test -n "$AWK" && break
4920 # We need awk to create options.c and options.h.
4921 # Bail out if it's missing.
4923 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4924 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4925 { (exit 1); exit 1; }; } ;;
4928 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4929 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4930 if test "${gcc_cv_prog_LN_S+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 rm -f conftestdata_t
4934 echo >conftestdata_f
4935 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4937 gcc_cv_prog_LN_S="ln -s"
4939 if ln conftestdata_f conftestdata_t 2>/dev/null
4946 rm -f conftestdata_f conftestdata_t
4949 LN_S="$gcc_cv_prog_LN_S"
4950 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4951 echo "$as_me:$LINENO: result: yes" >&5
4952 echo "${ECHO_T}yes" >&6
4954 if test "$gcc_cv_prog_LN_S" = "ln"; then
4955 echo "$as_me:$LINENO: result: no, using ln" >&5
4956 echo "${ECHO_T}no, using ln" >&6
4958 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4959 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4964 if test -n "$ac_tool_prefix"; then
4965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4967 echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969 if test "${ac_cv_prog_RANLIB+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 if test -n "$RANLIB"; then
4973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 RANLIB=$ac_cv_prog_RANLIB
4992 if test -n "$RANLIB"; then
4993 echo "$as_me:$LINENO: result: $RANLIB" >&5
4994 echo "${ECHO_T}$RANLIB" >&6
4996 echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
5001 if test -z "$ac_cv_prog_RANLIB"; then
5002 ac_ct_RANLIB=$RANLIB
5003 # Extract the first word of "ranlib", so it can be a program name with args.
5004 set dummy ranlib; ac_word=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 if test -n "$ac_ct_RANLIB"; then
5011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_ac_ct_RANLIB="ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5031 if test -n "$ac_ct_RANLIB"; then
5032 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5033 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5035 echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5039 RANLIB=$ac_ct_RANLIB
5041 RANLIB="$ac_cv_prog_RANLIB"
5046 # By default, the Darwin ranlib will not treat common symbols as
5047 # definitions when building the archive table of contents. Other
5048 # ranlibs do that; pass an option to the Darwin ranlib that makes
5049 # it behave similarly.
5057 # Find a good install program. We prefer a C program (faster),
5058 # so one script is as good as another. But avoid the broken or
5059 # incompatible versions:
5060 # SysV /etc/install, /usr/sbin/install
5061 # SunOS /usr/etc/install
5062 # IRIX /sbin/install
5064 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5065 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5066 # ./install, which can be erroneously created by make from ./install.sh.
5067 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5068 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5069 if test -z "$INSTALL"; then
5070 if test "${ac_cv_path_install+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5074 for ac_dir in $PATH; do
5075 # Account for people who put trailing slashes in PATH elements.
5077 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5079 # OSF1 and SCO ODT 3.0 have their own names for install.
5080 for ac_prog in ginstall scoinst install; do
5081 if test -f $ac_dir/$ac_prog; then
5082 if test $ac_prog = install &&
5083 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5084 # AIX install. It has an incompatible calling convention.
5085 # OSF/1 installbsd also uses dspmsg, but is usable.
5088 ac_cv_path_install="$ac_dir/$ac_prog -c"
5099 if test "${ac_cv_path_install+set}" = set; then
5100 INSTALL="$ac_cv_path_install"
5102 # As a last resort, use the slow shell script. We don't cache a
5103 # path for INSTALL within a source directory, because that will
5104 # break other packages using the cache if that directory is
5105 # removed, or if the path is relative.
5106 INSTALL="$ac_install_sh"
5109 echo "$as_me:$LINENO: result: $INSTALL" >&5
5110 echo "${ECHO_T}$INSTALL" >&6
5112 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5113 # It thinks the first close brace ends the variable substitution.
5114 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5116 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5119 # See if cmp has --ignore-initial.
5120 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5121 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5122 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 gcc_cv_prog_cmp_skip=slowcompare
5128 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5129 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5132 gcc_cv_prog_cmp_skip=gnucompare
5135 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5136 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5137 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5140 gcc_cv_prog_cmp_skip=fastcompare
5147 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5148 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5149 make_compare_target=$gcc_cv_prog_cmp_skip
5153 # See if we have the mktemp command.
5154 # Extract the first word of "mktemp", so it can be a program name with args.
5155 set dummy mktemp; ac_word=$2
5156 echo "$as_me:$LINENO: checking for $ac_word" >&5
5157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5158 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 if test -n "$have_mktemp_command"; then
5162 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_have_mktemp_command="yes"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5181 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5182 if test -n "$have_mktemp_command"; then
5183 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5184 echo "${ECHO_T}$have_mktemp_command" >&6
5186 echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6
5191 # Do we have a single-tree copy of texinfo?
5192 if test -f $srcdir/../texinfo/Makefile.in; then
5193 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5194 gcc_cv_prog_makeinfo_modern=yes
5195 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5196 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5198 # See if makeinfo has been installed and is modern enough
5199 # that we can use it.
5200 # Extract the first word of "makeinfo", so it can be a program name with args.
5201 set dummy makeinfo; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 if test -n "$MAKEINFO"; then
5208 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_MAKEINFO="makeinfo"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 MAKEINFO=$ac_cv_prog_MAKEINFO
5227 if test -n "$MAKEINFO"; then
5228 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5229 echo "${ECHO_T}$MAKEINFO" >&6
5231 echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6
5235 if test -n "$MAKEINFO"; then
5236 # Found it, now check the version.
5237 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5238 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5239 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 ac_prog_version=`$MAKEINFO --version 2>&1 |
5243 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5244 echo "configure:5244: version of makeinfo is $ac_prog_version" >&5
5245 case $ac_prog_version in
5246 '') gcc_cv_prog_makeinfo_modern=no;;
5248 gcc_cv_prog_makeinfo_modern=yes;;
5249 *) gcc_cv_prog_makeinfo_modern=no;;
5253 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5254 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5256 gcc_cv_prog_makeinfo_modern=no
5261 if test $gcc_cv_prog_makeinfo_modern = no; then
5262 { echo "$as_me:$LINENO: WARNING:
5263 *** Makeinfo is missing or too old.
5264 *** Info documentation will not be built." >&5
5265 echo "$as_me: WARNING:
5266 *** Makeinfo is missing or too old.
5267 *** Info documentation will not be built." >&2;}
5273 # Is pod2man recent enough to regenerate manpages?
5274 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5275 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5276 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5277 echo "$as_me:$LINENO: result: yes" >&5
5278 echo "${ECHO_T}yes" >&6
5279 GENERATED_MANPAGES=generated-manpages
5281 echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6
5287 if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
5288 FLEX='$(objdir)/../flex/flex'
5290 # Extract the first word of "flex", so it can be a program name with args.
5291 set dummy flex; ac_word=$2
5292 echo "$as_me:$LINENO: checking for $ac_word" >&5
5293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5294 if test "${ac_cv_prog_FLEX+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 if test -n "$FLEX"; then
5298 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_prog_FLEX="flex"
5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5317 FLEX=$ac_cv_prog_FLEX
5318 if test -n "$FLEX"; then
5319 echo "$as_me:$LINENO: result: $FLEX" >&5
5320 echo "${ECHO_T}$FLEX" >&6
5322 echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6
5329 # The -L switch is so bison can find its skeleton file.
5330 if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
5331 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5333 # Extract the first word of "bison", so it can be a program name with args.
5334 set dummy bison; ac_word=$2
5335 echo "$as_me:$LINENO: checking for $ac_word" >&5
5336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5337 if test "${ac_cv_prog_BISON+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 if test -n "$BISON"; then
5341 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_BISON="bison"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5360 BISON=$ac_cv_prog_BISON
5361 if test -n "$BISON"; then
5362 echo "$as_me:$LINENO: result: $BISON" >&5
5363 echo "${ECHO_T}$BISON" >&6
5365 echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6
5371 # --------------------
5372 # Checks for C headers
5373 # --------------------
5375 echo "$as_me:$LINENO: checking for GNU C library" >&5
5376 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5377 if test "${gcc_cv_glibc+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 cat >conftest.$ac_ext <<_ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #include <features.h>
5391 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5392 #error Not a GNU C library system
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest.$ac_objext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5431 echo "${ECHO_T}$gcc_cv_glibc" >&6
5432 if test $gcc_cv_glibc = yes; then
5434 cat >>confdefs.h <<\_ACEOF
5435 #define _GNU_SOURCE 1
5440 # Need to reject headers which give warnings, so that the -Werror bootstrap
5441 # works later. *sigh* This needs to come before all header checks.
5443 ac_c_preproc_warn_flag=yes
5445 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5446 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5447 if test "${ac_cv_header_stdc+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 cat >conftest.$ac_ext <<_ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>conftest.er1
5473 grep -v '^ *+' conftest.er1 >conftest.err
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_header_stdc=yes
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_cv_header_stdc=no
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 if test $ac_cv_header_stdc = yes; then
5501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5502 cat >conftest.$ac_ext <<_ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5512 $EGREP "memchr" >/dev/null 2>&1; then
5515 ac_cv_header_stdc=no
5521 if test $ac_cv_header_stdc = yes; then
5522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5523 cat >conftest.$ac_ext <<_ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533 $EGREP "free" >/dev/null 2>&1; then
5536 ac_cv_header_stdc=no
5542 if test $ac_cv_header_stdc = yes; then
5543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5544 if test "$cross_compiling" = yes; then
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5554 #if ((' ' & 0x0FF) == 0x020)
5555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5558 # define ISLOWER(c) \
5559 (('a' <= (c) && (c) <= 'i') \
5560 || ('j' <= (c) && (c) <= 'r') \
5561 || ('s' <= (c) && (c) <= 'z'))
5562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5570 for (i = 0; i < 256; i++)
5571 if (XOR (islower (i), ISLOWER (i))
5572 || toupper (i) != TOUPPER (i))
5577 rm -f conftest$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5590 echo "$as_me: program exited with status $ac_status" >&5
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5595 ac_cv_header_stdc=no
5597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5601 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5602 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5603 if test $ac_cv_header_stdc = yes; then
5605 cat >>confdefs.h <<\_ACEOF
5606 #define STDC_HEADERS 1
5611 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5612 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5613 if test "${ac_cv_header_time+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 cat >conftest.$ac_ext <<_ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <sys/types.h>
5623 #include <sys/time.h>
5629 if ((struct tm *) 0)
5635 rm -f conftest.$ac_objext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>conftest.er1
5639 grep -v '^ *+' conftest.er1 >conftest.err
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -z "$ac_c_werror_flag"
5645 || test ! -s conftest.err'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; } &&
5651 { ac_try='test -s conftest.$ac_objext'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; }; then
5657 ac_cv_header_time=yes
5659 echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5662 ac_cv_header_time=no
5664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5666 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5667 echo "${ECHO_T}$ac_cv_header_time" >&6
5668 if test $ac_cv_header_time = yes; then
5670 cat >>confdefs.h <<\_ACEOF
5671 #define TIME_WITH_SYS_TIME 1
5677 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5678 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5679 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 cat >conftest.$ac_ext <<_ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 #include <sys/types.h>
5689 #include <sys/wait.h>
5691 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5694 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5702 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } &&
5716 { ac_try='test -z "$ac_c_werror_flag"
5717 || test ! -s conftest.err'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; } &&
5723 { ac_try='test -s conftest.$ac_objext'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5729 ac_cv_header_sys_wait_h=yes
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5734 ac_cv_header_sys_wait_h=no
5736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5738 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5739 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5740 if test $ac_cv_header_sys_wait_h = yes; then
5742 cat >>confdefs.h <<\_ACEOF
5743 #define HAVE_SYS_WAIT_H 1
5769 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5770 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5771 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5772 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5775 echo "$as_me:$LINENO: checking for $ac_header" >&5
5776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 cat >conftest.$ac_ext <<_ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 #include <$ac_header>
5788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5791 grep -v '^ *+' conftest.er1 >conftest.err
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } >/dev/null; then
5796 if test -s conftest.err; then
5797 ac_cpp_err=$ac_c_preproc_warn_flag
5798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5805 if test -z "$ac_cpp_err"; then
5806 eval "$as_ac_Header=yes"
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 eval "$as_ac_Header=no"
5813 rm -f conftest.err conftest.$ac_ext
5815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5818 cat >>confdefs.h <<_ACEOF
5819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5826 # Check for thread headers.
5827 echo "$as_me:$LINENO: checking for thread.h" >&5
5828 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5829 if test "${ac_cv_header_thread_h+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 cat >conftest.$ac_ext <<_ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5843 grep -v '^ *+' conftest.er1 >conftest.err
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } >/dev/null; then
5848 if test -s conftest.err; then
5849 ac_cpp_err=$ac_c_preproc_warn_flag
5850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5857 if test -z "$ac_cpp_err"; then
5858 ac_cv_header_thread_h=yes
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 ac_cv_header_thread_h=no
5865 rm -f conftest.err conftest.$ac_ext
5867 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5868 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5869 if test $ac_cv_header_thread_h = yes; then
5875 echo "$as_me:$LINENO: checking for pthread.h" >&5
5876 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5877 if test "${ac_cv_header_pthread_h+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 #include <pthread.h>
5888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5891 grep -v '^ *+' conftest.er1 >conftest.err
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev/null; then
5896 if test -s conftest.err; then
5897 ac_cpp_err=$ac_c_preproc_warn_flag
5898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5905 if test -z "$ac_cpp_err"; then
5906 ac_cv_header_pthread_h=yes
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5911 ac_cv_header_pthread_h=no
5913 rm -f conftest.err conftest.$ac_ext
5915 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5916 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5917 if test $ac_cv_header_pthread_h = yes; then
5924 # These tests can't be done till we know if we have limits.h.
5925 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5926 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5927 if test "${gcc_cv_decl_char_bit+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #ifdef HAVE_LIMITS_H
5943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5944 $EGREP "found" >/dev/null 2>&1; then
5945 gcc_cv_decl_char_bit=yes
5947 gcc_cv_decl_char_bit=no
5953 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5954 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5955 if test $gcc_cv_decl_char_bit = no; then
5956 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5957 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5958 if test "${gcc_cv_c_nbby+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 while test $i -lt 65; do
5964 cat >conftest.$ac_ext <<_ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5975 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5976 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5982 rm -f conftest.$ac_objext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984 (eval $ac_compile) 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest.$ac_objext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 gcc_cv_c_nbby=$i; break
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6016 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6017 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6018 if test $gcc_cv_c_nbby = failed; then
6019 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6020 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6021 { (exit 1); exit 1; }; }
6024 cat >>confdefs.h <<_ACEOF
6025 #define CHAR_BIT $gcc_cv_c_nbby
6030 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6031 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6032 if test "${ac_cv_c_bigendian+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_cv_c_bigendian=unknown
6036 # See if sys/param.h defines the BYTE_ORDER macro.
6037 cat >conftest.$ac_ext <<_ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6043 #include <sys/types.h>
6044 #include <sys/param.h>
6049 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 # It does; now see whether it defined to BIG_ENDIAN or not.
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <sys/types.h>
6086 #include <sys/param.h>
6091 #if BYTE_ORDER != BIG_ENDIAN
6098 rm -f conftest.$ac_objext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100 (eval $ac_compile) 2>conftest.er1
6102 grep -v '^ *+' conftest.er1 >conftest.err
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -z "$ac_c_werror_flag"
6108 || test ! -s conftest.err'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest.$ac_objext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_c_bigendian=yes
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_cv_c_bigendian=no
6127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6134 if test $ac_cv_c_bigendian = unknown; then
6135 if test "$cross_compiling" = yes; then
6136 echo $ac_n "cross-compiling... " 2>&6
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6145 /* Are we little or big endian? From Harbison&Steele. */
6149 char c[sizeof (long)];
6152 exit (u.c[sizeof (long) - 1] == 1);
6155 rm -f conftest$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157 (eval $ac_link) 2>&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_c_bigendian=no
6168 echo "$as_me: program exited with status $ac_status" >&5
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_cv_c_bigendian=yes
6175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6179 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6180 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6181 if test $ac_cv_c_bigendian = unknown; then
6182 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6183 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6185 cat >conftest.c <<EOF
6186 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6187 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6188 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6189 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6190 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6191 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6192 int main() { _ascii (); _ebcdic (); return 0; }
6194 if test -f conftest.c ; then
6195 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6196 if test `grep -l BIGenDianSyS conftest.o` ; then
6197 echo $ac_n ' big endian probe OK, ' 1>&6
6198 ac_cv_c_bigendian=yes
6200 if test `grep -l LiTTleEnDian conftest.o` ; then
6201 echo $ac_n ' little endian probe OK, ' 1>&6
6202 if test $ac_cv_c_bigendian = yes ; then
6203 ac_cv_c_bigendian=unknown;
6205 ac_cv_c_bigendian=no
6208 echo $ac_n 'guessing bigendian ... ' >&6
6211 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6212 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6214 if test $ac_cv_c_bigendian = yes; then
6216 cat >>confdefs.h <<\_ACEOF
6217 #define WORDS_BIGENDIAN 1
6221 cat >>confdefs.h <<\_ACEOF
6222 #define HOST_WORDS_BIG_ENDIAN 1
6230 cat >>confdefs.h <<_ACEOF
6231 #define BYTEORDER $BYTEORDER
6234 if test $ac_cv_c_bigendian = unknown; then
6235 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6236 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6237 { (exit 1); exit 1; }; }
6245 # Stage specific cflags for build.
6249 if test x$GCC = xyes
6251 stage1_cflags="-Wa,-J"
6257 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6258 # sources; use -no-cpp-precomp to get to GNU cpp.
6259 # Apple's GCC has bugs in designated initializer handling, so disable
6261 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6266 # These libraries may be used by collect2.
6267 # We may need a special search path to get them linked.
6268 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6269 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6270 if test "${gcc_cv_collect2_libs+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 for libs in '' -lld -lmld \
6275 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6276 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6279 cat >conftest.$ac_ext <<_ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6286 /* Override any gcc2 internal prototype to avoid an error. */
6290 /* We use char because int might match the return type of a gcc2
6291 builtin and then its argument prototype would still apply. */
6301 rm -f conftest.$ac_objext conftest$ac_exeext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6303 (eval $ac_link) 2>conftest.er1
6305 grep -v '^ *+' conftest.er1 >conftest.err
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -z "$ac_c_werror_flag"
6311 || test ! -s conftest.err'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest$ac_exeext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 gcc_cv_collect2_libs="$libs"; break
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6329 rm -f conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext conftest.$ac_ext
6333 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6335 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6336 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6337 case $gcc_cv_collect2_libs in
6339 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6343 # When building Ada code on Alpha, we need exc_resume which is usually in
6344 # -lexc. So test for it.
6347 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6348 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6349 if test "${ac_cv_search_exc_resume+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 ac_func_search_save_LIBS=$LIBS
6353 ac_cv_search_exc_resume=no
6354 cat >conftest.$ac_ext <<_ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6361 /* Override any gcc2 internal prototype to avoid an error. */
6365 /* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378 (eval $ac_link) 2>conftest.er1
6380 grep -v '^ *+' conftest.er1 >conftest.err
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest$ac_exeext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_cv_search_exc_resume="none required"
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6404 rm -f conftest.err conftest.$ac_objext \
6405 conftest$ac_exeext conftest.$ac_ext
6406 if test "$ac_cv_search_exc_resume" = no; then
6407 for ac_lib in exc; do
6408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6409 cat >conftest.$ac_ext <<_ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6416 /* Override any gcc2 internal prototype to avoid an error. */
6420 /* We use char because int might match the return type of a gcc2
6421 builtin and then its argument prototype would still apply. */
6431 rm -f conftest.$ac_objext conftest$ac_exeext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433 (eval $ac_link) 2>conftest.er1
6435 grep -v '^ *+' conftest.er1 >conftest.err
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_c_werror_flag"
6441 || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest$ac_exeext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 ac_cv_search_exc_resume="-l$ac_lib"
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6460 rm -f conftest.err conftest.$ac_objext \
6461 conftest$ac_exeext conftest.$ac_ext
6464 LIBS=$ac_func_search_save_LIBS
6466 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6467 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6468 if test "$ac_cv_search_exc_resume" != no; then
6469 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6477 # Some systems put ldexp and frexp in libm instead of libc; assume
6478 # they're both in the same place. jcf-dump needs them.
6481 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6482 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6483 if test "${ac_cv_search_ldexp+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 ac_func_search_save_LIBS=$LIBS
6487 ac_cv_search_ldexp=no
6488 cat >conftest.$ac_ext <<_ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6495 /* Override any gcc2 internal prototype to avoid an error. */
6499 /* We use char because int might match the return type of a gcc2
6500 builtin and then its argument prototype would still apply. */
6510 rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6512 (eval $ac_link) 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } &&
6519 { ac_try='test -z "$ac_c_werror_flag"
6520 || test ! -s conftest.err'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; } &&
6526 { ac_try='test -s conftest$ac_exeext'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 ac_cv_search_ldexp="none required"
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6538 rm -f conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540 if test "$ac_cv_search_ldexp" = no; then
6542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6543 cat >conftest.$ac_ext <<_ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6550 /* Override any gcc2 internal prototype to avoid an error. */
6554 /* We use char because int might match the return type of a gcc2
6555 builtin and then its argument prototype would still apply. */
6565 rm -f conftest.$ac_objext conftest$ac_exeext
6566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6567 (eval $ac_link) 2>conftest.er1
6569 grep -v '^ *+' conftest.er1 >conftest.err
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try='test -z "$ac_c_werror_flag"
6575 || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest$ac_exeext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 ac_cv_search_ldexp="-l$ac_lib"
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6594 rm -f conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6598 LIBS=$ac_func_search_save_LIBS
6600 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6601 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6602 if test "$ac_cv_search_ldexp" != no; then
6603 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6611 # Use <inttypes.h> only if it exists,
6612 # doesn't clash with <sys/types.h>, and declares intmax_t.
6613 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6614 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6615 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 cat >conftest.$ac_ext <<_ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 #include <sys/types.h>
6625 #include <inttypes.h>
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 gcc_cv_header_inttypes_h=yes
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 gcc_cv_header_inttypes_h=no
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6666 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6667 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6668 if test $gcc_cv_header_inttypes_h = yes; then
6670 cat >>confdefs.h <<\_ACEOF
6671 #define HAVE_INTTYPES_H 1
6702 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6703 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6704 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6705 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6709 echo "$as_me:$LINENO: checking for $ac_func" >&5
6710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6711 if eval "test \"\${$as_ac_var+set}\" = set"; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 cat >conftest.$ac_ext <<_ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6722 #define $ac_func innocuous_$ac_func
6724 /* System header to define __stub macros and hopefully few prototypes,
6725 which can conflict with char $ac_func (); below.
6726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6727 <limits.h> exists even on freestanding compilers. */
6730 # include <limits.h>
6732 # include <assert.h>
6737 /* Override any gcc2 internal prototype to avoid an error. */
6742 /* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */
6745 /* The GNU C library defines this for functions which it implements
6746 to always fail with ENOSYS. Some functions are actually named
6747 something starting with __ and the normal name is an alias. */
6748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6751 char (*f) () = $ac_func;
6760 return f != $ac_func;
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>conftest.er1
6769 grep -v '^ *+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 eval "$as_ac_var=yes"
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 eval "$as_ac_var=no"
6794 rm -f conftest.err conftest.$ac_objext \
6795 conftest$ac_exeext conftest.$ac_ext
6797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6799 if test `eval echo '${'$as_ac_var'}'` = yes; then
6800 cat >>confdefs.h <<_ACEOF
6801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6808 if test x$ac_cv_func_mbstowcs = xyes; then
6809 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6810 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6811 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 if test "$cross_compiling" = yes; then
6815 gcc_cv_func_mbstowcs_works=yes
6817 cat >conftest.$ac_ext <<_ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6830 rm -f conftest$ac_exeext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832 (eval $ac_link) 2>&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 gcc_cv_func_mbstowcs_works=yes
6843 echo "$as_me: program exited with status $ac_status" >&5
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6848 gcc_cv_func_mbstowcs_works=no
6850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6853 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6854 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6855 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6857 cat >>confdefs.h <<\_ACEOF
6858 #define HAVE_WORKING_MBSTOWCS 1
6864 echo "$as_me:$LINENO: checking for ssize_t" >&5
6865 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6866 if test "${ac_cv_type_ssize_t+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 cat >conftest.$ac_ext <<_ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 $ac_includes_default
6881 if (sizeof (ssize_t))
6887 rm -f conftest.$ac_objext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>conftest.er1
6891 grep -v '^ *+' conftest.er1 >conftest.err
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_cv_type_ssize_t=yes
6911 echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6914 ac_cv_type_ssize_t=no
6916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6918 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6919 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6920 if test $ac_cv_type_ssize_t = yes; then
6924 cat >>confdefs.h <<_ACEOF
6931 # Try to determine the array type of the second argument of getgroups
6932 # for the target system (int or gid_t).
6933 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6934 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6935 if test "${ac_cv_type_uid_t+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 cat >conftest.$ac_ext <<_ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 #include <sys/types.h>
6947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6948 $EGREP "uid_t" >/dev/null 2>&1; then
6949 ac_cv_type_uid_t=yes
6956 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6957 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6958 if test $ac_cv_type_uid_t = no; then
6960 cat >>confdefs.h <<\_ACEOF
6965 cat >>confdefs.h <<\_ACEOF
6971 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6972 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6973 if test "${ac_cv_type_getgroups+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 if test "$cross_compiling" = yes; then
6977 ac_cv_type_getgroups=cross
6979 cat >conftest.$ac_ext <<_ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6985 /* Thanks to Mike Rendell for this test. */
6986 #include <sys/types.h>
6989 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6996 union { gid_t gval; long lval; } val;
6999 for (i = 0; i < NGID; i++)
7000 gidset[i] = val.gval;
7001 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7003 /* Exit non-zero if getgroups seems to require an array of ints. This
7004 happens when gid_t is short but getgroups modifies an array of ints. */
7005 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7008 rm -f conftest$ac_exeext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010 (eval $ac_link) 2>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_type_getgroups=gid_t
7021 echo "$as_me: program exited with status $ac_status" >&5
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7026 ac_cv_type_getgroups=int
7028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7030 if test $ac_cv_type_getgroups = cross; then
7031 cat >conftest.$ac_ext <<_ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7042 ac_cv_type_getgroups=gid_t
7044 ac_cv_type_getgroups=int
7050 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7051 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7053 cat >>confdefs.h <<_ACEOF
7054 #define GETGROUPS_T $ac_cv_type_getgroups
7058 if test "${target}" = "${build}"; then
7059 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7062 # This condition may need some tweaking. It should include all
7063 # targets where the array type of the second argument of getgroups
7064 # is int and the type of gid_t is not equivalent to int.
7065 *-*-sunos* | *-*-ultrix*)
7066 TARGET_GETGROUPS_T=int
7069 TARGET_GETGROUPS_T=gid_t
7075 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7076 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7077 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 if test "$cross_compiling" = yes; then
7081 gcc_cv_func_printf_ptr=no
7083 cat >conftest.$ac_ext <<_ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7094 char *p = buf, *q = NULL;
7095 sprintf(buf, "%p", p);
7096 sscanf(buf, "%p", &q);
7100 rm -f conftest$ac_exeext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7102 (eval $ac_link) 2>&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 gcc_cv_func_printf_ptr=yes
7113 echo "$as_me: program exited with status $ac_status" >&5
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7118 gcc_cv_func_printf_ptr=no
7120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7122 rm -f core core.* *.core
7124 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7125 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7126 if test $gcc_cv_func_printf_ptr = yes ; then
7128 cat >>confdefs.h <<\_ACEOF
7129 #define HAVE_PRINTF_PTR 1
7134 if test $ac_cv_header_sys_mman_h != yes \
7135 || test $ac_cv_func_mmap != yes; then
7136 gcc_cv_func_mmap_file=no
7137 gcc_cv_func_mmap_dev_zero=no
7138 gcc_cv_func_mmap_anon=no
7140 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7141 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7142 if test "${gcc_cv_func_mmap_file+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 # Add a system to this blacklist if
7146 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7147 # memory area containing the same data that you'd get if you applied
7148 # read() to the same fd. The only system known to have a problem here
7149 # is VMS, where text files have record structure.
7152 gcc_cv_func_mmap_file=no ;;
7154 gcc_cv_func_mmap_file=yes;;
7157 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7158 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7159 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7160 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7161 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 # Add a system to this blacklist if it has mmap() but /dev/zero
7165 # does not exist, or if mmapping /dev/zero does not give anonymous
7166 # zeroed pages with both the following properties:
7167 # 1. If you map N consecutive pages in with one call, and then
7168 # unmap any subset of those pages, the pages that were not
7169 # explicitly unmapped remain accessible.
7170 # 2. If you map two adjacent blocks of memory and then unmap them
7171 # both at once, they must both go away.
7172 # Systems known to be in this category are Windows (all variants),
7175 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7176 gcc_cv_func_mmap_dev_zero=no ;;
7178 gcc_cv_func_mmap_dev_zero=yes;;
7181 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7182 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7184 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7185 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7186 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7187 if test "${gcc_cv_decl_map_anon+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7196 #include <sys/types.h>
7197 #include <sys/mman.h>
7200 #ifndef MAP_ANONYMOUS
7201 #define MAP_ANONYMOUS MAP_ANON
7207 int n = MAP_ANONYMOUS;
7212 rm -f conftest.$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214 (eval $ac_compile) 2>conftest.er1
7216 grep -v '^ *+' conftest.er1 >conftest.err
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try='test -z "$ac_c_werror_flag"
7222 || test ! -s conftest.err'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; } &&
7228 { ac_try='test -s conftest.$ac_objext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 gcc_cv_decl_map_anon=yes
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 gcc_cv_decl_map_anon=no
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7244 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7246 if test $gcc_cv_decl_map_anon = no; then
7247 gcc_cv_func_mmap_anon=no
7249 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7250 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7251 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7255 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7256 # doesn't give anonymous zeroed pages with the same properties listed
7257 # above for use of /dev/zero.
7258 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7260 vms* | cygwin* | pe | mingw* | sco* | udk* )
7261 gcc_cv_func_mmap_anon=no ;;
7263 gcc_cv_func_mmap_anon=yes;;
7266 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7267 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7271 if test $gcc_cv_func_mmap_file = yes; then
7273 cat >>confdefs.h <<\_ACEOF
7274 #define HAVE_MMAP_FILE 1
7278 if test $gcc_cv_func_mmap_dev_zero = yes; then
7280 cat >>confdefs.h <<\_ACEOF
7281 #define HAVE_MMAP_DEV_ZERO 1
7285 if test $gcc_cv_func_mmap_anon = yes; then
7287 cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_MMAP_ANON 1
7296 # Under VMS, vfork works very differently than on Unix. The standard test
7297 # won't work, and it isn't easily adaptable. It makes more sense to
7299 ac_cv_func_vfork_works=yes
7302 echo "$as_me:$LINENO: checking for pid_t" >&5
7303 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7304 if test "${ac_cv_type_pid_t+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 cat >conftest.$ac_ext <<_ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7313 $ac_includes_default
7325 rm -f conftest.$ac_objext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327 (eval $ac_compile) 2>conftest.er1
7329 grep -v '^ *+' conftest.er1 >conftest.err
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } &&
7334 { ac_try='test -z "$ac_c_werror_flag"
7335 || test ! -s conftest.err'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; } &&
7341 { ac_try='test -s conftest.$ac_objext'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 ac_cv_type_pid_t=yes
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7356 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7357 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7358 if test $ac_cv_type_pid_t = yes; then
7362 cat >>confdefs.h <<_ACEOF
7370 for ac_header in unistd.h vfork.h
7372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7373 echo "$as_me:$LINENO: checking for $ac_header" >&5
7374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 cat >conftest.$ac_ext <<_ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #include <$ac_header>
7386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7389 grep -v '^ *+' conftest.er1 >conftest.err
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } >/dev/null; then
7394 if test -s conftest.err; then
7395 ac_cpp_err=$ac_c_preproc_warn_flag
7396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7403 if test -z "$ac_cpp_err"; then
7404 eval "$as_ac_Header=yes"
7406 echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7409 eval "$as_ac_Header=no"
7411 rm -f conftest.err conftest.$ac_ext
7413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7416 cat >>confdefs.h <<_ACEOF
7417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7425 for ac_func in fork vfork
7427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7428 echo "$as_me:$LINENO: checking for $ac_func" >&5
7429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7430 if eval "test \"\${$as_ac_var+set}\" = set"; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 cat >conftest.$ac_ext <<_ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7441 #define $ac_func innocuous_$ac_func
7443 /* System header to define __stub macros and hopefully few prototypes,
7444 which can conflict with char $ac_func (); below.
7445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7446 <limits.h> exists even on freestanding compilers. */
7449 # include <limits.h>
7451 # include <assert.h>
7456 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7464 /* The GNU C library defines this for functions which it implements
7465 to always fail with ENOSYS. Some functions are actually named
7466 something starting with __ and the normal name is an alias. */
7467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7470 char (*f) () = $ac_func;
7479 return f != $ac_func;
7484 rm -f conftest.$ac_objext conftest$ac_exeext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7486 (eval $ac_link) 2>conftest.er1
7488 grep -v '^ *+' conftest.er1 >conftest.err
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } &&
7493 { ac_try='test -z "$ac_c_werror_flag"
7494 || test ! -s conftest.err'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; } &&
7500 { ac_try='test -s conftest$ac_exeext'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; }; then
7506 eval "$as_ac_var=yes"
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7511 eval "$as_ac_var=no"
7513 rm -f conftest.err conftest.$ac_objext \
7514 conftest$ac_exeext conftest.$ac_ext
7516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7518 if test `eval echo '${'$as_ac_var'}'` = yes; then
7519 cat >>confdefs.h <<_ACEOF
7520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7526 if test "x$ac_cv_func_fork" = xyes; then
7527 echo "$as_me:$LINENO: checking for working fork" >&5
7528 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7529 if test "${ac_cv_func_fork_works+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 if test "$cross_compiling" = yes; then
7533 ac_cv_func_fork_works=cross
7535 cat >conftest.$ac_ext <<_ACEOF
7536 /* By Ruediger Kuhlmann. */
7537 #include <sys/types.h>
7539 # include <unistd.h>
7541 /* Some systems only have a dummy stub for fork() */
7549 rm -f conftest$ac_exeext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551 (eval $ac_link) 2>&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_cv_func_fork_works=yes
7562 echo "$as_me: program exited with status $ac_status" >&5
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7567 ac_cv_func_fork_works=no
7569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7572 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7573 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7576 ac_cv_func_fork_works=$ac_cv_func_fork
7578 if test "x$ac_cv_func_fork_works" = xcross; then
7580 *-*-amigaos* | *-*-msdosdjgpp*)
7581 # Override, as these systems have only a dummy fork() stub
7582 ac_cv_func_fork_works=no
7585 ac_cv_func_fork_works=yes
7588 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7589 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7591 ac_cv_func_vfork_works=$ac_cv_func_vfork
7592 if test "x$ac_cv_func_vfork" = xyes; then
7593 echo "$as_me:$LINENO: checking for working vfork" >&5
7594 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7595 if test "${ac_cv_func_vfork_works+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 if test "$cross_compiling" = yes; then
7599 ac_cv_func_vfork_works=cross
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 /* Thanks to Paul Eggert for this test. */
7610 #include <sys/types.h>
7611 #include <sys/stat.h>
7612 #include <sys/wait.h>
7614 # include <unistd.h>
7619 /* On some sparc systems, changes by the child to local and incoming
7620 argument registers are propagated back to the parent. The compiler
7621 is told about this with #include <vfork.h>, but some compilers
7622 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7623 static variable whose address is put into a register that is
7624 clobbered by the vfork. */
7627 sparc_address_test (int arg)
7629 sparc_address_test (arg) int arg;
7650 pid_t parent = getpid ();
7653 sparc_address_test (0);
7658 /* Here is another test for sparc vfork register problems. This
7659 test uses lots of local variables, at least as many local
7660 variables as main has allocated so far including compiler
7661 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7662 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7663 reuse the register of parent for one of the local variables,
7664 since it will think that parent can't possibly be used any more
7665 in this routine. Assigning to the local variable will thus
7666 munge parent in the parent process. */
7668 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7669 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7670 /* Convince the compiler that p..p7 are live; otherwise, it might
7671 use the same hardware register for all 8 local variables. */
7672 if (p != p1 || p != p2 || p != p3 || p != p4
7673 || p != p5 || p != p6 || p != p7)
7676 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7677 from child file descriptors. If the child closes a descriptor
7678 before it execs or exits, this munges the parent's descriptor
7679 as well. Test for this by closing stdout in the child. */
7680 _exit(close(fileno(stdout)) != 0);
7685 while (wait(&status) != child)
7688 /* Was there some problem with vforking? */
7691 /* Did the child fail? (This shouldn't happen.) */
7694 /* Did the vfork/compiler bug occur? */
7695 || parent != getpid()
7697 /* Did the file descriptor bug occur? */
7698 || fstat(fileno(stdout), &st) != 0
7703 rm -f conftest$ac_exeext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705 (eval $ac_link) 2>&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 ac_cv_func_vfork_works=yes
7716 echo "$as_me: program exited with status $ac_status" >&5
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7721 ac_cv_func_vfork_works=no
7723 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7726 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7727 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7730 if test "x$ac_cv_func_fork_works" = xcross; then
7731 ac_cv_func_vfork_works=$ac_cv_func_vfork
7732 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7733 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7736 if test "x$ac_cv_func_vfork_works" = xyes; then
7738 cat >>confdefs.h <<\_ACEOF
7739 #define HAVE_WORKING_VFORK 1
7744 cat >>confdefs.h <<\_ACEOF
7749 if test "x$ac_cv_func_fork_works" = xyes; then
7751 cat >>confdefs.h <<\_ACEOF
7752 #define HAVE_WORKING_FORK 1
7760 am_cv_lib_iconv_ldpath=
7762 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7763 if test "${with_libiconv_prefix+set}" = set; then
7764 withval="$with_libiconv_prefix"
7766 for dir in `echo "$withval" | tr : ' '`; do
7767 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7768 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7774 for ac_header in iconv.h
7776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 cat >conftest.$ac_ext <<_ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 #include <$ac_header>
7790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7793 grep -v '^ *+' conftest.er1 >conftest.err
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } >/dev/null; then
7798 if test -s conftest.err; then
7799 ac_cpp_err=$ac_c_preproc_warn_flag
7800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7807 if test -z "$ac_cpp_err"; then
7808 eval "$as_ac_Header=yes"
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 eval "$as_ac_Header=no"
7815 rm -f conftest.err conftest.$ac_ext
7817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7820 cat >>confdefs.h <<_ACEOF
7821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7828 echo "$as_me:$LINENO: checking for iconv" >&5
7829 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7830 if test "${am_cv_func_iconv+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 am_cv_func_iconv="no, consider installing GNU libiconv"
7836 cat >conftest.$ac_ext <<_ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7847 iconv_t cd = iconv_open("","");
7848 iconv(cd,NULL,NULL,NULL,NULL);
7854 rm -f conftest.$ac_objext conftest$ac_exeext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7856 (eval $ac_link) 2>conftest.er1
7858 grep -v '^ *+' conftest.er1 >conftest.err
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } &&
7863 { ac_try='test -z "$ac_c_werror_flag"
7864 || test ! -s conftest.err'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; } &&
7870 { ac_try='test -s conftest$ac_exeext'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 am_cv_func_iconv=yes
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7882 rm -f conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 if test "$am_cv_func_iconv" != yes; then
7885 am_save_LIBS="$LIBS"
7886 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7887 cat >conftest.$ac_ext <<_ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7898 iconv_t cd = iconv_open("","");
7899 iconv(cd,NULL,NULL,NULL,NULL);
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>conftest.er1
7909 grep -v '^ *+' conftest.er1 >conftest.err
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_c_werror_flag"
7915 || test ! -s conftest.err'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7928 am_cv_func_iconv=yes
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7934 rm -f conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 LIBS="$am_save_LIBS"
7940 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7941 echo "${ECHO_T}$am_cv_func_iconv" >&6
7942 if test "$am_cv_func_iconv" = yes; then
7944 cat >>confdefs.h <<\_ACEOF
7945 #define HAVE_ICONV 1
7948 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7949 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7950 if test "${am_cv_proto_iconv+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7967 #if defined(__STDC__) || defined(__cplusplus)
7968 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983 (eval $ac_compile) 2>conftest.er1
7985 grep -v '^ *+' conftest.er1 >conftest.err
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -z "$ac_c_werror_flag"
7991 || test ! -s conftest.err'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest.$ac_objext'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8003 am_cv_proto_iconv_arg1=""
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 am_cv_proto_iconv_arg1="const"
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011 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);"
8014 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8015 echo "$as_me:$LINENO: result: ${ac_t:-
8016 }$am_cv_proto_iconv" >&5
8017 echo "${ECHO_T}${ac_t:-
8018 }$am_cv_proto_iconv" >&6
8020 cat >>confdefs.h <<_ACEOF
8021 #define ICONV_CONST $am_cv_proto_iconv_arg1
8026 if test "$am_cv_lib_iconv" = yes; then
8027 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8031 # Until we have in-tree GNU iconv:
8036 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8037 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8038 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>conftest.er1
8060 grep -v '^ *+' conftest.er1 >conftest.err
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 am_cv_val_LC_MESSAGES=yes
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 am_cv_val_LC_MESSAGES=no
8085 rm -f conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8088 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8089 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8090 if test $am_cv_val_LC_MESSAGES = yes; then
8092 cat >>confdefs.h <<\_ACEOF
8093 #define HAVE_LC_MESSAGES 1
8099 # We will need to find libiberty.h and ansidecl.h
8100 saved_CFLAGS="$CFLAGS"
8101 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8125 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8126 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8127 fprintf_unlocked strstr errno snprintf vasprintf \
8128 malloc realloc calloc free basename getopt clock
8130 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8131 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8132 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8133 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8143 #define $ac_tr_decl 1
8145 #include "ansidecl.h"
8152 char *(*pfn) = (char *(*)) $ac_func ;
8158 rm -f conftest.$ac_objext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8160 (eval $ac_compile) 2>conftest.er1
8162 grep -v '^ *+' conftest.er1 >conftest.err
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try='test -z "$ac_c_werror_flag"
8168 || test ! -s conftest.err'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; } &&
8174 { ac_try='test -s conftest.$ac_objext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 eval "gcc_cv_have_decl_$ac_func=yes"
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8185 eval "gcc_cv_have_decl_$ac_func=no"
8187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8190 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8191 echo "$as_me:$LINENO: result: yes" >&5
8192 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8193 #define $ac_tr_decl 1
8197 echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8199 #define $ac_tr_decl 0
8210 for ac_func in getrlimit setrlimit getrusage
8212 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8213 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8214 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8215 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 cat >conftest.$ac_ext <<_ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8225 #define $ac_tr_decl 1
8227 #include "ansidecl.h"
8229 #ifdef HAVE_SYS_RESOURCE_H
8230 #include <sys/resource.h>
8238 char *(*pfn) = (char *(*)) $ac_func ;
8244 rm -f conftest.$ac_objext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8246 (eval $ac_compile) 2>conftest.er1
8248 grep -v '^ *+' conftest.er1 >conftest.err
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -z "$ac_c_werror_flag"
8254 || test ! -s conftest.err'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try='test -s conftest.$ac_objext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 eval "gcc_cv_have_decl_$ac_func=yes"
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 eval "gcc_cv_have_decl_$ac_func=no"
8273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8276 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8277 echo "$as_me:$LINENO: result: yes" >&5
8278 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8279 #define $ac_tr_decl 1
8283 echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8285 #define $ac_tr_decl 0
8293 cat >conftest.$ac_ext <<_ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8300 #include "ansidecl.h"
8302 #ifdef HAVE_SYS_RESOURCE_H
8303 #include <sys/resource.h>
8314 rm -f conftest.$ac_objext
8315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8316 (eval $ac_compile) 2>conftest.er1
8318 grep -v '^ *+' conftest.er1 >conftest.err
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -z "$ac_c_werror_flag"
8324 || test ! -s conftest.err'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; } &&
8330 { ac_try='test -s conftest.$ac_objext'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8342 cat >>confdefs.h <<\_ACEOF
8347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8350 for ac_func in ldgetname
8352 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8353 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8354 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8355 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 cat >conftest.$ac_ext <<_ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8365 #define $ac_tr_decl 1
8367 #include "ansidecl.h"
8378 char *(*pfn) = (char *(*)) $ac_func ;
8384 rm -f conftest.$ac_objext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8386 (eval $ac_compile) 2>conftest.er1
8388 grep -v '^ *+' conftest.er1 >conftest.err
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -z "$ac_c_werror_flag"
8394 || test ! -s conftest.err'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest.$ac_objext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 eval "gcc_cv_have_decl_$ac_func=yes"
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 eval "gcc_cv_have_decl_$ac_func=no"
8413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8416 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8417 echo "$as_me:$LINENO: result: yes" >&5
8418 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8419 #define $ac_tr_decl 1
8423 echo "$as_me:$LINENO: result: no" >&5
8424 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8425 #define $ac_tr_decl 0
8434 for ac_func in times
8436 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8437 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8438 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8439 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 cat >conftest.$ac_ext <<_ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8449 #define $ac_tr_decl 1
8451 #include "ansidecl.h"
8453 #ifdef HAVE_SYS_TIMES_H
8454 #include <sys/times.h>
8462 char *(*pfn) = (char *(*)) $ac_func ;
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -z "$ac_c_werror_flag"
8478 || test ! -s conftest.err'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest.$ac_objext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 eval "gcc_cv_have_decl_$ac_func=yes"
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 eval "gcc_cv_have_decl_$ac_func=no"
8497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8500 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8501 echo "$as_me:$LINENO: result: yes" >&5
8502 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8503 #define $ac_tr_decl 1
8507 echo "$as_me:$LINENO: result: no" >&5
8508 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8509 #define $ac_tr_decl 0
8517 # More time-related stuff.
8518 echo "$as_me:$LINENO: checking for struct tms" >&5
8519 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8520 if test "${ac_cv_struct_tms+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 cat >conftest.$ac_ext <<_ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8531 #include "ansidecl.h"
8533 #ifdef HAVE_SYS_TIMES_H
8534 #include <sys/times.h>
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>conftest.er1
8549 grep -v '^ *+' conftest.er1 >conftest.err
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag"
8555 || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_struct_tms=yes
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8576 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8577 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8578 if test $ac_cv_struct_tms = yes; then
8580 cat >>confdefs.h <<\_ACEOF
8581 #define HAVE_STRUCT_TMS 1
8586 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8587 # revisit after autoconf 2.50.
8588 echo "$as_me:$LINENO: checking for clock_t" >&5
8589 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8590 if test "${gcc_cv_type_clock_t+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 cat >conftest.$ac_ext <<_ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8601 #include "ansidecl.h"
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag"
8622 || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 gcc_cv_type_clock_t=yes
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8639 gcc_cv_type_clock_t=no
8641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8643 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8644 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8645 if test $gcc_cv_type_clock_t = yes; then
8647 cat >>confdefs.h <<\_ACEOF
8648 #define HAVE_CLOCK_T 1
8653 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8654 CFLAGS="$saved_CFLAGS"
8656 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8657 if test "${enable_initfini_array+set}" = set; then
8658 enableval="$enable_initfini_array"
8662 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8663 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8664 if test "${gcc_cv_initfini_array+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 if test "$cross_compiling" = yes; then
8668 gcc_cv_initfini_array=no
8670 cat >conftest.$ac_ext <<_ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8678 int main (void) { return x; }
8679 int foo (void) { x = 0; }
8680 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8682 rm -f conftest$ac_exeext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684 (eval $ac_link) 2>&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 gcc_cv_initfini_array=yes
8695 echo "$as_me: program exited with status $ac_status" >&5
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8700 gcc_cv_initfini_array=no
8702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8705 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8706 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8707 enable_initfini_array=$gcc_cv_initfini_array
8710 if test $enable_initfini_array = yes; then
8712 cat >>confdefs.h <<\_ACEOF
8713 #define HAVE_INITFINI_ARRAY 1
8718 # mkdir takes a single argument on some systems.
8719 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8720 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8721 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8731 #include <sys/types.h>
8732 #ifdef HAVE_SYS_STAT_H
8733 # include <sys/stat.h>
8735 #ifdef HAVE_UNISTD_H
8736 # include <unistd.h>
8738 #ifdef HAVE_DIRECT_H
8739 # include <direct.h>
8749 rm -f conftest.$ac_objext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8751 (eval $ac_compile) 2>conftest.er1
8753 grep -v '^ *+' conftest.er1 >conftest.err
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag"
8759 || test ! -s conftest.err'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest.$ac_objext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 gcc_cv_mkdir_takes_one_arg=no
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 gcc_cv_mkdir_takes_one_arg=yes
8778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8780 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8781 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8782 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8784 cat >>confdefs.h <<\_ACEOF
8785 #define MKDIR_TAKES_ONE_ARG 1
8797 # With Setjmp/Longjmp based exception handling.
8798 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8799 if test "${enable_sjlj_exceptions+set}" = set; then
8800 enableval="$enable_sjlj_exceptions"
8801 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8803 cat >>confdefs.h <<_ACEOF
8804 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8809 if test x$host = x$target; then
8810 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8811 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8812 if test "${ac_cv_lib_unwind_main+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 ac_check_lib_save_LIBS=$LIBS
8816 LIBS="-lunwind $LIBS"
8817 cat >conftest.$ac_ext <<_ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8833 rm -f conftest.$ac_objext conftest$ac_exeext
8834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835 (eval $ac_link) 2>conftest.er1
8837 grep -v '^ *+' conftest.er1 >conftest.err
8839 cat conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } &&
8842 { ac_try='test -z "$ac_c_werror_flag"
8843 || test ! -s conftest.err'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; } &&
8849 { ac_try='test -s conftest$ac_exeext'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_cv_lib_unwind_main=yes
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8860 ac_cv_lib_unwind_main=no
8862 rm -f conftest.err conftest.$ac_objext \
8863 conftest$ac_exeext conftest.$ac_ext
8864 LIBS=$ac_check_lib_save_LIBS
8866 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8867 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8868 if test $ac_cv_lib_unwind_main = yes; then
8869 use_libunwind_default=yes
8871 use_libunwind_default=no
8875 use_libunwind_default=no
8877 # Use libunwind based exception handling.
8878 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8879 if test "${enable_libunwind_exceptions+set}" = set; then
8880 enableval="$enable_libunwind_exceptions"
8881 use_libunwind_exceptions=$enableval
8883 use_libunwind_exceptions=$use_libunwind_default
8885 if test x"$use_libunwind_exceptions" = xyes; then
8887 cat >>confdefs.h <<\_ACEOF
8888 #define USE_LIBUNWIND_EXCEPTIONS 1
8893 # --------------------------------------------------------
8894 # Build, host, and target specific configuration fragments
8895 # --------------------------------------------------------
8897 # Collect build-machine-specific information.
8898 . ${srcdir}/config.build
8900 # Collect host-machine-specific information.
8901 . ${srcdir}/config.host
8905 # Collect target-machine-specific information.
8906 . ${srcdir}/config.gcc
8908 extra_objs="${host_extra_objs} ${extra_objs}"
8909 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
8911 # Default the target-machine variables that were not explicitly set.
8912 if test x"$tm_file" = x
8913 then tm_file=$cpu_type/$cpu_type.h; fi
8915 if test x"$extra_headers" = x
8916 then extra_headers=; fi
8918 if test x$md_file = x
8919 then md_file=$cpu_type/$cpu_type.md; fi
8921 if test x$out_file = x
8922 then out_file=$cpu_type/$cpu_type.c; fi
8924 if test x"$tmake_file" = x
8925 then tmake_file=$cpu_type/t-$cpu_type
8928 if test x"$dwarf2" = xyes
8929 then tm_file="$tm_file tm-dwarf2.h"
8932 # Say what files are being used for the output code and MD file.
8933 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8934 echo "Using \`$srcdir/config/$md_file' as machine description file."
8936 # If any of the xm_file variables contain nonexistent files, warn
8937 # about them and drop them.
8940 for x in $build_xm_file; do
8941 if test -f $srcdir/config/$x
8943 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8944 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8950 for x in $host_xm_file; do
8951 if test -f $srcdir/config/$x
8953 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8954 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8960 for x in $xm_file; do
8961 if test -f $srcdir/config/$x
8963 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8964 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8970 for f in $tm_file; do
8973 if test $count = ax; then
8974 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
8976 echo "Using the following target machine macro files:"
8977 for f in $tm_file; do
8978 echo " $srcdir/config/$f"
8982 if test x$need_64bit_hwint = xyes; then
8984 cat >>confdefs.h <<\_ACEOF
8985 #define NEED_64BIT_HOST_WIDE_INT 1
8991 for f in $host_xm_file; do
8994 if test $count = a; then
8996 elif test $count = ax; then
8997 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
8999 echo "Using the following host machine macro files:"
9000 for f in $host_xm_file; do
9001 echo " $srcdir/config/$f"
9004 echo "Using ${out_host_hook_obj} for host machine hooks."
9006 if test "$host_xm_file" != "$build_xm_file"; then
9008 for f in $build_xm_file; do
9011 if test $count = a; then
9013 elif test $count = ax; then
9014 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9016 echo "Using the following build machine macro files:"
9017 for f in $build_xm_file; do
9018 echo " $srcdir/config/$f"
9027 # Check if a valid thread package
9028 case ${enable_threads} in
9031 target_thread_file='single'
9035 target_thread_file='single'
9037 aix | dce | gnat | irix | posix | rtems | \
9038 single | solaris | vxworks | win32 )
9039 target_thread_file=${enable_threads}
9042 echo "${enable_threads} is an unknown thread package" 1>&2
9047 if test x${thread_file} = x; then
9048 # No thread file set by target-specific clauses in config.gcc,
9049 # so use file chosen by default logic above
9050 thread_file=${target_thread_file}
9053 # Make gthr-default.h if we have a thread file.
9055 if test $thread_file != single; then
9056 rm -f gthr-default.h
9057 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9058 gthread_flags=-DHAVE_GTHR_DEFAULT
9066 if test x$enable___cxa_atexit = xyes || \
9067 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9068 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9069 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9070 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 cat >conftest.$ac_ext <<_ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9079 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9081 #define __cxa_atexit innocuous___cxa_atexit
9083 /* System header to define __stub macros and hopefully few prototypes,
9084 which can conflict with char __cxa_atexit (); below.
9085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9086 <limits.h> exists even on freestanding compilers. */
9089 # include <limits.h>
9091 # include <assert.h>
9096 /* Override any gcc2 internal prototype to avoid an error. */
9101 /* We use char because int might match the return type of a gcc2
9102 builtin and then its argument prototype would still apply. */
9103 char __cxa_atexit ();
9104 /* The GNU C library defines this for functions which it implements
9105 to always fail with ENOSYS. Some functions are actually named
9106 something starting with __ and the normal name is an alias. */
9107 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9110 char (*f) () = __cxa_atexit;
9119 return f != __cxa_atexit;
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126 (eval $ac_link) 2>conftest.er1
9128 grep -v '^ *+' conftest.er1 >conftest.err
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_c_werror_flag"
9134 || test ! -s conftest.err'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest$ac_exeext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_cv_func___cxa_atexit=yes
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 ac_cv_func___cxa_atexit=no
9153 rm -f conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9156 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9157 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9158 if test $ac_cv_func___cxa_atexit = yes; then
9160 cat >>confdefs.h <<\_ACEOF
9161 #define DEFAULT_USE_CXA_ATEXIT 1
9165 echo "__cxa_atexit can't be enabled on this target"
9170 # Look for a file containing extra machine modes.
9171 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9172 extra_modes_file='$(srcdir)'/config/${extra_modes}
9175 cat >>confdefs.h <<_ACEOF
9176 #define EXTRA_MODES_FILE "config/$extra_modes"
9181 # auto-host.h is the file containing items generated by autoconf and is
9182 # the first file included by config.h.
9183 # If host=build, it is correct to have bconfig include auto-host.h
9184 # as well. If host!=build, we are in error and need to do more
9185 # work to find out the build config parameters.
9186 if test x$host = x$build
9188 build_auto=auto-host.h
9191 # We create a subdir, then run autoconf in the subdir.
9192 # To prevent recursion we set host and build for the new
9193 # invocation of configure to the build for this invocation
9200 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9201 *) realsrcdir=../${srcdir};;
9203 saved_CFLAGS="${CFLAGS}"
9204 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9205 ${realsrcdir}/configure \
9206 --enable-languages=${enable_languages-all} \
9207 --target=$target_alias --host=$build_alias --build=$build_alias
9208 CFLAGS="${saved_CFLAGS}"
9210 # We just finished tests for the build machine, so rename
9211 # the file auto-build.h in the gcc directory.
9212 mv auto-host.h ../auto-build.h
9215 build_auto=auto-build.h
9216 FORBUILD=../${build_subdir}
9220 tm_file="${tm_file} defaults.h"
9221 tm_p_file="${tm_p_file} tm-preds.h"
9222 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9223 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9224 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9225 # put this back in temporarily.
9226 xm_file="ansidecl.h ${xm_file}"
9232 # Get the version trigger filename from the toplevel
9233 if test "${with_gcc_version_trigger+set}" = set; then
9234 gcc_version_trigger=$with_gcc_version_trigger
9236 gcc_version_trigger=${srcdir}/version.c
9238 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9239 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9241 # Compile in configure arguments.
9242 if test -f configargs.h ; then
9243 # Being re-configured.
9244 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9245 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9247 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9250 # Double all backslashes and backslash all quotes to turn
9251 # gcc_config_arguments into a C string.
9252 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9253 $gcc_config_arguments
9255 gcc_config_arguments_str=`cat conftest.out`
9258 cat > configargs.h <<EOF
9259 /* Generated automatically. */
9260 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9261 static const char thread_model[] = "$thread_file";
9263 static const struct {
9264 const char *name, *value;
9265 } configure_default_options[] = $configure_default_options;
9268 # Internationalization
9270 VERSION="$gcc_version"
9274 # If we haven't got the data from the intl directory,
9275 # assume NLS is disabled.
9283 if test -f ../intl/config.intl; then
9284 . ../intl/config.intl
9286 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9287 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9288 if test x"$USE_NLS" != xyes; then
9289 echo "$as_me:$LINENO: result: no" >&5
9290 echo "${ECHO_T}no" >&6
9292 echo "$as_me:$LINENO: result: yes" >&5
9293 echo "${ECHO_T}yes" >&6
9295 cat >>confdefs.h <<\_ACEOF
9296 #define ENABLE_NLS 1
9300 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9301 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9302 # Look for .po and .gmo files in the source directory.
9305 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9306 # If there aren't any .gmo files the shell will give us the
9307 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9309 case "$cat" in *\**)
9312 # The quadruple backslash is collapsed to a double backslash
9313 # by the backticks, then collapsed again by the double quotes,
9314 # leaving us with one backslash in the sed expression (right
9315 # before the dot that mustn't act as a wildcard).
9316 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9317 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9318 # The user is allowed to set LINGUAS to a list of languages to
9319 # install catalogs for. If it's empty that means "all of them."
9320 if test "x$LINGUAS" = x; then
9321 CATALOGS="$CATALOGS $cat"
9322 XLINGUAS="$XLINGUAS $lang"
9324 case "$LINGUAS" in *$lang*)
9325 CATALOGS="$CATALOGS $cat"
9326 XLINGUAS="$XLINGUAS $lang"
9332 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9333 echo "${ECHO_T}$LINGUAS" >&6
9336 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9337 # -liconv on the link line twice.
9338 case "$LIBINTL" in *$LIBICONV*)
9342 # Windows32 Registry support for specifying GCC installation paths.
9343 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9344 if test "${enable_win32_registry+set}" = set; then
9345 enableval="$enable_win32_registry"
9349 win32 | pe | cygwin* | mingw32* | uwin*)
9350 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9351 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9352 if test "x$enable_win32_registry" != xno; then
9354 cat >>confdefs.h <<\_ACEOF
9355 #define ENABLE_WIN32_REGISTRY 1
9358 echo "$as_me:$LINENO: result: yes" >&5
9359 echo "${ECHO_T}yes" >&6
9360 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9361 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9362 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 ac_func_search_save_LIBS=$LIBS
9366 ac_cv_search_RegOpenKeyExA=no
9367 cat >conftest.$ac_ext <<_ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9374 /* Override any gcc2 internal prototype to avoid an error. */
9378 /* We use char because int might match the return type of a gcc2
9379 builtin and then its argument prototype would still apply. */
9380 char RegOpenKeyExA ();
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391 (eval $ac_link) 2>conftest.er1
9393 grep -v '^ *+' conftest.er1 >conftest.err
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -z "$ac_c_werror_flag"
9399 || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_search_RegOpenKeyExA="none required"
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9417 rm -f conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9420 for ac_lib in advapi32; do
9421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9422 cat >conftest.$ac_ext <<_ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9429 /* Override any gcc2 internal prototype to avoid an error. */
9433 /* We use char because int might match the return type of a gcc2
9434 builtin and then its argument prototype would still apply. */
9435 char RegOpenKeyExA ();
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446 (eval $ac_link) 2>conftest.er1
9448 grep -v '^ *+' conftest.er1 >conftest.err
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest$ac_exeext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9473 rm -f conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9477 LIBS=$ac_func_search_save_LIBS
9479 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9480 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9481 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9482 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9487 echo "$as_me:$LINENO: result: no" >&5
9488 echo "${ECHO_T}no" >&6
9491 # Check if user specified a different registry key.
9492 case "x${enable_win32_registry}" in
9495 gcc_cv_win32_registry_key="$VERSION"
9498 # no registry lookup.
9499 gcc_cv_win32_registry_key=''
9502 # user-specified key.
9503 gcc_cv_win32_registry_key="$enable_win32_registry"
9507 if test "x$enable_win32_registry" != xno; then
9508 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9509 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9511 cat >>confdefs.h <<_ACEOF
9512 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9515 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9516 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9521 # Get an absolute path to the GCC top-level source directory
9522 holddir=`${PWDCMD-pwd}`
9524 topdir=`${PWDCMD-pwd}`
9527 # Conditionalize the makefile for this host machine.
9529 for f in ${host_xmake_file}
9531 if test -f ${srcdir}/config/$f
9533 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9537 # Conditionalize the makefile for this target machine.
9539 for f in ${tmake_file}
9541 if test -f ${srcdir}/config/$f
9543 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9546 tmake_file="${tmake_file_}"
9548 symbolic_link='ln -s'
9550 # If the host doesn't support symlinks, modify CC in
9551 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9552 # Otherwise, we can use "CC=$(CC)".
9554 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9556 cc_set_by_configure="\$(CC)"
9557 quoted_cc_set_by_configure="\$(CC)"
9558 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9559 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9562 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9564 symbolic_link="cp -p"
9568 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9569 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9570 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9571 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9575 out_object_file=`basename $out_file .c`.o
9579 for f in $tm_file; do
9582 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9583 tm_include_list="${tm_include_list} $f"
9586 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9587 tm_include_list="${tm_include_list} config/$f"
9594 for f in $tm_p_file; do
9597 tm_p_file_list="${tm_p_file_list} $f"
9598 tm_p_include_list="${tm_p_include_list} $f"
9601 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9602 tm_p_include_list="${tm_p_include_list} config/$f"
9608 for f in $xm_file; do
9611 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9612 xm_include_list="${xm_include_list} $f"
9615 xm_file_list="${xm_file_list} $f"
9616 xm_include_list="${xm_include_list} $f"
9619 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9620 xm_include_list="${xm_include_list} config/$f"
9626 host_xm_include_list=
9627 for f in $host_xm_file; do
9630 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9631 host_xm_include_list="${host_xm_include_list} $f"
9634 host_xm_file_list="${host_xm_file_list} $f"
9635 host_xm_include_list="${host_xm_include_list} $f"
9638 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9639 host_xm_include_list="${host_xm_include_list} config/$f"
9645 for f in $build_xm_file; do
9648 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9649 build_xm_include_list="${build_xm_include_list} $f"
9651 auto-build.h | auto-host.h )
9652 build_xm_file_list="${build_xm_file_list} $f"
9653 build_xm_include_list="${build_xm_include_list} $f"
9656 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9657 build_xm_include_list="${build_xm_include_list} config/$f"
9662 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9663 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9666 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9667 if test x$host != x$target
9669 CROSS="-DCROSS_COMPILE"
9671 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9672 case "$host","$target" in
9673 # Darwin crosses can use the host system's libraries and headers,
9674 # because of the fat library support. Of course, it must be the
9675 # same version of Darwin on both sides. Allow the user to
9676 # just say --target=foo-darwin without a version number to mean
9677 # "the version on this system".
9678 *-*-darwin*,*-*-darwin*)
9679 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9680 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9681 if test $hostos = $targetos -o $targetos = darwin ; then
9683 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9688 i?86-*-*,x86_64-*-* \
9689 | powerpc*-*-*,powerpc64*-*-*)
9690 CROSS="$CROSS -DNATIVE_CROSS" ;;
9692 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9693 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9694 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9697 # If this is a cross-compiler that does not
9698 # have its own set of headers then define
9701 # If this is using newlib, without having the headers available now,
9702 # then define inhibit_libc in LIBGCC2_CFLAGS.
9703 # This prevents libgcc2 from containing any code which requires libc
9706 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9707 test x$with_newlib = xyes ; } &&
9708 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9709 inhibit_libc=-Dinhibit_libc
9713 # When building gcc with a cross-compiler, we need to adjust things so
9714 # that the generator programs are still built with the native compiler.
9715 # Also, we cannot run fixincludes or fix-header.
9717 # These are the normal (build=host) settings:
9719 BUILD_PREFIX_1=ignore-
9720 CC_FOR_BUILD='$(CC)'
9721 BUILD_CFLAGS='$(ALL_CFLAGS)'
9723 STMP_FIXINC=stmp-fixinc
9725 # Possibly disable fixproto, on a per-target basis.
9726 case ${use_fixproto} in
9731 STMP_FIXPROTO=stmp-fixproto
9736 # And these apply if build != host, or we are generating coverage data
9737 if test x$build != x$host || test "x$coverage_flags" != x
9740 BUILD_PREFIX_1=build-
9741 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9743 if test "x$TARGET_SYSTEM_ROOT" = x; then
9749 # Expand extra_headers to include complete path.
9750 # This substitutes for lots of t-* files.
9752 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9753 for file in ${extra_headers} ; do
9754 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9757 # Define collect2 in Makefile.
9758 case $host_can_use_collect2 in
9760 *) collect2='collect2$(exeext)' ;;
9764 # Add a definition of USE_COLLECT2 if system wants one.
9765 case $use_collect2 in
9766 no) use_collect2= ;;
9769 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9770 xm_defines="${xm_defines} USE_COLLECT2"
9771 case $host_can_use_collect2 in
9773 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
9774 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
9775 { (exit 1); exit 1; }; }
9781 # ---------------------------
9782 # Assembler & linker features
9783 # ---------------------------
9785 # Identify the assembler which will work hand-in-glove with the newly
9786 # built GCC, so that we can examine its features. This is the assembler
9787 # which will be driven by the driver program.
9789 # If build != host, and we aren't building gas in-tree, we identify a
9790 # build->target assembler and hope that it will have the same features
9791 # as the host->target assembler we'll be using.
9792 echo "$as_me:$LINENO: checking what assembler to use" >&5
9793 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9796 gcc_cv_gas_major_version=
9797 gcc_cv_gas_minor_version=
9798 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9799 if test -x "$DEFAULT_ASSEMBLER"; then
9800 gcc_cv_as="$DEFAULT_ASSEMBLER"
9801 elif test -x as$host_exeext; then
9802 # Build using assembler in the current directory.
9803 gcc_cv_as=./as$host_exeext
9804 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9805 && test -f ../gas/Makefile \
9806 && test x$build = x$host; then
9807 # Single tree build which includes gas. We want to prefer it
9808 # over whatever linker top-level may have detected, since
9809 # we'll use what we're building after installation anyway.
9811 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9812 for f in $gcc_cv_as_bfd_srcdir/configure \
9813 $gcc_cv_as_gas_srcdir/configure \
9814 $gcc_cv_as_gas_srcdir/configure.in \
9815 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9816 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9817 if test x$gcc_cv_gas_version != x; then
9821 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9822 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9823 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9824 case $gcc_cv_gas_patch_version in
9825 "") gcc_cv_gas_patch_version="0" ;;
9827 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9828 + $gcc_cv_gas_minor_version \) \* 1000 \
9829 + $gcc_cv_gas_patch_version`
9831 rm -f as$host_exeext
9832 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9833 in_tree_gas_is_elf=no
9834 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9835 || (grep 'obj_format = multi' ../gas/Makefile \
9836 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9838 in_tree_gas_is_elf=yes
9840 elif test -x "$AS_FOR_TARGET"; then
9841 gcc_cv_as="$AS_FOR_TARGET"
9842 elif test -x "$AS" && test x$host = x$target; then
9846 if test "x$gcc_cv_as" = x; then
9847 # Search the same directories that the installed compiler will
9848 # search. Else we may find the wrong assembler and lose. If we
9849 # do not find a suitable assembler binary, then try the user's
9852 # Also note we have to check MD_EXEC_PREFIX before checking the
9853 # user's path. Unfortunately, there is no good way to get at the
9854 # value of MD_EXEC_PREFIX here. So we do a brute force search
9855 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9856 # to be fixed as part of the make/configure rewrite too.
9858 if test "x$exec_prefix" = xNONE; then
9859 if test "x$prefix" = xNONE; then
9860 test_prefix=/usr/local
9865 test_prefix=$exec_prefix
9868 # If the loop below does not find an assembler, then use whatever
9869 # one we can find in the users's path.
9871 if test "x$program_prefix" != xNONE; then
9872 gcc_cv_as=${program_prefix}as$host_exeext
9874 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
9877 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9878 $test_prefix/libexec/gcc/$target_noncanonical \
9879 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9880 /usr/lib/gcc/$target_noncanonical \
9881 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9882 $test_prefix/$target_noncanonical/bin"
9884 if test x$host = x$target; then
9885 test_dirs="$test_dirs \
9890 /bsd43/usr/lib/cmplrs/cc \
9891 /usr/cross64/usr/bin \
9892 /usr/lib/cmplrs/cc \
9893 /sysv/usr/lib/cmplrs/cc \
9894 /svr4/usr/lib/cmplrs/cc \
9898 for dir in $test_dirs; do
9899 if test -x $dir/as$host_exeext; then
9900 gcc_cv_as=$dir/as$host_exeext
9905 case $in_tree_gas in
9907 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9908 echo "${ECHO_T}\"newly built gas\"" >&6
9911 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9912 echo "${ECHO_T}$gcc_cv_as" >&6
9916 # Identify the linker which will work hand-in-glove with the newly
9917 # built GCC, so that we can examine its features. This is the linker
9918 # which will be driven by the driver program.
9920 # If build != host, and we aren't building gas in-tree, we identify a
9921 # build->target linker and hope that it will have the same features
9922 # as the host->target linker we'll be using.
9923 echo "$as_me:$LINENO: checking what linker to use" >&5
9924 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9927 gcc_cv_gld_major_version=
9928 gcc_cv_gld_minor_version=
9929 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9930 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9931 if test -x "$DEFAULT_LINKER"; then
9932 gcc_cv_ld="$DEFAULT_LINKER"
9933 elif test -x collect-ld$host_exeext; then
9934 # Build using linker in the current directory.
9935 gcc_cv_ld=./collect-ld$host_exeext
9936 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9937 && test -f ../ld/Makefile \
9938 && test x$build = x$host; then
9939 # Single tree build which includes ld. We want to prefer it
9940 # over whatever linker top-level may have detected, since
9941 # we'll use what we're building after installation anyway.
9943 in_tree_ld_is_elf=no
9944 if (grep 'EMUL = .*elf' ../ld/Makefile \
9945 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9946 in_tree_ld_is_elf=yes
9948 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
9950 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9951 if test x$gcc_cv_gld_version != x; then
9955 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9956 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9957 rm -f collect-ld$host_exeext
9958 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9960 elif test -x "$LD_FOR_TARGET"; then
9961 gcc_cv_ld="$LD_FOR_TARGET"
9962 elif test -x "$LD" && test x$host = x$target; then
9966 if test "x$gcc_cv_ld" = x; then
9967 # Search the same directories that the installed compiler will
9968 # search. Else we may find the wrong linker and lose. If we
9969 # do not find a suitable linker binary, then try the user's
9972 # Also note we have to check MD_EXEC_PREFIX before checking the
9973 # user's path. Unfortunately, there is no good way to get at the
9974 # value of MD_EXEC_PREFIX here. So we do a brute force search
9975 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9976 # to be fixed as part of the make/configure rewrite too.
9978 if test "x$exec_prefix" = xNONE; then
9979 if test "x$prefix" = xNONE; then
9980 test_prefix=/usr/local
9985 test_prefix=$exec_prefix
9988 # If the loop below does not find an linker, then use whatever
9989 # one we can find in the users's path.
9991 if test "x$program_prefix" != xNONE; then
9992 gcc_cv_ld=${program_prefix}ld$host_exeext
9994 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
9997 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9998 $test_prefix/libexec/gcc/$target_noncanonical \
9999 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10000 /usr/lib/gcc/$target_noncanonical \
10001 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10002 $test_prefix/$target_noncanonical/bin"
10004 if test x$host = x$target; then
10005 test_dirs="$test_dirs \
10010 /bsd43/usr/lib/cmplrs/cc \
10011 /usr/cross64/usr/bin \
10012 /usr/lib/cmplrs/cc \
10013 /sysv/usr/lib/cmplrs/cc \
10014 /svr4/usr/lib/cmplrs/cc \
10018 for dir in $test_dirs; do
10019 if test -x $dir/ld$host_exeext; then
10020 gcc_cv_ld=$dir/ld$host_exeext
10025 case $in_tree_ld in
10027 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10028 echo "${ECHO_T}\"newly built ld\"" >&6
10031 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10032 echo "${ECHO_T}$gcc_cv_ld" >&6
10036 # Figure out what nm we will be using.
10037 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10038 echo "$as_me:$LINENO: checking what nm to use" >&5
10039 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10041 if test -x nm$host_exeext; then
10042 gcc_cv_nm=./nm$host_exeext
10043 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10044 && test -f ../binutils/Makefile; then
10045 # Single tree build which includes binutils.
10047 gcc_cv_nm=./nm$host_exeext
10048 rm -f nm$host_exeext
10049 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10050 elif test "x$program_prefix" != xNONE; then
10051 gcc_cv_nm=${program_prefix}nm$host_exeext
10053 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10055 case $in_tree_nm in
10056 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10057 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10058 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10059 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10062 # Figure out what objdump we will be using.
10063 echo "$as_me:$LINENO: checking what objdump to use" >&5
10064 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10066 if test -x objdump$host_exeext; then
10067 gcc_cv_objdump=./objdump$host_exeext
10068 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10069 && test -f ../binutils/Makefile; then
10070 # Single tree build which includes binutils.
10071 in_tree_objdump=yes
10072 gcc_cv_objdump=./objdump$host_exeext
10073 rm -f objdump$host_exeext
10074 $symbolic_link ../binutils/objdump$host_exeext \
10075 objdump$host_exeext 2>/dev/null
10076 elif test "x$program_prefix" != xNONE; then
10077 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10079 gcc_cv_objdump=`echo objdump | \
10080 sed "${program_transform_name}"`$host_exeext
10082 case $in_tree_objdump in
10083 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10084 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10085 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10086 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10089 # Figure out what assembler alignment features are present.
10090 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10091 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10092 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 gcc_cv_as_balign_and_p2align=no
10096 if test $in_tree_gas = yes; then
10097 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10098 then gcc_cv_as_balign_and_p2align=yes
10100 elif test x$gcc_cv_as != x; then
10102 .p2align 2' > conftest.s
10103 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }
10110 gcc_cv_as_balign_and_p2align=yes
10112 echo "configure: failed program was" >&5
10115 rm -f conftest.o conftest.s
10118 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10119 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10120 if test $gcc_cv_as_balign_and_p2align = yes; then
10122 cat >>confdefs.h <<\_ACEOF
10123 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10128 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10129 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10130 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 gcc_cv_as_max_skip_p2align=no
10134 if test $in_tree_gas = yes; then
10135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10136 then gcc_cv_as_max_skip_p2align=yes
10138 elif test x$gcc_cv_as != x; then
10139 echo '.p2align 4,,7' > conftest.s
10140 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; }
10147 gcc_cv_as_max_skip_p2align=yes
10149 echo "configure: failed program was" >&5
10152 rm -f conftest.o conftest.s
10155 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10156 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10157 if test $gcc_cv_as_max_skip_p2align = yes; then
10159 cat >>confdefs.h <<\_ACEOF
10160 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10165 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10166 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10167 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 gcc_cv_as_subsection_m1=no
10171 if test $in_tree_gas = yes; then
10172 if test $in_tree_gas_is_elf = yes \
10173 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10174 then gcc_cv_as_subsection_m1=yes
10176 elif test x$gcc_cv_as != x; then
10177 echo 'conftest_label1: .word 0
10179 conftest_label2: .word 0
10180 .previous' > conftest.s
10181 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }
10188 if test x$gcc_cv_nm != x; then
10189 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10190 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10191 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10193 else gcc_cv_as_subsection_m1=yes
10195 rm -f conftest.nm1 conftest.nm2
10198 echo "configure: failed program was" >&5
10201 rm -f conftest.o conftest.s
10204 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10205 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10206 if test $gcc_cv_as_subsection_m1 = yes; then
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_GAS_SUBSECTION_ORDERING 1
10214 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10215 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10216 if test "${gcc_cv_as_weak+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 if test $in_tree_gas = yes; then
10221 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10222 then gcc_cv_as_weak=yes
10224 elif test x$gcc_cv_as != x; then
10225 echo ' .weak foobar' > conftest.s
10226 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }
10235 echo "configure: failed program was" >&5
10238 rm -f conftest.o conftest.s
10241 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10242 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10243 if test $gcc_cv_as_weak = yes; then
10245 cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_GAS_WEAK 1
10251 # .hidden needs to be supported in both the assembler and the linker,
10252 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10253 # This is irritatingly difficult to feature test for; we have to check the
10254 # date string after the version number. If we've got an in-tree
10255 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10257 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10258 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10259 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10260 if test "${gcc_cv_as_hidden+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 gcc_cv_as_hidden=no
10264 if test $in_tree_gas = yes; then
10265 if test $in_tree_gas_is_elf = yes \
10266 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10267 then gcc_cv_as_hidden=yes
10269 elif test x$gcc_cv_as != x; then
10270 echo ' .hidden foobar
10271 foobar:' > conftest.s
10272 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }
10279 gcc_cv_as_hidden=yes
10281 echo "configure: failed program was" >&5
10284 rm -f conftest.o conftest.s
10287 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10288 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10291 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10292 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10293 if test "${gcc_cv_ld_hidden+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 if test $in_tree_ld = yes ; then
10297 gcc_cv_ld_hidden=no
10298 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 \
10299 && test $in_tree_ld_is_elf = yes; then
10300 gcc_cv_ld_hidden=yes
10303 gcc_cv_ld_hidden=yes
10304 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10305 if echo "$ld_ver" | grep GNU > /dev/null; then
10306 ld_vers=`echo $ld_ver | sed -n \
10307 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10308 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10309 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10310 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10311 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10312 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10313 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'`
10314 if test 0"$ld_date" -lt 20020404; then
10315 if test -n "$ld_date"; then
10316 # If there was date string, but was earlier than 2002-04-04, fail
10317 gcc_cv_ld_hidden=no
10318 elif test -z "$ld_vers"; then
10319 # If there was no date string nor ld version number, something is wrong
10320 gcc_cv_ld_hidden=no
10322 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10323 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10324 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10325 test -z "$ld_vers_patch" && ld_vers_patch=0
10326 if test "$ld_vers_major" -lt 2; then
10327 gcc_cv_ld_hidden=no
10328 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10329 gcc_cv_ld_hidden="no"
10330 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10331 gcc_cv_ld_hidden=no
10336 case "${target}" in
10337 hppa64*-*-hpux* | ia64*-*-hpux*)
10338 gcc_cv_ld_hidden=yes
10341 gcc_cv_ld_hidden=no
10347 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10348 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10349 libgcc_visibility=no
10351 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10352 libgcc_visibility=yes
10354 cat >>confdefs.h <<\_ACEOF
10355 #define HAVE_GAS_HIDDEN 1
10360 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10361 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10362 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10363 if test "${gcc_cv_as_leb128+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 gcc_cv_as_leb128=no
10367 if test $in_tree_gas = yes; then
10368 if test $in_tree_gas_is_elf = yes \
10369 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10370 then gcc_cv_as_leb128=yes
10372 elif test x$gcc_cv_as != x; then
10379 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }
10386 # GAS versions before 2.11 do not support uleb128,
10387 # despite appearing to.
10388 # ??? There exists an elf-specific test that will crash
10389 # the assembler. Perhaps it's better to figure out whether
10390 # arbitrary sections are supported and try the test.
10391 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10392 if echo "$as_ver" | grep GNU > /dev/null; then
10393 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10394 as_major=`echo $as_ver | sed 's/\..*//'`
10395 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10396 if test $as_major -eq 2 && test $as_minor -lt 11
10398 else gcc_cv_as_leb128=yes
10402 echo "configure: failed program was" >&5
10405 rm -f conftest.o conftest.s
10408 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10409 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10410 if test $gcc_cv_as_leb128 = yes; then
10412 cat >>confdefs.h <<\_ACEOF
10413 #define HAVE_AS_LEB128 1
10418 # GAS versions up to and including 2.11.0 may mis-optimize
10420 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10421 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10422 if test "${gcc_cv_as_eh_frame+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 gcc_cv_as_eh_frame=no
10426 if test $in_tree_gas = yes; then
10427 if test $in_tree_gas_is_elf = yes \
10428 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10429 then gcc_cv_as_eh_frame=yes
10431 elif test x$gcc_cv_as != x; then
10438 .section .eh_frame,"aw",@progbits
10440 .4byte .LECIE1-.LSCIE1
10454 .4byte .LEFDE1-.LASFDE1
10456 .4byte .LASFDE1-__FRAME_BEGIN__
10463 .LEFDE1:' > conftest.s
10464 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; }
10471 cat > conftest.lit <<EOF
10472 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10473 0010 01000000 12000000 18000000 00000000 ................
10474 0020 08000000 04080000 0044 .........D
10476 cat > conftest.big <<EOF
10477 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10478 0010 00000001 00000012 00000018 00000000 ................
10479 0020 00000008 04000000 0844 .........D
10481 # If the assembler didn't choke, and we can objdump,
10482 # and we got the correct data, then succeed.
10483 if test x$gcc_cv_objdump != x \
10484 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10485 | tail -3 > conftest.got \
10486 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10487 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10489 gcc_cv_as_eh_frame=yes
10490 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 gcc_cv_as_eh_frame=buggy
10498 # Uh oh, what do we do now?
10499 gcc_cv_as_eh_frame=no
10502 echo "configure: failed program was" >&5
10505 rm -f conftest.o conftest.s
10508 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10509 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10512 if test $gcc_cv_as_eh_frame = buggy; then
10514 cat >>confdefs.h <<\_ACEOF
10515 #define USE_AS_TRADITIONAL_FORMAT 1
10520 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10521 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10522 if test "${gcc_cv_as_shf_merge+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 gcc_cv_as_shf_merge=no
10526 if test $in_tree_gas = yes; then
10527 if test $in_tree_gas_is_elf = yes \
10528 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10529 then gcc_cv_as_shf_merge=yes
10531 elif test x$gcc_cv_as != x; then
10532 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10533 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }
10540 gcc_cv_as_shf_merge=yes
10542 echo "configure: failed program was" >&5
10545 rm -f conftest.o conftest.s
10548 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10549 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10552 cat >>confdefs.h <<_ACEOF
10553 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10557 # Thread-local storage - the check is heavily parametrized.
10565 .section ".tdata","awT",@progbits
10568 ldq $27,__tls_get_addr($29) !literal!1
10569 lda $16,foo($29) !tlsgd!1
10570 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10571 ldq $27,__tls_get_addr($29) !literal!2
10572 lda $16,foo($29) !tlsldm!2
10573 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10574 ldq $1,foo($29) !gotdtprel
10575 ldah $2,foo($29) !dtprelhi
10576 lda $3,foo($2) !dtprello
10577 lda $4,foo($29) !dtprel
10578 ldq $1,foo($29) !gottprel
10579 ldah $2,foo($29) !tprelhi
10580 lda $3,foo($2) !tprello
10581 lda $4,foo($29) !tprel'
10584 tls_as_opt=--fatal-warnings
10588 .section ".tdata","awT",@progbits
10592 leal foo@TLSGD(,%ebx,1), %eax
10593 leal foo@TLSLDM(%ebx), %eax
10594 leal foo@DTPOFF(%eax), %edx
10595 movl foo@GOTTPOFF(%ebx), %eax
10596 subl foo@GOTTPOFF(%ebx), %eax
10597 addl foo@GOTNTPOFF(%ebx), %eax
10598 movl foo@INDNTPOFF, %eax
10599 movl $foo@TPOFF, %eax
10600 subl $foo@TPOFF, %eax
10601 leal foo@NTPOFF(%ecx), %eax'
10604 tls_as_opt=--fatal-warnings
10608 .section ".tdata","awT",@progbits
10612 leaq foo@TLSGD(%rip), %rdi
10613 leaq foo@TLSLD(%rip), %rdi
10614 leaq foo@DTPOFF(%rax), %rdx
10615 movq foo@GOTTPOFF(%rip), %rax
10616 movq $foo@TPOFF, %rax'
10619 tls_as_opt=--fatal-warnings
10623 .section ".tdata","awT",@progbits
10626 addl r16 = @ltoff(@dtpmod(foo#)), gp
10627 addl r17 = @ltoff(@dtprel(foo#)), gp
10628 addl r18 = @ltoff(@tprel(foo#)), gp
10629 addl r19 = @dtprel(foo#), gp
10630 adds r21 = @dtprel(foo#), r13
10631 movl r23 = @dtprel(foo#)
10632 addl r20 = @tprel(foo#), gp
10633 adds r22 = @tprel(foo#), r13
10634 movl r24 = @tprel(foo#)'
10637 tls_as_opt=--fatal-warnings
10641 .section ".tdata","awT",@progbits
10649 addi 3,31,ld0@got@tlsgd
10651 addi 3,31,x1@got@tlsld
10654 addis 9,3,x2@dtprel@ha
10655 addi 9,9,x2@dtprel@l
10656 lwz 9,x3@got@tprel(31)
10659 addis 9,2,x2@tprel@ha
10660 addi 9,9,x2@tprel@l'
10663 tls_as_opt="-a32 --fatal-warnings"
10667 .section ".tdata","awT",@progbits
10675 addi 3,2,ld0@got@tlsgd
10681 addi 3,2,x1@got@tlsld
10687 addis 9,3,x2@dtprel@ha
10688 addi 9,9,x2@dtprel@l
10691 ld 9,x3@got@dtprel(2)
10697 tls_as_opt="-a64 --fatal-warnings"
10701 .section ".tdata","awT",@progbits
10708 .long foo@GOTNTPOFF
10709 .long foo@INDNTPOFF
10710 l %r1,foo@GOTNTPOFF(%r12)
10711 l %r1,0(%r1):tls_load:foo
10712 bas %r14,0(%r1,%r13):tls_gdcall:foo
10713 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10716 tls_as_opt="-m31 --fatal-warnings"
10720 .section ".tdata","awT",@progbits
10727 .quad foo@GOTNTPOFF
10728 lg %r1,foo@GOTNTPOFF(%r12)
10729 larl %r1,foo@INDNTPOFF
10730 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10731 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10734 tls_as_opt="-m64 -Aesame --fatal-warnings"
10736 sh-*-* | sh[34]-*-*)
10738 .section ".tdata","awT",@progbits
10748 tls_as_opt=--fatal-warnings
10752 sparc*-sun-solaris2.*)
10759 if test x$on_solaris = xyes && test x$gas_flag = xno; then
10761 .section ".tdata",#alloc,#write,#tls
10764 sethi %tgd_hi22(foo), %o0
10765 add %o0, %tgd_lo10(foo), %o1
10766 add %l7, %o1, %o0, %tgd_add(foo)
10767 call __tls_get_addr, %tgd_call(foo)
10768 sethi %tldm_hi22(foo), %l1
10769 add %l1, %tldm_lo10(foo), %l2
10770 add %l7, %l2, %o0, %tldm_add(foo)
10771 call __tls_get_addr, %tldm_call(foo)
10772 sethi %tldo_hix22(foo), %l3
10773 xor %l3, %tldo_lox10(foo), %l4
10774 add %o0, %l4, %l5, %tldo_add(foo)
10775 sethi %tie_hi22(foo), %o3
10776 add %o3, %tie_lo10(foo), %o3
10777 ld [%l7 + %o3], %o2, %tie_ld(foo)
10778 add %g7, %o2, %o4, %tie_add(foo)
10779 sethi %tle_hix22(foo), %l1
10780 xor %l1, %tle_lox10(foo), %o5
10781 ld [%g7 + %o5], %o1'
10786 .section ".tdata","awT",@progbits
10789 sethi %tgd_hi22(foo), %o0
10790 add %o0, %tgd_lo10(foo), %o1
10791 add %l7, %o1, %o0, %tgd_add(foo)
10792 call __tls_get_addr, %tgd_call(foo)
10793 sethi %tldm_hi22(foo), %l1
10794 add %l1, %tldm_lo10(foo), %l2
10795 add %l7, %l2, %o0, %tldm_add(foo)
10796 call __tls_get_addr, %tldm_call(foo)
10797 sethi %tldo_hix22(foo), %l3
10798 xor %l3, %tldo_lox10(foo), %l4
10799 add %o0, %l4, %l5, %tldo_add(foo)
10800 sethi %tie_hi22(foo), %o3
10801 add %o3, %tie_lo10(foo), %o3
10802 ld [%l7 + %o3], %o2, %tie_ld(foo)
10803 add %g7, %o2, %o4, %tie_add(foo)
10804 sethi %tle_hix22(foo), %l1
10805 xor %l1, %tle_lox10(foo), %o5
10806 ld [%g7 + %o5], %o1'
10809 tls_as_opt="-32 --fatal-warnings"
10813 if test -z "$tls_first_major"; then
10814 : # If we don't have a check, assume no support.
10816 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10817 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10818 if test "${gcc_cv_as_tls+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 if test $in_tree_gas = yes; then
10823 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10824 then gcc_cv_as_tls=yes
10826 elif test x$gcc_cv_as != x; then
10827 echo "$conftest_s" > conftest.s
10828 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }
10837 echo "configure: failed program was" >&5
10840 rm -f conftest.o conftest.s
10843 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10844 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10845 if test $gcc_cv_as_tls = yes; then
10847 cat >>confdefs.h <<\_ACEOF
10848 #define HAVE_AS_TLS 1
10854 # Target-specific assembler checks.
10856 if test x"$demangler_in_ld" = xyes; then
10857 echo "$as_me:$LINENO: checking linker --demangle support" >&5
10858 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
10859 gcc_cv_ld_demangle=no
10860 if test $in_tree_ld = yes; then
10861 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
10862 gcc_cv_ld_demangle=yes
10864 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
10865 # Check if the GNU linker supports --demangle option
10866 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
10867 gcc_cv_ld_demangle=yes
10870 if test x"$gcc_cv_ld_demangle" = xyes; then
10872 cat >>confdefs.h <<\_ACEOF
10873 #define HAVE_LD_DEMANGLE 1
10877 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
10878 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
10882 # All TARGET_ABI_OSF targets.
10883 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10884 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10885 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10886 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 gcc_cv_as_alpha_explicit_relocs=no
10890 if test $in_tree_gas = yes; then
10891 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10892 then gcc_cv_as_alpha_explicit_relocs=yes
10894 elif test x$gcc_cv_as != x; then
10895 echo ' .set nomacro
10897 extbl $3, $2, $3 !lituse_bytoff!1
10898 ldq $2, a($29) !literal!1
10899 ldq $4, b($29) !literal!2
10900 ldq_u $3, 0($2) !lituse_base!1
10901 ldq $27, f($29) !literal!5
10902 jsr $26, ($27), f !lituse_jsr!5
10903 ldah $29, 0($26) !gpdisp!3
10904 lda $0, c($29) !gprel
10905 ldah $1, d($29) !gprelhigh
10906 lda $1, d($1) !gprellow
10907 lda $29, 0($29) !gpdisp!3' > conftest.s
10908 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910 (eval $ac_try) 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }
10915 gcc_cv_as_alpha_explicit_relocs=yes
10917 echo "configure: failed program was" >&5
10920 rm -f conftest.o conftest.s
10923 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10924 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10925 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10927 cat >>confdefs.h <<\_ACEOF
10928 #define HAVE_AS_EXPLICIT_RELOCS 1
10935 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
10936 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
10937 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 gcc_cv_as_cris_no_mul_bug=no
10941 if test $in_tree_gas = yes; then
10942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
10943 then gcc_cv_as_cris_no_mul_bug=yes
10945 elif test x$gcc_cv_as != x; then
10946 echo '.text' > conftest.s
10947 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }
10954 gcc_cv_as_cris_no_mul_bug=yes
10956 echo "configure: failed program was" >&5
10959 rm -f conftest.o conftest.s
10962 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
10963 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
10964 if test $gcc_cv_as_cris_no_mul_bug = yes; then
10966 cat >>confdefs.h <<\_ACEOF
10967 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
10974 echo "$as_me:$LINENO: checking assembler for .register" >&5
10975 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10976 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 gcc_cv_as_sparc_register_op=no
10980 if test x$gcc_cv_as != x; then
10981 echo '.register %g2, #scratch' > conftest.s
10982 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }
10989 gcc_cv_as_sparc_register_op=yes
10991 echo "configure: failed program was" >&5
10994 rm -f conftest.o conftest.s
10997 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10998 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10999 if test $gcc_cv_as_sparc_register_op = yes; then
11001 cat >>confdefs.h <<\_ACEOF
11002 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11007 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11008 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11009 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 gcc_cv_as_sparc_relax=no
11013 if test x$gcc_cv_as != x; then
11014 echo '.text' > conftest.s
11015 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }
11022 gcc_cv_as_sparc_relax=yes
11024 echo "configure: failed program was" >&5
11027 rm -f conftest.o conftest.s
11030 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11031 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11032 if test $gcc_cv_as_sparc_relax = yes; then
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_AS_RELAX_OPTION 1
11040 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11041 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11042 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 gcc_cv_as_sparc_ua_pcrel=no
11046 if test x$gcc_cv_as != x; then
11053 .uaword %r_disp32(foo)' > conftest.s
11054 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }
11061 if test x$gcc_cv_ld != x \
11062 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11063 gcc_cv_as_sparc_ua_pcrel=yes
11067 echo "configure: failed program was" >&5
11070 rm -f conftest.o conftest.s
11073 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11074 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11075 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11077 cat >>confdefs.h <<\_ACEOF
11078 #define HAVE_AS_SPARC_UA_PCREL 1
11082 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11083 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11084 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 gcc_cv_as_sparc_ua_pcrel_hidden=no
11088 if test x$gcc_cv_as != x; then
11092 .uaword %r_disp32(foo)
11093 .byte 0x32, 0x33, 0x34
11097 .skip 4' > conftest.s
11098 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }
11105 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11106 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11107 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11108 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11109 if $gcc_cv_objdump -R conftest 2> /dev/null \
11110 | grep 'DISP32' > /dev/null 2>&1; then
11113 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11118 echo "configure: failed program was" >&5
11121 rm -f conftest.o conftest.s
11124 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11125 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11126 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11128 cat >>confdefs.h <<\_ACEOF
11129 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11134 fi # unaligned pcrel relocs
11136 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11137 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11138 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 gcc_cv_as_sparc_offsetable_lo10=no
11142 if test x$gcc_cv_as != x; then
11144 or %g1, %lo(ab) + 12, %g1
11145 or %g1, %lo(ab + 12), %g1' > conftest.s
11146 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }
11153 if test x$gcc_cv_objdump != x \
11154 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11155 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11156 gcc_cv_as_offsetable_lo10=yes
11159 echo "configure: failed program was" >&5
11162 rm -f conftest.o conftest.s
11165 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11166 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11167 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11169 cat >>confdefs.h <<\_ACEOF
11170 #define HAVE_AS_OFFSETABLE_LO10 1
11176 i[34567]86-*-* | x86_64-*-*)
11178 cygwin* | pe | mingw32*)
11179 # Used for DWARF 2 in PE
11180 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11181 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11182 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 gcc_cv_as_ix86_pe_secrel32=no
11186 if test $in_tree_gas = yes; then
11187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11188 then gcc_cv_as_ix86_pe_secrel32=yes
11190 elif test x$gcc_cv_as != x; then
11194 .secrel32 foo' > conftest.s
11195 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }
11202 if test x$gcc_cv_ld != x \
11203 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11204 gcc_cv_as_ix86_pe_secrel32=yes
11208 echo "configure: failed program was" >&5
11211 rm -f conftest.o conftest.s
11214 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11215 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11216 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11218 cat >>confdefs.h <<\_ACEOF
11219 #define HAVE_GAS_PE_SECREL32_RELOC 1
11226 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11227 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11228 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 gcc_cv_as_ix86_filds_fists=no
11232 if test $in_tree_gas = yes; then
11233 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11234 then gcc_cv_as_ix86_filds_fists=yes
11236 elif test x$gcc_cv_as != x; then
11237 echo 'filds mem; fists mem' > conftest.s
11238 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }
11245 gcc_cv_as_ix86_filds_fists=yes
11247 echo "configure: failed program was" >&5
11250 rm -f conftest.o conftest.s
11253 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11254 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11255 if test $gcc_cv_as_ix86_filds_fists = yes; then
11257 cat >>confdefs.h <<\_ACEOF
11258 #define HAVE_GAS_FILDS_FISTS 1
11263 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11264 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11265 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 gcc_cv_as_ix86_cmov_sun_syntax=no
11269 if test x$gcc_cv_as != x; then
11270 echo 'cmovl.l %edx, %eax' > conftest.s
11271 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }
11278 gcc_cv_as_ix86_cmov_sun_syntax=yes
11280 echo "configure: failed program was" >&5
11283 rm -f conftest.o conftest.s
11286 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11287 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11288 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11290 cat >>confdefs.h <<\_ACEOF
11291 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11296 # This one is used unconditionally by i386.[ch]; it is to be defined
11297 # to 1 if the feature is present, 0 otherwise.
11298 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11299 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11300 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 gcc_cv_as_ix86_gotoff_in_data=no
11304 if test $in_tree_gas = yes; then
11305 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11306 then gcc_cv_as_ix86_gotoff_in_data=yes
11308 elif test x$gcc_cv_as != x; then
11313 .long .L0@GOTOFF' > conftest.s
11314 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }
11321 gcc_cv_as_ix86_gotoff_in_data=yes
11323 echo "configure: failed program was" >&5
11326 rm -f conftest.o conftest.s
11329 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11330 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11333 cat >>confdefs.h <<_ACEOF
11334 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11340 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11341 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11342 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11346 if test $in_tree_gas = yes; then
11347 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11348 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11350 elif test x$gcc_cv_as != x; then
11352 addl r15 = @ltoffx(x#), gp
11354 ld8.mov r16 = [r15], x#' > conftest.s
11355 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }
11362 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11364 echo "configure: failed program was" >&5
11367 rm -f conftest.o conftest.s
11370 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11371 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11372 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11384 *-*-aix*) conftest_s=' .csect .text[PR]
11386 *-*-darwin*) conftest_s=' .text
11388 *) conftest_s=' .text
11392 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11393 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11394 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 gcc_cv_as_powerpc_mfcrf=no
11398 if test $in_tree_gas = yes; then
11399 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11400 then gcc_cv_as_powerpc_mfcrf=yes
11402 elif test x$gcc_cv_as != x; then
11403 echo "$conftest_s" > conftest.s
11404 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }
11411 gcc_cv_as_powerpc_mfcrf=yes
11413 echo "configure: failed program was" >&5
11416 rm -f conftest.o conftest.s
11419 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11420 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11421 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11423 cat >>confdefs.h <<\_ACEOF
11424 #define HAVE_AS_MFCRF 1
11431 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11432 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11433 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 gcc_cv_as_mips_explicit_relocs=no
11437 if test $in_tree_gas = yes; then
11438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11439 then gcc_cv_as_mips_explicit_relocs=yes
11441 elif test x$gcc_cv_as != x; then
11442 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11443 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }
11450 gcc_cv_as_mips_explicit_relocs=yes
11452 echo "configure: failed program was" >&5
11455 rm -f conftest.o conftest.s
11458 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11459 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11460 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11461 if test x$target_cpu_default = x
11462 then target_cpu_default=MASK_EXPLICIT_RELOCS
11463 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11469 # ??? Not all targets support dwarf2 debug_line, even within a version
11470 # of gas. Moreover, we need to emit a valid instruction to trigger any
11471 # info to the output file. So, as supported targets are added to gas 2.11,
11472 # add some instruction here to (also) show we expect this might work.
11473 # ??? Once 2.11 is released, probably need to add first known working
11474 # version to the per-target configury.
11476 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11477 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11478 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11481 ia64*-*-* | s390*-*-*)
11488 if test x"$insn" != x; then
11490 .file 1 \"conftest.s\"
11493 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11494 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11495 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 gcc_cv_as_dwarf2_debug_line=no
11499 if test $in_tree_gas = yes; then
11500 if test $in_tree_gas_is_elf = yes \
11501 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11502 then gcc_cv_as_dwarf2_debug_line=yes
11504 elif test x$gcc_cv_as != x; then
11505 echo "$conftest_s" > conftest.s
11506 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }
11513 # ??? This fails with non-gnu grep. Maybe use objdump?
11514 if grep debug_line conftest.o > /dev/null 2>&1; then
11515 gcc_cv_as_dwarf2_debug_line=yes
11518 echo "configure: failed program was" >&5
11521 rm -f conftest.o conftest.s
11524 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11525 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11528 # The .debug_line file table must be in the exact order that
11529 # we specified the files, since these indices are also used
11530 # by DW_AT_decl_file. Approximate this test by testing if
11531 # the assembler bitches if the same index is assigned twice.
11532 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11533 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11534 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 gcc_cv_as_dwarf2_file_buggy=no
11538 if test x$gcc_cv_as != x; then
11539 echo ' .file 1 "foo.s"
11540 .file 1 "bar.s"' > conftest.s
11541 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }
11548 gcc_cv_as_dwarf2_file_buggy=yes
11550 echo "configure: failed program was" >&5
11553 rm -f conftest.o conftest.s
11556 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11557 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11560 if test $gcc_cv_as_dwarf2_debug_line = yes \
11561 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11563 cat >>confdefs.h <<\_ACEOF
11564 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11569 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11570 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11571 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 gcc_cv_as_gdwarf2_flag=no
11575 if test $in_tree_gas = yes; then
11576 if test $in_tree_gas_is_elf = yes \
11577 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11578 then gcc_cv_as_gdwarf2_flag=yes
11580 elif test x$gcc_cv_as != x; then
11581 echo "$insn" > conftest.s
11582 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }
11589 gcc_cv_as_gdwarf2_flag=yes
11591 echo "configure: failed program was" >&5
11594 rm -f conftest.o conftest.s
11597 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11598 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11599 if test $gcc_cv_as_gdwarf2_flag = yes; then
11601 cat >>confdefs.h <<\_ACEOF
11602 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11607 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11608 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11609 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 gcc_cv_as_gstabs_flag=no
11613 if test $in_tree_gas = yes; then
11614 if test $in_tree_gas_is_elf = yes \
11615 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11616 then gcc_cv_as_gstabs_flag=yes
11618 elif test x$gcc_cv_as != x; then
11619 echo "$insn" > conftest.s
11620 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }
11627 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11628 # and warns about it, but still exits successfully. So check for
11630 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }
11637 else gcc_cv_as_gstabs_flag=yes
11640 echo "configure: failed program was" >&5
11643 rm -f conftest.o conftest.s
11646 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11647 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11648 if test $gcc_cv_as_gstabs_flag = yes; then
11650 cat >>confdefs.h <<\_ACEOF
11651 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11657 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11658 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11659 gcc_cv_ld_ro_rw_mix=unknown
11660 if test $in_tree_ld = yes ; then
11661 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 \
11662 && test $in_tree_ld_is_elf = yes; then
11663 gcc_cv_ld_ro_rw_mix=read-write
11665 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11666 echo '.section myfoosect, "a"' > conftest1.s
11667 echo '.section myfoosect, "aw"' > conftest2.s
11668 echo '.byte 1' >> conftest2.s
11669 echo '.section myfoosect, "a"' > conftest3.s
11670 echo '.byte 0' >> conftest3.s
11671 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11672 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11673 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11674 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11675 conftest2.o conftest3.o > /dev/null 2>&1; then
11676 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11677 | sed -e '/myfoosect/!d' -e N`
11678 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11679 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11680 gcc_cv_ld_ro_rw_mix=read-only
11682 gcc_cv_ld_ro_rw_mix=read-write
11686 rm -f conftest.* conftest[123].*
11688 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11690 cat >>confdefs.h <<\_ACEOF
11691 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11695 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11696 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11698 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11699 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11700 gcc_cv_ld_eh_frame_hdr=no
11701 if test $in_tree_ld = yes ; then
11702 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 \
11703 && test $in_tree_ld_is_elf = yes; then
11704 gcc_cv_ld_eh_frame_hdr=yes
11706 elif test x$gcc_cv_ld != x; then
11707 # Check if linker supports --eh-frame-hdr option
11708 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11709 gcc_cv_ld_eh_frame_hdr=yes
11712 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11714 cat >>confdefs.h <<\_ACEOF
11715 #define HAVE_LD_EH_FRAME_HDR 1
11719 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11720 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11722 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11723 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11725 if test $in_tree_ld = yes ; then
11726 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 \
11727 && test $in_tree_ld_is_elf = yes; then
11730 elif test x$gcc_cv_ld != x; then
11731 # Check if linker supports -pie option
11732 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11736 if test x"$gcc_cv_ld_pie" = xyes; then
11738 cat >>confdefs.h <<\_ACEOF
11739 #define HAVE_LD_PIE 1
11743 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11744 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11750 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11751 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11752 if test "${gcc_cv_ld_as_needed+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 gcc_cv_ld_as_needed=no
11756 if test $in_tree_ld = yes ; then
11757 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
11758 && test $in_tree_ld_is_elf = yes; then
11759 gcc_cv_ld_as_needed=yes
11761 elif test x$gcc_cv_ld != x; then
11762 # Check if linker supports --as-needed and --no-as-needed options
11763 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11764 gcc_cv_ld_as_needed=yes
11769 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11770 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11771 if test x"$gcc_cv_ld_as_needed" = xyes; then
11773 cat >>confdefs.h <<\_ACEOF
11774 #define HAVE_LD_AS_NEEDED 1
11779 if test x$with_sysroot = x && test x$host = x$target \
11780 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11782 cat >>confdefs.h <<_ACEOF
11783 #define PREFIX_INCLUDE_DIR "$prefix/include"
11788 # Find out what GC implementation we want, or may, use.
11790 # Check whether --with-gc or --without-gc was given.
11791 if test "${with_gc+set}" = set; then
11798 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11799 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11800 { (exit 1); exit 1; }; }
11807 echo "Using $GGC for garbage collection."
11809 # Use the system's zlib library.
11811 zlibinc="-I\$(srcdir)/../zlib"
11813 # Check whether --with-system-zlib or --without-system-zlib was given.
11814 if test "${with_system_zlib+set}" = set; then
11815 withval="$with_system_zlib"
11824 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11825 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11826 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11827 if test "${enable_maintainer_mode+set}" = set; then
11828 enableval="$enable_maintainer_mode"
11829 maintainer_mode=$enableval
11834 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11835 echo "${ECHO_T}$maintainer_mode" >&6
11837 if test "$maintainer_mode" = "yes"; then
11843 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
11844 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
11846 # Check whether --with-libbanshee or --without-libbanshee was given.
11847 if test "${with_libbanshee+set}" = set; then
11848 withval="$with_libbanshee"
11849 libbanshee="$with_libbanshee"
11854 if test x"$libbanshee" = xyes; then
11855 BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
11856 BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
11857 ANDER="tree-alias-ander.o"
11859 cat >>confdefs.h <<\_ACEOF
11860 #define HAVE_BANSHEE 1
11868 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
11869 echo "${ECHO_T}$with_libbanshee" >&6
11879 # Make empty files to contain the specs and options for each language.
11880 # Then add #include lines to for a compiler that has specs and/or options.
11885 for subdir in . $subdirs
11887 if test -f $srcdir/$subdir/lang.opt; then
11888 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11890 if test -f $srcdir/$subdir/lang-specs.h; then
11891 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11893 if test -f $srcdir/$subdir/$subdir-tree.def; then
11894 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11898 # These (without "all_") are set in each config-lang.in.
11899 # `language' must be a single word so is spelled singularly.
11901 all_boot_languages=
11904 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
11905 # List of language makefile fragments.
11906 all_lang_makefrags=
11907 # List of language subdirectory makefiles. Deprecated.
11908 all_lang_makefiles=
11909 # Files for gengtype
11910 all_gtfiles="$target_gtfiles"
11911 # Files for gengtype with language
11912 all_gtfiles_files_langs=
11913 all_gtfiles_files_files=
11915 # Add the language fragments.
11916 # Languages are added via two mechanisms. Some information must be
11917 # recorded in makefile variables, these are defined in config-lang.in.
11918 # We accumulate them and plug them into the main Makefile.
11919 # The other mechanism is a set of hooks for each of the main targets
11920 # like `clean', `install', etc.
11922 language_hooks="Make-hooks"
11932 . ${srcdir}/$s/config-lang.in
11933 if test "x$language" = x
11935 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11938 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11939 if test -f ${srcdir}/$s/Makefile.in
11940 then all_lang_makefiles="$s/Makefile"
11942 all_languages="$all_languages $language"
11943 if test "x$boot_language" = xyes
11945 all_boot_languages="$all_boot_languages $language"
11947 all_compilers="$all_compilers $compilers"
11948 all_stagestuff="$all_stagestuff $stagestuff"
11949 all_outputs="$all_outputs $outputs"
11950 all_gtfiles="$all_gtfiles $gtfiles"
11953 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11954 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11958 # Pick up gtfiles for c
11961 . ${srcdir}/c-config-lang.in
11962 all_gtfiles="$all_gtfiles $gtfiles"
11965 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11966 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11970 for language in $all_languages
11972 check_languages="$check_languages check-$language"
11975 # We link each language in with a set of hooks, reached indirectly via
11980 target_list="all.build all.cross start.encap rest.encap tags \
11981 install-normal install-common install-man \
11982 uninstall info man srcextra srcman srcinfo \
11983 mostlyclean clean distclean maintainer-clean \
11984 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11985 for t in $target_list
11988 for lang in $all_languages
11992 echo "lang.$t: $x" >> Make-hooks
12001 echo "dir ." > .gdbinit
12002 echo "dir ${srcdir}" >> .gdbinit
12003 if test x$gdb_needs_out_file_path = xyes
12005 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12007 if test "x$subdirs" != x; then
12010 echo "dir ${srcdir}/$s" >> .gdbinit
12013 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12015 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12016 # absolute path for gcc_tooldir based on inserting the number of up-directory
12017 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12018 # $(libsubdir)/@(unlibsubdir) based path.
12019 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12020 # make and thus we'd get different behavior depending on where we built the
12022 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12023 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12025 # An explanation of the sed strings:
12026 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12027 # -e 's|/$||' match a trailing forward slash and eliminates it
12028 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12029 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12031 # (*) Note this pattern overwrites the first character of the string
12032 # with a forward slash if one is not already present. This is not a
12033 # problem because the exact names of the sub-directories concerned is
12034 # unimportant, just the number of them matters.
12036 # The practical upshot of these patterns is like this:
12038 # prefix exec_prefix result
12039 # ------ ----------- ------
12040 # /foo /foo/bar ../
12041 # /foo/ /foo/bar ../
12042 # /foo /foo/bar/ ../
12043 # /foo/ /foo/bar/ ../
12044 # /foo /foo/bar/ugg ../../
12047 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12052 # Find a directory in which to install a shared libgcc.
12054 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12055 if test "${enable_version_specific_runtime_libs+set}" = set; then
12056 enableval="$enable_version_specific_runtime_libs"
12061 # Check whether --with-slibdir or --without-slibdir was given.
12062 if test "${with_slibdir+set}" = set; then
12063 withval="$with_slibdir"
12064 slibdir="$with_slibdir"
12066 if test "${enable_version_specific_runtime_libs+set}" = set; then
12067 slibdir='$(libsubdir)'
12068 elif test "$host" != "$target"; then
12069 slibdir='$(build_tooldir)/lib'
12071 slibdir='$(libdir)'
12076 objdir=`${PWDCMD-pwd}`
12079 # Substitute configuration variables
12148 # If it doesn't already exist, create document directory
12149 echo "checking for the document directory." 1>&2
12150 if test -d doc ; then
12157 if test x${build} = x${host} ; then
12158 if test x${host} = x${target} ; then
12159 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12161 echo "Links are now set up to build a cross-compiler" 1>&2
12162 echo " from ${host} to ${target}." 1>&2
12165 if test x${host} = x${target} ; then
12166 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12167 echo " for ${target}." 1>&2
12169 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12170 echo " from ${host} to ${target}." 1>&2
12177 # Configure the subdirectories
12178 # AC_CONFIG_SUBDIRS($subdirs)
12180 # Create the Makefile
12181 # and configure language subdirectories
12182 ac_config_files="$ac_config_files $all_outputs"
12185 ac_config_commands="$ac_config_commands default"
12187 cat >confcache <<\_ACEOF
12188 # This file is a shell script that caches the results of configure
12189 # tests run on this system so they can be shared between configure
12190 # scripts and configure runs, see configure's option --config-cache.
12191 # It is not useful on other systems. If it contains results you don't
12192 # want to keep, you may remove or edit it.
12194 # config.status only pays attention to the cache file if you give it
12195 # the --recheck option to rerun configure.
12197 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12198 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12199 # following values.
12203 # The following way of writing the cache mishandles newlines in values,
12204 # but we know of no workaround that is simple, portable, and efficient.
12205 # So, don't put newlines in cache variables' values.
12206 # Ultrix sh set writes to stderr and can't be redirected directly,
12207 # and sets the high bit in the cache file unless we assign to the vars.
12210 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12212 # `set' does not quote correctly, so add quotes (double-quote
12213 # substitution turns \\\\ into \\, and sed turns \\ into \).
12216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12219 # `set' quotes correctly as required by POSIX, so do not add quotes.
12221 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12230 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12232 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12233 if test -w $cache_file; then
12234 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12235 cat confcache >$cache_file
12237 echo "not updating unwritable cache $cache_file"
12242 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12243 # Let make expand exec_prefix.
12244 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12246 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12248 # trailing colons and then remove the whole line if VPATH becomes empty
12249 # (actually we leave an empty line to preserve line numbers).
12250 if test "x$srcdir" = x.; then
12251 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12252 s/:*\$(srcdir):*/:/;
12253 s/:*\${srcdir}:*/:/;
12255 s/^\([^=]*=[ ]*\):*/\1/;
12261 DEFS=-DHAVE_CONFIG_H
12265 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12266 # 1. Remove the extension, and $U if already installed.
12267 ac_i=`echo "$ac_i" |
12268 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12270 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12271 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12273 LIBOBJS=$ac_libobjs
12275 LTLIBOBJS=$ac_ltlibobjs
12279 : ${CONFIG_STATUS=./config.status}
12280 ac_clean_files_save=$ac_clean_files
12281 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12282 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12283 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12284 cat >$CONFIG_STATUS <<_ACEOF
12286 # Generated by $as_me.
12287 # Run this file to recreate the current configuration.
12288 # Compiler output produced by configure, useful for debugging
12289 # configure, is in config.log if it exists.
12292 ac_cs_recheck=false
12294 SHELL=\${CONFIG_SHELL-$SHELL}
12297 cat >>$CONFIG_STATUS <<\_ACEOF
12298 ## --------------------- ##
12299 ## M4sh Initialization. ##
12300 ## --------------------- ##
12302 # Be Bourne compatible
12303 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12306 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12307 # is contrary to our usage. Disable this feature.
12308 alias -g '${1+"$@"}'='"$@"'
12309 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12312 DUALCASE=1; export DUALCASE # for MKS sh
12314 # Support unset when possible.
12315 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12322 # Work around bugs in pre-3.0 UWIN ksh.
12323 $as_unset ENV MAIL MAILPATH
12330 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12331 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12332 LC_TELEPHONE LC_TIME
12334 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12335 eval $as_var=C; export $as_var
12341 # Required to use basename.
12342 if expr a : '\(a\)' >/dev/null 2>&1; then
12348 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12349 as_basename=basename
12355 # Name of the executable.
12356 as_me=`$as_basename "$0" ||
12357 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12358 X"$0" : 'X\(//\)$' \| \
12359 X"$0" : 'X\(/\)$' \| \
12360 . : '\(.\)' 2>/dev/null ||
12362 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12363 /^X\/\(\/\/\)$/{ s//\1/; q; }
12364 /^X\/\(\/\).*/{ s//\1/; q; }
12368 # PATH needs CR, and LINENO needs CR and PATH.
12369 # Avoid depending upon Character Ranges.
12370 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12371 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12372 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12373 as_cr_digits='0123456789'
12374 as_cr_alnum=$as_cr_Letters$as_cr_digits
12376 # The user is always right.
12377 if test "${PATH_SEPARATOR+set}" != set; then
12378 echo "#! /bin/sh" >conf$$.sh
12379 echo "exit 0" >>conf$$.sh
12381 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12390 as_lineno_1=$LINENO
12391 as_lineno_2=$LINENO
12392 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12393 test "x$as_lineno_1" != "x$as_lineno_2" &&
12394 test "x$as_lineno_3" = "x$as_lineno_2" || {
12395 # Find who we are. Look in the path if we contain no path at all
12398 *[\\/]* ) as_myself=$0 ;;
12399 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12403 test -z "$as_dir" && as_dir=.
12404 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12409 # We did not find ourselves, most probably we were run as `sh COMMAND'
12410 # in which case we are not to be found in the path.
12411 if test "x$as_myself" = x; then
12414 if test ! -f "$as_myself"; then
12415 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12416 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12417 { (exit 1); exit 1; }; }
12419 case $CONFIG_SHELL in
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12425 test -z "$as_dir" && as_dir=.
12426 for as_base in sh bash ksh sh5; do
12429 if ("$as_dir/$as_base" -c '
12430 as_lineno_1=$LINENO
12431 as_lineno_2=$LINENO
12432 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12433 test "x$as_lineno_1" != "x$as_lineno_2" &&
12434 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12435 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12436 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12437 CONFIG_SHELL=$as_dir/$as_base
12438 export CONFIG_SHELL
12439 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12447 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12448 # uniformly replaced by the line number. The first 'sed' inserts a
12449 # line-number line before each line; the second 'sed' does the real
12450 # work. The second script uses 'N' to pair each line-number line
12451 # with the numbered line, and appends trailing '-' during
12452 # substitution so that $LINENO is not a special case at line end.
12453 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12454 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12455 sed '=' <$as_myself |
12460 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12463 s,^['$as_cr_digits']*\n,,
12464 ' >$as_me.lineno &&
12465 chmod +x $as_me.lineno ||
12466 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12467 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12468 { (exit 1); exit 1; }; }
12470 # Don't try to exec as it changes $[0], causing all sort of problems
12471 # (the dirname of $[0] is not the place where we might find the
12472 # original and so on. Autoconf is especially sensible to this).
12474 # Exit status is that of the last command.
12479 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12480 *c*,-n*) ECHO_N= ECHO_C='
12482 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12483 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12486 if expr a : '\(a\)' >/dev/null 2>&1; then
12492 rm -f conf$$ conf$$.exe conf$$.file
12494 if ln -s conf$$.file conf$$ 2>/dev/null; then
12495 # We could just check for DJGPP; but this test a) works b) is more generic
12496 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12497 if test -f conf$$.exe; then
12498 # Don't use ln at all; we don't have any links
12503 elif ln conf$$.file conf$$ 2>/dev/null; then
12508 rm -f conf$$ conf$$.exe conf$$.file
12510 if mkdir -p . 2>/dev/null; then
12513 test -d ./-p && rmdir ./-p
12517 as_executable_p="test -f"
12519 # Sed expression to map a string onto a valid CPP name.
12520 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12522 # Sed expression to map a string onto a valid variable name.
12523 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12527 # We need space, tab and new line, in precisely that order.
12537 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12538 # report actual input values of CONFIG_FILES etc. instead of their
12539 # values after options handling. Logging --version etc. is OK.
12543 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12544 ## Running $as_me. ##
12549 This file was extended by $as_me, which was
12550 generated by GNU Autoconf 2.59. Invocation command line was
12552 CONFIG_FILES = $CONFIG_FILES
12553 CONFIG_HEADERS = $CONFIG_HEADERS
12554 CONFIG_LINKS = $CONFIG_LINKS
12555 CONFIG_COMMANDS = $CONFIG_COMMANDS
12559 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12563 # Files that config.status was made for.
12564 if test -n "$ac_config_files"; then
12565 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12568 if test -n "$ac_config_headers"; then
12569 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12572 if test -n "$ac_config_links"; then
12573 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12576 if test -n "$ac_config_commands"; then
12577 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12580 cat >>$CONFIG_STATUS <<\_ACEOF
12583 \`$as_me' instantiates files from templates according to the
12584 current configuration.
12586 Usage: $0 [OPTIONS] [FILE]...
12588 -h, --help print this help, then exit
12589 -V, --version print version number, then exit
12590 -q, --quiet do not print progress messages
12591 -d, --debug don't remove temporary files
12592 --recheck update $as_me by reconfiguring in the same conditions
12593 --file=FILE[:TEMPLATE]
12594 instantiate the configuration file FILE
12595 --header=FILE[:TEMPLATE]
12596 instantiate the configuration header FILE
12598 Configuration files:
12601 Configuration headers:
12604 Configuration commands:
12607 Report bugs to <bug-autoconf@gnu.org>."
12610 cat >>$CONFIG_STATUS <<_ACEOF
12613 configured by $0, generated by GNU Autoconf 2.59,
12614 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12616 Copyright (C) 2003 Free Software Foundation, Inc.
12617 This config.status script is free software; the Free Software Foundation
12618 gives unlimited permission to copy, distribute and modify it."
12622 cat >>$CONFIG_STATUS <<\_ACEOF
12623 # If no file are specified by the user, then we need to provide default
12624 # value. By we need to know if files were specified by the user.
12630 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12631 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12639 *) # This is not an option, so the user has probably given explicit
12642 ac_need_defaults=false;;
12646 # Handling of the options.
12648 cat >>$CONFIG_STATUS <<\_ACEOF
12649 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12651 --version | --vers* | -V )
12652 echo "$ac_cs_version"; exit 0 ;;
12654 # Conflict between --help and --header
12655 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12656 Try \`$0 --help' for more information." >&5
12657 echo "$as_me: error: ambiguous option: $1
12658 Try \`$0 --help' for more information." >&2;}
12659 { (exit 1); exit 1; }; };;
12660 --help | --hel | -h )
12661 echo "$ac_cs_usage"; exit 0 ;;
12662 --debug | --d* | -d )
12664 --file | --fil | --fi | --f )
12666 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12667 ac_need_defaults=false;;
12668 --header | --heade | --head | --hea )
12670 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12671 ac_need_defaults=false;;
12672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12673 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12676 # This is an error.
12677 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12678 Try \`$0 --help' for more information." >&5
12679 echo "$as_me: error: unrecognized option: $1
12680 Try \`$0 --help' for more information." >&2;}
12681 { (exit 1); exit 1; }; } ;;
12683 *) ac_config_targets="$ac_config_targets $1" ;;
12689 ac_configure_extra_args=
12691 if $ac_cs_silent; then
12693 ac_configure_extra_args="$ac_configure_extra_args --silent"
12697 cat >>$CONFIG_STATUS <<_ACEOF
12698 if \$ac_cs_recheck; then
12699 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12700 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12705 cat >>$CONFIG_STATUS <<_ACEOF
12707 # INIT-COMMANDS section.
12711 symbolic_link='$symbolic_link'
12718 cat >>$CONFIG_STATUS <<\_ACEOF
12719 for ac_config_target in $ac_config_targets
12721 case "$ac_config_target" in
12722 # Handling of arguments.
12723 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12724 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12725 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12726 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12727 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12728 { (exit 1); exit 1; }; };;
12732 # If the user did not use the arguments to specify the items to instantiate,
12733 # then the envvar interface is used. Set only those that are not.
12734 # We use the long form for the default assignment because of an extremely
12735 # bizarre bug on SunOS 4.1.3.
12736 if $ac_need_defaults; then
12737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12742 # Have a temporary directory for convenience. Make it in the build tree
12743 # simply because there is no reason to put it here, and in addition,
12744 # creating and moving files from /tmp can sometimes cause problems.
12745 # Create a temporary directory, and hook for its removal unless debugging.
12748 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12749 trap '{ (exit 1); exit 1; }' 1 2 13 15
12752 # Create a (secure) tmp directory for tmp files.
12755 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12756 test -n "$tmp" && test -d "$tmp"
12759 tmp=./confstat$$-$RANDOM
12760 (umask 077 && mkdir $tmp)
12763 echo "$me: cannot create a temporary directory in ." >&2
12764 { (exit 1); exit 1; }
12769 cat >>$CONFIG_STATUS <<_ACEOF
12772 # CONFIG_FILES section.
12775 # No need to generate the scripts if there are no CONFIG_FILES.
12776 # This happens for instance when ./config.status config.h
12777 if test -n "\$CONFIG_FILES"; then
12778 # Protect against being on the right side of a sed subst in config.status.
12779 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12780 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12781 s,@SHELL@,$SHELL,;t t
12782 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12783 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12784 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12785 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12786 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12787 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12788 s,@exec_prefix@,$exec_prefix,;t t
12789 s,@prefix@,$prefix,;t t
12790 s,@program_transform_name@,$program_transform_name,;t t
12791 s,@bindir@,$bindir,;t t
12792 s,@sbindir@,$sbindir,;t t
12793 s,@libexecdir@,$libexecdir,;t t
12794 s,@datadir@,$datadir,;t t
12795 s,@sysconfdir@,$sysconfdir,;t t
12796 s,@sharedstatedir@,$sharedstatedir,;t t
12797 s,@localstatedir@,$localstatedir,;t t
12798 s,@libdir@,$libdir,;t t
12799 s,@includedir@,$includedir,;t t
12800 s,@oldincludedir@,$oldincludedir,;t t
12801 s,@infodir@,$infodir,;t t
12802 s,@mandir@,$mandir,;t t
12803 s,@build_alias@,$build_alias,;t t
12804 s,@host_alias@,$host_alias,;t t
12805 s,@target_alias@,$target_alias,;t t
12806 s,@DEFS@,$DEFS,;t t
12807 s,@ECHO_C@,$ECHO_C,;t t
12808 s,@ECHO_N@,$ECHO_N,;t t
12809 s,@ECHO_T@,$ECHO_T,;t t
12810 s,@LIBS@,$LIBS,;t t
12811 s,@build@,$build,;t t
12812 s,@build_cpu@,$build_cpu,;t t
12813 s,@build_vendor@,$build_vendor,;t t
12814 s,@build_os@,$build_os,;t t
12815 s,@host@,$host,;t t
12816 s,@host_cpu@,$host_cpu,;t t
12817 s,@host_vendor@,$host_vendor,;t t
12818 s,@host_os@,$host_os,;t t
12819 s,@target@,$target,;t t
12820 s,@target_cpu@,$target_cpu,;t t
12821 s,@target_vendor@,$target_vendor,;t t
12822 s,@target_os@,$target_os,;t t
12823 s,@build_subdir@,$build_subdir,;t t
12824 s,@host_subdir@,$host_subdir,;t t
12825 s,@target_subdir@,$target_subdir,;t t
12826 s,@GENINSRC@,$GENINSRC,;t t
12828 s,@CFLAGS@,$CFLAGS,;t t
12829 s,@LDFLAGS@,$LDFLAGS,;t t
12830 s,@CPPFLAGS@,$CPPFLAGS,;t t
12831 s,@ac_ct_CC@,$ac_ct_CC,;t t
12832 s,@EXEEXT@,$EXEEXT,;t t
12833 s,@OBJEXT@,$OBJEXT,;t t
12834 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12835 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12837 s,@strict1_warn@,$strict1_warn,;t t
12838 s,@warn_cflags@,$warn_cflags,;t t
12839 s,@WERROR@,$WERROR,;t t
12840 s,@nocommon_flag@,$nocommon_flag,;t t
12841 s,@TREEBROWSER@,$TREEBROWSER,;t t
12842 s,@EGREP@,$EGREP,;t t
12843 s,@valgrind_path@,$valgrind_path,;t t
12844 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12845 s,@valgrind_command@,$valgrind_command,;t t
12846 s,@coverage_flags@,$coverage_flags,;t t
12847 s,@enable_multilib@,$enable_multilib,;t t
12848 s,@enable_shared@,$enable_shared,;t t
12849 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12850 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12851 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12852 s,@onestep@,$onestep,;t t
12853 s,@SET_MAKE@,$SET_MAKE,;t t
12855 s,@LN_S@,$LN_S,;t t
12856 s,@RANLIB@,$RANLIB,;t t
12857 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12858 s,@ranlib_flags@,$ranlib_flags,;t t
12859 s,@INSTALL@,$INSTALL,;t t
12860 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12861 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12862 s,@make_compare_target@,$make_compare_target,;t t
12863 s,@have_mktemp_command@,$have_mktemp_command,;t t
12864 s,@MAKEINFO@,$MAKEINFO,;t t
12865 s,@BUILD_INFO@,$BUILD_INFO,;t t
12866 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12867 s,@FLEX@,$FLEX,;t t
12868 s,@BISON@,$BISON,;t t
12869 s,@stage1_cflags@,$stage1_cflags,;t t
12870 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12871 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12872 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12873 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12874 s,@LIBICONV@,$LIBICONV,;t t
12875 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12876 s,@manext@,$manext,;t t
12877 s,@objext@,$objext,;t t
12878 s,@gthread_flags@,$gthread_flags,;t t
12879 s,@extra_modes_file@,$extra_modes_file,;t t
12880 s,@FORBUILD@,$FORBUILD,;t t
12881 s,@PACKAGE@,$PACKAGE,;t t
12882 s,@VERSION@,$VERSION,;t t
12883 s,@USE_NLS@,$USE_NLS,;t t
12884 s,@LIBINTL@,$LIBINTL,;t t
12885 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12886 s,@INCINTL@,$INCINTL,;t t
12887 s,@XGETTEXT@,$XGETTEXT,;t t
12888 s,@GMSGFMT@,$GMSGFMT,;t t
12889 s,@POSUB@,$POSUB,;t t
12890 s,@CATALOGS@,$CATALOGS,;t t
12891 s,@CROSS@,$CROSS,;t t
12893 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12894 s,@inhibit_libc@,$inhibit_libc,;t t
12895 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12896 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12897 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12898 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12899 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12900 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12901 s,@collect2@,$collect2,;t t
12902 s,@libgcc_visibility@,$libgcc_visibility,;t t
12904 s,@zlibdir@,$zlibdir,;t t
12905 s,@zlibinc@,$zlibinc,;t t
12906 s,@MAINT@,$MAINT,;t t
12907 s,@ANDER@,$ANDER,;t t
12908 s,@BANSHEEINC@,$BANSHEEINC,;t t
12909 s,@BANSHEELIB@,$BANSHEELIB,;t t
12910 s,@gcc_tooldir@,$gcc_tooldir,;t t
12911 s,@dollar@,$dollar,;t t
12912 s,@slibdir@,$slibdir,;t t
12913 s,@objdir@,$objdir,;t t
12914 s,@subdirs@,$subdirs,;t t
12915 s,@srcdir@,$srcdir,;t t
12916 s,@all_boot_languages@,$all_boot_languages,;t t
12917 s,@all_compilers@,$all_compilers,;t t
12918 s,@all_gtfiles@,$all_gtfiles,;t t
12919 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12920 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12921 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12922 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12923 s,@all_languages@,$all_languages,;t t
12924 s,@all_stagestuff@,$all_stagestuff,;t t
12925 s,@build_exeext@,$build_exeext,;t t
12926 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12927 s,@build_xm_file_list@,$build_xm_file_list,;t t
12928 s,@build_xm_include_list@,$build_xm_include_list,;t t
12929 s,@build_xm_defines@,$build_xm_defines,;t t
12930 s,@check_languages@,$check_languages,;t t
12931 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12932 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12933 s,@cpp_install_dir@,$cpp_install_dir,;t t
12934 s,@xmake_file@,$xmake_file,;t t
12935 s,@tmake_file@,$tmake_file,;t t
12936 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12937 s,@extra_headers_list@,$extra_headers_list,;t t
12938 s,@extra_objs@,$extra_objs,;t t
12939 s,@extra_parts@,$extra_parts,;t t
12940 s,@extra_passes@,$extra_passes,;t t
12941 s,@extra_programs@,$extra_programs,;t t
12942 s,@float_h_file@,$float_h_file,;t t
12943 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12944 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12945 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12946 s,@gcc_version@,$gcc_version,;t t
12947 s,@gcc_version_full@,$gcc_version_full,;t t
12948 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12949 s,@host_exeext@,$host_exeext,;t t
12950 s,@host_xm_file_list@,$host_xm_file_list,;t t
12951 s,@host_xm_include_list@,$host_xm_include_list,;t t
12952 s,@host_xm_defines@,$host_xm_defines,;t t
12953 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12954 s,@install@,$install,;t t
12955 s,@lang_opt_files@,$lang_opt_files,;t t
12956 s,@lang_specs_files@,$lang_specs_files,;t t
12957 s,@lang_tree_files@,$lang_tree_files,;t t
12958 s,@local_prefix@,$local_prefix,;t t
12959 s,@md_file@,$md_file,;t t
12960 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12961 s,@out_file@,$out_file,;t t
12962 s,@out_object_file@,$out_object_file,;t t
12963 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12964 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12965 s,@symbolic_link@,$symbolic_link,;t t
12966 s,@thread_file@,$thread_file,;t t
12967 s,@tm_file_list@,$tm_file_list,;t t
12968 s,@tm_include_list@,$tm_include_list,;t t
12969 s,@tm_defines@,$tm_defines,;t t
12970 s,@tm_p_file_list@,$tm_p_file_list,;t t
12971 s,@tm_p_include_list@,$tm_p_include_list,;t t
12972 s,@xm_file_list@,$xm_file_list,;t t
12973 s,@xm_include_list@,$xm_include_list,;t t
12974 s,@xm_defines@,$xm_defines,;t t
12975 s,@target_noncanonical@,$target_noncanonical,;t t
12976 s,@c_target_objs@,$c_target_objs,;t t
12977 s,@cxx_target_objs@,$cxx_target_objs,;t t
12978 s,@target_cpu_default@,$target_cpu_default,;t t
12979 s,@GMPLIBS@,$GMPLIBS,;t t
12980 s,@GMPINC@,$GMPINC,;t t
12981 s,@LIBOBJS@,$LIBOBJS,;t t
12982 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12983 /@language_hooks@/r $language_hooks
12984 s,@language_hooks@,,;t t
12989 cat >>$CONFIG_STATUS <<\_ACEOF
12990 # Split the substitutions into bite-sized pieces for seds with
12991 # small command number limits, like on Digital OSF/1 and HP-UX.
12992 ac_max_sed_lines=48
12993 ac_sed_frag=1 # Number of current file.
12994 ac_beg=1 # First line for current file.
12995 ac_end=$ac_max_sed_lines # Line after last line for current file.
12998 while $ac_more_lines; do
12999 if test $ac_beg -gt 1; then
13000 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13002 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13004 if test ! -s $tmp/subs.frag; then
13005 ac_more_lines=false
13007 # The purpose of the label and of the branching condition is to
13008 # speed up the sed processing (if there are no `@' at all, there
13009 # is no need to browse any of the substitutions).
13010 # These are the two extra sed commands mentioned above.
13012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13013 if test -z "$ac_sed_cmds"; then
13014 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13016 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13018 ac_sed_frag=`expr $ac_sed_frag + 1`
13020 ac_end=`expr $ac_end + $ac_max_sed_lines`
13023 if test -z "$ac_sed_cmds"; then
13026 fi # test -n "$CONFIG_FILES"
13029 cat >>$CONFIG_STATUS <<\_ACEOF
13030 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13031 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13033 - | *:- | *:-:* ) # input from stdin
13035 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13037 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13038 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13039 * ) ac_file_in=$ac_file.in ;;
13042 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13043 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13045 X"$ac_file" : 'X\(//\)[^/]' \| \
13046 X"$ac_file" : 'X\(//\)$' \| \
13047 X"$ac_file" : 'X\(/\)' \| \
13048 . : '\(.\)' 2>/dev/null ||
13050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13052 /^X\(\/\/\)$/{ s//\1/; q; }
13053 /^X\(\/\).*/{ s//\1/; q; }
13055 { if $as_mkdir_p; then
13060 while test ! -d "$as_dir"; do
13061 as_dirs="$as_dir $as_dirs"
13062 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13064 X"$as_dir" : 'X\(//\)[^/]' \| \
13065 X"$as_dir" : 'X\(//\)$' \| \
13066 X"$as_dir" : 'X\(/\)' \| \
13067 . : '\(.\)' 2>/dev/null ||
13069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13071 /^X\(\/\/\)$/{ s//\1/; q; }
13072 /^X\(\/\).*/{ s//\1/; q; }
13075 test ! -n "$as_dirs" || mkdir $as_dirs
13076 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13077 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13078 { (exit 1); exit 1; }; }; }
13082 if test "$ac_dir" != .; then
13083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13084 # A "../" for each directory in $ac_dir_suffix.
13085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13087 ac_dir_suffix= ac_top_builddir=
13091 .) # No --srcdir option. We are building in place.
13093 if test -z "$ac_top_builddir"; then
13096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13098 [\\/]* | ?:[\\/]* ) # Absolute path.
13099 ac_srcdir=$srcdir$ac_dir_suffix;
13100 ac_top_srcdir=$srcdir ;;
13101 *) # Relative path.
13102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13106 # Do not use `cd foo && pwd` to compute absolute paths, because
13107 # the directories may not exist.
13109 .) ac_abs_builddir="$ac_dir";;
13112 .) ac_abs_builddir=`pwd`;;
13113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13117 case $ac_abs_builddir in
13118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13120 case ${ac_top_builddir}. in
13121 .) ac_abs_top_builddir=$ac_abs_builddir;;
13122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13126 case $ac_abs_builddir in
13127 .) ac_abs_srcdir=$ac_srcdir;;
13130 .) ac_abs_srcdir=$ac_abs_builddir;;
13131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13135 case $ac_abs_builddir in
13136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13138 case $ac_top_srcdir in
13139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13147 if test x"$ac_file" != x-; then
13148 { echo "$as_me:$LINENO: creating $ac_file" >&5
13149 echo "$as_me: creating $ac_file" >&6;}
13152 # Let's still pretend it is `configure' which instantiates (i.e., don't
13153 # use $as_me), people would be surprised to read:
13154 # /* config.h. Generated by config.status. */
13155 if test x"$ac_file" = x-; then
13158 configure_input="$ac_file. "
13160 configure_input=$configure_input"Generated from `echo $ac_file_in |
13161 sed 's,.*/,,'` by configure."
13163 # First look for the input files in the build tree, otherwise in the
13165 ac_file_inputs=`IFS=:
13166 for f in $ac_file_in; do
13168 -) echo $tmp/stdin ;;
13170 # Absolute (can't be DOS-style, as IFS=:)
13171 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13172 echo "$as_me: error: cannot find input file: $f" >&2;}
13173 { (exit 1); exit 1; }; }
13176 if test -f "$f"; then
13179 elif test -f "$srcdir/$f"; then
13184 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13185 echo "$as_me: error: cannot find input file: $f" >&2;}
13186 { (exit 1); exit 1; }; }
13189 done` || { (exit 1); exit 1; }
13191 cat >>$CONFIG_STATUS <<_ACEOF
13195 cat >>$CONFIG_STATUS <<\_ACEOF
13197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13198 s,@configure_input@,$configure_input,;t t
13199 s,@srcdir@,$ac_srcdir,;t t
13200 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13201 s,@top_srcdir@,$ac_top_srcdir,;t t
13202 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13203 s,@builddir@,$ac_builddir,;t t
13204 s,@abs_builddir@,$ac_abs_builddir,;t t
13205 s,@top_builddir@,$ac_top_builddir,;t t
13206 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13207 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13209 if test x"$ac_file" != x-; then
13210 mv $tmp/out $ac_file
13218 cat >>$CONFIG_STATUS <<\_ACEOF
13221 # CONFIG_HEADER section.
13224 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13225 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13227 # ac_d sets the value in "#define NAME VALUE" lines.
13228 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13229 ac_dB='[ ].*$,\1#\2'
13232 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13233 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13234 ac_uB='$,\1#\2define\3'
13238 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13239 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13241 - | *:- | *:-:* ) # input from stdin
13243 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13244 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13245 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13246 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13247 * ) ac_file_in=$ac_file.in ;;
13250 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13251 echo "$as_me: creating $ac_file" >&6;}
13253 # First look for the input files in the build tree, otherwise in the
13255 ac_file_inputs=`IFS=:
13256 for f in $ac_file_in; do
13258 -) echo $tmp/stdin ;;
13260 # Absolute (can't be DOS-style, as IFS=:)
13261 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13262 echo "$as_me: error: cannot find input file: $f" >&2;}
13263 { (exit 1); exit 1; }; }
13264 # Do quote $f, to prevent DOS paths from being IFS'd.
13267 if test -f "$f"; then
13270 elif test -f "$srcdir/$f"; then
13275 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13276 echo "$as_me: error: cannot find input file: $f" >&2;}
13277 { (exit 1); exit 1; }; }
13280 done` || { (exit 1); exit 1; }
13281 # Remove the trailing spaces.
13282 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13286 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13287 # `conftest.undefs', that substitutes the proper values into
13288 # config.h.in to produce config.h. The first handles `#define'
13289 # templates, and the second `#undef' templates.
13290 # And first: Protect against being on the right side of a sed subst in
13291 # config.status. Protect against being in an unquoted here document
13292 # in config.status.
13293 rm -f conftest.defines conftest.undefs
13294 # Using a here document instead of a string reduces the quoting nightmare.
13295 # Putting comments in sed scripts is not portable.
13297 # `end' is used to avoid that the second main sed command (meant for
13298 # 0-ary CPP macros) applies to n-ary macro definitions.
13299 # See the Autoconf documentation for `clear'.
13300 cat >confdef2sed.sed <<\_ACEOF
13305 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13307 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13310 # If some macros were called several times there might be several times
13311 # the same #defines, which is useless. Nevertheless, we may not want to
13312 # sort them, since we want the *last* AC-DEFINE to be honored.
13313 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13314 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13315 rm -f confdef2sed.sed
13317 # This sed command replaces #undef with comments. This is necessary, for
13318 # example, in the case of _POSIX_SOURCE, which is predefined and required
13319 # on some systems where configure will not decide to define it.
13320 cat >>conftest.undefs <<\_ACEOF
13321 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13324 # Break up conftest.defines because some shells have a limit on the size
13325 # of here documents, and old seds have small limits too (100 cmds).
13326 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13327 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13328 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13329 echo ' :' >>$CONFIG_STATUS
13330 rm -f conftest.tail
13331 while grep . conftest.defines >/dev/null
13333 # Write a limited-size here document to $tmp/defines.sed.
13334 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13335 # Speed up: don't consider the non `#define' lines.
13336 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13337 # Work around the forget-to-reset-the-flag bug.
13338 echo 't clr' >>$CONFIG_STATUS
13339 echo ': clr' >>$CONFIG_STATUS
13340 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13342 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13344 mv $tmp/out $tmp/in
13346 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13347 rm -f conftest.defines
13348 mv conftest.tail conftest.defines
13350 rm -f conftest.defines
13351 echo ' fi # grep' >>$CONFIG_STATUS
13352 echo >>$CONFIG_STATUS
13354 # Break up conftest.undefs because some shells have a limit on the size
13355 # of here documents, and old seds have small limits too (100 cmds).
13356 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13357 rm -f conftest.tail
13358 while grep . conftest.undefs >/dev/null
13360 # Write a limited-size here document to $tmp/undefs.sed.
13361 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13362 # Speed up: don't consider the non `#undef'
13363 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13364 # Work around the forget-to-reset-the-flag bug.
13365 echo 't clr' >>$CONFIG_STATUS
13366 echo ': clr' >>$CONFIG_STATUS
13367 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13369 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13371 mv $tmp/out $tmp/in
13373 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13374 rm -f conftest.undefs
13375 mv conftest.tail conftest.undefs
13377 rm -f conftest.undefs
13379 cat >>$CONFIG_STATUS <<\_ACEOF
13380 # Let's still pretend it is `configure' which instantiates (i.e., don't
13381 # use $as_me), people would be surprised to read:
13382 # /* config.h. Generated by config.status. */
13383 if test x"$ac_file" = x-; then
13384 echo "/* Generated by configure. */" >$tmp/config.h
13386 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13388 cat $tmp/in >>$tmp/config.h
13390 if test x"$ac_file" != x-; then
13391 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13392 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13393 echo "$as_me: $ac_file is unchanged" >&6;}
13395 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13397 X"$ac_file" : 'X\(//\)[^/]' \| \
13398 X"$ac_file" : 'X\(//\)$' \| \
13399 X"$ac_file" : 'X\(/\)' \| \
13400 . : '\(.\)' 2>/dev/null ||
13402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13404 /^X\(\/\/\)$/{ s//\1/; q; }
13405 /^X\(\/\).*/{ s//\1/; q; }
13407 { if $as_mkdir_p; then
13412 while test ! -d "$as_dir"; do
13413 as_dirs="$as_dir $as_dirs"
13414 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13416 X"$as_dir" : 'X\(//\)[^/]' \| \
13417 X"$as_dir" : 'X\(//\)$' \| \
13418 X"$as_dir" : 'X\(/\)' \| \
13419 . : '\(.\)' 2>/dev/null ||
13421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13423 /^X\(\/\/\)$/{ s//\1/; q; }
13424 /^X\(\/\).*/{ s//\1/; q; }
13427 test ! -n "$as_dirs" || mkdir $as_dirs
13428 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13429 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13430 { (exit 1); exit 1; }; }; }
13433 mv $tmp/config.h $ac_file
13437 rm -f $tmp/config.h
13441 cat >>$CONFIG_STATUS <<\_ACEOF
13444 # CONFIG_COMMANDS section.
13446 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13447 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13448 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13449 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13450 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13451 X"$ac_dest" : 'X\(//\)[^/]' \| \
13452 X"$ac_dest" : 'X\(//\)$' \| \
13453 X"$ac_dest" : 'X\(/\)' \| \
13454 . : '\(.\)' 2>/dev/null ||
13456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13458 /^X\(\/\/\)$/{ s//\1/; q; }
13459 /^X\(\/\).*/{ s//\1/; q; }
13461 { if $as_mkdir_p; then
13466 while test ! -d "$as_dir"; do
13467 as_dirs="$as_dir $as_dirs"
13468 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13470 X"$as_dir" : 'X\(//\)[^/]' \| \
13471 X"$as_dir" : 'X\(//\)$' \| \
13472 X"$as_dir" : 'X\(/\)' \| \
13473 . : '\(.\)' 2>/dev/null ||
13475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13477 /^X\(\/\/\)$/{ s//\1/; q; }
13478 /^X\(\/\).*/{ s//\1/; q; }
13481 test ! -n "$as_dirs" || mkdir $as_dirs
13482 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13483 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13484 { (exit 1); exit 1; }; }; }
13488 if test "$ac_dir" != .; then
13489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13490 # A "../" for each directory in $ac_dir_suffix.
13491 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13493 ac_dir_suffix= ac_top_builddir=
13497 .) # No --srcdir option. We are building in place.
13499 if test -z "$ac_top_builddir"; then
13502 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13504 [\\/]* | ?:[\\/]* ) # Absolute path.
13505 ac_srcdir=$srcdir$ac_dir_suffix;
13506 ac_top_srcdir=$srcdir ;;
13507 *) # Relative path.
13508 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13509 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13512 # Do not use `cd foo && pwd` to compute absolute paths, because
13513 # the directories may not exist.
13515 .) ac_abs_builddir="$ac_dir";;
13518 .) ac_abs_builddir=`pwd`;;
13519 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13520 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13523 case $ac_abs_builddir in
13524 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13526 case ${ac_top_builddir}. in
13527 .) ac_abs_top_builddir=$ac_abs_builddir;;
13528 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13529 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13532 case $ac_abs_builddir in
13533 .) ac_abs_srcdir=$ac_srcdir;;
13536 .) ac_abs_srcdir=$ac_abs_builddir;;
13537 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13538 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13541 case $ac_abs_builddir in
13542 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13544 case $ac_top_srcdir in
13545 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13546 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13547 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13552 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13553 echo "$as_me: executing $ac_dest commands" >&6;}
13556 case ${CONFIG_HEADERS} in
13557 *auto-host.h:config.in*)
13560 # Make sure all the subdirs exist.
13563 test -d $d || mkdir $d
13565 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13566 # bootstrapping and the installation procedure can still use
13567 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13568 # FLAGS_TO_PASS has been modified to solve the problem there.
13569 # This is virtually a duplicate of what happens in configure.lang; we do
13570 # an extra check to make sure this only happens if ln -s can be used.
13571 if test "$symbolic_link" = "ln -s"; then
13572 for d in ${subdirs} fixinc ; do
13573 STARTDIR=`${PWDCMD-pwd}`
13575 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13578 $symbolic_link ../$t $t 2>/dev/null
13588 cat >>$CONFIG_STATUS <<\_ACEOF
13590 { (exit 0); exit 0; }
13592 chmod +x $CONFIG_STATUS
13593 ac_clean_files=$ac_clean_files_save
13596 # configure is writing to config.log, and then calls config.status.
13597 # config.status does its own redirection, appending to config.log.
13598 # Unfortunately, on DOS this fails, as config.log is still kept open
13599 # by configure, so config.status won't be able to write to it; its
13600 # output is simply discarded. So we exec the FD to /dev/null,
13601 # effectively closing config.log, so it can be properly (re)opened and
13602 # appended to by config.status. When coming back to configure, we
13603 # need to make the FD available again.
13604 if test "$no_create" != yes; then
13606 ac_config_status_args=
13607 test "$silent" = yes &&
13608 ac_config_status_args="$ac_config_status_args --quiet"
13610 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13612 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13613 # would make configure fail if this is the last instruction.
13614 $ac_cs_success || { (exit 1); exit 1; }