2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP GNATBIND ac_ct_GNATBIND strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility gthread_flags GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir docobjdir parsedir 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_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_extra_gcc_objs host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
312 ac_subst_files='language_hooks'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-generated-files-in-srcdir Put generated files in source dir
853 --enable-werror enable -Werror in bootstrap stage2 and later
854 --enable-checking=LIST
855 enable expensive run-time checks. With LIST,
856 enable only specific categories of checks.
857 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
858 default is misc,tree,gc,rtlflag
859 --enable-coverage=LEVEL
860 enable compiler\'s code coverage collection.
861 Use to measure compiler performance and locate
862 unused parts of the compiler. With LEVEL, specify
863 optimization. Values are opt, noopt,
865 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
866 --enable-multilib enable library support for multiple ABIs
867 --enable-__cxa_atexit enable __cxa_atexit for C++
868 --enable-threads enable thread usage for target GCC
869 --enable-threads=LIB use LIB thread package for target GCC
870 --enable-objc-gc enable the use of Boehm's garbage collector with
871 the GNU Objective-C runtime
872 --disable-shared don't provide a shared libgcc
873 --enable-intermodule build the compiler in one step
874 --enable-initfini-array use .init_array/.fini_array sections
875 --enable-sjlj-exceptions
876 arrange to use setjmp/longjmp exception handling
877 --enable-libunwind-exceptions force use libunwind for exceptions
878 --disable-win32-registry
879 disable lookup of installation paths in the
880 Registry on Windows hosts
881 --enable-win32-registry enable registry lookup (default)
882 --enable-win32-registry=KEY
883 use KEY instead of GCC version as the last portion
885 --enable-maintainer-mode
886 enable make rules and dependencies not useful
887 (and sometimes confusing) to the casual installer
888 --enable-version-specific-runtime-libs
889 specify that runtime libraries should be
890 installed in a compiler-specific directory
893 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
894 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
895 --with-local-prefix=DIR specifies directory to put local include
896 --with-gxx-include-dir=DIR
897 specifies directory to put g++ header files
898 --with-cpp-install-dir=DIR
899 install the user visible C preprocessor in DIR
900 (relative to PREFIX) as well as PREFIX/bin
901 --with-gnu-ld arrange to work with GNU ld.
902 --with-ld arrange to use the specified ld (full pathname)
903 --with-gnu-as arrange to work with GNU as
904 --with-as arrange to use the specified as (full pathname)
905 --with-stabs arrange to use stabs instead of host debug format
906 --with-dwarf2 force the default debug format to be DWARF 2
907 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
908 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
909 --with-gc={simple,page,zone} choose the garbage collection mechanism to use
911 --with-system-zlib use installed libz
912 --with-slibdir=DIR shared libraries in DIR LIBDIR
914 Some influential environment variables:
915 CC C compiler command
916 CFLAGS C compiler flags
917 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
918 nonstandard directory <lib dir>
919 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
920 headers in a nonstandard directory <include dir>
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
929 if test "$ac_init_help" = "recursive"; then
930 # If there are subdirs, report their specific --help.
932 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933 test -d $ac_dir || continue
936 if test "$ac_dir" != .; then
937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938 # A "../" for each directory in $ac_dir_suffix.
939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
941 ac_dir_suffix= ac_top_builddir=
945 .) # No --srcdir option. We are building in place.
947 if test -z "$ac_top_builddir"; then
950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
952 [\\/]* | ?:[\\/]* ) # Absolute path.
953 ac_srcdir=$srcdir$ac_dir_suffix;
954 ac_top_srcdir=$srcdir ;;
956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
962 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
989 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
990 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.57. Invocation command line was
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_must_keep_next=false
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
1079 ac_must_keep_next=false # Got value, back to normal.
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 -* ) ac_must_keep_next=true ;;
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log. We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1119 # The following way of writing the cache mishandles newlines in values,
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1142 for ac_var in $ac_subst_vars
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -n "$ac_subst_files"; then
1156 for ac_var in $ac_subst_files
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1164 if test -s confdefs.h; then
1171 sed "/^$/d" confdefs.h | sort
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1178 rm -f core *.core &&
1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 # Predefined preprocessor variables.
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232 sed 's/^/| /' "$ac_site_file" >&5
1237 if test -r "$cache_file"; then
1238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1254 # Check that the precious variables saved in the cache have kept the same
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1278 echo "$as_me: former value: $ac_old_val" >&2;}
1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1280 echo "$as_me: current value: $ac_new_val" >&2;}
1281 ac_cache_corrupted=:
1284 # Pass precious variables to config.status.
1285 if test "$ac_new_set" = set; then
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297 if $ac_cache_corrupted; then
1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1333 # Determine the host, build, and target systems
1335 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1336 if test -f $ac_dir/install-sh; then
1338 ac_install_sh="$ac_aux_dir/install-sh -c"
1340 elif test -f $ac_dir/install.sh; then
1342 ac_install_sh="$ac_aux_dir/install.sh -c"
1344 elif test -f $ac_dir/shtool; then
1346 ac_install_sh="$ac_aux_dir/shtool install -c"
1350 if test -z "$ac_aux_dir"; then
1351 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1353 { (exit 1); exit 1; }; }
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359 # Make sure we can run config.sub.
1360 $ac_config_sub sun4 >/dev/null 2>&1 ||
1361 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1362 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1363 { (exit 1); exit 1; }; }
1365 echo "$as_me:$LINENO: checking build system type" >&5
1366 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1367 if test "${ac_cv_build+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 ac_cv_build_alias=$build_alias
1371 test -z "$ac_cv_build_alias" &&
1372 ac_cv_build_alias=`$ac_config_guess`
1373 test -z "$ac_cv_build_alias" &&
1374 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1375 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1376 { (exit 1); exit 1; }; }
1377 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1378 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1379 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1380 { (exit 1); exit 1; }; }
1383 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1384 echo "${ECHO_T}$ac_cv_build" >&6
1386 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1387 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1388 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391 echo "$as_me:$LINENO: checking host system type" >&5
1392 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1393 if test "${ac_cv_host+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 ac_cv_host_alias=$host_alias
1397 test -z "$ac_cv_host_alias" &&
1398 ac_cv_host_alias=$ac_cv_build_alias
1399 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1400 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1401 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1402 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1406 echo "${ECHO_T}$ac_cv_host" >&6
1408 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413 echo "$as_me:$LINENO: checking target system type" >&5
1414 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1415 if test "${ac_cv_target+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 ac_cv_target_alias=$target_alias
1419 test "x$ac_cv_target_alias" = "x" &&
1420 ac_cv_target_alias=$ac_cv_host_alias
1421 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1428 echo "${ECHO_T}$ac_cv_target" >&6
1429 target=$ac_cv_target
1430 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435 # The aliases save the names the user supplied, while $host etc.
1436 # will get canonicalized.
1437 test -n "$target_alias" &&
1438 test "$program_prefix$program_suffix$program_transform_name" = \
1440 program_prefix=${target_alias}-
1442 # Determine the noncanonical target name, for directory use.
1443 case ${build_alias} in
1444 "") build_noncanonical=${build} ;;
1445 *) build_noncanonical=${build_alias} ;;
1448 case ${host_alias} in
1449 "") host_noncanonical=${build_noncanonical} ;;
1450 *) host_noncanonical=${host_alias} ;;
1453 case ${target_alias} in
1454 "") target_noncanonical=${host_noncanonical} ;;
1455 *) target_noncanonical=${target_alias} ;;
1459 # Determine the target- and build-specific subdirectories
1460 # Prefix 'build-' so this never conflicts with target_subdir.
1461 build_subdir="build-${build_noncanonical}"
1462 # Not really a subdirectory, but here for completeness.
1465 target_subdir=${target_noncanonical}
1468 # Set program_transform_name
1469 test "$program_prefix" != NONE &&
1470 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1471 # Use a double $ so make ignores it.
1472 test "$program_suffix" != NONE &&
1473 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1474 # Double any \ or $. echo might interpret backslashes.
1475 # By default was `s,x,x', remove it if useless.
1476 cat <<\_ACEOF >conftest.sed
1477 s/[\\$]/&&/g;s/;s,x,x,$//
1479 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1483 # Check for bogus environment variables.
1484 # Test if LIBRARY_PATH contains the notation for the current directory
1485 # since this would lead to problems installing/building glibc.
1486 # LIBRARY_PATH contains the current directory if one of the following
1488 # - one of the terminals (":" and ";") is the first or last sign
1489 # - two terminals occur directly after each other
1490 # - the path contains an element with a dot in it
1491 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1492 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1493 case ${LIBRARY_PATH} in
1494 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1495 library_path_setting="contains current directory"
1498 library_path_setting="ok"
1501 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1502 echo "${ECHO_T}$library_path_setting" >&6
1503 if test "$library_path_setting" != "ok"; then
1504 { { echo "$as_me:$LINENO: error:
1505 *** LIBRARY_PATH shouldn't contain the current directory when
1506 *** building gcc. Please change the environment variable
1507 *** and run configure again." >&5
1508 echo "$as_me: error:
1509 *** LIBRARY_PATH shouldn't contain the current directory when
1510 *** building gcc. Please change the environment variable
1511 *** and run configure again." >&2;}
1512 { (exit 1); exit 1; }; }
1515 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1516 # since this would lead to problems installing/building glibc.
1517 # GCC_EXEC_PREFIX contains the current directory if one of the following
1519 # - one of the terminals (":" and ";") is the first or last sign
1520 # - two terminals occur directly after each other
1521 # - the path contains an element with a dot in it
1522 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1523 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1524 case ${GCC_EXEC_PREFIX} in
1525 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1526 gcc_exec_prefix_setting="contains current directory"
1529 gcc_exec_prefix_setting="ok"
1532 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1533 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1534 if test "$gcc_exec_prefix_setting" != "ok"; then
1535 { { echo "$as_me:$LINENO: error:
1536 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1537 *** building gcc. Please change the environment variable
1538 *** and run configure again." >&5
1539 echo "$as_me: error:
1540 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1541 *** building gcc. Please change the environment variable
1542 *** and run configure again." >&2;}
1543 { (exit 1); exit 1; }; }
1550 # Specify the local prefix
1553 # Check whether --with-local-prefix or --without-local-prefix was given.
1554 if test "${with_local_prefix+set}" = set; then
1555 withval="$with_local_prefix"
1556 case "${withval}" in
1557 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1558 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1559 { (exit 1); exit 1; }; } ;;
1561 *) local_prefix=$with_local_prefix ;;
1565 # Default local prefix if it is empty
1566 if test x$local_prefix = x; then
1567 local_prefix=/usr/local
1570 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1571 # passed in by the toplevel make and thus we'd get different behavior
1572 # depending on where we built the sources.
1573 gcc_gxx_include_dir=
1574 # Specify the g++ header file directory
1576 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1577 if test "${with_gxx_include_dir+set}" = set; then
1578 withval="$with_gxx_include_dir"
1579 case "${withval}" in
1580 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1581 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1582 { (exit 1); exit 1; }; } ;;
1584 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1588 if test x${gcc_gxx_include_dir} = x; then
1589 if test x${enable_version_specific_runtime_libs} = xyes; then
1590 gcc_gxx_include_dir='${libsubdir}/include/c++'
1592 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1593 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1598 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1599 if test "${with_cpp_install_dir+set}" = set; then
1600 withval="$with_cpp_install_dir"
1601 if test x$withval = xyes; then
1602 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1603 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1604 { (exit 1); exit 1; }; }
1605 elif test x$withval != xno; then
1606 cpp_install_dir=$withval
1610 # We would like to our source tree to be readonly. However when releases or
1611 # pre-releases are generated, the flex/bison generated files as well as the
1612 # various formats of manuals need to be included along with the rest of the
1613 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1616 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1617 if test "${enable_generated_files_in_srcdir+set}" = set; then
1618 enableval="$enable_generated_files_in_srcdir"
1619 case ${enableval} in
1620 no) parsedir='$(objdir)'; docobjdir='$(objdir)/doc';;
1621 *) parsedir='$(srcdir)'; docobjdir='$(srcdir)/doc';;
1624 parsedir='$(objdir)'; docobjdir='$(objdir)/doc';
1627 # -------------------
1628 # Find default linker
1629 # -------------------
1633 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1634 if test "${with_gnu_ld+set}" = set; then
1635 withval="$with_gnu_ld"
1636 gnu_ld_flag="$with_gnu_ld"
1641 # With pre-defined ld
1643 # Check whether --with-ld or --without-ld was given.
1644 if test "${with_ld+set}" = set; then
1646 DEFAULT_LINKER="$with_ld"
1648 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1649 if test ! -x "$DEFAULT_LINKER"; then
1650 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1651 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1652 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1656 cat >>confdefs.h <<_ACEOF
1657 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1662 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1663 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1664 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1665 if test x"$gnu_ld_flag" = x"no"; then
1666 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1667 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1669 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1670 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1677 # ----------------------
1678 # Find default assembler
1679 # ----------------------
1683 # Check whether --with-gnu-as or --without-gnu-as was given.
1684 if test "${with_gnu_as+set}" = set; then
1685 withval="$with_gnu_as"
1686 gas_flag="$with_gnu_as"
1692 # Check whether --with-as or --without-as was given.
1693 if test "${with_as+set}" = set; then
1695 DEFAULT_ASSEMBLER="$with_as"
1697 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1698 if test ! -x "$DEFAULT_ASSEMBLER"; then
1699 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1700 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1701 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1705 cat >>confdefs.h <<_ACEOF
1706 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1711 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1712 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1713 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1714 if test x"$gas_flag" = x"no"; then
1715 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1716 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1718 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1719 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1730 # Find the native compiler
1732 ac_cpp='$CPP $CPPFLAGS'
1733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$CC"; then
1745 ac_cv_prog_CC="$CC" # Let the user override the test.
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 if test -n "$CC"; then
1765 echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1773 if test -z "$ac_cv_prog_CC"; then
1775 # Extract the first word of "gcc", so it can be a program name with args.
1776 set dummy gcc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="gcc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1815 if test -z "$CC"; then
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1818 set dummy ${ac_tool_prefix}cc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="${ac_tool_prefix}cc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$ac_cv_prog_CC"; then
1855 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="cc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1896 if test -z "$CC"; then
1897 # Extract the first word of "cc", so it can be a program name with args.
1898 set dummy cc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$CC"; then
1905 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1916 ac_prog_rejected=yes
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 if test $ac_prog_rejected = yes; then
1927 # We found a bogon in the path, so make sure we never use it.
1928 set dummy $ac_cv_prog_CC
1930 if test $# != 0; then
1931 # We chose a different compiler from the bogus one.
1932 # However, it has the same basename, so the bogon will be chosen
1933 # first if we set CC to just the basename; use the full file name.
1935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 test -n "$CC" && break
1992 if test -z "$CC"; then
1996 # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$ac_ct_CC"; then
2004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_ac_ct_CC="$ac_prog"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2031 test -n "$ac_ct_CC" && break
2040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&5
2042 echo "$as_me: error: no acceptable C compiler found in \$PATH
2043 See \`config.log' for more details." >&2;}
2044 { (exit 1); exit 1; }; }
2046 # Provide some information about the compiler.
2047 echo "$as_me:$LINENO:" \
2048 "checking for C compiler version" >&5
2049 ac_compiler=`set X $ac_compile; echo $2`
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2051 (eval $ac_compiler --version </dev/null >&5) 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2056 (eval $ac_compiler -v </dev/null >&5) 2>&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }
2060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2061 (eval $ac_compiler -V </dev/null >&5) 2>&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }
2066 cat >conftest.$ac_ext <<_ACEOF
2067 #line $LINENO "configure"
2070 cat confdefs.h >>conftest.$ac_ext
2071 cat >>conftest.$ac_ext <<_ACEOF
2072 /* end confdefs.h. */
2082 ac_clean_files_save=$ac_clean_files
2083 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2084 # Try to create an executable without -o first, disregard a.out.
2085 # It will help us diagnose broken compilers, and finding out an intuition
2087 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2088 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2089 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2091 (eval $ac_link_default) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # Find the output, starting from the most likely. This scheme is
2096 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2099 # Be careful to initialize this variable, since it used to be cached.
2100 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2102 # b.out is created by i960 compilers.
2103 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2105 test -f "$ac_file" || continue
2107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2110 # This is the source file.
2113 # We found the default executable, but exeext='' is most
2117 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118 # FIXME: I believe we export ac_cv_exeext for Libtool,
2119 # but it would be cool to find out if it's true. Does anybody
2120 # maintain Libtool? --akim.
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2131 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: C compiler cannot create executables
2134 See \`config.log' for more details." >&2;}
2135 { (exit 77); exit 77; }; }
2138 ac_exeext=$ac_cv_exeext
2139 echo "$as_me:$LINENO: result: $ac_file" >&5
2140 echo "${ECHO_T}$ac_file" >&6
2142 # Check the compiler produces executables we can run. If not, either
2143 # the compiler is broken, or we cross compile.
2144 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2145 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2146 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2147 # If not cross compiling, check that we can run a simple program.
2148 if test "$cross_compiling" != yes; then
2149 if { ac_try='./$ac_file'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2157 if test "$cross_compiling" = maybe; then
2160 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2161 If you meant to cross compile, use \`--host'.
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
2170 echo "$as_me:$LINENO: result: yes" >&5
2171 echo "${ECHO_T}yes" >&6
2173 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2174 ac_clean_files=$ac_clean_files_save
2175 # Check the compiler produces executables we can run. If not, either
2176 # the compiler is broken, or we cross compile.
2177 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2178 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2179 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2180 echo "${ECHO_T}$cross_compiling" >&6
2182 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2183 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2185 (eval $ac_link) 2>&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; then
2189 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2190 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2191 # work properly (i.e., refer to `conftest.exe'), while it won't with
2193 for ac_file in conftest.exe conftest conftest.*; do
2194 test -f "$ac_file" || continue
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2207 See \`config.log' for more details." >&2;}
2208 { (exit 1); exit 1; }; }
2211 rm -f conftest$ac_cv_exeext
2212 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213 echo "${ECHO_T}$ac_cv_exeext" >&6
2215 rm -f conftest.$ac_ext
2216 EXEEXT=$ac_cv_exeext
2218 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2220 if test "${ac_cv_objext+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 cat >conftest.$ac_ext <<_ACEOF
2224 #line $LINENO "configure"
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2239 rm -f conftest.o conftest.obj
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; then
2245 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2248 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2256 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2265 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2266 echo "${ECHO_T}$ac_cv_objext" >&6
2267 OBJEXT=$ac_cv_objext
2269 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2270 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2271 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 cat >conftest.$ac_ext <<_ACEOF
2275 #line $LINENO "configure"
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2293 rm -f conftest.$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2316 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2317 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2318 GCC=`test $ac_compiler_gnu = yes && echo yes`
2319 ac_test_CFLAGS=${CFLAGS+set}
2320 ac_save_CFLAGS=$CFLAGS
2322 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cc_g+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.$ac_ext <<_ACEOF
2328 #line $LINENO "configure"
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -s conftest.$ac_objext'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; }; then
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2362 rm -f conftest.$ac_objext conftest.$ac_ext
2364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2365 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2366 if test "$ac_test_CFLAGS" = set; then
2367 CFLAGS=$ac_save_CFLAGS
2368 elif test $ac_cv_prog_cc_g = yes; then
2369 if test "$GCC" = yes; then
2375 if test "$GCC" = yes; then
2381 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2382 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2383 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 ac_cv_prog_cc_stdc=no
2388 cat >conftest.$ac_ext <<_ACEOF
2389 #line $LINENO "configure"
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2397 #include <sys/types.h>
2398 #include <sys/stat.h>
2399 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2400 struct buf { int x; };
2401 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2402 static char *e (p, i)
2408 static char *f (char * (*g) (char **, int), char **p, ...)
2413 s = g (p, va_arg (v,int));
2417 int test (int i, double x);
2418 struct s1 {int (*f) (int a);};
2419 struct s2 {int (*f) (double a);};
2420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2426 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2431 # Don't try gcc -ansi; that turns off useful extensions and
2432 # breaks some systems' header files.
2433 # AIX -qlanglvl=ansi
2434 # Ultrix and OSF/1 -std1
2435 # HP-UX 10.20 and later -Ae
2436 # HP-UX older versions -Aa -D_HPUX_SOURCE
2437 # SVR4 -Xc -D__EXTENSIONS__
2438 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2440 CC="$ac_save_CC $ac_arg"
2441 rm -f conftest.$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443 (eval $ac_compile) 2>&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -s conftest.$ac_objext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 ac_cv_prog_cc_stdc=$ac_arg
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2460 rm -f conftest.$ac_objext
2462 rm -f conftest.$ac_ext conftest.$ac_objext
2467 case "x$ac_cv_prog_cc_stdc" in
2469 echo "$as_me:$LINENO: result: none needed" >&5
2470 echo "${ECHO_T}none needed" >&6 ;;
2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2474 CC="$CC $ac_cv_prog_cc_stdc" ;;
2477 # Some people use a C++ compiler to compile C. Since we use `exit',
2478 # in C++ we need to declare it. In case someone uses the same compiler
2479 # for both compiling C and C++ we need to have the C++ compiler decide
2480 # the declaration of exit, since it's the most demanding environment.
2481 cat >conftest.$ac_ext <<_ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 for ac_declaration in \
2500 'extern "C" void std::exit (int) throw (); using std::exit;' \
2501 'extern "C" void std::exit (int); using std::exit;' \
2502 'extern "C" void exit (int) throw ();' \
2503 'extern "C" void exit (int);' \
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 cat >conftest.$ac_ext <<_ACEOF
2544 #line $LINENO "configure"
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2577 rm -f conftest.$ac_objext conftest.$ac_ext
2580 if test -n "$ac_declaration"; then
2581 echo '#ifdef __cplusplus' >>confdefs.h
2582 echo $ac_declaration >>confdefs.h
2583 echo '#endif' >>confdefs.h
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2591 rm -f conftest.$ac_objext conftest.$ac_ext
2593 ac_cpp='$CPP $CPPFLAGS'
2594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 if test "x$CC" != xcc; then
2599 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2600 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2602 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2603 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2605 set dummy $CC; ac_cc=`echo $2 |
2606 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2607 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2626 # Make sure it works both with $CC and with simple cc.
2627 # We do the test twice because some compilers refuse to overwrite an
2628 # existing .o file with -o, though they will create one.
2629 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2630 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); };
2641 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2642 if test "x$CC" != xcc; then
2643 # Test first that cc exists at all.
2644 if { ac_try='cc -c conftest.$ac_ext >&5'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2650 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2651 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); };
2665 # cc exists but doesn't like -o.
2666 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2671 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2676 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2677 echo "$as_me:$LINENO: result: yes" >&5
2678 echo "${ECHO_T}yes" >&6
2680 echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6
2683 cat >>confdefs.h <<\_ACEOF
2684 #define NO_MINUS_C_MINUS_O 1
2689 # autoconf is lame and doesn't give us any substitution variable for this.
2690 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2691 NO_MINUS_C_MINUS_O=yes
2693 OUTPUT_OPTION='-o $@'
2698 # -------------------------
2699 # Check C compiler features
2700 # -------------------------
2703 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2704 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 save_CFLAGS="$CFLAGS"
2709 CFLAGS="-Wno-long-long"
2710 cat >conftest.$ac_ext <<_ACEOF
2711 #line $LINENO "configure"
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2726 rm -f conftest.$ac_objext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728 (eval $ac_compile) 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_no_long_long=yes
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2743 ac_cv_prog_cc_no_long_long=no
2745 rm -f conftest.$ac_objext conftest.$ac_ext
2746 CFLAGS="$save_CFLAGS"
2748 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2749 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2762 if test -z "$CPP"; then
2763 if test "${ac_cv_prog_CPP+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 # Double quotes because CPP needs to be expanded
2767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2770 for ac_c_preproc_warn_flag in '' yes
2772 # Use a header file that comes with gcc, so configuring glibc
2773 # with a fresh cross-compiler works.
2774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775 # <limits.h> exists even on freestanding compilers.
2776 # On the NeXT, cc -E runs the code through the compiler's parser,
2777 # not just through cpp. "Syntax error" is here to catch this case.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2786 # include <limits.h>
2788 # include <assert.h>
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2795 grep -v '^ *+' conftest.er1 >conftest.err
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } >/dev/null; then
2800 if test -s conftest.err; then
2801 ac_cpp_err=$ac_c_preproc_warn_flag
2808 if test -z "$ac_cpp_err"; then
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 # Broken: fails on valid input.
2817 rm -f conftest.err conftest.$ac_ext
2819 # OK, works on sane cases. Now check whether non-existent headers
2820 # can be detected and how.
2821 cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2828 #include <ac_nonexistent.h>
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2833 grep -v '^ *+' conftest.er1 >conftest.err
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } >/dev/null; then
2838 if test -s conftest.err; then
2839 ac_cpp_err=$ac_c_preproc_warn_flag
2846 if test -z "$ac_cpp_err"; then
2847 # Broken: success on invalid input.
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 # Passes both tests.
2857 rm -f conftest.err conftest.$ac_ext
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2874 echo "$as_me:$LINENO: result: $CPP" >&5
2875 echo "${ECHO_T}$CPP" >&6
2877 for ac_c_preproc_warn_flag in '' yes
2879 # Use a header file that comes with gcc, so configuring glibc
2880 # with a fresh cross-compiler works.
2881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882 # <limits.h> exists even on freestanding compilers.
2883 # On the NeXT, cc -E runs the code through the compiler's parser,
2884 # not just through cpp. "Syntax error" is here to catch this case.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2893 # include <limits.h>
2895 # include <assert.h>
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } >/dev/null; then
2907 if test -s conftest.err; then
2908 ac_cpp_err=$ac_c_preproc_warn_flag
2915 if test -z "$ac_cpp_err"; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 # Broken: fails on valid input.
2924 rm -f conftest.err conftest.$ac_ext
2926 # OK, works on sane cases. Now check whether non-existent headers
2927 # can be detected and how.
2928 cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935 #include <ac_nonexistent.h>
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2940 grep -v '^ *+' conftest.er1 >conftest.err
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev/null; then
2945 if test -s conftest.err; then
2946 ac_cpp_err=$ac_c_preproc_warn_flag
2953 if test -z "$ac_cpp_err"; then
2954 # Broken: success on invalid input.
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 # Passes both tests.
2964 rm -f conftest.err conftest.$ac_ext
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2972 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976 { (exit 1); exit 1; }; }
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985 echo "$as_me:$LINENO: checking for inline" >&5
2986 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2987 if test "${ac_cv_c_inline+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 for ac_kw in inline __inline__ __inline; do
2992 cat >conftest.$ac_ext <<_ACEOF
2993 #line $LINENO "configure"
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3001 static $ac_kw foo_t static_foo () {return 0; }
3002 $ac_kw foo_t foo () {return 0; }
3006 rm -f conftest.$ac_objext
3007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008 (eval $ac_compile) 2>&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3018 ac_cv_c_inline=$ac_kw; break
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3024 rm -f conftest.$ac_objext conftest.$ac_ext
3028 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3029 echo "${ECHO_T}$ac_cv_c_inline" >&6
3030 case $ac_cv_c_inline in
3033 cat >>confdefs.h <<\_ACEOF
3037 *) cat >>confdefs.h <<_ACEOF
3038 #define inline $ac_cv_c_inline
3044 echo "$as_me:$LINENO: checking for long long int" >&5
3045 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3046 if test "${ac_cv_c_long_long+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 cat >conftest.$ac_ext <<_ACEOF
3050 #line $LINENO "configure"
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -s conftest.$ac_objext'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 ac_cv_c_long_long=yes
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3082 ac_cv_c_long_long=no
3084 rm -f conftest.$ac_objext conftest.$ac_ext
3086 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3087 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3088 if test $ac_cv_c_long_long = yes; then
3090 cat >>confdefs.h <<\_ACEOF
3091 #define HAVE_LONG_LONG 1
3095 echo "$as_me:$LINENO: checking for __int64" >&5
3096 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3097 if test "${ac_cv_c___int64+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118 (eval $ac_compile) 2>&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -s conftest.$ac_objext'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3135 rm -f conftest.$ac_objext conftest.$ac_ext
3137 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3138 echo "${ECHO_T}$ac_cv_c___int64" >&6
3139 if test $ac_cv_c___int64 = yes; then
3141 cat >>confdefs.h <<\_ACEOF
3142 #define HAVE___INT64 1
3147 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3148 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3149 if test "${gcc_cv_c__bool+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 cat >conftest.$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3168 rm -f conftest.$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3187 rm -f conftest.$ac_objext conftest.$ac_ext
3190 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3191 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3192 if test $gcc_cv_c__bool = yes; then
3194 cat >>confdefs.h <<\_ACEOF
3195 #define HAVE__BOOL 1
3201 # sizeof(char) is 1 by definition.
3202 echo "$as_me:$LINENO: checking size of void *" >&5
3203 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3204 if test "${ac_cv_sizeof_void_p+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3208 cat >conftest.$ac_ext <<_ACEOF
3209 #line $LINENO "configure"
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215 #include "confdefs.h"
3216 #include <sys/types.h>
3222 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -s conftest.$ac_objext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_sizeof_void_p=$ac_size
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f conftest.$ac_objext conftest.$ac_ext
3246 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3251 if test x$ac_cv_sizeof_void_p = x ; then
3252 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3253 echo "$as_me: error: cannot determine a size for void *" >&2;}
3254 { (exit 1); exit 1; }; }
3256 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3257 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3259 cat >>confdefs.h <<_ACEOF
3260 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3264 echo "$as_me:$LINENO: checking size of short" >&5
3265 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3266 if test "${ac_cv_sizeof_short+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3270 cat >conftest.$ac_ext <<_ACEOF
3271 #line $LINENO "configure"
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 #include "confdefs.h"
3278 #include <sys/types.h>
3284 switch (0) case 0: case (sizeof (short) == $ac_size):;
3289 rm -f conftest.$ac_objext
3290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291 (eval $ac_compile) 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } &&
3295 { ac_try='test -s conftest.$ac_objext'
3296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; }; then
3301 ac_cv_sizeof_short=$ac_size
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3307 rm -f conftest.$ac_objext conftest.$ac_ext
3308 if test x$ac_cv_sizeof_short != x ; then break; fi
3313 if test x$ac_cv_sizeof_short = x ; then
3314 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3315 echo "$as_me: error: cannot determine a size for short" >&2;}
3316 { (exit 1); exit 1; }; }
3318 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3319 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3321 cat >>confdefs.h <<_ACEOF
3322 #define SIZEOF_SHORT $ac_cv_sizeof_short
3326 echo "$as_me:$LINENO: checking size of int" >&5
3327 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3328 if test "${ac_cv_sizeof_int+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3332 cat >conftest.$ac_ext <<_ACEOF
3333 #line $LINENO "configure"
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include "confdefs.h"
3340 #include <sys/types.h>
3346 switch (0) case 0: case (sizeof (int) == $ac_size):;
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_sizeof_int=$ac_size
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3369 rm -f conftest.$ac_objext conftest.$ac_ext
3370 if test x$ac_cv_sizeof_int != x ; then break; fi
3375 if test x$ac_cv_sizeof_int = x ; then
3376 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3377 echo "$as_me: error: cannot determine a size for int" >&2;}
3378 { (exit 1); exit 1; }; }
3380 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3381 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3383 cat >>confdefs.h <<_ACEOF
3384 #define SIZEOF_INT $ac_cv_sizeof_int
3388 echo "$as_me:$LINENO: checking size of long" >&5
3389 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3390 if test "${ac_cv_sizeof_long+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3394 cat >conftest.$ac_ext <<_ACEOF
3395 #line $LINENO "configure"
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401 #include "confdefs.h"
3402 #include <sys/types.h>
3408 switch (0) case 0: case (sizeof (long) == $ac_size):;
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415 (eval $ac_compile) 2>&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 ac_cv_sizeof_long=$ac_size
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3431 rm -f conftest.$ac_objext conftest.$ac_ext
3432 if test x$ac_cv_sizeof_long != x ; then break; fi
3437 if test x$ac_cv_sizeof_long = x ; then
3438 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3439 echo "$as_me: error: cannot determine a size for long" >&2;}
3440 { (exit 1); exit 1; }; }
3442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3443 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3445 cat >>confdefs.h <<_ACEOF
3446 #define SIZEOF_LONG $ac_cv_sizeof_long
3450 if test $ac_cv_c_long_long = yes; then
3451 echo "$as_me:$LINENO: checking size of long long" >&5
3452 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3453 if test "${ac_cv_sizeof_long_long+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3457 cat >conftest.$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 #include "confdefs.h"
3465 #include <sys/types.h>
3471 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } &&
3482 { ac_try='test -s conftest.$ac_objext'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 ac_cv_sizeof_long_long=$ac_size
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3494 rm -f conftest.$ac_objext conftest.$ac_ext
3495 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3500 if test x$ac_cv_sizeof_long_long = x ; then
3501 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3502 echo "$as_me: error: cannot determine a size for long long" >&2;}
3503 { (exit 1); exit 1; }; }
3505 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3506 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3508 cat >>confdefs.h <<_ACEOF
3509 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3514 if test $ac_cv_c___int64 = yes; then
3515 echo "$as_me:$LINENO: checking size of __int64" >&5
3516 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3517 if test "${ac_cv_sizeof___int64+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3521 cat >conftest.$ac_ext <<_ACEOF
3522 #line $LINENO "configure"
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include "confdefs.h"
3529 #include <sys/types.h>
3535 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3540 rm -f conftest.$ac_objext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3542 (eval $ac_compile) 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 ac_cv_sizeof___int64=$ac_size
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3558 rm -f conftest.$ac_objext conftest.$ac_ext
3559 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3564 if test x$ac_cv_sizeof___int64 = x ; then
3565 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3566 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3567 { (exit 1); exit 1; }; }
3569 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3570 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3572 cat >>confdefs.h <<_ACEOF
3573 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3583 # See if GNAT has been installed
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 if test -n "$GNATBIND"; then
3596 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 GNATBIND=$ac_cv_prog_GNATBIND
3615 if test -n "$GNATBIND"; then
3616 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3617 echo "${ECHO_T}$GNATBIND" >&6
3619 echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3624 if test -z "$ac_cv_prog_GNATBIND"; then
3625 ac_ct_GNATBIND=$GNATBIND
3626 # Extract the first word of "gnatbind", so it can be a program name with args.
3627 set dummy gnatbind; ac_word=$2
3628 echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3630 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 if test -n "$ac_ct_GNATBIND"; then
3634 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3653 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3654 if test -n "$ac_ct_GNATBIND"; then
3655 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3656 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3658 echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6
3662 GNATBIND=$ac_ct_GNATBIND
3664 GNATBIND="$ac_cv_prog_GNATBIND"
3667 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3668 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3669 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 cat >conftest.adb <<EOF
3673 procedure conftest is begin null; end conftest;
3675 gcc_cv_cc_supports_ada=no
3676 # There is a bug in old released versions of GCC which causes the
3677 # driver to exit successfully when the appropriate language module
3678 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3679 # Therefore we must check for the error message as well as an
3680 # unsuccessful exit.
3681 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3682 if test x"$errors" = x; then
3683 gcc_cv_cc_supports_ada=yes
3688 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3689 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3691 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3698 # ---------------------
3699 # Warnings and checking
3700 # ---------------------
3703 if test $ac_cv_prog_cc_no_long_long = yes ; then
3704 strict1_warn="-pedantic -Wno-long-long"
3708 # If the native compiler is GCC, we can enable warnings even in stage1.
3709 # That's useful for people building cross-compilers, or just running a
3712 if test "x$GCC" = "xyes"; then
3713 warn_cflags='$(GCC_WARN_CFLAGS)'
3717 # Enable -Werror in bootstrap stage2 and later.
3718 # Change the default to "no" on release branches.
3719 # Check whether --enable-werror or --disable-werror was given.
3720 if test "${enable_werror+set}" = set; then
3721 enableval="$enable_werror"
3726 if test x$enable_werror = xyes ; then
3731 # Enable expensive internal checks
3732 # Check whether --enable-checking or --disable-checking was given.
3733 if test "${enable_checking+set}" = set; then
3734 enableval="$enable_checking"
3738 ac_rtlflag_checking=
3740 ac_gc_always_collect=
3742 case "${enableval}" in
3743 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3744 ac_rtlflag_checking=1 ;;
3746 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3747 set fnord $enableval; shift
3752 misc) ac_checking=1 ;;
3753 tree) ac_tree_checking=1 ;;
3754 rtlflag) ac_rtlflag_checking=1 ;;
3755 rtl) ac_rtl_checking=1 ;;
3756 gc) ac_gc_checking=1 ;;
3757 gcac) ac_gc_always_collect=1 ;;
3758 fold) ac_fold_checking=1 ;;
3759 valgrind) ac_checking_valgrind=1 ;;
3760 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3761 echo "$as_me: error: unknown check category $check" >&2;}
3762 { (exit 1); exit 1; }; } ;;
3769 # Enable some checks by default for development versions of GCC
3770 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3773 if test x$ac_checking != x ; then
3775 cat >>confdefs.h <<\_ACEOF
3776 #define ENABLE_CHECKING 1
3779 nocommon_flag=-fno-common
3782 if test x$ac_tree_checking != x ; then
3784 cat >>confdefs.h <<\_ACEOF
3785 #define ENABLE_TREE_CHECKING 1
3789 if test x$ac_rtl_checking != x ; then
3791 cat >>confdefs.h <<\_ACEOF
3792 #define ENABLE_RTL_CHECKING 1
3796 if test x$ac_rtlflag_checking != x ; then
3798 cat >>confdefs.h <<\_ACEOF
3799 #define ENABLE_RTL_FLAG_CHECKING 1
3803 if test x$ac_gc_checking != x ; then
3805 cat >>confdefs.h <<\_ACEOF
3806 #define ENABLE_GC_CHECKING 1
3810 if test x$ac_gc_always_collect != x ; then
3812 cat >>confdefs.h <<\_ACEOF
3813 #define ENABLE_GC_ALWAYS_COLLECT 1
3817 if test x$ac_fold_checking != x ; then
3819 cat >>confdefs.h <<\_ACEOF
3820 #define ENABLE_FOLD_CHECKING 1
3824 valgrind_path_defines=
3828 echo "$as_me:$LINENO: checking for egrep" >&5
3829 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3830 if test "${ac_cv_prog_egrep+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3834 then ac_cv_prog_egrep='grep -E'
3835 else ac_cv_prog_egrep='egrep'
3838 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3839 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3840 EGREP=$ac_cv_prog_egrep
3843 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3844 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3845 if test "${ac_cv_header_stdc+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line $LINENO "configure"
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3868 rm -f conftest.$ac_objext
3869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870 (eval $ac_compile) 2>&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_header_stdc=yes
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 ac_cv_header_stdc=no
3887 rm -f conftest.$ac_objext conftest.$ac_ext
3889 if test $ac_cv_header_stdc = yes; then
3890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3891 cat >conftest.$ac_ext <<_ACEOF
3892 #line $LINENO "configure"
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902 $EGREP "memchr" >/dev/null 2>&1; then
3905 ac_cv_header_stdc=no
3911 if test $ac_cv_header_stdc = yes; then
3912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3913 cat >conftest.$ac_ext <<_ACEOF
3914 #line $LINENO "configure"
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "free" >/dev/null 2>&1; then
3927 ac_cv_header_stdc=no
3933 if test $ac_cv_header_stdc = yes; then
3934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3935 if test "$cross_compiling" = yes; then
3938 cat >conftest.$ac_ext <<_ACEOF
3939 #line $LINENO "configure"
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3946 #if ((' ' & 0x0FF) == 0x020)
3947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3950 # define ISLOWER(c) \
3951 (('a' <= (c) && (c) <= 'i') \
3952 || ('j' <= (c) && (c) <= 'r') \
3953 || ('s' <= (c) && (c) <= 'z'))
3954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3962 for (i = 0; i < 256; i++)
3963 if (XOR (islower (i), ISLOWER (i))
3964 || toupper (i) != TOUPPER (i))
3969 rm -f conftest$ac_exeext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3971 (eval $ac_link) 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3982 echo "$as_me: program exited with status $ac_status" >&5
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3987 ac_cv_header_stdc=no
3989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3993 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3994 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3995 if test $ac_cv_header_stdc = yes; then
3997 cat >>confdefs.h <<\_ACEOF
3998 #define STDC_HEADERS 1
4003 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4013 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4014 inttypes.h stdint.h unistd.h
4016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4017 echo "$as_me:$LINENO: checking for $ac_header" >&5
4018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 cat >conftest.$ac_ext <<_ACEOF
4023 #line $LINENO "configure"
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 $ac_includes_default
4031 #include <$ac_header>
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 eval "$as_ac_Header=yes"
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 eval "$as_ac_Header=no"
4052 rm -f conftest.$ac_objext conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4057 cat >>confdefs.h <<_ACEOF
4058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4066 if test "${ac_cv_header_valgrind_h+set}" = set; then
4067 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4068 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4069 if test "${ac_cv_header_valgrind_h+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4073 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4075 # Is the header compilable?
4076 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4077 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4078 cat >conftest.$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 $ac_includes_default
4086 #include <valgrind.h>
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 ac_header_compiler=yes
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 ac_header_compiler=no
4107 rm -f conftest.$ac_objext conftest.$ac_ext
4108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4109 echo "${ECHO_T}$ac_header_compiler" >&6
4111 # Is the header present?
4112 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4113 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4114 cat >conftest.$ac_ext <<_ACEOF
4115 #line $LINENO "configure"
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 #include <valgrind.h>
4123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4126 grep -v '^ *+' conftest.er1 >conftest.err
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } >/dev/null; then
4131 if test -s conftest.err; then
4132 ac_cpp_err=$ac_c_preproc_warn_flag
4139 if test -z "$ac_cpp_err"; then
4140 ac_header_preproc=yes
4142 echo "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.$ac_ext >&5
4145 ac_header_preproc=no
4147 rm -f conftest.err conftest.$ac_ext
4148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4149 echo "${ECHO_T}$ac_header_preproc" >&6
4151 # So? What about this header?
4152 case $ac_header_compiler:$ac_header_preproc in
4154 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4155 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4156 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4157 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4160 ## ------------------------------------ ##
4161 ## Report this to bug-autoconf@gnu.org. ##
4162 ## ------------------------------------ ##
4165 sed "s/^/$as_me: WARNING: /" >&2
4168 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4169 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4170 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4171 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4172 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4173 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4176 ## ------------------------------------ ##
4177 ## Report this to bug-autoconf@gnu.org. ##
4178 ## ------------------------------------ ##
4181 sed "s/^/$as_me: WARNING: /" >&2
4184 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4185 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4186 if test "${ac_cv_header_valgrind_h+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 ac_cv_header_valgrind_h=$ac_header_preproc
4191 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4192 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4195 if test $ac_cv_header_valgrind_h = yes; then
4203 if test x$ac_checking_valgrind != x ; then
4204 # It is certainly possible that there's valgrind but no valgrind.h.
4205 # GCC relies on making annotations so we must have both.
4206 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4207 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4208 cat >conftest.$ac_ext <<_ACEOF
4209 #line $LINENO "configure"
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <valgrind/memcheck.h>
4216 #ifndef VALGRIND_DISCARD
4217 #error VALGRIND_DISCARD not defined
4220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } >/dev/null; then
4228 if test -s conftest.err; then
4229 ac_cpp_err=$ac_c_preproc_warn_flag
4236 if test -z "$ac_cpp_err"; then
4237 gcc_cv_header_valgrind_memcheck_h=yes
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 gcc_cv_header_valgrind_memcheck_h=no
4244 rm -f conftest.err conftest.$ac_ext
4245 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4246 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4247 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4248 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4249 cat >conftest.$ac_ext <<_ACEOF
4250 #line $LINENO "configure"
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 #include <memcheck.h>
4257 #ifndef VALGRIND_DISCARD
4258 #error VALGRIND_DISCARD not defined
4261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } >/dev/null; then
4269 if test -s conftest.err; then
4270 ac_cpp_err=$ac_c_preproc_warn_flag
4277 if test -z "$ac_cpp_err"; then
4278 gcc_cv_header_memcheck_h=yes
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 gcc_cv_header_memcheck_h=no
4285 rm -f conftest.err conftest.$ac_ext
4286 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4287 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4289 # Prepare PATH_SEPARATOR.
4290 # The user is always right.
4291 if test "${PATH_SEPARATOR+set}" != set; then
4292 echo "#! /bin/sh" >conf$$.sh
4293 echo "exit 0" >>conf$$.sh
4295 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4303 # Find out how to test for executable files. Don't use a zero-byte file,
4304 # as systems may use methods other than mode bits to determine executability.
4305 cat >conf$$.file <<_ASEOF
4309 chmod +x conf$$.file
4310 if test -x conf$$.file >/dev/null 2>&1; then
4311 ac_executable_p="test -x"
4313 ac_executable_p="test -f"
4317 # Extract the first word of "valgrind", so it can be a program name with args.
4318 set dummy valgrind; ac_word=$2
4319 echo "$as_me:$LINENO: checking for $ac_word" >&5
4320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4321 if test "${ac_cv_path_valgrind_path+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 case "$valgrind_path" in
4326 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4329 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4330 for ac_dir in $PATH; do
4332 test -z "$ac_dir" && ac_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4335 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4336 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4346 valgrind_path="$ac_cv_path_valgrind_path"
4347 if test -n "$valgrind_path"; then
4348 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4349 echo "${ECHO_T}$valgrind_path" >&6
4351 echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4355 if test "x$valgrind_path" = "x" \
4356 || (test $have_valgrind_h = no \
4357 && test $gcc_cv_header_memcheck_h = no \
4358 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4359 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4360 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4361 { (exit 1); exit 1; }; }
4363 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4364 valgrind_command="$valgrind_path -q"
4366 cat >>confdefs.h <<\_ACEOF
4367 #define ENABLE_VALGRIND_CHECKING 1
4370 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4372 cat >>confdefs.h <<\_ACEOF
4373 #define HAVE_VALGRIND_MEMCHECK_H 1
4377 if test $gcc_cv_header_memcheck_h = yes; then
4379 cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_MEMCHECK_H 1
4388 # Enable code coverage collection
4389 # Check whether --enable-coverage or --disable-coverage was given.
4390 if test "${enable_coverage+set}" = set; then
4391 enableval="$enable_coverage"
4392 case "${enableval}" in
4394 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4397 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4400 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4401 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4402 { (exit 1); exit 1; }; }
4410 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4411 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4412 enableval="$enable_gather_detailed_mem_stats"
4415 enable_gather_detailed_mem_stats=no
4417 if test x$enable_gather_detailed_mem_stats = xyes ; then
4419 cat >>confdefs.h <<\_ACEOF
4420 #define GATHER_STATISTICS 1
4425 # -------------------------------
4426 # Miscenalleous configure options
4427 # -------------------------------
4431 # Check whether --with-stabs or --without-stabs was given.
4432 if test "${with_stabs+set}" = set; then
4433 withval="$with_stabs"
4439 # Determine whether or not multilibs are enabled.
4440 # Check whether --enable-multilib or --disable-multilib was given.
4441 if test "${enable_multilib+set}" = set; then
4442 enableval="$enable_multilib"
4449 # Enable __cxa_atexit for C++.
4450 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4451 if test "${enable___cxa_atexit+set}" = set; then
4452 enableval="$enable___cxa_atexit"
4457 # Pass with no value to take the default
4458 # Pass with a value to specify a thread package
4459 # Check whether --enable-threads or --disable-threads was given.
4460 if test "${enable_threads+set}" = set; then
4461 enableval="$enable_threads"
4466 # Save in case it gets overwritten in config.gcc
4467 enable_threads_flag=$enable_threads
4469 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4470 if test "${enable_objc_gc+set}" = set; then
4471 enableval="$enable_objc_gc"
4472 if test x$enable_objc_gc = xno; then
4482 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4483 if test "${with_dwarf2+set}" = set; then
4484 withval="$with_dwarf2"
4485 dwarf2="$with_dwarf2"
4490 # Check whether --enable-shared or --disable-shared was given.
4491 if test "${enable_shared+set}" = set; then
4492 enableval="$enable_shared"
4494 case $enable_shared in
4498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4499 for pkg in $enableval; do
4500 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4514 # Check whether --with-sysroot or --without-sysroot was given.
4515 if test "${with_sysroot+set}" = set; then
4516 withval="$with_sysroot"
4518 case ${with_sysroot} in
4519 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4520 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4523 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4524 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4526 if test "x$exec_prefix" = xNONE; then
4527 if test "x$prefix" = xNONE; then
4528 test_prefix=/usr/local
4533 test_prefix=$exec_prefix
4535 case ${TARGET_SYSTEM_ROOT} in
4536 "${test_prefix}"|"${test_prefix}/"*|\
4537 '${exec_prefix}'|'${exec_prefix}/'*)
4538 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4539 TARGET_SYSTEM_ROOT_DEFINE="$t"
4546 TARGET_SYSTEM_ROOT_DEFINE=
4547 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4554 # Build with intermodule optimisations
4555 # Check whether --enable-intermodule or --disable-intermodule was given.
4556 if test "${enable_intermodule+set}" = set; then
4557 enableval="$enable_intermodule"
4558 case ${enable_intermodule} in
4559 yes) onestep="-onestep";;
4567 # -------------------------
4568 # Checks for other programs
4569 # -------------------------
4571 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4572 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4573 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4574 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 cat >conftest.make <<\_ACEOF
4579 @echo 'ac_maketemp="$(MAKE)"'
4581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4582 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4583 if test -n "$ac_maketemp"; then
4584 eval ac_cv_prog_make_${ac_make}_set=yes
4586 eval ac_cv_prog_make_${ac_make}_set=no
4590 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4591 echo "$as_me:$LINENO: result: yes" >&5
4592 echo "${ECHO_T}yes" >&6
4595 echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4597 SET_MAKE="MAKE=${MAKE-make}"
4601 # Find some useful tools
4602 for ac_prog in gawk mawk nawk awk
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy $ac_prog; ac_word=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_AWK+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if test -n "$AWK"; then
4612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_AWK="$ac_prog"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 if test -n "$AWK"; then
4632 echo "$as_me:$LINENO: result: $AWK" >&5
4633 echo "${ECHO_T}$AWK" >&6
4635 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4639 test -n "$AWK" && break
4642 # We need awk to run opts.sh (to create options.c and options.h).
4643 # Bail out if it's missing.
4645 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4646 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4647 { (exit 1); exit 1; }; } ;;
4650 echo "$as_me:$LINENO: checking whether ln works" >&5
4651 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4652 if test "${gcc_cv_prog_LN+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 rm -f conftestdata_t
4656 echo >conftestdata_f
4657 if ln conftestdata_f conftestdata_t 2>/dev/null
4661 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4663 gcc_cv_prog_LN="ln -s"
4668 rm -f conftestdata_f conftestdata_t
4671 LN="$gcc_cv_prog_LN"
4672 if test "$gcc_cv_prog_LN" = "ln"; then
4673 echo "$as_me:$LINENO: result: yes" >&5
4674 echo "${ECHO_T}yes" >&6
4676 if test "$gcc_cv_prog_LN" = "ln -s"; then
4677 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4678 echo "${ECHO_T}no, using ln -s" >&6
4680 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4681 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4685 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4686 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4687 if test "${gcc_cv_prog_LN_S+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 rm -f conftestdata_t
4691 echo >conftestdata_f
4692 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4694 gcc_cv_prog_LN_S="ln -s"
4696 if ln conftestdata_f conftestdata_t 2>/dev/null
4703 rm -f conftestdata_f conftestdata_t
4706 LN_S="$gcc_cv_prog_LN_S"
4707 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4708 echo "$as_me:$LINENO: result: yes" >&5
4709 echo "${ECHO_T}yes" >&6
4711 if test "$gcc_cv_prog_LN_S" = "ln"; then
4712 echo "$as_me:$LINENO: result: no, using ln" >&5
4713 echo "${ECHO_T}no, using ln" >&6
4715 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4716 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4723 echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4725 if test "${ac_cv_prog_RANLIB+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 if test -n "$RANLIB"; then
4729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 RANLIB=$ac_cv_prog_RANLIB
4748 if test -n "$RANLIB"; then
4749 echo "$as_me:$LINENO: result: $RANLIB" >&5
4750 echo "${ECHO_T}$RANLIB" >&6
4752 echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6
4757 if test -z "$ac_cv_prog_RANLIB"; then
4758 ac_ct_RANLIB=$RANLIB
4759 # Extract the first word of "ranlib", so it can be a program name with args.
4760 set dummy ranlib; ac_word=$2
4761 echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 if test -n "$ac_ct_RANLIB"; then
4767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776 ac_cv_prog_ac_ct_RANLIB="ranlib"
4777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4787 if test -n "$ac_ct_RANLIB"; then
4788 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4789 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4791 echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4795 RANLIB=$ac_ct_RANLIB
4797 RANLIB="$ac_cv_prog_RANLIB"
4800 # Find a good install program. We prefer a C program (faster),
4801 # so one script is as good as another. But avoid the broken or
4802 # incompatible versions:
4803 # SysV /etc/install, /usr/sbin/install
4804 # SunOS /usr/etc/install
4805 # IRIX /sbin/install
4807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4809 # ./install, which can be erroneously created by make from ./install.sh.
4810 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4811 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4812 if test -z "$INSTALL"; then
4813 if test "${ac_cv_path_install+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4817 for ac_dir in $PATH; do
4818 # Account for people who put trailing slashes in PATH elements.
4820 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4822 # OSF1 and SCO ODT 3.0 have their own names for install.
4823 for ac_prog in ginstall scoinst install; do
4824 if test -f $ac_dir/$ac_prog; then
4825 if test $ac_prog = install &&
4826 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4827 # AIX install. It has an incompatible calling convention.
4828 # OSF/1 installbsd also uses dspmsg, but is usable.
4831 ac_cv_path_install="$ac_dir/$ac_prog -c"
4842 if test "${ac_cv_path_install+set}" = set; then
4843 INSTALL="$ac_cv_path_install"
4845 # As a last resort, use the slow shell script. We don't cache a
4846 # path for INSTALL within a source directory, because that will
4847 # break other packages using the cache if that directory is
4848 # removed, or if the path is relative.
4849 INSTALL="$ac_install_sh"
4852 echo "$as_me:$LINENO: result: $INSTALL" >&5
4853 echo "${ECHO_T}$INSTALL" >&6
4855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4856 # It thinks the first close brace ends the variable substitution.
4857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4862 # See if cmp has --ignore-initial.
4863 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4864 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4865 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 gcc_cv_prog_cmp_skip=slowcompare
4871 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4872 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4875 gcc_cv_prog_cmp_skip=gnucompare
4878 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
4879 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4880 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4883 gcc_cv_prog_cmp_skip=fastcompare
4890 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4891 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4892 make_compare_target=$gcc_cv_prog_cmp_skip
4896 # See if we have the mktemp command.
4897 # Extract the first word of "mktemp", so it can be a program name with args.
4898 set dummy mktemp; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 if test -n "$have_mktemp_command"; then
4905 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914 ac_cv_prog_have_mktemp_command="yes"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4924 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4925 if test -n "$have_mktemp_command"; then
4926 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4927 echo "${ECHO_T}$have_mktemp_command" >&6
4929 echo "$as_me:$LINENO: result: no" >&5
4930 echo "${ECHO_T}no" >&6
4934 # Do we have a single-tree copy of texinfo?
4935 if test -f $srcdir/../texinfo/Makefile.in; then
4936 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4937 gcc_cv_prog_makeinfo_modern=yes
4938 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4939 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4941 # See if makeinfo has been installed and is modern enough
4942 # that we can use it.
4943 # Extract the first word of "makeinfo", so it can be a program name with args.
4944 set dummy makeinfo; ac_word=$2
4945 echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4947 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 if test -n "$MAKEINFO"; then
4951 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_MAKEINFO="makeinfo"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 MAKEINFO=$ac_cv_prog_MAKEINFO
4970 if test -n "$MAKEINFO"; then
4971 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4972 echo "${ECHO_T}$MAKEINFO" >&6
4974 echo "$as_me:$LINENO: result: no" >&5
4975 echo "${ECHO_T}no" >&6
4978 if test -n "$MAKEINFO"; then
4979 # Found it, now check the version.
4980 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4981 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4982 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_prog_version=`$MAKEINFO --version 2>&1 |
4986 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4987 echo "configure:4987: version of makeinfo is $ac_prog_version" >&5
4988 case $ac_prog_version in
4989 '') gcc_cv_prog_makeinfo_modern=no;;
4991 gcc_cv_prog_makeinfo_modern=yes;;
4992 *) gcc_cv_prog_makeinfo_modern=no;;
4996 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
4997 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
4999 gcc_cv_prog_makeinfo_modern=no
5004 if test $gcc_cv_prog_makeinfo_modern = no; then
5005 { echo "$as_me:$LINENO: WARNING:
5006 *** Makeinfo is missing or too old.
5007 *** Info documentation will not be built." >&5
5008 echo "$as_me: WARNING:
5009 *** Makeinfo is missing or too old.
5010 *** Info documentation will not be built." >&2;}
5016 # Is pod2man recent enough to regenerate manpages?
5017 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5018 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5019 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5020 echo "$as_me:$LINENO: result: yes" >&5
5021 echo "${ECHO_T}yes" >&6
5022 GENERATED_MANPAGES=generated-manpages
5024 echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6
5030 if test -f $srcdir/../flex/skel.c; then
5031 FLEX='$(objdir)/../flex/flex'
5033 # Extract the first word of "flex", so it can be a program name with args.
5034 set dummy flex; ac_word=$2
5035 echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5037 if test "${ac_cv_prog_FLEX+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 if test -n "$FLEX"; then
5041 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_FLEX="flex"
5051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5060 FLEX=$ac_cv_prog_FLEX
5061 if test -n "$FLEX"; then
5062 echo "$as_me:$LINENO: result: $FLEX" >&5
5063 echo "${ECHO_T}$FLEX" >&6
5065 echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6
5072 # The -L switch is so bison can find its skeleton file.
5073 if test -f $srcdir/../bison/bison.simple; then
5074 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5076 # Extract the first word of "bison", so it can be a program name with args.
5077 set dummy bison; ac_word=$2
5078 echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5080 if test "${ac_cv_prog_BISON+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 if test -n "$BISON"; then
5084 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_BISON="bison"
5094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5103 BISON=$ac_cv_prog_BISON
5104 if test -n "$BISON"; then
5105 echo "$as_me:$LINENO: result: $BISON" >&5
5106 echo "${ECHO_T}$BISON" >&6
5108 echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6
5114 # --------------------
5115 # Checks for C headers
5116 # --------------------
5118 echo "$as_me:$LINENO: checking for GNU C library" >&5
5119 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5120 if test "${gcc_cv_glibc+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 #include <features.h>
5135 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5136 #error Not a GNU C library system
5142 rm -f conftest.$ac_objext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144 (eval $ac_compile) 2>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5161 rm -f conftest.$ac_objext conftest.$ac_ext
5164 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5165 echo "${ECHO_T}$gcc_cv_glibc" >&6
5166 if test $gcc_cv_glibc = yes; then
5168 cat >>confdefs.h <<\_ACEOF
5169 #define _GNU_SOURCE 1
5174 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5176 if test "${ac_cv_header_stdc+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 cat >conftest.$ac_ext <<_ACEOF
5180 #line $LINENO "configure"
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try='test -s conftest.$ac_objext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 ac_cv_header_stdc=yes
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 ac_cv_header_stdc=no
5218 rm -f conftest.$ac_objext conftest.$ac_ext
5220 if test $ac_cv_header_stdc = yes; then
5221 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233 $EGREP "memchr" >/dev/null 2>&1; then
5236 ac_cv_header_stdc=no
5242 if test $ac_cv_header_stdc = yes; then
5243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5244 cat >conftest.$ac_ext <<_ACEOF
5245 #line $LINENO "configure"
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5255 $EGREP "free" >/dev/null 2>&1; then
5258 ac_cv_header_stdc=no
5264 if test $ac_cv_header_stdc = yes; then
5265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5266 if test "$cross_compiling" = yes; then
5269 cat >conftest.$ac_ext <<_ACEOF
5270 #line $LINENO "configure"
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5277 #if ((' ' & 0x0FF) == 0x020)
5278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5281 # define ISLOWER(c) \
5282 (('a' <= (c) && (c) <= 'i') \
5283 || ('j' <= (c) && (c) <= 'r') \
5284 || ('s' <= (c) && (c) <= 'z'))
5285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5293 for (i = 0; i < 256; i++)
5294 if (XOR (islower (i), ISLOWER (i))
5295 || toupper (i) != TOUPPER (i))
5300 rm -f conftest$ac_exeext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5302 (eval $ac_link) 2>&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5313 echo "$as_me: program exited with status $ac_status" >&5
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_cv_header_stdc=no
5320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5324 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5325 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5326 if test $ac_cv_header_stdc = yes; then
5328 cat >>confdefs.h <<\_ACEOF
5329 #define STDC_HEADERS 1
5334 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5335 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5336 if test "${ac_cv_header_time+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 cat >conftest.$ac_ext <<_ACEOF
5340 #line $LINENO "configure"
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 #include <sys/types.h>
5347 #include <sys/time.h>
5353 if ((struct tm *) 0)
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_cv_header_time=yes
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5376 ac_cv_header_time=no
5378 rm -f conftest.$ac_objext conftest.$ac_ext
5380 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5381 echo "${ECHO_T}$ac_cv_header_time" >&6
5382 if test $ac_cv_header_time = yes; then
5384 cat >>confdefs.h <<\_ACEOF
5385 #define TIME_WITH_SYS_TIME 1
5390 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5391 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5392 if test "${ac_cv_header_stdbool_h+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 cat >conftest.$ac_ext <<_ACEOF
5396 #line $LINENO "configure"
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 #include <stdbool.h>
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413 (eval $ac_compile) 2>&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_header_stdbool_h=yes
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_cv_header_stdbool_h=no
5430 rm -f conftest.$ac_objext conftest.$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5433 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5434 if test $ac_cv_header_stdbool_h = yes; then
5436 cat >>confdefs.h <<\_ACEOF
5437 #define HAVE_STDBOOL_H 1
5442 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5443 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5444 if test "${gcc_cv_header_string+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5448 #line $LINENO "configure"
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5455 #include <strings.h>
5464 rm -f conftest.$ac_objext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466 (eval $ac_compile) 2>&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try='test -s conftest.$ac_objext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 gcc_cv_header_string=yes
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 gcc_cv_header_string=no
5483 rm -f conftest.$ac_objext conftest.$ac_ext
5485 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5486 echo "${ECHO_T}$gcc_cv_header_string" >&6
5487 if test $gcc_cv_header_string = yes; then
5489 cat >>confdefs.h <<\_ACEOF
5490 #define STRING_WITH_STRINGS 1
5495 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5496 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5497 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #include <sys/types.h>
5508 #include <sys/wait.h>
5510 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5513 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5521 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5526 rm -f conftest.$ac_objext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528 (eval $ac_compile) 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_header_sys_wait_h=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_cv_header_sys_wait_h=no
5545 rm -f conftest.$ac_objext conftest.$ac_ext
5547 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5548 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5549 if test $ac_cv_header_sys_wait_h = yes; then
5551 cat >>confdefs.h <<\_ACEOF
5552 #define HAVE_SYS_WAIT_H 1
5578 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5579 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5580 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5581 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5585 echo "$as_me:$LINENO: checking for $ac_header" >&5
5586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5593 # Is the header compilable?
5594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5596 cat >conftest.$ac_ext <<_ACEOF
5597 #line $LINENO "configure"
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 $ac_includes_default
5604 #include <$ac_header>
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 ac_header_compiler=yes
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5623 ac_header_compiler=no
5625 rm -f conftest.$ac_objext conftest.$ac_ext
5626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5627 echo "${ECHO_T}$ac_header_compiler" >&6
5629 # Is the header present?
5630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5632 cat >conftest.$ac_ext <<_ACEOF
5633 #line $LINENO "configure"
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 #include <$ac_header>
5641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5644 grep -v '^ *+' conftest.er1 >conftest.err
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } >/dev/null; then
5649 if test -s conftest.err; then
5650 ac_cpp_err=$ac_c_preproc_warn_flag
5657 if test -z "$ac_cpp_err"; then
5658 ac_header_preproc=yes
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 ac_header_preproc=no
5665 rm -f conftest.err conftest.$ac_ext
5666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5667 echo "${ECHO_T}$ac_header_preproc" >&6
5669 # So? What about this header?
5670 case $ac_header_compiler:$ac_header_preproc in
5672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5678 ## ------------------------------------ ##
5679 ## Report this to bug-autoconf@gnu.org. ##
5680 ## ------------------------------------ ##
5683 sed "s/^/$as_me: WARNING: /" >&2
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5694 ## ------------------------------------ ##
5695 ## Report this to bug-autoconf@gnu.org. ##
5696 ## ------------------------------------ ##
5699 sed "s/^/$as_me: WARNING: /" >&2
5702 echo "$as_me:$LINENO: checking for $ac_header" >&5
5703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 eval "$as_ac_Header=$ac_header_preproc"
5709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5714 cat >>confdefs.h <<_ACEOF
5715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5723 # Check for thread headers.
5724 if test "${ac_cv_header_thread_h+set}" = set; then
5725 echo "$as_me:$LINENO: checking for thread.h" >&5
5726 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5727 if test "${ac_cv_header_thread_h+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5731 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5733 # Is the header compilable?
5734 echo "$as_me:$LINENO: checking thread.h usability" >&5
5735 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
5736 cat >conftest.$ac_ext <<_ACEOF
5737 #line $LINENO "configure"
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5746 rm -f conftest.$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try='test -s conftest.$ac_objext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_header_compiler=yes
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 ac_header_compiler=no
5765 rm -f conftest.$ac_objext conftest.$ac_ext
5766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5767 echo "${ECHO_T}$ac_header_compiler" >&6
5769 # Is the header present?
5770 echo "$as_me:$LINENO: checking thread.h presence" >&5
5771 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
5772 cat >conftest.$ac_ext <<_ACEOF
5773 #line $LINENO "configure"
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5784 grep -v '^ *+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } >/dev/null; then
5789 if test -s conftest.err; then
5790 ac_cpp_err=$ac_c_preproc_warn_flag
5797 if test -z "$ac_cpp_err"; then
5798 ac_header_preproc=yes
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 ac_header_preproc=no
5805 rm -f conftest.err conftest.$ac_ext
5806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5807 echo "${ECHO_T}$ac_header_preproc" >&6
5809 # So? What about this header?
5810 case $ac_header_compiler:$ac_header_preproc in
5812 { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5813 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5814 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5815 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5818 ## ------------------------------------ ##
5819 ## Report this to bug-autoconf@gnu.org. ##
5820 ## ------------------------------------ ##
5823 sed "s/^/$as_me: WARNING: /" >&2
5826 { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
5827 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
5828 { echo "$as_me:$LINENO: WARNING: thread.h: check for missing prerequisite headers?" >&5
5829 echo "$as_me: WARNING: thread.h: check for missing prerequisite headers?" >&2;}
5830 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5831 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5834 ## ------------------------------------ ##
5835 ## Report this to bug-autoconf@gnu.org. ##
5836 ## ------------------------------------ ##
5839 sed "s/^/$as_me: WARNING: /" >&2
5842 echo "$as_me:$LINENO: checking for thread.h" >&5
5843 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5844 if test "${ac_cv_header_thread_h+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 ac_cv_header_thread_h=$ac_header_preproc
5849 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5850 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5853 if test $ac_cv_header_thread_h = yes; then
5860 if test "${ac_cv_header_pthread_h+set}" = set; then
5861 echo "$as_me:$LINENO: checking for pthread.h" >&5
5862 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5863 if test "${ac_cv_header_pthread_h+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5867 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5869 # Is the header compilable?
5870 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5871 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5872 cat >conftest.$ac_ext <<_ACEOF
5873 #line $LINENO "configure"
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 $ac_includes_default
5880 #include <pthread.h>
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_header_compiler=yes
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 ac_header_compiler=no
5901 rm -f conftest.$ac_objext conftest.$ac_ext
5902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5903 echo "${ECHO_T}$ac_header_compiler" >&6
5905 # Is the header present?
5906 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5907 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 #include <pthread.h>
5917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5920 grep -v '^ *+' conftest.er1 >conftest.err
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } >/dev/null; then
5925 if test -s conftest.err; then
5926 ac_cpp_err=$ac_c_preproc_warn_flag
5933 if test -z "$ac_cpp_err"; then
5934 ac_header_preproc=yes
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 ac_header_preproc=no
5941 rm -f conftest.err conftest.$ac_ext
5942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5943 echo "${ECHO_T}$ac_header_preproc" >&6
5945 # So? What about this header?
5946 case $ac_header_compiler:$ac_header_preproc in
5948 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5949 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5950 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5951 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5954 ## ------------------------------------ ##
5955 ## Report this to bug-autoconf@gnu.org. ##
5956 ## ------------------------------------ ##
5959 sed "s/^/$as_me: WARNING: /" >&2
5962 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5963 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5964 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5965 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5966 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5967 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5970 ## ------------------------------------ ##
5971 ## Report this to bug-autoconf@gnu.org. ##
5972 ## ------------------------------------ ##
5975 sed "s/^/$as_me: WARNING: /" >&2
5978 echo "$as_me:$LINENO: checking for pthread.h" >&5
5979 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5980 if test "${ac_cv_header_pthread_h+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 ac_cv_header_pthread_h=$ac_header_preproc
5985 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5986 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5989 if test $ac_cv_header_pthread_h = yes; then
5997 # These tests can't be done till we know if we have limits.h.
5998 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5999 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6000 if test "${gcc_cv_decl_char_bit+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6010 #ifdef HAVE_LIMITS_H
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "found" >/dev/null 2>&1; then
6019 gcc_cv_decl_char_bit=yes
6021 gcc_cv_decl_char_bit=no
6027 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6028 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6029 if test $gcc_cv_decl_char_bit = no; then
6030 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6031 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6032 if test "${gcc_cv_c_nbby+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 while test $i -lt 65; do
6038 cat >conftest.$ac_ext <<_ACEOF
6039 #line $LINENO "configure"
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6050 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6051 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try='test -s conftest.$ac_objext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 gcc_cv_c_nbby=$i; break
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6075 rm -f conftest.$ac_objext conftest.$ac_ext
6078 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6081 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6082 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6083 if test $gcc_cv_c_nbby = failed; then
6084 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6085 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6086 { (exit 1); exit 1; }; }
6089 cat >>confdefs.h <<_ACEOF
6090 #define CHAR_BIT $gcc_cv_c_nbby
6095 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6096 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6097 if test "${ac_cv_c_bigendian+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 ac_cv_c_bigendian=unknown
6101 # See if sys/param.h defines the BYTE_ORDER macro.
6102 cat >conftest.$ac_ext <<_ACEOF
6103 #line $LINENO "configure"
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 #include <sys/types.h>
6110 #include <sys/param.h>
6115 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6122 rm -f conftest.$ac_objext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6124 (eval $ac_compile) 2>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 # It does; now see whether it defined to BIG_ENDIAN or not.
6135 cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <sys/types.h>
6143 #include <sys/param.h>
6148 #if BYTE_ORDER != BIG_ENDIAN
6155 rm -f conftest.$ac_objext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6157 (eval $ac_compile) 2>&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } &&
6161 { ac_try='test -s conftest.$ac_objext'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 ac_cv_c_bigendian=yes
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_cv_c_bigendian=no
6174 rm -f conftest.$ac_objext conftest.$ac_ext
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6180 rm -f conftest.$ac_objext conftest.$ac_ext
6181 if test $ac_cv_c_bigendian = unknown; then
6182 if test "$cross_compiling" = yes; then
6183 echo $ac_n "cross-compiling... " 2>&6
6185 cat >conftest.$ac_ext <<_ACEOF
6186 #line $LINENO "configure"
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6193 /* Are we little or big endian? From Harbison&Steele. */
6197 char c[sizeof (long)];
6200 exit (u.c[sizeof (long) - 1] == 1);
6203 rm -f conftest$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205 (eval $ac_link) 2>&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 ac_cv_c_bigendian=no
6216 echo "$as_me: program exited with status $ac_status" >&5
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6221 ac_cv_c_bigendian=yes
6223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6227 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6228 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6229 if test $ac_cv_c_bigendian = unknown; then
6230 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6231 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6233 cat >conftest.c <<EOF
6234 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6235 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6236 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6237 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6238 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6239 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6240 int main() { _ascii (); _ebcdic (); return 0; }
6242 if test -f conftest.c ; then
6243 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6244 if test `grep -l BIGenDianSyS conftest.o` ; then
6245 echo $ac_n ' big endian probe OK, ' 1>&6
6246 ac_cv_c_bigendian=yes
6248 if test `grep -l LiTTleEnDian conftest.o` ; then
6249 echo $ac_n ' little endian probe OK, ' 1>&6
6250 if test $ac_cv_c_bigendian = yes ; then
6251 ac_cv_c_bigendian=unknown;
6253 ac_cv_c_bigendian=no
6256 echo $ac_n 'guessing bigendian ... ' >&6
6259 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6260 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6262 if test $ac_cv_c_bigendian = yes; then
6264 cat >>confdefs.h <<\_ACEOF
6265 #define WORDS_BIGENDIAN 1
6269 cat >>confdefs.h <<\_ACEOF
6270 #define HOST_WORDS_BIG_ENDIAN 1
6278 cat >>confdefs.h <<_ACEOF
6279 #define BYTEORDER $BYTEORDER
6282 if test $ac_cv_c_bigendian = unknown; then
6283 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6284 echo "$as_me: error: unknown endianess - sorry" >&2;}
6285 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6293 # Stage specific cflags for build.
6297 if test x$GCC = xyes
6299 stage1_cflags="-Wa,-J"
6305 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6306 # sources; use -no-cpp-precomp to get to GNU cpp.
6307 # Apple's GCC has bugs in designated initializer handling, so disable
6309 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6314 # These libraries may be used by collect2.
6315 # We may need a special search path to get them linked.
6316 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6317 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6318 if test "${gcc_cv_collect2_libs+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 for libs in '' -lld -lmld \
6323 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6324 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6327 cat >conftest.$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6335 /* Override any gcc2 internal prototype to avoid an error. */
6339 /* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352 (eval $ac_link) 2>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -s conftest$ac_exeext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 gcc_cv_collect2_libs="$libs"; break
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6371 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6373 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6374 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6375 case $gcc_cv_collect2_libs in
6377 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6381 # When building Ada code on Alpha, we need exc_resume which is usually in
6382 # -lexc. So test for it.
6385 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6386 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6387 if test "${ac_cv_search_exc_resume+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 ac_func_search_save_LIBS=$LIBS
6391 ac_cv_search_exc_resume=no
6392 cat >conftest.$ac_ext <<_ACEOF
6393 #line $LINENO "configure"
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6400 /* Override any gcc2 internal prototype to avoid an error. */
6404 /* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */
6415 rm -f conftest.$ac_objext conftest$ac_exeext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417 (eval $ac_link) 2>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try='test -s conftest$ac_exeext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_cv_search_exc_resume="none required"
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6434 if test "$ac_cv_search_exc_resume" = no; then
6435 for ac_lib in exc; do
6436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6437 cat >conftest.$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6445 /* Override any gcc2 internal prototype to avoid an error. */
6449 /* We use char because int might match the return type of a gcc2
6450 builtin and then its argument prototype would still apply. */
6460 rm -f conftest.$ac_objext conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -s conftest$ac_exeext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 ac_cv_search_exc_resume="-l$ac_lib"
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6482 LIBS=$ac_func_search_save_LIBS
6484 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6485 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6486 if test "$ac_cv_search_exc_resume" != no; then
6487 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6495 # Some systems put ldexp and frexp in libm instead of libc; assume
6496 # they're both in the same place. jcf-dump needs them.
6499 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6500 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6501 if test "${ac_cv_search_ldexp+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 ac_func_search_save_LIBS=$LIBS
6505 ac_cv_search_ldexp=no
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6514 /* Override any gcc2 internal prototype to avoid an error. */
6518 /* We use char because int might match the return type of a gcc2
6519 builtin and then its argument prototype would still apply. */
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531 (eval $ac_link) 2>&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } &&
6535 { ac_try='test -s conftest$ac_exeext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_search_ldexp="none required"
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6548 if test "$ac_cv_search_ldexp" = no; then
6550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6551 cat >conftest.$ac_ext <<_ACEOF
6552 #line $LINENO "configure"
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6559 /* Override any gcc2 internal prototype to avoid an error. */
6563 /* We use char because int might match the return type of a gcc2
6564 builtin and then its argument prototype would still apply. */
6574 rm -f conftest.$ac_objext conftest$ac_exeext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6576 (eval $ac_link) 2>&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -s conftest$ac_exeext'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 ac_cv_search_ldexp="-l$ac_lib"
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6596 LIBS=$ac_func_search_save_LIBS
6598 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6599 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6600 if test "$ac_cv_search_ldexp" != no; then
6601 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6609 # Use <inttypes.h> only if it exists,
6610 # doesn't clash with <sys/types.h>, and declares intmax_t.
6611 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6612 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6613 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 cat >conftest.$ac_ext <<_ACEOF
6617 #line $LINENO "configure"
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 #include <sys/types.h>
6624 #include <inttypes.h>
6633 rm -f conftest.$ac_objext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6635 (eval $ac_compile) 2>&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } &&
6639 { ac_try='test -s conftest.$ac_objext'
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; }; then
6645 gcc_cv_header_inttypes_h=yes
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6650 gcc_cv_header_inttypes_h=no
6652 rm -f conftest.$ac_objext conftest.$ac_ext
6655 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6656 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6657 if test $gcc_cv_header_inttypes_h = yes; then
6659 cat >>confdefs.h <<\_ACEOF
6660 #define HAVE_INTTYPES_H 1
6691 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6692 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6693 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6694 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6698 echo "$as_me:$LINENO: checking for $ac_func" >&5
6699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6700 if eval "test \"\${$as_ac_var+set}\" = set"; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 cat >conftest.$ac_ext <<_ACEOF
6704 #line $LINENO "configure"
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 /* System header to define __stub macros and hopefully few prototypes,
6711 which can conflict with char $ac_func (); below.
6712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6713 <limits.h> exists even on freestanding compilers. */
6715 # include <limits.h>
6717 # include <assert.h>
6719 /* Override any gcc2 internal prototype to avoid an error. */
6724 /* We use char because int might match the return type of a gcc2
6725 builtin and then its argument prototype would still apply. */
6727 /* The GNU C library defines this for functions which it implements
6728 to always fail with ENOSYS. Some functions are actually named
6729 something starting with __ and the normal name is an alias. */
6730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6733 char (*f) () = $ac_func;
6742 return f != $ac_func;
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749 (eval $ac_link) 2>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -s conftest$ac_exeext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6759 eval "$as_ac_var=yes"
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6764 eval "$as_ac_var=no"
6766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6770 if test `eval echo '${'$as_ac_var'}'` = yes; then
6771 cat >>confdefs.h <<_ACEOF
6772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6779 if test x$ac_cv_func_mbstowcs = xyes; then
6780 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6781 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6782 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 if test "$cross_compiling" = yes; then
6786 gcc_cv_func_mbstowcs_works=yes
6788 cat >conftest.$ac_ext <<_ACEOF
6789 #line $LINENO "configure"
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6802 rm -f conftest$ac_exeext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804 (eval $ac_link) 2>&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 gcc_cv_func_mbstowcs_works=yes
6815 echo "$as_me: program exited with status $ac_status" >&5
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6820 gcc_cv_func_mbstowcs_works=no
6822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6825 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6826 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6827 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6829 cat >>confdefs.h <<\_ACEOF
6830 #define HAVE_WORKING_MBSTOWCS 1
6836 echo "$as_me:$LINENO: checking for ssize_t" >&5
6837 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6838 if test "${ac_cv_type_ssize_t+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 $ac_includes_default
6854 if (sizeof (ssize_t))
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 ac_cv_type_ssize_t=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_cv_type_ssize_t=no
6879 rm -f conftest.$ac_objext conftest.$ac_ext
6881 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6882 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6883 if test $ac_cv_type_ssize_t = yes; then
6887 cat >>confdefs.h <<_ACEOF
6894 # Try to determine the array type of the second argument of getgroups
6895 # for the target system (int or gid_t).
6896 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6897 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6898 if test "${ac_cv_type_uid_t+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 cat >conftest.$ac_ext <<_ACEOF
6902 #line $LINENO "configure"
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 #include <sys/types.h>
6911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912 $EGREP "uid_t" >/dev/null 2>&1; then
6913 ac_cv_type_uid_t=yes
6920 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6921 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6922 if test $ac_cv_type_uid_t = no; then
6924 cat >>confdefs.h <<\_ACEOF
6929 cat >>confdefs.h <<\_ACEOF
6935 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6936 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6937 if test "${ac_cv_type_getgroups+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 if test "$cross_compiling" = yes; then
6941 ac_cv_type_getgroups=cross
6943 cat >conftest.$ac_ext <<_ACEOF
6944 #line $LINENO "configure"
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 /* Thanks to Mike Rendell for this test. */
6951 #include <sys/types.h>
6954 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6961 union { gid_t gval; long lval; } val;
6964 for (i = 0; i < NGID; i++)
6965 gidset[i] = val.gval;
6966 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6968 /* Exit non-zero if getgroups seems to require an array of ints. This
6969 happens when gid_t is short but getgroups modifies an array of ints. */
6970 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6973 rm -f conftest$ac_exeext
6974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6975 (eval $ac_link) 2>&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 ac_cv_type_getgroups=gid_t
6986 echo "$as_me: program exited with status $ac_status" >&5
6987 echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6991 ac_cv_type_getgroups=int
6993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6995 if test $ac_cv_type_getgroups = cross; then
6996 cat >conftest.$ac_ext <<_ACEOF
6997 #line $LINENO "configure"
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7008 ac_cv_type_getgroups=gid_t
7010 ac_cv_type_getgroups=int
7016 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7017 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7019 cat >>confdefs.h <<_ACEOF
7020 #define GETGROUPS_T $ac_cv_type_getgroups
7024 if test "${target}" = "${build}"; then
7025 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7028 # This condition may need some tweaking. It should include all
7029 # targets where the array type of the second argument of getgroups
7030 # is int and the type of gid_t is not equivalent to int.
7031 *-*-sunos* | *-*-ultrix*)
7032 TARGET_GETGROUPS_T=int
7035 TARGET_GETGROUPS_T=gid_t
7041 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7042 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7043 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 if test "$cross_compiling" = yes; then
7047 gcc_cv_func_printf_ptr=no
7049 cat >conftest.$ac_ext <<_ACEOF
7050 #line $LINENO "configure"
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7061 char *p = buf, *q = NULL;
7062 sprintf(buf, "%p", p);
7063 sscanf(buf, "%p", &q);
7067 rm -f conftest$ac_exeext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069 (eval $ac_link) 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 gcc_cv_func_printf_ptr=yes
7080 echo "$as_me: program exited with status $ac_status" >&5
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7085 gcc_cv_func_printf_ptr=no
7087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7089 rm -f core core.* *.core
7091 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7092 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7093 if test $gcc_cv_func_printf_ptr = yes ; then
7095 cat >>confdefs.h <<\_ACEOF
7096 #define HAVE_PRINTF_PTR 1
7101 if test $ac_cv_header_sys_mman_h != yes \
7102 || test $ac_cv_func_mmap != yes; then
7103 gcc_cv_func_mmap_file=no
7104 gcc_cv_func_mmap_dev_zero=no
7105 gcc_cv_func_mmap_anon=no
7107 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7108 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7109 if test "${gcc_cv_func_mmap_file+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 # Add a system to this blacklist if
7113 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7114 # memory area containing the same data that you'd get if you applied
7115 # read() to the same fd. The only system known to have a problem here
7116 # is VMS, where text files have record structure.
7119 gcc_cv_func_mmap_file=no ;;
7121 gcc_cv_func_mmap_file=yes;;
7124 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7125 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7126 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7127 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7128 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 # Add a system to this blacklist if it has mmap() but /dev/zero
7132 # does not exist, or if mmapping /dev/zero does not give anonymous
7133 # zeroed pages with both the following properties:
7134 # 1. If you map N consecutive pages in with one call, and then
7135 # unmap any subset of those pages, the pages that were not
7136 # explicitly unmapped remain accessible.
7137 # 2. If you map two adjacent blocks of memory and then unmap them
7138 # both at once, they must both go away.
7139 # Systems known to be in this category are Windows (all variants),
7142 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7143 gcc_cv_func_mmap_dev_zero=no ;;
7145 gcc_cv_func_mmap_dev_zero=yes;;
7148 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7149 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7151 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7152 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7153 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7154 if test "${gcc_cv_decl_map_anon+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 cat >conftest.$ac_ext <<_ACEOF
7158 #line $LINENO "configure"
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h. */
7164 #include <sys/types.h>
7165 #include <sys/mman.h>
7168 #ifndef MAP_ANONYMOUS
7169 #define MAP_ANONYMOUS MAP_ANON
7175 int n = MAP_ANONYMOUS;
7180 rm -f conftest.$ac_objext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182 (eval $ac_compile) 2>&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -s conftest.$ac_objext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 gcc_cv_decl_map_anon=yes
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7197 gcc_cv_decl_map_anon=no
7199 rm -f conftest.$ac_objext conftest.$ac_ext
7201 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7202 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7204 if test $gcc_cv_decl_map_anon = no; then
7205 gcc_cv_func_mmap_anon=no
7207 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7208 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7209 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7213 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7214 # doesn't give anonymous zeroed pages with the same properties listed
7215 # above for use of /dev/zero.
7216 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7218 vms* | cygwin* | pe | mingw* | sco* | udk* )
7219 gcc_cv_func_mmap_anon=no ;;
7221 gcc_cv_func_mmap_anon=yes;;
7224 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7225 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7229 if test $gcc_cv_func_mmap_file = yes; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_MMAP_FILE 1
7236 if test $gcc_cv_func_mmap_dev_zero = yes; then
7238 cat >>confdefs.h <<\_ACEOF
7239 #define HAVE_MMAP_DEV_ZERO 1
7243 if test $gcc_cv_func_mmap_anon = yes; then
7245 cat >>confdefs.h <<\_ACEOF
7246 #define HAVE_MMAP_ANON 1
7254 # Under VMS, vfork works very differently than on Unix. The standard test
7255 # won't work, and it isn't easily adaptable. It makes more sense to
7257 ac_cv_func_vfork_works=yes
7260 echo "$as_me:$LINENO: checking for pid_t" >&5
7261 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7262 if test "${ac_cv_type_pid_t+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 cat >conftest.$ac_ext <<_ACEOF
7266 #line $LINENO "configure"
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 $ac_includes_default
7284 rm -f conftest.$ac_objext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286 (eval $ac_compile) 2>&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -s conftest.$ac_objext'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7296 ac_cv_type_pid_t=yes
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7303 rm -f conftest.$ac_objext conftest.$ac_ext
7305 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7306 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7307 if test $ac_cv_type_pid_t = yes; then
7311 cat >>confdefs.h <<_ACEOF
7319 for ac_header in unistd.h vfork.h
7321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7323 echo "$as_me:$LINENO: checking for $ac_header" >&5
7324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7331 # Is the header compilable?
7332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7335 #line $LINENO "configure"
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7341 $ac_includes_default
7342 #include <$ac_header>
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_header_compiler=yes
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 ac_header_compiler=no
7363 rm -f conftest.$ac_objext conftest.$ac_ext
7364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7365 echo "${ECHO_T}$ac_header_compiler" >&6
7367 # Is the header present?
7368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7370 cat >conftest.$ac_ext <<_ACEOF
7371 #line $LINENO "configure"
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 #include <$ac_header>
7379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7382 grep -v '^ *+' conftest.er1 >conftest.err
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } >/dev/null; then
7387 if test -s conftest.err; then
7388 ac_cpp_err=$ac_c_preproc_warn_flag
7395 if test -z "$ac_cpp_err"; then
7396 ac_header_preproc=yes
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 ac_header_preproc=no
7403 rm -f conftest.err conftest.$ac_ext
7404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7405 echo "${ECHO_T}$ac_header_preproc" >&6
7407 # So? What about this header?
7408 case $ac_header_compiler:$ac_header_preproc in
7410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7416 ## ------------------------------------ ##
7417 ## Report this to bug-autoconf@gnu.org. ##
7418 ## ------------------------------------ ##
7421 sed "s/^/$as_me: WARNING: /" >&2
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7432 ## ------------------------------------ ##
7433 ## Report this to bug-autoconf@gnu.org. ##
7434 ## ------------------------------------ ##
7437 sed "s/^/$as_me: WARNING: /" >&2
7440 echo "$as_me:$LINENO: checking for $ac_header" >&5
7441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 eval "$as_ac_Header=$ac_header_preproc"
7447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7452 cat >>confdefs.h <<_ACEOF
7453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7462 for ac_func in fork vfork
7464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7465 echo "$as_me:$LINENO: checking for $ac_func" >&5
7466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7467 if eval "test \"\${$as_ac_var+set}\" = set"; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 /* System header to define __stub macros and hopefully few prototypes,
7478 which can conflict with char $ac_func (); below.
7479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7480 <limits.h> exists even on freestanding compilers. */
7482 # include <limits.h>
7484 # include <assert.h>
7486 /* Override any gcc2 internal prototype to avoid an error. */
7491 /* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7494 /* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7500 char (*f) () = $ac_func;
7509 return f != $ac_func;
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -s conftest$ac_exeext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7526 eval "$as_ac_var=yes"
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7531 eval "$as_ac_var=no"
7533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7537 if test `eval echo '${'$as_ac_var'}'` = yes; then
7538 cat >>confdefs.h <<_ACEOF
7539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7545 if test "x$ac_cv_func_fork" = xyes; then
7546 echo "$as_me:$LINENO: checking for working fork" >&5
7547 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7548 if test "${ac_cv_func_fork_works+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 if test "$cross_compiling" = yes; then
7552 ac_cv_func_fork_works=cross
7554 cat >conftest.$ac_ext <<_ACEOF
7555 /* By Ruediger Kuhlmann. */
7556 #include <sys/types.h>
7558 # include <unistd.h>
7560 /* Some systems only have a dummy stub for fork() */
7568 rm -f conftest$ac_exeext
7569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570 (eval $ac_link) 2>&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7579 ac_cv_func_fork_works=yes
7581 echo "$as_me: program exited with status $ac_status" >&5
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7586 ac_cv_func_fork_works=no
7588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7591 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7592 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7595 ac_cv_func_fork_works=$ac_cv_func_fork
7597 if test "x$ac_cv_func_fork_works" = xcross; then
7599 *-*-amigaos* | *-*-msdosdjgpp*)
7600 # Override, as these systems have only a dummy fork() stub
7601 ac_cv_func_fork_works=no
7604 ac_cv_func_fork_works=yes
7607 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7608 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7610 ac_cv_func_vfork_works=$ac_cv_func_vfork
7611 if test "x$ac_cv_func_vfork" = xyes; then
7612 echo "$as_me:$LINENO: checking for working vfork" >&5
7613 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7614 if test "${ac_cv_func_vfork_works+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 if test "$cross_compiling" = yes; then
7618 ac_cv_func_vfork_works=cross
7620 cat >conftest.$ac_ext <<_ACEOF
7621 #line $LINENO "configure"
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7627 /* Thanks to Paul Eggert for this test. */
7630 #include <sys/types.h>
7631 #include <sys/stat.h>
7632 #include <sys/wait.h>
7634 # include <unistd.h>
7639 /* On some sparc systems, changes by the child to local and incoming
7640 argument registers are propagated back to the parent. The compiler
7641 is told about this with #include <vfork.h>, but some compilers
7642 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7643 static variable whose address is put into a register that is
7644 clobbered by the vfork. */
7647 sparc_address_test (int arg)
7649 sparc_address_test (arg) int arg;
7670 pid_t parent = getpid ();
7673 sparc_address_test (0);
7678 /* Here is another test for sparc vfork register problems. This
7679 test uses lots of local variables, at least as many local
7680 variables as main has allocated so far including compiler
7681 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7682 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7683 reuse the register of parent for one of the local variables,
7684 since it will think that parent can't possibly be used any more
7685 in this routine. Assigning to the local variable will thus
7686 munge parent in the parent process. */
7688 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7689 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7690 /* Convince the compiler that p..p7 are live; otherwise, it might
7691 use the same hardware register for all 8 local variables. */
7692 if (p != p1 || p != p2 || p != p3 || p != p4
7693 || p != p5 || p != p6 || p != p7)
7696 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7697 from child file descriptors. If the child closes a descriptor
7698 before it execs or exits, this munges the parent's descriptor
7699 as well. Test for this by closing stdout in the child. */
7700 _exit(close(fileno(stdout)) != 0);
7705 while (wait(&status) != child)
7708 /* Was there some problem with vforking? */
7711 /* Did the child fail? (This shouldn't happen.) */
7714 /* Did the vfork/compiler bug occur? */
7715 || parent != getpid()
7717 /* Did the file descriptor bug occur? */
7718 || fstat(fileno(stdout), &st) != 0
7723 rm -f conftest$ac_exeext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7725 (eval $ac_link) 2>&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 ac_cv_func_vfork_works=yes
7736 echo "$as_me: program exited with status $ac_status" >&5
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7741 ac_cv_func_vfork_works=no
7743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7746 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7747 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7750 if test "x$ac_cv_func_fork_works" = xcross; then
7751 ac_cv_func_vfork_works=ac_cv_func_vfork
7752 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7753 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7756 if test "x$ac_cv_func_vfork_works" = xyes; then
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_WORKING_VFORK 1
7764 cat >>confdefs.h <<\_ACEOF
7769 if test "x$ac_cv_func_fork_works" = xyes; then
7771 cat >>confdefs.h <<\_ACEOF
7772 #define HAVE_WORKING_FORK 1
7780 am_cv_lib_iconv_ldpath=
7782 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7783 if test "${with_libiconv_prefix+set}" = set; then
7784 withval="$with_libiconv_prefix"
7786 for dir in `echo "$withval" | tr : ' '`; do
7787 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7788 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7794 for ac_header in iconv.h
7796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7798 echo "$as_me:$LINENO: checking for $ac_header" >&5
7799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7806 # Is the header compilable?
7807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7809 cat >conftest.$ac_ext <<_ACEOF
7810 #line $LINENO "configure"
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7816 $ac_includes_default
7817 #include <$ac_header>
7819 rm -f conftest.$ac_objext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821 (eval $ac_compile) 2>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -s conftest.$ac_objext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_header_compiler=yes
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7836 ac_header_compiler=no
7838 rm -f conftest.$ac_objext conftest.$ac_ext
7839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7840 echo "${ECHO_T}$ac_header_compiler" >&6
7842 # Is the header present?
7843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7845 cat >conftest.$ac_ext <<_ACEOF
7846 #line $LINENO "configure"
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 #include <$ac_header>
7854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7857 grep -v '^ *+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } >/dev/null; then
7862 if test -s conftest.err; then
7863 ac_cpp_err=$ac_c_preproc_warn_flag
7870 if test -z "$ac_cpp_err"; then
7871 ac_header_preproc=yes
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7876 ac_header_preproc=no
7878 rm -f conftest.err conftest.$ac_ext
7879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7880 echo "${ECHO_T}$ac_header_preproc" >&6
7882 # So? What about this header?
7883 case $ac_header_compiler:$ac_header_preproc in
7885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7891 ## ------------------------------------ ##
7892 ## Report this to bug-autoconf@gnu.org. ##
7893 ## ------------------------------------ ##
7896 sed "s/^/$as_me: WARNING: /" >&2
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7907 ## ------------------------------------ ##
7908 ## Report this to bug-autoconf@gnu.org. ##
7909 ## ------------------------------------ ##
7912 sed "s/^/$as_me: WARNING: /" >&2
7915 echo "$as_me:$LINENO: checking for $ac_header" >&5
7916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 eval "$as_ac_Header=$ac_header_preproc"
7922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7927 cat >>confdefs.h <<_ACEOF
7928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7936 echo "$as_me:$LINENO: checking for iconv" >&5
7937 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7938 if test "${am_cv_func_iconv+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 am_cv_func_iconv="no, consider installing GNU libiconv"
7944 cat >conftest.$ac_ext <<_ACEOF
7945 #line $LINENO "configure"
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7956 iconv_t cd = iconv_open("","");
7957 iconv(cd,NULL,NULL,NULL,NULL);
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965 (eval $ac_link) 2>&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 am_cv_func_iconv=yes
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7982 if test "$am_cv_func_iconv" != yes; then
7983 am_save_LIBS="$LIBS"
7984 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7985 cat >conftest.$ac_ext <<_ACEOF
7986 #line $LINENO "configure"
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7997 iconv_t cd = iconv_open("","");
7998 iconv(cd,NULL,NULL,NULL,NULL);
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8017 am_cv_func_iconv=yes
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8024 LIBS="$am_save_LIBS"
8028 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8029 echo "${ECHO_T}$am_cv_func_iconv" >&6
8030 if test "$am_cv_func_iconv" = yes; then
8032 cat >>confdefs.h <<\_ACEOF
8033 #define HAVE_ICONV 1
8036 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8037 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8038 if test "${am_cv_proto_iconv+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 cat >conftest.$ac_ext <<_ACEOF
8043 #line $LINENO "configure"
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8056 #if defined(__STDC__) || defined(__cplusplus)
8057 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8070 rm -f conftest.$ac_objext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072 (eval $ac_compile) 2>&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -s conftest.$ac_objext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 am_cv_proto_iconv_arg1=""
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 am_cv_proto_iconv_arg1="const"
8089 rm -f conftest.$ac_objext conftest.$ac_ext
8090 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);"
8093 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8094 echo "$as_me:$LINENO: result: ${ac_t:-
8095 }$am_cv_proto_iconv" >&5
8096 echo "${ECHO_T}${ac_t:-
8097 }$am_cv_proto_iconv" >&6
8099 cat >>confdefs.h <<_ACEOF
8100 #define ICONV_CONST $am_cv_proto_iconv_arg1
8105 if test "$am_cv_lib_iconv" = yes; then
8106 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8110 # Until we have in-tree GNU iconv:
8115 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8116 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8117 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 cat >conftest.$ac_ext <<_ACEOF
8121 #line $LINENO "configure"
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8136 rm -f conftest.$ac_objext conftest$ac_exeext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8138 (eval $ac_link) 2>&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -s conftest$ac_exeext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 am_cv_val_LC_MESSAGES=yes
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 am_cv_val_LC_MESSAGES=no
8155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8157 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8158 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8159 if test $am_cv_val_LC_MESSAGES = yes; then
8161 cat >>confdefs.h <<\_ACEOF
8162 #define HAVE_LC_MESSAGES 1
8168 # We will need to find libiberty.h and ansidecl.h
8169 saved_CFLAGS="$CFLAGS"
8170 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8171 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8172 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8173 fprintf_unlocked strstr errno snprintf vasprintf \
8174 malloc realloc calloc free basename getopt clock
8176 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8177 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8178 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8179 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 cat >conftest.$ac_ext <<_ACEOF
8183 #line $LINENO "configure"
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8190 #define $ac_tr_decl 1
8192 #include "ansidecl.h"
8199 char *(*pfn) = (char *(*)) $ac_func ;
8205 rm -f conftest.$ac_objext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207 (eval $ac_compile) 2>&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -s conftest.$ac_objext'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 eval "gcc_cv_have_decl_$ac_func=yes"
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 eval "gcc_cv_have_decl_$ac_func=no"
8224 rm -f conftest.$ac_objext conftest.$ac_ext
8227 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8228 echo "$as_me:$LINENO: result: yes" >&5
8229 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8230 #define $ac_tr_decl 1
8234 echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8236 #define $ac_tr_decl 0
8242 if test x = y ; then
8244 cat >>confdefs.h <<\_ACEOF
8245 #define HAVE_DECL_GETENV 1
8248 cat >>confdefs.h <<\_ACEOF
8249 #define HAVE_DECL_ATOL 1
8252 cat >>confdefs.h <<\_ACEOF
8253 #define HAVE_DECL_SBRK 1
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_DECL_ABORT 1
8260 cat >>confdefs.h <<\_ACEOF
8261 #define HAVE_DECL_ATOF 1
8264 cat >>confdefs.h <<\_ACEOF
8265 #define HAVE_DECL_GETCWD 1
8268 cat >>confdefs.h <<\_ACEOF
8269 #define HAVE_DECL_GETWD 1
8273 cat >>confdefs.h <<\_ACEOF
8274 #define HAVE_DECL_STRSIGNAL 1
8277 cat >>confdefs.h <<\_ACEOF
8278 #define HAVE_DECL_PUTC_UNLOCKED 1
8281 cat >>confdefs.h <<\_ACEOF
8282 #define HAVE_DECL_FPUTS_UNLOCKED 1
8285 cat >>confdefs.h <<\_ACEOF
8286 #define HAVE_DECL_FWRITE_UNLOCKED 1
8290 cat >>confdefs.h <<\_ACEOF
8291 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8294 cat >>confdefs.h <<\_ACEOF
8295 #define HAVE_DECL_STRSTR 1
8298 cat >>confdefs.h <<\_ACEOF
8299 #define HAVE_DECL_ERRNO 1
8302 cat >>confdefs.h <<\_ACEOF
8303 #define HAVE_DECL_SNPRINTF 1
8306 cat >>confdefs.h <<\_ACEOF
8307 #define HAVE_DECL_VASPRINTF 1
8311 cat >>confdefs.h <<\_ACEOF
8312 #define HAVE_DECL_MALLOC 1
8315 cat >>confdefs.h <<\_ACEOF
8316 #define HAVE_DECL_REALLOC 1
8319 cat >>confdefs.h <<\_ACEOF
8320 #define HAVE_DECL_CALLOC 1
8323 cat >>confdefs.h <<\_ACEOF
8324 #define HAVE_DECL_FREE 1
8327 cat >>confdefs.h <<\_ACEOF
8328 #define HAVE_DECL_BASENAME 1
8331 cat >>confdefs.h <<\_ACEOF
8332 #define HAVE_DECL_GETOPT 1
8335 cat >>confdefs.h <<\_ACEOF
8336 #define HAVE_DECL_CLOCK 1
8341 for ac_func in getrlimit setrlimit getrusage
8343 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8344 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8345 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8346 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 cat >conftest.$ac_ext <<_ACEOF
8350 #line $LINENO "configure"
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8357 #define $ac_tr_decl 1
8359 #include "ansidecl.h"
8361 #ifdef HAVE_SYS_RESOURCE_H
8362 #include <sys/resource.h>
8370 char *(*pfn) = (char *(*)) $ac_func ;
8376 rm -f conftest.$ac_objext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8378 (eval $ac_compile) 2>&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 eval "gcc_cv_have_decl_$ac_func=yes"
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 eval "gcc_cv_have_decl_$ac_func=no"
8395 rm -f conftest.$ac_objext conftest.$ac_ext
8398 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8399 echo "$as_me:$LINENO: result: yes" >&5
8400 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8401 #define $ac_tr_decl 1
8405 echo "$as_me:$LINENO: result: no" >&5
8406 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8407 #define $ac_tr_decl 0
8413 if test x = y ; then
8415 cat >>confdefs.h <<\_ACEOF
8416 #define HAVE_DECL_GETRLIMIT 1
8419 cat >>confdefs.h <<\_ACEOF
8420 #define HAVE_DECL_SETRLIMIT 1
8423 cat >>confdefs.h <<\_ACEOF
8424 #define HAVE_DECL_GETRUSAGE 1
8429 cat >conftest.$ac_ext <<_ACEOF
8430 #line $LINENO "configure"
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8437 #include "ansidecl.h"
8439 #ifdef HAVE_SYS_RESOURCE_H
8440 #include <sys/resource.h>
8451 rm -f conftest.$ac_objext
8452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8453 (eval $ac_compile) 2>&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -s conftest.$ac_objext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8469 cat >>confdefs.h <<\_ACEOF
8474 rm -f conftest.$ac_objext conftest.$ac_ext
8476 for ac_func in ldgetname
8478 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8479 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8480 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8481 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 cat >conftest.$ac_ext <<_ACEOF
8485 #line $LINENO "configure"
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8492 #define $ac_tr_decl 1
8494 #include "ansidecl.h"
8505 char *(*pfn) = (char *(*)) $ac_func ;
8511 rm -f conftest.$ac_objext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -s conftest.$ac_objext'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8523 eval "gcc_cv_have_decl_$ac_func=yes"
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8528 eval "gcc_cv_have_decl_$ac_func=no"
8530 rm -f conftest.$ac_objext conftest.$ac_ext
8533 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8534 echo "$as_me:$LINENO: result: yes" >&5
8535 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8536 #define $ac_tr_decl 1
8540 echo "$as_me:$LINENO: result: no" >&5
8541 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8542 #define $ac_tr_decl 0
8548 if test x = y ; then
8550 cat >>confdefs.h <<\_ACEOF
8551 #define HAVE_DECL_LDGETNAME 1
8556 for ac_func in times
8558 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8559 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8560 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8561 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 cat >conftest.$ac_ext <<_ACEOF
8565 #line $LINENO "configure"
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8572 #define $ac_tr_decl 1
8574 #include "ansidecl.h"
8576 #ifdef HAVE_SYS_TIMES_H
8577 #include <sys/times.h>
8585 char *(*pfn) = (char *(*)) $ac_func ;
8591 rm -f conftest.$ac_objext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593 (eval $ac_compile) 2>&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -s conftest.$ac_objext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 eval "gcc_cv_have_decl_$ac_func=yes"
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 eval "gcc_cv_have_decl_$ac_func=no"
8610 rm -f conftest.$ac_objext conftest.$ac_ext
8613 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8614 echo "$as_me:$LINENO: result: yes" >&5
8615 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8616 #define $ac_tr_decl 1
8620 echo "$as_me:$LINENO: result: no" >&5
8621 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8622 #define $ac_tr_decl 0
8628 if test x = y ; then
8630 cat >>confdefs.h <<\_ACEOF
8631 #define HAVE_DECL_TIMES 1
8636 # More time-related stuff.
8637 echo "$as_me:$LINENO: checking for struct tms" >&5
8638 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8639 if test "${ac_cv_struct_tms+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8651 #include "ansidecl.h"
8653 #ifdef HAVE_SYS_TIMES_H
8654 #include <sys/times.h>
8665 rm -f conftest.$ac_objext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667 (eval $ac_compile) 2>&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -s conftest.$ac_objext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_cv_struct_tms=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8684 rm -f conftest.$ac_objext conftest.$ac_ext
8686 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8687 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8688 if test $ac_cv_struct_tms = yes; then
8690 cat >>confdefs.h <<\_ACEOF
8691 #define HAVE_STRUCT_TMS 1
8696 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8697 # revisit after autoconf 2.50.
8698 echo "$as_me:$LINENO: checking for clock_t" >&5
8699 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8700 if test "${gcc_cv_type_clock_t+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 cat >conftest.$ac_ext <<_ACEOF
8705 #line $LINENO "configure"
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8712 #include "ansidecl.h"
8723 rm -f conftest.$ac_objext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725 (eval $ac_compile) 2>&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -s conftest.$ac_objext'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 gcc_cv_type_clock_t=yes
8737 echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8740 gcc_cv_type_clock_t=no
8742 rm -f conftest.$ac_objext conftest.$ac_ext
8744 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8745 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8746 if test $gcc_cv_type_clock_t = yes; then
8748 cat >>confdefs.h <<\_ACEOF
8749 #define HAVE_CLOCK_T 1
8754 echo "$as_me:$LINENO: checking for uchar" >&5
8755 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8756 if test "${gcc_cv_type_uchar+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 cat >conftest.$ac_ext <<_ACEOF
8760 #line $LINENO "configure"
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8767 #include "ansidecl.h"
8773 if ((uchar *)0) return 0;
8774 if (sizeof(uchar)) return 0;
8779 rm -f conftest.$ac_objext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8781 (eval $ac_compile) 2>&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try='test -s conftest.$ac_objext'
8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_cv_type_uchar=yes
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8798 rm -f conftest.$ac_objext conftest.$ac_ext
8800 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8801 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8802 if test $ac_cv_type_uchar = yes; then
8804 cat >>confdefs.h <<\_ACEOF
8805 #define HAVE_UCHAR 1
8810 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8811 CFLAGS="$saved_CFLAGS"
8813 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8814 if test "${enable_initfini_array+set}" = set; then
8815 enableval="$enable_initfini_array"
8819 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8820 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8821 if test "${gcc_cv_initfini_array+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 if test "$cross_compiling" = yes; then
8825 gcc_cv_initfini_array=no
8827 cat >conftest.$ac_ext <<_ACEOF
8828 #line $LINENO "configure"
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8836 int main (void) { return x; }
8837 int foo (void) { x = 0; }
8838 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8840 rm -f conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 gcc_cv_initfini_array=yes
8853 echo "$as_me: program exited with status $ac_status" >&5
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8858 gcc_cv_initfini_array=no
8860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8864 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8865 enable_initfini_array=$gcc_cv_initfini_array
8868 if test $enable_initfini_array = yes; then
8870 cat >>confdefs.h <<\_ACEOF
8871 #define HAVE_INITFINI_ARRAY 1
8876 # mkdir takes a single argument on some systems.
8877 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8878 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8879 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8890 #include <sys/types.h>
8891 #ifdef HAVE_SYS_STAT_H
8892 # include <sys/stat.h>
8894 #ifdef HAVE_UNISTD_H
8895 # include <unistd.h>
8897 #ifdef HAVE_DIRECT_H
8898 # include <direct.h>
8908 rm -f conftest.$ac_objext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910 (eval $ac_compile) 2>&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try='test -s conftest.$ac_objext'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920 gcc_cv_mkdir_takes_one_arg=no
8922 echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8925 gcc_cv_mkdir_takes_one_arg=yes
8927 rm -f conftest.$ac_objext conftest.$ac_ext
8929 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8930 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8931 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8933 cat >>confdefs.h <<\_ACEOF
8934 #define MKDIR_TAKES_ONE_ARG 1
8946 # With Setjmp/Longjmp based exception handling.
8947 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8948 if test "${enable_sjlj_exceptions+set}" = set; then
8949 enableval="$enable_sjlj_exceptions"
8950 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8952 cat >>confdefs.h <<_ACEOF
8953 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8958 if test x$host = x$target; then
8959 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8960 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8961 if test "${ac_cv_lib_unwind_main+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 ac_check_lib_save_LIBS=$LIBS
8965 LIBS="-lunwind $LIBS"
8966 cat >conftest.$ac_ext <<_ACEOF
8967 #line $LINENO "configure"
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985 (eval $ac_link) 2>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -s conftest$ac_exeext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_cv_lib_unwind_main=yes
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 ac_cv_lib_unwind_main=no
9002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9005 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9006 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9007 if test $ac_cv_lib_unwind_main = yes; then
9008 use_libunwind_default=yes
9010 use_libunwind_default=no
9014 use_libunwind_default=no
9016 # Use libunwind based exception handling.
9017 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9018 if test "${enable_libunwind_exceptions+set}" = set; then
9019 enableval="$enable_libunwind_exceptions"
9020 use_libunwind_exceptions=$enableval
9022 use_libunwind_exceptions=$use_libunwind_default
9024 if test x"$use_libunwind_exceptions" = xyes; then
9026 cat >>confdefs.h <<\_ACEOF
9027 #define USE_LIBUNWIND_EXCEPTIONS 1
9032 # --------------------------------------------------------
9033 # Build, host, and target specific configuration fragments
9034 # --------------------------------------------------------
9036 # Collect build-machine-specific information.
9037 . ${srcdir}/config.build
9039 # Collect host-machine-specific information.
9040 . ${srcdir}/config.host
9044 # Collect target-machine-specific information.
9045 . ${srcdir}/config.gcc
9047 extra_objs="${host_extra_objs} ${extra_objs}"
9049 # Default the target-machine variables that were not explicitly set.
9050 if test x"$tm_file" = x
9051 then tm_file=$cpu_type/$cpu_type.h; fi
9053 if test x"$extra_headers" = x
9054 then extra_headers=; fi
9056 if test x$md_file = x
9057 then md_file=$cpu_type/$cpu_type.md; fi
9059 if test x$out_file = x
9060 then out_file=$cpu_type/$cpu_type.c; fi
9062 if test x"$tmake_file" = x
9063 then tmake_file=$cpu_type/t-$cpu_type
9066 if test x"$dwarf2" = xyes
9067 then tm_file="$tm_file tm-dwarf2.h"
9070 # Say what files are being used for the output code and MD file.
9071 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9072 echo "Using \`$srcdir/config/$md_file' as machine description file."
9074 # If any of the xm_file variables contain nonexistent files, warn
9075 # about them and drop them.
9078 for x in $build_xm_file; do
9079 if test -f $srcdir/config/$x
9081 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9082 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9088 for x in $host_xm_file; do
9089 if test -f $srcdir/config/$x
9091 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9092 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9098 for x in $xm_file; do
9099 if test -f $srcdir/config/$x
9101 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9102 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9108 for f in $tm_file; do
9111 if test $count = ax; then
9112 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9114 echo "Using the following target machine macro files:"
9115 for f in $tm_file; do
9116 echo " $srcdir/config/$f"
9120 if test x$need_64bit_hwint = xyes; then
9122 cat >>confdefs.h <<\_ACEOF
9123 #define NEED_64BIT_HOST_WIDE_INT 1
9129 for f in $host_xm_file; do
9132 if test $count = a; then
9134 elif test $count = ax; then
9135 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9137 echo "Using the following host machine macro files:"
9138 for f in $host_xm_file; do
9139 echo " $srcdir/config/$f"
9142 echo "Using ${out_host_hook_obj} for host machine hooks."
9144 if test "$host_xm_file" != "$build_xm_file"; then
9146 for f in $build_xm_file; do
9149 if test $count = a; then
9151 elif test $count = ax; then
9152 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9154 echo "Using the following build machine macro files:"
9155 for f in $build_xm_file; do
9156 echo " $srcdir/config/$f"
9161 # Check if a valid thread package
9162 case ${enable_threads_flag} in
9165 target_thread_file='single'
9169 target_thread_file='single'
9171 aix | dce | gnat | irix | posix | rtems | \
9172 single | solaris | vxworks | win32 )
9173 target_thread_file=${enable_threads_flag}
9176 echo "${enable_threads_flag} is an unknown thread package" 1>&2
9181 if test x${thread_file} = x; then
9182 # No thread file set by target-specific clauses in config.gcc,
9183 # so use file chosen by default logic above
9184 thread_file=${target_thread_file}
9187 if test x$enable___cxa_atexit = xyes || \
9188 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9190 cat >>confdefs.h <<\_ACEOF
9191 #define DEFAULT_USE_CXA_ATEXIT 1
9196 # Look for a file containing extra machine modes.
9197 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9198 extra_modes_file='$(srcdir)'/config/${extra_modes}
9201 cat >>confdefs.h <<_ACEOF
9202 #define EXTRA_MODES_FILE "config/$extra_modes"
9207 # auto-host.h is the file containing items generated by autoconf and is
9208 # the first file included by config.h.
9209 # If host=build, it is correct to have bconfig include auto-host.h
9210 # as well. If host!=build, we are in error and need to do more
9211 # work to find out the build config parameters.
9212 if test x$host = x$build
9214 build_auto=auto-host.h
9217 # We create a subdir, then run autoconf in the subdir.
9218 # To prevent recursion we set host and build for the new
9219 # invocation of configure to the build for this invocation
9226 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9227 *) realsrcdir=../${srcdir};;
9229 saved_CFLAGS="${CFLAGS}"
9230 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9231 ${realsrcdir}/configure \
9232 --target=$target_alias --host=$build_alias --build=$build_alias
9233 CFLAGS="${saved_CFLAGS}"
9235 # We just finished tests for the build machine, so rename
9236 # the file auto-build.h in the gcc directory.
9237 mv auto-host.h ../auto-build.h
9240 build_auto=auto-build.h
9241 FORBUILD=../${build_subdir}
9245 tm_file="${tm_file} defaults.h"
9246 tm_p_file="${tm_p_file} tm-preds.h"
9247 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9248 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9249 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9250 # put this back in temporarily.
9251 xm_file="ansidecl.h ${xm_file}"
9257 # Get the version trigger filename from the toplevel
9258 if test "${with_gcc_version_trigger+set}" = set; then
9259 gcc_version_trigger=$with_gcc_version_trigger
9261 gcc_version_trigger=${srcdir}/version.c
9263 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9264 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9266 # Compile in configure arguments.
9267 if test -f configargs.h ; then
9268 # Being re-configured.
9269 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9270 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9272 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9275 # Double all backslashes and backslash all quotes to turn
9276 # gcc_config_arguments into a C string.
9277 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9278 $gcc_config_arguments
9280 gcc_config_arguments_str=`cat conftest.out`
9283 cat > configargs.h <<EOF
9284 /* Generated automatically. */
9285 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9286 static const char thread_model[] = "$thread_file";
9288 static const struct {
9289 const char *name, *value;
9290 } configure_default_options[] = $configure_default_options;
9293 # Internationalization
9295 VERSION="$gcc_version"
9299 # If we haven't got the data from the intl directory,
9300 # assume NLS is disabled.
9308 if test -f ../intl/config.intl; then
9309 . ../intl/config.intl
9311 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9312 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9313 if test x"$USE_NLS" != xyes; then
9314 echo "$as_me:$LINENO: result: no" >&5
9315 echo "${ECHO_T}no" >&6
9317 echo "$as_me:$LINENO: result: yes" >&5
9318 echo "${ECHO_T}yes" >&6
9320 cat >>confdefs.h <<\_ACEOF
9321 #define ENABLE_NLS 1
9325 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9326 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9327 # Look for .po and .gmo files in the source directory.
9330 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9331 # If there aren't any .gmo files the shell will give us the
9332 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9334 case "$cat" in *\**)
9337 # The quadruple backslash is collapsed to a double backslash
9338 # by the backticks, then collapsed again by the double quotes,
9339 # leaving us with one backslash in the sed expression (right
9340 # before the dot that mustn't act as a wildcard).
9341 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9342 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9343 # The user is allowed to set LINGUAS to a list of languages to
9344 # install catalogs for. If it's empty that means "all of them."
9345 if test "x$LINGUAS" = x; then
9346 CATALOGS="$CATALOGS $cat"
9347 XLINGUAS="$XLINGUAS $lang"
9349 case "$LINGUAS" in *$lang*)
9350 CATALOGS="$CATALOGS $cat"
9351 XLINGUAS="$XLINGUAS $lang"
9357 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9358 echo "${ECHO_T}$LINGUAS" >&6
9361 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9362 # -liconv on the link line twice.
9363 case "$LIBINTL" in *$LIBICONV*)
9367 # Windows32 Registry support for specifying GCC installation paths.
9368 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9369 if test "${enable_win32_registry+set}" = set; then
9370 enableval="$enable_win32_registry"
9374 win32 | pe | cygwin* | mingw32* | uwin*)
9375 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9376 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9377 if test "x$enable_win32_registry" != xno; then
9379 cat >>confdefs.h <<\_ACEOF
9380 #define ENABLE_WIN32_REGISTRY 1
9383 echo "$as_me:$LINENO: result: yes" >&5
9384 echo "${ECHO_T}yes" >&6
9385 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9386 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9387 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 ac_func_search_save_LIBS=$LIBS
9391 ac_cv_search_RegOpenKeyExA=no
9392 cat >conftest.$ac_ext <<_ACEOF
9393 #line $LINENO "configure"
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9400 /* Override any gcc2 internal prototype to avoid an error. */
9404 /* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */
9406 char RegOpenKeyExA ();
9415 rm -f conftest.$ac_objext conftest$ac_exeext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417 (eval $ac_link) 2>&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_search_RegOpenKeyExA="none required"
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9434 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9435 for ac_lib in advapi32; do
9436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9437 cat >conftest.$ac_ext <<_ACEOF
9438 #line $LINENO "configure"
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9445 /* Override any gcc2 internal prototype to avoid an error. */
9449 /* We use char because int might match the return type of a gcc2
9450 builtin and then its argument prototype would still apply. */
9451 char RegOpenKeyExA ();
9460 rm -f conftest.$ac_objext conftest$ac_exeext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462 (eval $ac_link) 2>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try='test -s conftest$ac_exeext'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; }; then
9472 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9482 LIBS=$ac_func_search_save_LIBS
9484 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9485 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9486 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9487 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9492 echo "$as_me:$LINENO: result: no" >&5
9493 echo "${ECHO_T}no" >&6
9496 # Check if user specified a different registry key.
9497 case "x${enable_win32_registry}" in
9500 gcc_cv_win32_registry_key="$VERSION"
9503 # no registry lookup.
9504 gcc_cv_win32_registry_key=''
9507 # user-specified key.
9508 gcc_cv_win32_registry_key="$enable_win32_registry"
9512 if test "x$enable_win32_registry" != xno; then
9513 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9514 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9516 cat >>confdefs.h <<_ACEOF
9517 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9520 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9521 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9526 # Get an absolute path to the GCC top-level source directory
9527 holddir=`${PWDCMD-pwd}`
9529 topdir=`${PWDCMD-pwd}`
9532 # Conditionalize the makefile for this host machine.
9534 for f in ${host_xmake_file}
9536 if test -f ${srcdir}/config/$f
9538 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9542 # Conditionalize the makefile for this target machine.
9544 for f in ${tmake_file}
9546 if test -f ${srcdir}/config/$f
9548 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9551 tmake_file="${tmake_file_}"
9553 symbolic_link='ln -s'
9555 # If the host doesn't support symlinks, modify CC in
9556 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9557 # Otherwise, we can use "CC=$(CC)".
9559 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9561 cc_set_by_configure="\$(CC)"
9562 quoted_cc_set_by_configure="\$(CC)"
9563 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9564 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9567 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9569 symbolic_link="cp -p"
9573 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9574 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9575 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9576 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9580 out_object_file=`basename $out_file .c`.o
9584 for f in $tm_file; do
9587 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9588 tm_include_list="${tm_include_list} $f"
9591 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9592 tm_include_list="${tm_include_list} config/$f"
9599 for f in $tm_p_file; do
9602 tm_p_file_list="${tm_p_file_list} $f"
9603 tm_p_include_list="${tm_p_include_list} $f"
9606 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9607 tm_p_include_list="${tm_p_include_list} config/$f"
9613 for f in $xm_file; do
9616 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9617 xm_include_list="${xm_include_list} $f"
9620 xm_file_list="${xm_file_list} $f"
9621 xm_include_list="${xm_include_list} $f"
9624 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9625 xm_include_list="${xm_include_list} config/$f"
9631 host_xm_include_list=
9632 for f in $host_xm_file; do
9635 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9636 host_xm_include_list="${host_xm_include_list} $f"
9639 host_xm_file_list="${host_xm_file_list} $f"
9640 host_xm_include_list="${host_xm_include_list} $f"
9643 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9644 host_xm_include_list="${host_xm_include_list} config/$f"
9650 for f in $build_xm_file; do
9653 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9654 build_xm_include_list="${build_xm_include_list} $f"
9656 auto-build.h | auto-host.h )
9657 build_xm_file_list="${build_xm_file_list} $f"
9658 build_xm_include_list="${build_xm_include_list} $f"
9661 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9662 build_xm_include_list="${build_xm_include_list} config/$f"
9667 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9668 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9671 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9672 if test x$host != x$target
9674 CROSS="-DCROSS_COMPILE"
9676 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9677 case "$host","$target" in
9678 # Darwin crosses can use the host system's libraries and headers,
9679 # because of the fat library support. Of course, it must be the
9680 # same version of Darwin on both sides. Allow the user to
9681 # just say --target=foo-darwin without a version number to mean
9682 # "the version on this system".
9683 *-*-darwin*,*-*-darwin*)
9684 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9685 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9686 if test $hostos = $targetos -o $targetos = darwin ; then
9688 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9693 i?86-*-*,x86_64-*-* \
9694 | powerpc*-*-*,powerpc64*-*-*)
9695 CROSS="$CROSS -DNATIVE_CROSS" ;;
9697 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9698 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9699 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9702 # If this is a cross-compiler that does not
9703 # have its own set of headers then define
9706 # If this is using newlib, without having the headers available now,
9707 # then define inhibit_libc in LIBGCC2_CFLAGS.
9708 # This prevents libgcc2 from containing any code which requires libc
9711 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9712 test x$with_newlib = xyes ; } &&
9713 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9714 inhibit_libc=-Dinhibit_libc
9718 # When building gcc with a cross-compiler, we need to adjust things so
9719 # that the generator programs are still built with the native compiler.
9720 # Also, we cannot run fixincludes or fix-header.
9722 # These are the normal (build=host) settings:
9724 BUILD_PREFIX_1=ignore-
9725 CC_FOR_BUILD='$(CC)'
9726 BUILD_CFLAGS='$(ALL_CFLAGS)'
9728 STMP_FIXINC=stmp-fixinc
9730 # Possibly disable fixproto, on a per-target basis.
9731 case ${use_fixproto} in
9736 STMP_FIXPROTO=stmp-fixproto
9741 # And these apply if build != host, or we are generating coverage data
9742 if test x$build != x$host || test "x$coverage_flags" != x
9745 BUILD_PREFIX_1=build-
9746 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9748 if test "x$TARGET_SYSTEM_ROOT" = x; then
9754 # Expand extra_headers to include complete path.
9755 # This substitutes for lots of t-* files.
9757 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9758 for file in ${extra_headers} ; do
9759 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9762 # Add a definition of USE_COLLECT2 if system wants one.
9763 case $use_collect2 in
9764 no) use_collect2= ;;
9767 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9768 xm_defines="${xm_defines} USE_COLLECT2"
9772 # Identify the assembler which will work hand-in-glove with the newly
9773 # built GCC, so that we can examine its features. This is the assembler
9774 # which will be driven by the driver program.
9776 # If build != host, and we aren't building gas in-tree, we identify a
9777 # build->target assembler and hope that it will have the same features
9778 # as the host->target assembler we'll be using.
9779 echo "$as_me:$LINENO: checking what assembler to use" >&5
9780 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9783 gcc_cv_gas_major_version=
9784 gcc_cv_gas_minor_version=
9785 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9786 if test -x "$DEFAULT_ASSEMBLER"; then
9787 gcc_cv_as="$DEFAULT_ASSEMBLER"
9788 elif test -x "$AS"; then
9790 elif test -x as$host_exeext; then
9791 # Build using assembler in the current directory.
9792 gcc_cv_as=./as$host_exeext
9793 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9794 && test -f ../gas/Makefile; then
9795 # Single tree build which includes gas.
9797 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9798 for f in $gcc_cv_as_bfd_srcdir/configure \
9799 $gcc_cv_as_gas_srcdir/configure \
9800 $gcc_cv_as_gas_srcdir/configure.in \
9801 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9802 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9803 if test x$gcc_cv_gas_version != x; then
9807 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9808 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9809 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9810 case $gcc_cv_gas_patch_version in
9811 "") gcc_cv_gas_patch_version="0" ;;
9813 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9814 + $gcc_cv_gas_minor_version \) \* 1000 \
9815 + $gcc_cv_gas_patch_version`
9817 rm -f as$host_exeext
9818 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9819 in_tree_gas_is_elf=no
9820 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9821 || (grep 'obj_format = multi' ../gas/Makefile \
9822 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9824 in_tree_gas_is_elf=yes
9828 if test "x$gcc_cv_as" = x; then
9829 # Search the same directories that the installed compiler will
9830 # search. Else we may find the wrong assembler and lose. If we
9831 # do not find a suitable assembler binary, then try the user's
9834 # Also note we have to check MD_EXEC_PREFIX before checking the
9835 # user's path. Unfortunately, there is no good way to get at the
9836 # value of MD_EXEC_PREFIX here. So we do a brute force search
9837 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9838 # to be fixed as part of the make/configure rewrite too.
9840 if test "x$exec_prefix" = xNONE; then
9841 if test "x$prefix" = xNONE; then
9842 test_prefix=/usr/local
9847 test_prefix=$exec_prefix
9850 # If the loop below does not find an assembler, then use whatever
9851 # one we can find in the users's path.
9853 if test "x$program_prefix" != xNONE; then
9854 gcc_cv_as=${program_prefix}as$host_exeext
9856 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
9859 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9860 $test_prefix/lib/gcc-lib/$target_noncanonical \
9861 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9862 /usr/lib/gcc/$target_noncanonical \
9863 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9864 $test_prefix/$target_noncanonical/bin"
9866 if test x$host = x$target; then
9867 test_dirs="$test_dirs \
9872 /bsd43/usr/lib/cmplrs/cc \
9873 /usr/cross64/usr/bin \
9874 /usr/lib/cmplrs/cc \
9875 /sysv/usr/lib/cmplrs/cc \
9876 /svr4/usr/lib/cmplrs/cc \
9880 for dir in $test_dirs; do
9881 if test -x $dir/as$host_exeext; then
9882 gcc_cv_as=$dir/as$host_exeext
9887 case $in_tree_gas in
9889 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9890 echo "${ECHO_T}\"newly built gas\"" >&6
9893 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9894 echo "${ECHO_T}$gcc_cv_as" >&6
9898 # Identify the linker which will work hand-in-glove with the newly
9899 # built GCC, so that we can examine its features. This is the linker
9900 # which will be driven by the driver program.
9902 # If build != host, and we aren't building gas in-tree, we identify a
9903 # build->target linker and hope that it will have the same features
9904 # as the host->target linker we'll be using.
9905 echo "$as_me:$LINENO: checking what linker to use" >&5
9906 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9909 gcc_cv_gld_major_version=
9910 gcc_cv_gld_minor_version=
9911 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9912 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9913 if test -x "$DEFAULT_LINKER"; then
9914 gcc_cv_ld="$DEFAULT_LINKER"
9915 elif test -x "$LD"; then
9917 elif test -x collect-ld$host_exeext; then
9918 # Build using linker in the current directory.
9919 gcc_cv_ld=./collect-ld$host_exeext
9920 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9921 && test -f ../ld/Makefile; then
9922 # Single tree build which includes ld.
9924 in_tree_ld_is_elf=no
9925 if (grep 'EMUL = .*elf' ../ld/Makefile \
9926 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9927 in_tree_ld_is_elf=yes
9929 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
9931 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9932 if test x$gcc_cv_gld_version != x; then
9936 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9937 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9938 rm -f collect-ld$host_exeext
9939 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9943 if test "x$gcc_cv_ld" = x; then
9944 # Search the same directories that the installed compiler will
9945 # search. Else we may find the wrong linker and lose. If we
9946 # do not find a suitable linker binary, then try the user's
9949 # Also note we have to check MD_EXEC_PREFIX before checking the
9950 # user's path. Unfortunately, there is no good way to get at the
9951 # value of MD_EXEC_PREFIX here. So we do a brute force search
9952 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9953 # to be fixed as part of the make/configure rewrite too.
9955 if test "x$exec_prefix" = xNONE; then
9956 if test "x$prefix" = xNONE; then
9957 test_prefix=/usr/local
9962 test_prefix=$exec_prefix
9965 # If the loop below does not find an linker, then use whatever
9966 # one we can find in the users's path.
9968 if test "x$program_prefix" != xNONE; then
9969 gcc_cv_ld=${program_prefix}ld$host_exeext
9971 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
9974 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9975 $test_prefix/lib/gcc-lib/$target_noncanonical \
9976 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9977 /usr/lib/gcc/$target_noncanonical \
9978 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9979 $test_prefix/$target_noncanonical/bin"
9981 if test x$host = x$target; then
9982 test_dirs="$test_dirs \
9987 /bsd43/usr/lib/cmplrs/cc \
9988 /usr/cross64/usr/bin \
9989 /usr/lib/cmplrs/cc \
9990 /sysv/usr/lib/cmplrs/cc \
9991 /svr4/usr/lib/cmplrs/cc \
9995 for dir in $test_dirs; do
9996 if test -x $dir/ld$host_exeext; then
9997 gcc_cv_ld=$dir/ld$host_exeext
10002 case $in_tree_ld in
10004 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10005 echo "${ECHO_T}\"newly built ld\"" >&6
10008 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10009 echo "${ECHO_T}$gcc_cv_ld" >&6
10013 # Figure out what nm we will be using.
10014 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10015 echo "$as_me:$LINENO: checking what nm to use" >&5
10016 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10018 if test -x nm$host_exeext; then
10019 gcc_cv_nm=./nm$host_exeext
10020 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10021 && test -f ../binutils/Makefile; then
10022 # Single tree build which includes binutils.
10024 gcc_cv_nm=./nm$host_exeext
10025 rm -f nm$host_exeext
10026 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10027 elif test "x$program_prefix" != xNONE; then
10028 gcc_cv_nm=${program_prefix}nm$host_exeext
10030 gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
10032 case $in_tree_nm in
10033 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10034 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10035 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10036 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10039 # Figure out what objdump we will be using.
10040 echo "$as_me:$LINENO: checking what objdump to use" >&5
10041 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10043 if test -x objdump$host_exeext; then
10044 gcc_cv_objdump=./objdump$host_exeext
10045 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10046 && test -f ../binutils/Makefile; then
10047 # Single tree build which includes binutils.
10048 in_tree_objdump=yes
10049 gcc_cv_objdump=./objdump$host_exeext
10050 rm -f objdump$host_exeext
10051 $symbolic_link ../binutils/objdump$host_exeext \
10052 objdump$host_exeext 2>/dev/null
10053 elif test "x$program_prefix" != xNONE; then
10054 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10056 gcc_cv_objdump=`echo objdump | \
10057 sed ${program_transform_name}`$host_exeext
10059 case $in_tree_objdump in
10060 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10061 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10062 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10063 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10066 # Figure out what assembler alignment features are present.
10067 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10068 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10069 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 gcc_cv_as_balign_and_p2align=no
10073 if test $in_tree_gas = yes; then
10074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10075 then gcc_cv_as_balign_and_p2align=yes
10077 elif test x$gcc_cv_as != x; then
10079 .p2align 2' > conftest.s
10080 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }
10087 gcc_cv_as_balign_and_p2align=yes
10089 echo "configure: failed program was" >&5
10092 rm -f conftest.o conftest.s
10095 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10096 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10097 if test $gcc_cv_as_balign_and_p2align = yes; then
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10105 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10106 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10107 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 gcc_cv_as_max_skip_p2align=no
10111 if test $in_tree_gas = yes; then
10112 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10113 then gcc_cv_as_max_skip_p2align=yes
10115 elif test x$gcc_cv_as != x; then
10116 echo '.p2align 4,,7' > conftest.s
10117 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }
10124 gcc_cv_as_max_skip_p2align=yes
10126 echo "configure: failed program was" >&5
10129 rm -f conftest.o conftest.s
10132 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10133 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10134 if test $gcc_cv_as_max_skip_p2align = yes; then
10136 cat >>confdefs.h <<\_ACEOF
10137 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10142 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10143 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10144 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 gcc_cv_as_subsection_m1=no
10148 if test $in_tree_gas = yes; then
10149 if test $in_tree_gas_is_elf = yes \
10150 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10151 then gcc_cv_as_subsection_m1=yes
10153 elif test x$gcc_cv_as != x; then
10154 echo 'conftest_label1: .word 0
10156 conftest_label2: .word 0
10157 .previous' > conftest.s
10158 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }
10165 if test x$gcc_cv_nm != x; then
10166 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10167 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10168 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10170 else gcc_cv_as_subsection_m1=yes
10172 rm -f conftest.nm1 conftest.nm2
10175 echo "configure: failed program was" >&5
10178 rm -f conftest.o conftest.s
10181 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10182 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10183 if test $gcc_cv_as_subsection_m1 = yes; then
10185 cat >>confdefs.h <<\_ACEOF
10186 #define HAVE_GAS_SUBSECTION_ORDERING 1
10191 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10192 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10193 if test "${gcc_cv_as_weak+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 if test $in_tree_gas = yes; then
10198 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10199 then gcc_cv_as_weak=yes
10201 elif test x$gcc_cv_as != x; then
10202 echo ' .weak foobar' > conftest.s
10203 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; }
10212 echo "configure: failed program was" >&5
10215 rm -f conftest.o conftest.s
10218 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10219 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10220 if test $gcc_cv_as_weak = yes; then
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_GAS_WEAK 1
10228 # .hidden needs to be supported in both the assembler and the linker,
10229 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10230 # This is irritatingly difficult to feature test for; we have to check the
10231 # date string after the version number. If we've got an in-tree
10232 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10234 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10235 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10236 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10237 if test "${gcc_cv_as_hidden+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 gcc_cv_as_hidden=no
10241 if test $in_tree_gas = yes; then
10242 if test $in_tree_gas_is_elf = yes \
10243 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10244 then gcc_cv_as_hidden=yes
10246 elif test x$gcc_cv_as != x; then
10247 echo ' .hidden foobar
10248 foobar:' > conftest.s
10249 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }
10256 gcc_cv_as_hidden=yes
10258 echo "configure: failed program was" >&5
10261 rm -f conftest.o conftest.s
10264 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10265 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10268 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10269 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10270 if test "${gcc_cv_ld_hidden+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 if test $in_tree_ld = yes ; then
10274 gcc_cv_ld_hidden=no
10275 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 \
10276 && test $in_tree_ld_is_elf = yes; then
10277 gcc_cv_ld_hidden=yes
10280 gcc_cv_ld_hidden=yes
10281 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10282 if echo "$ld_ver" | grep GNU > /dev/null; then
10283 ld_vers=`echo $ld_ver | sed -n \
10284 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10285 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10286 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10287 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10288 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10289 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10290 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'`
10291 if test 0"$ld_date" -lt 20020404; then
10292 if test -n "$ld_date"; then
10293 # If there was date string, but was earlier than 2002-04-04, fail
10294 gcc_cv_ld_hidden=no
10295 elif test -z "$ld_vers"; then
10296 # If there was no date string nor ld version number, something is wrong
10297 gcc_cv_ld_hidden=no
10299 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10300 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10301 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10302 test -z "$ld_vers_patch" && ld_vers_patch=0
10303 if test "$ld_vers_major" -lt 2; then
10304 gcc_cv_ld_hidden=no
10305 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10306 gcc_cv_ld_hidden="no"
10307 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10308 gcc_cv_ld_hidden=no
10313 case "${target}" in
10315 gcc_cv_ld_hidden=yes
10318 gcc_cv_ld_hidden=no
10324 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10325 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10326 libgcc_visibility=no
10328 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10329 libgcc_visibility=yes
10331 cat >>confdefs.h <<\_ACEOF
10332 #define HAVE_GAS_HIDDEN 1
10337 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10338 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10339 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10340 if test "${gcc_cv_as_leb128+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 gcc_cv_as_leb128=no
10344 if test $in_tree_gas = yes; then
10345 if test $in_tree_gas_is_elf = yes \
10346 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10347 then gcc_cv_as_leb128=yes
10349 elif test x$gcc_cv_as != x; then
10356 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; }
10363 # GAS versions before 2.11 do not support uleb128,
10364 # despite appearing to.
10365 # ??? There exists an elf-specific test that will crash
10366 # the assembler. Perhaps it's better to figure out whether
10367 # arbitrary sections are supported and try the test.
10368 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10369 if echo "$as_ver" | grep GNU > /dev/null; then
10370 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10371 as_major=`echo $as_ver | sed 's/\..*//'`
10372 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10373 if test $as_major -eq 2 && test $as_minor -lt 11
10375 else gcc_cv_as_leb128=yes
10379 echo "configure: failed program was" >&5
10382 rm -f conftest.o conftest.s
10385 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10386 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10387 if test $gcc_cv_as_leb128 = yes; then
10389 cat >>confdefs.h <<\_ACEOF
10390 #define HAVE_AS_LEB128 1
10395 # GAS versions up to and including 2.11.0 may mis-optimize
10397 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10398 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10399 if test "${gcc_cv_as_eh_frame+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 gcc_cv_as_eh_frame=no
10403 if test $in_tree_gas = yes; then
10404 if test $in_tree_gas_is_elf = yes \
10405 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10406 then gcc_cv_as_eh_frame=yes
10408 elif test x$gcc_cv_as != x; then
10415 .section .eh_frame,"aw",@progbits
10417 .4byte .LECIE1-.LSCIE1
10431 .4byte .LEFDE1-.LASFDE1
10433 .4byte .LASFDE1-__FRAME_BEGIN__
10440 .LEFDE1:' > conftest.s
10441 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }
10448 cat > conftest.lit <<EOF
10449 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10450 0010 01000000 12000000 18000000 00000000 ................
10451 0020 08000000 04080000 0044 .........D
10453 cat > conftest.big <<EOF
10454 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10455 0010 00000001 00000012 00000018 00000000 ................
10456 0020 00000008 04000000 0844 .........D
10458 # If the assembler didn't choke, and we can objdump,
10459 # and we got the correct data, then succeed.
10460 if test x$gcc_cv_objdump != x \
10461 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10462 | tail -3 > conftest.got \
10463 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10464 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10466 gcc_cv_as_eh_frame=yes
10467 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 gcc_cv_as_eh_frame=buggy
10475 # Uh oh, what do we do now?
10476 gcc_cv_as_eh_frame=no
10479 echo "configure: failed program was" >&5
10482 rm -f conftest.o conftest.s
10485 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10486 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10489 if test $gcc_cv_as_eh_frame = buggy; then
10491 cat >>confdefs.h <<\_ACEOF
10492 #define USE_AS_TRADITIONAL_FORMAT 1
10497 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10498 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10499 if test "${gcc_cv_as_shf_merge+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 gcc_cv_as_shf_merge=no
10503 if test $in_tree_gas = yes; then
10504 if test $in_tree_gas_is_elf = yes \
10505 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10506 then gcc_cv_as_shf_merge=yes
10508 elif test x$gcc_cv_as != x; then
10509 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10510 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }
10517 gcc_cv_as_shf_merge=yes
10519 echo "configure: failed program was" >&5
10522 rm -f conftest.o conftest.s
10525 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10526 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10529 cat >>confdefs.h <<_ACEOF
10530 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10534 # Thread-local storage - the check is heavily parametrized.
10542 .section ".tdata","awT",@progbits
10545 ldq $27,__tls_get_addr($29) !literal!1
10546 lda $16,foo($29) !tlsgd!1
10547 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10548 ldq $27,__tls_get_addr($29) !literal!2
10549 lda $16,foo($29) !tlsldm!2
10550 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10551 ldq $1,foo($29) !gotdtprel
10552 ldah $2,foo($29) !dtprelhi
10553 lda $3,foo($2) !dtprello
10554 lda $4,foo($29) !dtprel
10555 ldq $1,foo($29) !gottprel
10556 ldah $2,foo($29) !tprelhi
10557 lda $3,foo($2) !tprello
10558 lda $4,foo($29) !tprel'
10564 .section ".tdata","awT",@progbits
10568 leal foo@TLSGD(,%ebx,1), %eax
10569 leal foo@TLSLDM(%ebx), %eax
10570 leal foo@DTPOFF(%eax), %edx
10571 movl foo@GOTTPOFF(%ebx), %eax
10572 subl foo@GOTTPOFF(%ebx), %eax
10573 addl foo@GOTNTPOFF(%ebx), %eax
10574 movl foo@INDNTPOFF, %eax
10575 movl $foo@TPOFF, %eax
10576 subl $foo@TPOFF, %eax
10577 leal foo@NTPOFF(%ecx), %eax'
10583 .section ".tdata","awT",@progbits
10587 leaq foo@TLSGD(%rip), %rdi
10588 leaq foo@TLSLD(%rip), %rdi
10589 leaq foo@DTPOFF(%rax), %rdx
10590 movq foo@GOTTPOFF(%rip), %rax
10591 movq $foo@TPOFF, %rax'
10597 .section ".tdata","awT",@progbits
10600 addl r16 = @ltoff(@dtpmod(foo#)), gp
10601 addl r17 = @ltoff(@dtprel(foo#)), gp
10602 addl r18 = @ltoff(@tprel(foo#)), gp
10603 addl r19 = @dtprel(foo#), gp
10604 adds r21 = @dtprel(foo#), r13
10605 movl r23 = @dtprel(foo#)
10606 addl r20 = @tprel(foo#), gp
10607 adds r22 = @tprel(foo#), r13
10608 movl r24 = @tprel(foo#)'
10614 .section ".tdata","awT",@progbits
10622 addi 3,31,ld0@got@tlsgd
10624 addi 3,31,x1@got@tlsld
10627 addis 9,3,x2@dtprel@ha
10628 addi 9,9,x2@dtprel@l
10629 lwz 9,x3@got@tprel(31)
10632 addis 9,2,x2@tprel@ha
10633 addi 9,9,x2@tprel@l'
10640 .section ".tdata","awT",@progbits
10648 addi 3,2,ld0@got@tlsgd
10654 addi 3,2,x1@got@tlsld
10660 addis 9,3,x2@dtprel@ha
10661 addi 9,9,x2@dtprel@l
10664 ld 9,x3@got@dtprel(2)
10674 .section ".tdata","awT",@progbits
10681 .long foo@GOTNTPOFF
10682 .long foo@INDNTPOFF
10683 l %r1,foo@GOTNTPOFF(%r12)
10684 l %r1,0(%r1):tls_load:foo
10685 bas %r14,0(%r1,%r13):tls_gdcall:foo
10686 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10693 .section ".tdata","awT",@progbits
10700 .quad foo@GOTNTPOFF
10701 lg %r1,foo@GOTNTPOFF(%r12)
10702 larl %r1,foo@INDNTPOFF
10703 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10704 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10707 tls_as_opt="-m64 -Aesame"
10709 sh-*-* | sh[34]-*-*)
10711 .section ".tdata","awT",@progbits
10724 .section ".tdata","awT",@progbits
10727 sethi %tgd_hi22(foo), %o0
10728 add %o0, %tgd_lo10(foo), %o1
10729 add %l7, %o1, %o0, %tgd_add(foo)
10730 call __tls_get_addr, %tgd_call(foo)
10731 sethi %tldm_hi22(foo), %l1
10732 add %l1, %tldm_lo10(foo), %l2
10733 add %l7, %l2, %o0, %tldm_add(foo)
10734 call __tls_get_addr, %tldm_call(foo)
10735 sethi %tldo_hix22(foo), %l3
10736 xor %l3, %tldo_lox10(foo), %l4
10737 add %o0, %l4, %l5, %tldo_add(foo)
10738 sethi %tie_hi22(foo), %o3
10739 add %o3, %tie_lo10(foo), %o3
10740 ld [%l7 + %o3], %o2, %tie_ld(foo)
10741 add %g7, %o2, %o4, %tie_add(foo)
10742 sethi %tle_hix22(foo), %l1
10743 xor %l1, %tle_lox10(foo), %o5
10744 ld [%g7 + %o5], %o1'
10750 if test -z "$tls_first_major"; then
10751 : # If we don't have a check, assume no support.
10753 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10754 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10755 if test "${gcc_cv_as_tls+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 if test $in_tree_gas = yes; then
10760 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10761 then gcc_cv_as_tls=yes
10763 elif test x$gcc_cv_as != x; then
10764 echo "$conftest_s" > conftest.s
10765 if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; }
10774 echo "configure: failed program was" >&5
10777 rm -f conftest.o conftest.s
10780 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10781 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10782 if test $gcc_cv_as_tls = yes; then
10784 cat >>confdefs.h <<\_ACEOF
10785 #define HAVE_AS_TLS 1
10791 # Target-specific assembler checks.
10794 # All TARGET_ABI_OSF targets.
10795 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10796 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10797 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10798 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 gcc_cv_as_alpha_explicit_relocs=no
10802 if test $in_tree_gas = yes; then
10803 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10804 then gcc_cv_as_alpha_explicit_relocs=yes
10806 elif test x$gcc_cv_as != x; then
10807 echo ' .set nomacro
10809 extbl $3, $2, $3 !lituse_bytoff!1
10810 ldq $2, a($29) !literal!1
10811 ldq $4, b($29) !literal!2
10812 ldq_u $3, 0($2) !lituse_base!1
10813 ldq $27, f($29) !literal!5
10814 jsr $26, ($27), f !lituse_jsr!5
10815 ldah $29, 0($26) !gpdisp!3
10816 lda $0, c($29) !gprel
10817 ldah $1, d($29) !gprelhigh
10818 lda $1, d($1) !gprellow
10819 lda $29, 0($29) !gpdisp!3' > conftest.s
10820 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }
10827 gcc_cv_as_alpha_explicit_relocs=yes
10829 echo "configure: failed program was" >&5
10832 rm -f conftest.o conftest.s
10835 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10836 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10837 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10839 cat >>confdefs.h <<\_ACEOF
10840 #define HAVE_AS_EXPLICIT_RELOCS 1
10847 echo "$as_me:$LINENO: checking assembler for .register" >&5
10848 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10849 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 gcc_cv_as_sparc_register_op=no
10853 if test x$gcc_cv_as != x; then
10854 echo '.register %g2, #scratch' > conftest.s
10855 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857 (eval $ac_try) 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }
10862 gcc_cv_as_sparc_register_op=yes
10864 echo "configure: failed program was" >&5
10867 rm -f conftest.o conftest.s
10870 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10871 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10872 if test $gcc_cv_as_sparc_register_op = yes; then
10874 cat >>confdefs.h <<\_ACEOF
10875 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10880 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10881 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10882 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 gcc_cv_as_sparc_relax=no
10886 if test x$gcc_cv_as != x; then
10887 echo '.text' > conftest.s
10888 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }
10895 gcc_cv_as_sparc_relax=yes
10897 echo "configure: failed program was" >&5
10900 rm -f conftest.o conftest.s
10903 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10904 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10905 if test $gcc_cv_as_sparc_relax = yes; then
10907 cat >>confdefs.h <<\_ACEOF
10908 #define HAVE_AS_RELAX_OPTION 1
10913 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10914 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10915 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 gcc_cv_as_sparc_ua_pcrel=no
10919 if test x$gcc_cv_as != x; then
10926 .uaword %r_disp32(foo)' > conftest.s
10927 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }
10934 if test x$gcc_cv_ld != x \
10935 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
10936 gcc_cv_as_sparc_ua_pcrel=yes
10940 echo "configure: failed program was" >&5
10943 rm -f conftest.o conftest.s
10946 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10947 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10948 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10950 cat >>confdefs.h <<\_ACEOF
10951 #define HAVE_AS_SPARC_UA_PCREL 1
10955 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10956 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10957 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 gcc_cv_as_sparc_ua_pcrel_hidden=no
10961 if test x$gcc_cv_as != x; then
10965 .uaword %r_disp32(foo)
10966 .byte 0x32, 0x33, 0x34
10970 .skip 4' > conftest.s
10971 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }
10978 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
10979 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
10980 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
10981 | grep ' 31000000 07323334' > /dev/null 2>&1; then
10982 if $gcc_cv_objdump -R conftest 2> /dev/null \
10983 | grep 'DISP32' > /dev/null 2>&1; then
10986 gcc_cv_as_sparc_ua_pcrel_hidden=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_ua_pcrel_hidden" >&5
10998 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10999 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11001 cat >>confdefs.h <<\_ACEOF
11002 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11007 fi # unaligned pcrel relocs
11009 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11010 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11011 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 gcc_cv_as_sparc_offsetable_lo10=no
11015 if test x$gcc_cv_as != x; then
11017 or %g1, %lo(ab) + 12, %g1
11018 or %g1, %lo(ab + 12), %g1' > conftest.s
11019 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }
11026 if test x$gcc_cv_objdump != x \
11027 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11028 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11029 gcc_cv_as_offsetable_lo10=yes
11032 echo "configure: failed program was" >&5
11035 rm -f conftest.o conftest.s
11038 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11039 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11040 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11042 cat >>confdefs.h <<\_ACEOF
11043 #define HAVE_AS_OFFSETABLE_LO10 1
11049 i[34567]86-*-* | x86_64-*-*)
11050 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11051 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11052 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 gcc_cv_as_ix86_filds_fists=no
11056 if test $in_tree_gas = yes; then
11057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11058 then gcc_cv_as_ix86_filds_fists=yes
11060 elif test x$gcc_cv_as != x; then
11061 echo 'filds mem; fists mem' > conftest.s
11062 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; }
11069 gcc_cv_as_ix86_filds_fists=yes
11071 echo "configure: failed program was" >&5
11074 rm -f conftest.o conftest.s
11077 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11078 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11079 if test $gcc_cv_as_ix86_filds_fists = yes; then
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_GAS_FILDS_FISTS 1
11087 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11088 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11089 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 gcc_cv_as_ix86_cmov_sun_syntax=no
11093 if test x$gcc_cv_as != x; then
11094 echo 'cmovl.l %edx, %eax' > conftest.s
11095 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }
11102 gcc_cv_as_ix86_cmov_sun_syntax=yes
11104 echo "configure: failed program was" >&5
11107 rm -f conftest.o conftest.s
11110 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11111 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11112 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11120 # This one is used unconditionally by i386.[ch]; it is to be defined
11121 # to 1 if the feature is present, 0 otherwise.
11122 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11123 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11124 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 gcc_cv_as_ix86_gotoff_in_data=no
11128 if test $in_tree_gas = yes; then
11129 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11130 then gcc_cv_as_ix86_gotoff_in_data=yes
11132 elif test x$gcc_cv_as != x; then
11137 .long .L0@GOTOFF' > conftest.s
11138 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }
11145 gcc_cv_as_ix86_gotoff_in_data=yes
11147 echo "configure: failed program was" >&5
11150 rm -f conftest.o conftest.s
11153 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11154 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11157 cat >>confdefs.h <<_ACEOF
11158 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11164 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11165 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11166 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11170 if test $in_tree_gas = yes; then
11171 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11172 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11174 elif test x$gcc_cv_as != x; then
11176 addl r15 = @ltoffx(x#), gp
11178 ld8.mov r16 = [r15], x#' > conftest.s
11179 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }
11186 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11188 echo "configure: failed program was" >&5
11191 rm -f conftest.o conftest.s
11194 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11195 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11196 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11198 cat >>confdefs.h <<\_ACEOF
11199 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11208 *-*-aix) conftest_s=' .csect .textPR';;
11209 *) conftest_s=' .text';;
11211 conftest_s="$conftest_s
11214 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11215 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11216 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11219 gcc_cv_as_powerpc_mfcrf=no
11220 if test $in_tree_gas = yes; then
11221 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11222 then gcc_cv_as_powerpc_mfcrf=yes
11224 elif test x$gcc_cv_as != x; then
11225 echo "$conftest_s" > conftest.s
11226 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }
11233 gcc_cv_as_powerpc_mfcrf=yes
11235 echo "configure: failed program was" >&5
11238 rm -f conftest.o conftest.s
11241 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11242 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11243 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11245 cat >>confdefs.h <<\_ACEOF
11246 #define HAVE_AS_MFCRF 1
11253 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11254 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11255 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 gcc_cv_as_mips_explicit_relocs=no
11259 if test $in_tree_gas = yes; then
11260 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11261 then gcc_cv_as_mips_explicit_relocs=yes
11263 elif test x$gcc_cv_as != x; then
11264 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11265 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }
11272 gcc_cv_as_mips_explicit_relocs=yes
11274 echo "configure: failed program was" >&5
11277 rm -f conftest.o conftest.s
11280 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11281 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11282 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11283 if test x$target_cpu_default = x
11284 then target_cpu_default=MASK_EXPLICIT_RELOCS
11285 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11291 # ??? Not all targets support dwarf2 debug_line, even within a version
11292 # of gas. Moreover, we need to emit a valid instruction to trigger any
11293 # info to the output file. So, as supported targets are added to gas 2.11,
11294 # add some instruction here to (also) show we expect this might work.
11295 # ??? Once 2.11 is released, probably need to add first known working
11296 # version to the per-target configury.
11298 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11299 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11300 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11310 if test x"$insn" != x; then
11312 .file 1 \"conftest.s\"
11315 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11316 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11317 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 gcc_cv_as_dwarf2_debug_line=no
11321 if test $in_tree_gas = yes; then
11322 if test $in_tree_gas_is_elf = yes \
11323 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11324 then gcc_cv_as_dwarf2_debug_line=yes
11326 elif test x$gcc_cv_as != x; then
11327 echo "$conftest_s" > conftest.s
11328 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }
11335 # ??? This fails with non-gnu grep. Maybe use objdump?
11336 if grep debug_line conftest.o > /dev/null 2>&1; then
11337 gcc_cv_as_dwarf2_debug_line=yes
11340 echo "configure: failed program was" >&5
11343 rm -f conftest.o conftest.s
11346 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11347 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11350 # The .debug_line file table must be in the exact order that
11351 # we specified the files, since these indices are also used
11352 # by DW_AT_decl_file. Approximate this test by testing if
11353 # the assembler bitches if the same index is assigned twice.
11354 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11355 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11356 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 gcc_cv_as_dwarf2_file_buggy=no
11360 if test x$gcc_cv_as != x; then
11361 echo ' .file 1 "foo.s"
11362 .file 1 "bar.s"' > conftest.s
11363 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }
11370 gcc_cv_as_dwarf2_file_buggy=yes
11372 echo "configure: failed program was" >&5
11375 rm -f conftest.o conftest.s
11378 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11379 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11382 if test $gcc_cv_as_dwarf2_debug_line = yes \
11383 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11385 cat >>confdefs.h <<\_ACEOF
11386 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11391 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11392 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11393 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 gcc_cv_as_gdwarf2_flag=no
11397 if test $in_tree_gas = yes; then
11398 if test $in_tree_gas_is_elf = yes \
11399 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11400 then gcc_cv_as_gdwarf2_flag=yes
11402 elif test x$gcc_cv_as != x; then
11403 echo "$insn" > conftest.s
11404 if { ac_try='$gcc_cv_as --gdwarf2 -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_gdwarf2_flag=yes
11413 echo "configure: failed program was" >&5
11416 rm -f conftest.o conftest.s
11419 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11420 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11421 if test $gcc_cv_as_gdwarf2_flag = yes; then
11423 cat >>confdefs.h <<\_ACEOF
11424 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11429 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11430 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11431 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 gcc_cv_as_gstabs_flag=no
11435 if test $in_tree_gas = yes; then
11436 if test $in_tree_gas_is_elf = yes \
11437 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11438 then gcc_cv_as_gstabs_flag=yes
11440 elif test x$gcc_cv_as != x; then
11441 echo "$insn" > conftest.s
11442 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }
11449 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11450 # and warns about it, but still exits successfully. So check for
11452 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }
11459 else gcc_cv_as_gstabs_flag=yes
11462 echo "configure: failed program was" >&5
11465 rm -f conftest.o conftest.s
11468 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11469 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11470 if test $gcc_cv_as_gstabs_flag = yes; then
11472 cat >>confdefs.h <<\_ACEOF
11473 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11479 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11480 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11481 gcc_cv_ld_ro_rw_mix=unknown
11482 if test $in_tree_ld = yes ; then
11483 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 \
11484 && test $in_tree_ld_is_elf = yes; then
11485 gcc_cv_ld_ro_rw_mix=read-write
11487 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11488 echo '.section myfoosect, "a"' > conftest1.s
11489 echo '.section myfoosect, "aw"' > conftest2.s
11490 echo '.byte 1' >> conftest2.s
11491 echo '.section myfoosect, "a"' > conftest3.s
11492 echo '.byte 0' >> conftest3.s
11493 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11494 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11495 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11496 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11497 conftest2.o conftest3.o > /dev/null 2>&1; then
11498 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11499 | sed -e '/myfoosect/!d' -e N`
11500 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11501 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11502 gcc_cv_ld_ro_rw_mix=read-only
11504 gcc_cv_ld_ro_rw_mix=read-write
11508 rm -f conftest.* conftest[123].*
11510 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11512 cat >>confdefs.h <<\_ACEOF
11513 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11517 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11518 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11520 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11521 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11522 gcc_cv_ld_eh_frame_hdr=no
11523 if test $in_tree_ld = yes ; then
11524 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 \
11525 && test $in_tree_ld_is_elf = yes; then
11526 gcc_cv_ld_eh_frame_hdr=yes
11528 elif test x$gcc_cv_ld != x; then
11529 # Check if linker supports --eh-frame-hdr option
11530 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11531 gcc_cv_ld_eh_frame_hdr=yes
11534 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11536 cat >>confdefs.h <<\_ACEOF
11537 #define HAVE_LD_EH_FRAME_HDR 1
11541 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11542 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11544 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11545 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11547 if test $in_tree_ld = yes ; then
11548 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 \
11549 && test $in_tree_ld_is_elf = yes; then
11552 elif test x$gcc_cv_ld != x; then
11553 # Check if linker supports -pie option
11554 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11558 if test x"$gcc_cv_ld_pie" = xyes; then
11560 cat >>confdefs.h <<\_ACEOF
11561 #define HAVE_LD_PIE 1
11565 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11566 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11568 if test x$with_sysroot = x && test x$host = x$target \
11569 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11571 cat >>confdefs.h <<_ACEOF
11572 #define PREFIX_INCLUDE_DIR "$prefix/include"
11577 # Figure out what language subdirectories are present.
11578 # Look if the user specified --enable-languages="..."; if not, use
11579 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11580 # go away some day.
11581 # NB: embedded tabs in this IF block -- do not untabify
11582 if test x"${enable_languages+set}" != xset; then
11583 if test x"${LANGUAGES+set}" = xset; then
11584 enable_languages="${LANGUAGES}"
11585 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11586 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11589 enable_languages=all
11592 if test x"${enable_languages}" = x \
11593 || test x"${enable_languages}" = xyes;
11595 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11596 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11597 { (exit 1); exit 1; }; }
11600 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11602 # First scan to see if an enabled language requires some other language.
11603 # We assume that a given config-lang.in will list all the language
11604 # front ends it requires, even if some are required indirectly.
11605 for lang in ${srcdir}/*/config-lang.in
11608 # The odd quoting in the next line works around
11609 # an apparent bug in bash 1.12 on linux.
11610 ${srcdir}/[*]/config-lang.in)
11613 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11614 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11615 for other in $this_lang_requires
11617 case ,${enable_languages}, in
11623 enable_languages="$enable_languages,$other"
11631 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11634 for lang in ${srcdir}/*/config-lang.in
11637 # The odd quoting in the next line works around
11638 # an apparent bug in bash 1.12 on linux.
11639 ${srcdir}/[*]/config-lang.in) ;;
11641 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11642 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11643 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11644 if test "x$lang_alias" = x
11646 echo "$lang doesn't set \$language." 1>&2
11649 case ${build_by_default},${enable_languages}, in
11650 *,$lang_alias,*) add_this_lang=yes ;;
11651 no,*) add_this_lang=no ;;
11652 *,all,*) add_this_lang=yes ;;
11653 *) add_this_lang=no ;;
11655 found_languages="${found_languages} ${lang_alias}"
11656 if test x"${add_this_lang}" = xyes; then
11658 ${srcdir}/ada/config-lang.in)
11659 if test x$have_gnat = xyes ; then
11660 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11664 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11673 for expected_language in ${expected_languages} ..
11675 if test "${expected_language}" != ..; then
11676 missing_language="${expected_language}"
11677 if test "${expected_language}" = "c" \
11678 || test "${expected_language}" = "all"; then
11681 for found_language in ${found_languages} ..
11683 if test "${found_language}" != ..; then
11684 if test "${expected_language}" = "${found_language}"; then
11689 if test "x${missing_language}" != x; then
11690 missing_languages="${missing_languages} ${missing_language}"
11695 if test "x$missing_languages" != x; then
11696 { { echo "$as_me:$LINENO: error:
11697 The following requested languages were not found:${missing_languages}
11698 The following languages were available: c${found_languages}" >&5
11699 echo "$as_me: error:
11700 The following requested languages were not found:${missing_languages}
11701 The following languages were available: c${found_languages}" >&2;}
11702 { (exit 1); exit 1; }; }
11705 # Make gthr-default.h if we have a thread file.
11707 if test $thread_file != single; then
11708 rm -f gthr-default.h
11709 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11710 gthread_flags=-DHAVE_GTHR_DEFAULT
11714 # Find out what GC implementation we want, or may, use.
11716 # Check whether --with-gc or --without-gc was given.
11717 if test "${with_gc+set}" = set; then
11720 simple | page | zone)
11724 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11725 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11726 { (exit 1); exit 1; }; }
11733 echo "Using $GGC for garbage collection."
11735 # Use the system's zlib library.
11737 zlibinc="-I\$(srcdir)/../zlib"
11739 # Check whether --with-system-zlib or --without-system-zlib was given.
11740 if test "${with_system_zlib+set}" = set; then
11741 withval="$with_system_zlib"
11750 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11751 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11752 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11753 if test "${enable_maintainer_mode+set}" = set; then
11754 enableval="$enable_maintainer_mode"
11755 maintainer_mode=$enableval
11760 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11761 echo "${ECHO_T}$maintainer_mode" >&6
11763 if test "$maintainer_mode" = "yes"; then
11769 # Make empty files to contain the specs and options for each language.
11770 # Then add #include lines to for a compiler that has specs and/or options.
11775 for subdir in . $subdirs
11777 if test -f $srcdir/$subdir/lang.opt; then
11778 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11780 if test -f $srcdir/$subdir/lang-specs.h; then
11781 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11783 if test -f $srcdir/$subdir/$subdir-tree.def; then
11784 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11788 # These (without "all_") are set in each config-lang.in.
11789 # `language' must be a single word so is spelled singularly.
11791 all_boot_languages=
11794 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11795 # List of language makefile fragments.
11796 all_lang_makefrags=
11797 # List of language subdirectory makefiles. Deprecated.
11798 all_lang_makefiles=
11799 # Files for gengtype
11800 all_gtfiles="$target_gtfiles"
11801 # Files for gengtype with language
11802 all_gtfiles_files_langs=
11803 all_gtfiles_files_files=
11805 # Add the language fragments.
11806 # Languages are added via two mechanisms. Some information must be
11807 # recorded in makefile variables, these are defined in config-lang.in.
11808 # We accumulate them and plug them into the main Makefile.
11809 # The other mechanism is a set of hooks for each of the main targets
11810 # like `clean', `install', etc.
11812 language_hooks="Make-hooks"
11822 . ${srcdir}/$s/config-lang.in
11823 if test "x$language" = x
11825 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11828 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11829 if test -f ${srcdir}/$s/Makefile.in
11830 then all_lang_makefiles="$s/Makefile"
11832 all_languages="$all_languages $language"
11833 if test "x$boot_language" = xyes
11835 all_boot_languages="$all_boot_languages $language"
11837 all_compilers="$all_compilers $compilers"
11838 all_stagestuff="$all_stagestuff $stagestuff"
11839 all_outputs="$all_outputs $outputs"
11840 all_gtfiles="$all_gtfiles $gtfiles"
11843 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11844 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11848 # Pick up gtfiles for c
11851 . ${srcdir}/c-config-lang.in
11852 all_gtfiles="$all_gtfiles $gtfiles"
11855 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11856 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11860 for language in $all_languages
11862 check_languages="$check_languages check-$language"
11865 # We link each language in with a set of hooks, reached indirectly via
11870 target_list="all.build all.cross start.encap rest.encap tags \
11871 install-normal install-common install-man \
11873 mostlyclean clean distclean maintainer-clean \
11874 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11875 for t in $target_list
11878 for lang in $all_languages
11882 echo "lang.$t: $x" >> Make-hooks
11887 echo "dir ." > .gdbinit
11888 echo "dir ${srcdir}" >> .gdbinit
11889 if test x$gdb_needs_out_file_path = xyes
11891 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11893 if test "x$subdirs" != x; then
11896 echo "dir ${srcdir}/$s" >> .gdbinit
11899 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11901 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11902 # absolute path for gcc_tooldir based on inserting the number of up-directory
11903 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11904 # $(libsubdir)/@(unlibsubdir) based path.
11905 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11906 # make and thus we'd get different behavior depending on where we built the
11908 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
11909 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11911 # An explanation of the sed strings:
11912 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
11913 # -e 's|/$||' match a trailing forward slash and eliminates it
11914 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
11915 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
11917 # (*) Note this pattern overwrites the first character of the string
11918 # with a forward slash if one is not already present. This is not a
11919 # problem because the exact names of the sub-directories concerned is
11920 # unimportant, just the number of them matters.
11922 # The practical upshot of these patterns is like this:
11924 # prefix exec_prefix result
11925 # ------ ----------- ------
11926 # /foo /foo/bar ../
11927 # /foo/ /foo/bar ../
11928 # /foo /foo/bar/ ../
11929 # /foo/ /foo/bar/ ../
11930 # /foo /foo/bar/ugg ../../
11933 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11938 # Find a directory in which to install a shared libgcc.
11940 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11941 if test "${enable_version_specific_runtime_libs+set}" = set; then
11942 enableval="$enable_version_specific_runtime_libs"
11947 # Check whether --with-slibdir or --without-slibdir was given.
11948 if test "${with_slibdir+set}" = set; then
11949 withval="$with_slibdir"
11950 slibdir="$with_slibdir"
11952 if test "${enable_version_specific_runtime_libs+set}" = set; then
11953 slibdir='$(libsubdir)'
11954 elif test "$host" != "$target"; then
11955 slibdir='$(build_tooldir)/lib'
11957 slibdir='$(libdir)'
11962 objdir=`${PWDCMD-pwd}`
11965 # Substitute configuration variables
12037 if test x${build} = x${host} ; then
12038 if test x${host} = x${target} ; then
12039 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12041 echo "Links are now set up to build a cross-compiler" 1>&2
12042 echo " from ${host} to ${target}." 1>&2
12045 if test x${host} = x${target} ; then
12046 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12047 echo " for ${target}." 1>&2
12049 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12050 echo " from ${host} to ${target}." 1>&2
12054 # Configure the subdirectories
12055 # AC_CONFIG_SUBDIRS($subdirs)
12057 # Create the Makefile
12058 # and configure language subdirectories
12059 ac_config_files="$ac_config_files $all_outputs"
12062 ac_config_commands="$ac_config_commands default"
12064 cat >confcache <<\_ACEOF
12065 # This file is a shell script that caches the results of configure
12066 # tests run on this system so they can be shared between configure
12067 # scripts and configure runs, see configure's option --config-cache.
12068 # It is not useful on other systems. If it contains results you don't
12069 # want to keep, you may remove or edit it.
12071 # config.status only pays attention to the cache file if you give it
12072 # the --recheck option to rerun configure.
12074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12076 # following values.
12080 # The following way of writing the cache mishandles newlines in values,
12081 # but we know of no workaround that is simple, portable, and efficient.
12082 # So, don't put newlines in cache variables' values.
12083 # Ultrix sh set writes to stderr and can't be redirected directly,
12084 # and sets the high bit in the cache file unless we assign to the vars.
12087 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12089 # `set' does not quote correctly, so add quotes (double-quote
12090 # substitution turns \\\\ into \\, and sed turns \\ into \).
12093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12096 # `set' quotes correctly as required by POSIX, so do not add quotes.
12098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12107 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12109 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12110 if test -w $cache_file; then
12111 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12112 cat confcache >$cache_file
12114 echo "not updating unwritable cache $cache_file"
12119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12120 # Let make expand exec_prefix.
12121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12125 # trailing colons and then remove the whole line if VPATH becomes empty
12126 # (actually we leave an empty line to preserve line numbers).
12127 if test "x$srcdir" = x.; then
12128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12129 s/:*\$(srcdir):*/:/;
12130 s/:*\${srcdir}:*/:/;
12132 s/^\([^=]*=[ ]*\):*/\1/;
12138 DEFS=-DHAVE_CONFIG_H
12142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12143 # 1. Remove the extension, and $U if already installed.
12144 ac_i=`echo "$ac_i" |
12145 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12147 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12148 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12150 LIBOBJS=$ac_libobjs
12152 LTLIBOBJS=$ac_ltlibobjs
12156 : ${CONFIG_STATUS=./config.status}
12157 ac_clean_files_save=$ac_clean_files
12158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12161 cat >$CONFIG_STATUS <<_ACEOF
12163 # Generated by $as_me.
12164 # Run this file to recreate the current configuration.
12165 # Compiler output produced by configure, useful for debugging
12166 # configure, is in config.log if it exists.
12169 ac_cs_recheck=false
12171 SHELL=\${CONFIG_SHELL-$SHELL}
12174 cat >>$CONFIG_STATUS <<\_ACEOF
12175 ## --------------------- ##
12176 ## M4sh Initialization. ##
12177 ## --------------------- ##
12179 # Be Bourne compatible
12180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12183 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12184 # is contrary to our usage. Disable this feature.
12185 alias -g '${1+"$@"}'='"$@"'
12186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12190 # Support unset when possible.
12191 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12198 # Work around bugs in pre-3.0 UWIN ksh.
12199 $as_unset ENV MAIL MAILPATH
12206 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12207 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12208 LC_TELEPHONE LC_TIME
12210 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12211 eval $as_var=C; export $as_var
12217 # Required to use basename.
12218 if expr a : '\(a\)' >/dev/null 2>&1; then
12224 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12225 as_basename=basename
12231 # Name of the executable.
12232 as_me=`$as_basename "$0" ||
12233 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12234 X"$0" : 'X\(//\)$' \| \
12235 X"$0" : 'X\(/\)$' \| \
12236 . : '\(.\)' 2>/dev/null ||
12238 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12239 /^X\/\(\/\/\)$/{ s//\1/; q; }
12240 /^X\/\(\/\).*/{ s//\1/; q; }
12244 # PATH needs CR, and LINENO needs CR and PATH.
12245 # Avoid depending upon Character Ranges.
12246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12249 as_cr_digits='0123456789'
12250 as_cr_alnum=$as_cr_Letters$as_cr_digits
12252 # The user is always right.
12253 if test "${PATH_SEPARATOR+set}" != set; then
12254 echo "#! /bin/sh" >conf$$.sh
12255 echo "exit 0" >>conf$$.sh
12257 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12266 as_lineno_1=$LINENO
12267 as_lineno_2=$LINENO
12268 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12269 test "x$as_lineno_1" != "x$as_lineno_2" &&
12270 test "x$as_lineno_3" = "x$as_lineno_2" || {
12271 # Find who we are. Look in the path if we contain no path at all
12274 *[\\/]* ) as_myself=$0 ;;
12275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $PATH
12279 test -z "$as_dir" && as_dir=.
12280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12285 # We did not find ourselves, most probably we were run as `sh COMMAND'
12286 # in which case we are not to be found in the path.
12287 if test "x$as_myself" = x; then
12290 if test ! -f "$as_myself"; then
12291 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12292 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12293 { (exit 1); exit 1; }; }
12295 case $CONFIG_SHELL in
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12301 test -z "$as_dir" && as_dir=.
12302 for as_base in sh bash ksh sh5; do
12305 if ("$as_dir/$as_base" -c '
12306 as_lineno_1=$LINENO
12307 as_lineno_2=$LINENO
12308 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12309 test "x$as_lineno_1" != "x$as_lineno_2" &&
12310 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12311 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12312 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12313 CONFIG_SHELL=$as_dir/$as_base
12314 export CONFIG_SHELL
12315 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12323 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12324 # uniformly replaced by the line number. The first 'sed' inserts a
12325 # line-number line before each line; the second 'sed' does the real
12326 # work. The second script uses 'N' to pair each line-number line
12327 # with the numbered line, and appends trailing '-' during
12328 # substitution so that $LINENO is not a special case at line end.
12329 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12330 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12331 sed '=' <$as_myself |
12336 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12339 s,^['$as_cr_digits']*\n,,
12340 ' >$as_me.lineno &&
12341 chmod +x $as_me.lineno ||
12342 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12343 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12344 { (exit 1); exit 1; }; }
12346 # Don't try to exec as it changes $[0], causing all sort of problems
12347 # (the dirname of $[0] is not the place where we might find the
12348 # original and so on. Autoconf is especially sensible to this).
12350 # Exit status is that of the last command.
12355 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12356 *c*,-n*) ECHO_N= ECHO_C='
12358 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12359 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12362 if expr a : '\(a\)' >/dev/null 2>&1; then
12368 rm -f conf$$ conf$$.exe conf$$.file
12370 if ln -s conf$$.file conf$$ 2>/dev/null; then
12371 # We could just check for DJGPP; but this test a) works b) is more generic
12372 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12373 if test -f conf$$.exe; then
12374 # Don't use ln at all; we don't have any links
12379 elif ln conf$$.file conf$$ 2>/dev/null; then
12384 rm -f conf$$ conf$$.exe conf$$.file
12386 if mkdir -p . 2>/dev/null; then
12392 as_executable_p="test -f"
12394 # Sed expression to map a string onto a valid CPP name.
12395 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12397 # Sed expression to map a string onto a valid variable name.
12398 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12402 # We need space, tab and new line, in precisely that order.
12412 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12413 # report actual input values of CONFIG_FILES etc. instead of their
12414 # values after options handling. Logging --version etc. is OK.
12418 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12419 ## Running $as_me. ##
12424 This file was extended by $as_me, which was
12425 generated by GNU Autoconf 2.57. Invocation command line was
12427 CONFIG_FILES = $CONFIG_FILES
12428 CONFIG_HEADERS = $CONFIG_HEADERS
12429 CONFIG_LINKS = $CONFIG_LINKS
12430 CONFIG_COMMANDS = $CONFIG_COMMANDS
12434 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12438 # Files that config.status was made for.
12439 if test -n "$ac_config_files"; then
12440 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12443 if test -n "$ac_config_headers"; then
12444 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12447 if test -n "$ac_config_links"; then
12448 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12451 if test -n "$ac_config_commands"; then
12452 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12455 cat >>$CONFIG_STATUS <<\_ACEOF
12458 \`$as_me' instantiates files from templates according to the
12459 current configuration.
12461 Usage: $0 [OPTIONS] [FILE]...
12463 -h, --help print this help, then exit
12464 -V, --version print version number, then exit
12465 -q, --quiet do not print progress messages
12466 -d, --debug don't remove temporary files
12467 --recheck update $as_me by reconfiguring in the same conditions
12468 --file=FILE[:TEMPLATE]
12469 instantiate the configuration file FILE
12470 --header=FILE[:TEMPLATE]
12471 instantiate the configuration header FILE
12473 Configuration files:
12476 Configuration headers:
12479 Configuration commands:
12482 Report bugs to <bug-autoconf@gnu.org>."
12485 cat >>$CONFIG_STATUS <<_ACEOF
12488 configured by $0, generated by GNU Autoconf 2.57,
12489 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12491 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12492 Free Software Foundation, Inc.
12493 This config.status script is free software; the Free Software Foundation
12494 gives unlimited permission to copy, distribute and modify it."
12498 cat >>$CONFIG_STATUS <<\_ACEOF
12499 # If no file are specified by the user, then we need to provide default
12500 # value. By we need to know if files were specified by the user.
12506 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12507 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12515 *) # This is not an option, so the user has probably given explicit
12518 ac_need_defaults=false;;
12522 # Handling of the options.
12524 cat >>$CONFIG_STATUS <<\_ACEOF
12525 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12527 --version | --vers* | -V )
12528 echo "$ac_cs_version"; exit 0 ;;
12530 # Conflict between --help and --header
12531 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12532 Try \`$0 --help' for more information." >&5
12533 echo "$as_me: error: ambiguous option: $1
12534 Try \`$0 --help' for more information." >&2;}
12535 { (exit 1); exit 1; }; };;
12536 --help | --hel | -h )
12537 echo "$ac_cs_usage"; exit 0 ;;
12538 --debug | --d* | -d )
12540 --file | --fil | --fi | --f )
12542 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12543 ac_need_defaults=false;;
12544 --header | --heade | --head | --hea )
12546 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12547 ac_need_defaults=false;;
12548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12549 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12552 # This is an error.
12553 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12554 Try \`$0 --help' for more information." >&5
12555 echo "$as_me: error: unrecognized option: $1
12556 Try \`$0 --help' for more information." >&2;}
12557 { (exit 1); exit 1; }; } ;;
12559 *) ac_config_targets="$ac_config_targets $1" ;;
12565 ac_configure_extra_args=
12567 if $ac_cs_silent; then
12569 ac_configure_extra_args="$ac_configure_extra_args --silent"
12573 cat >>$CONFIG_STATUS <<_ACEOF
12574 if \$ac_cs_recheck; then
12575 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12576 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12581 cat >>$CONFIG_STATUS <<_ACEOF
12583 # INIT-COMMANDS section.
12587 symbolic_link='$symbolic_link'
12594 cat >>$CONFIG_STATUS <<\_ACEOF
12595 for ac_config_target in $ac_config_targets
12597 case "$ac_config_target" in
12598 # Handling of arguments.
12599 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12600 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12601 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12602 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12603 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12604 { (exit 1); exit 1; }; };;
12608 # If the user did not use the arguments to specify the items to instantiate,
12609 # then the envvar interface is used. Set only those that are not.
12610 # We use the long form for the default assignment because of an extremely
12611 # bizarre bug on SunOS 4.1.3.
12612 if $ac_need_defaults; then
12613 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12614 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12615 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12618 # Have a temporary directory for convenience. Make it in the build tree
12619 # simply because there is no reason to put it here, and in addition,
12620 # creating and moving files from /tmp can sometimes cause problems.
12621 # Create a temporary directory, and hook for its removal unless debugging.
12624 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12625 trap '{ (exit 1); exit 1; }' 1 2 13 15
12628 # Create a (secure) tmp directory for tmp files.
12631 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12632 test -n "$tmp" && test -d "$tmp"
12635 tmp=./confstat$$-$RANDOM
12636 (umask 077 && mkdir $tmp)
12639 echo "$me: cannot create a temporary directory in ." >&2
12640 { (exit 1); exit 1; }
12645 cat >>$CONFIG_STATUS <<_ACEOF
12648 # CONFIG_FILES section.
12651 # No need to generate the scripts if there are no CONFIG_FILES.
12652 # This happens for instance when ./config.status config.h
12653 if test -n "\$CONFIG_FILES"; then
12654 # Protect against being on the right side of a sed subst in config.status.
12655 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12656 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12657 s,@SHELL@,$SHELL,;t t
12658 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12659 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12660 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12661 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12662 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12663 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12664 s,@exec_prefix@,$exec_prefix,;t t
12665 s,@prefix@,$prefix,;t t
12666 s,@program_transform_name@,$program_transform_name,;t t
12667 s,@bindir@,$bindir,;t t
12668 s,@sbindir@,$sbindir,;t t
12669 s,@libexecdir@,$libexecdir,;t t
12670 s,@datadir@,$datadir,;t t
12671 s,@sysconfdir@,$sysconfdir,;t t
12672 s,@sharedstatedir@,$sharedstatedir,;t t
12673 s,@localstatedir@,$localstatedir,;t t
12674 s,@libdir@,$libdir,;t t
12675 s,@includedir@,$includedir,;t t
12676 s,@oldincludedir@,$oldincludedir,;t t
12677 s,@infodir@,$infodir,;t t
12678 s,@mandir@,$mandir,;t t
12679 s,@build_alias@,$build_alias,;t t
12680 s,@host_alias@,$host_alias,;t t
12681 s,@target_alias@,$target_alias,;t t
12682 s,@DEFS@,$DEFS,;t t
12683 s,@ECHO_C@,$ECHO_C,;t t
12684 s,@ECHO_N@,$ECHO_N,;t t
12685 s,@ECHO_T@,$ECHO_T,;t t
12686 s,@LIBS@,$LIBS,;t t
12687 s,@build@,$build,;t t
12688 s,@build_cpu@,$build_cpu,;t t
12689 s,@build_vendor@,$build_vendor,;t t
12690 s,@build_os@,$build_os,;t t
12691 s,@host@,$host,;t t
12692 s,@host_cpu@,$host_cpu,;t t
12693 s,@host_vendor@,$host_vendor,;t t
12694 s,@host_os@,$host_os,;t t
12695 s,@target@,$target,;t t
12696 s,@target_cpu@,$target_cpu,;t t
12697 s,@target_vendor@,$target_vendor,;t t
12698 s,@target_os@,$target_os,;t t
12699 s,@build_subdir@,$build_subdir,;t t
12700 s,@host_subdir@,$host_subdir,;t t
12701 s,@target_subdir@,$target_subdir,;t t
12703 s,@CFLAGS@,$CFLAGS,;t t
12704 s,@LDFLAGS@,$LDFLAGS,;t t
12705 s,@CPPFLAGS@,$CPPFLAGS,;t t
12706 s,@ac_ct_CC@,$ac_ct_CC,;t t
12707 s,@EXEEXT@,$EXEEXT,;t t
12708 s,@OBJEXT@,$OBJEXT,;t t
12709 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12710 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12712 s,@GNATBIND@,$GNATBIND,;t t
12713 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12714 s,@strict1_warn@,$strict1_warn,;t t
12715 s,@warn_cflags@,$warn_cflags,;t t
12716 s,@WERROR@,$WERROR,;t t
12717 s,@nocommon_flag@,$nocommon_flag,;t t
12718 s,@EGREP@,$EGREP,;t t
12719 s,@valgrind_path@,$valgrind_path,;t t
12720 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12721 s,@valgrind_command@,$valgrind_command,;t t
12722 s,@coverage_flags@,$coverage_flags,;t t
12723 s,@enable_multilib@,$enable_multilib,;t t
12724 s,@enable_shared@,$enable_shared,;t t
12725 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12726 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12727 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12728 s,@onestep@,$onestep,;t t
12729 s,@SET_MAKE@,$SET_MAKE,;t t
12732 s,@LN_S@,$LN_S,;t t
12733 s,@RANLIB@,$RANLIB,;t t
12734 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12735 s,@INSTALL@,$INSTALL,;t t
12736 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12737 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12738 s,@make_compare_target@,$make_compare_target,;t t
12739 s,@have_mktemp_command@,$have_mktemp_command,;t t
12740 s,@MAKEINFO@,$MAKEINFO,;t t
12741 s,@BUILD_INFO@,$BUILD_INFO,;t t
12742 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12743 s,@FLEX@,$FLEX,;t t
12744 s,@BISON@,$BISON,;t t
12745 s,@stage1_cflags@,$stage1_cflags,;t t
12746 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12747 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12748 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12749 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12750 s,@LIBICONV@,$LIBICONV,;t t
12751 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12752 s,@manext@,$manext,;t t
12753 s,@objext@,$objext,;t t
12754 s,@extra_modes_file@,$extra_modes_file,;t t
12755 s,@FORBUILD@,$FORBUILD,;t t
12756 s,@PACKAGE@,$PACKAGE,;t t
12757 s,@VERSION@,$VERSION,;t t
12758 s,@USE_NLS@,$USE_NLS,;t t
12759 s,@LIBINTL@,$LIBINTL,;t t
12760 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12761 s,@INCINTL@,$INCINTL,;t t
12762 s,@XGETTEXT@,$XGETTEXT,;t t
12763 s,@GMSGFMT@,$GMSGFMT,;t t
12764 s,@POSUB@,$POSUB,;t t
12765 s,@CATALOGS@,$CATALOGS,;t t
12766 s,@CROSS@,$CROSS,;t t
12768 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12769 s,@inhibit_libc@,$inhibit_libc,;t t
12770 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12771 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12772 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12773 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12774 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12775 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12776 s,@libgcc_visibility@,$libgcc_visibility,;t t
12777 s,@gthread_flags@,$gthread_flags,;t t
12779 s,@zlibdir@,$zlibdir,;t t
12780 s,@zlibinc@,$zlibinc,;t t
12781 s,@MAINT@,$MAINT,;t t
12782 s,@gcc_tooldir@,$gcc_tooldir,;t t
12783 s,@dollar@,$dollar,;t t
12784 s,@slibdir@,$slibdir,;t t
12785 s,@objdir@,$objdir,;t t
12786 s,@subdirs@,$subdirs,;t t
12787 s,@srcdir@,$srcdir,;t t
12788 s,@docobjdir@,$docobjdir,;t t
12789 s,@parsedir@,$parsedir,;t t
12790 s,@all_boot_languages@,$all_boot_languages,;t t
12791 s,@all_compilers@,$all_compilers,;t t
12792 s,@all_gtfiles@,$all_gtfiles,;t t
12793 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12794 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12795 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12796 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12797 s,@all_languages@,$all_languages,;t t
12798 s,@all_stagestuff@,$all_stagestuff,;t t
12799 s,@build_exeext@,$build_exeext,;t t
12800 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12801 s,@build_xm_file_list@,$build_xm_file_list,;t t
12802 s,@build_xm_include_list@,$build_xm_include_list,;t t
12803 s,@build_xm_defines@,$build_xm_defines,;t t
12804 s,@check_languages@,$check_languages,;t t
12805 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12806 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12807 s,@cpp_install_dir@,$cpp_install_dir,;t t
12808 s,@xmake_file@,$xmake_file,;t t
12809 s,@tmake_file@,$tmake_file,;t t
12810 s,@extra_headers_list@,$extra_headers_list,;t t
12811 s,@extra_objs@,$extra_objs,;t t
12812 s,@extra_parts@,$extra_parts,;t t
12813 s,@extra_passes@,$extra_passes,;t t
12814 s,@extra_programs@,$extra_programs,;t t
12815 s,@float_h_file@,$float_h_file,;t t
12816 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12817 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12818 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12819 s,@gcc_version@,$gcc_version,;t t
12820 s,@gcc_version_full@,$gcc_version_full,;t t
12821 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12822 s,@host_exeext@,$host_exeext,;t t
12823 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12824 s,@host_xm_file_list@,$host_xm_file_list,;t t
12825 s,@host_xm_include_list@,$host_xm_include_list,;t t
12826 s,@host_xm_defines@,$host_xm_defines,;t t
12827 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12828 s,@install@,$install,;t t
12829 s,@lang_opt_files@,$lang_opt_files,;t t
12830 s,@lang_specs_files@,$lang_specs_files,;t t
12831 s,@lang_tree_files@,$lang_tree_files,;t t
12832 s,@local_prefix@,$local_prefix,;t t
12833 s,@md_file@,$md_file,;t t
12834 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12835 s,@out_file@,$out_file,;t t
12836 s,@out_object_file@,$out_object_file,;t t
12837 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12838 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12839 s,@symbolic_link@,$symbolic_link,;t t
12840 s,@thread_file@,$thread_file,;t t
12841 s,@tm_file_list@,$tm_file_list,;t t
12842 s,@tm_include_list@,$tm_include_list,;t t
12843 s,@tm_defines@,$tm_defines,;t t
12844 s,@tm_p_file_list@,$tm_p_file_list,;t t
12845 s,@tm_p_include_list@,$tm_p_include_list,;t t
12846 s,@xm_file_list@,$xm_file_list,;t t
12847 s,@xm_include_list@,$xm_include_list,;t t
12848 s,@xm_defines@,$xm_defines,;t t
12849 s,@target_noncanonical@,$target_noncanonical,;t t
12850 s,@c_target_objs@,$c_target_objs,;t t
12851 s,@cxx_target_objs@,$cxx_target_objs,;t t
12852 s,@target_cpu_default@,$target_cpu_default,;t t
12853 s,@LIBOBJS@,$LIBOBJS,;t t
12854 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12855 /@language_hooks@/r $language_hooks
12856 s,@language_hooks@,,;t t
12861 cat >>$CONFIG_STATUS <<\_ACEOF
12862 # Split the substitutions into bite-sized pieces for seds with
12863 # small command number limits, like on Digital OSF/1 and HP-UX.
12864 ac_max_sed_lines=48
12865 ac_sed_frag=1 # Number of current file.
12866 ac_beg=1 # First line for current file.
12867 ac_end=$ac_max_sed_lines # Line after last line for current file.
12870 while $ac_more_lines; do
12871 if test $ac_beg -gt 1; then
12872 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12874 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12876 if test ! -s $tmp/subs.frag; then
12877 ac_more_lines=false
12879 # The purpose of the label and of the branching condition is to
12880 # speed up the sed processing (if there are no `@' at all, there
12881 # is no need to browse any of the substitutions).
12882 # These are the two extra sed commands mentioned above.
12884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12885 if test -z "$ac_sed_cmds"; then
12886 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12888 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12890 ac_sed_frag=`expr $ac_sed_frag + 1`
12892 ac_end=`expr $ac_end + $ac_max_sed_lines`
12895 if test -z "$ac_sed_cmds"; then
12898 fi # test -n "$CONFIG_FILES"
12901 cat >>$CONFIG_STATUS <<\_ACEOF
12902 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12903 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12905 - | *:- | *:-:* ) # input from stdin
12907 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12908 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12909 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12910 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12911 * ) ac_file_in=$ac_file.in ;;
12914 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12915 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12917 X"$ac_file" : 'X\(//\)[^/]' \| \
12918 X"$ac_file" : 'X\(//\)$' \| \
12919 X"$ac_file" : 'X\(/\)' \| \
12920 . : '\(.\)' 2>/dev/null ||
12922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12924 /^X\(\/\/\)$/{ s//\1/; q; }
12925 /^X\(\/\).*/{ s//\1/; q; }
12927 { if $as_mkdir_p; then
12932 while test ! -d "$as_dir"; do
12933 as_dirs="$as_dir $as_dirs"
12934 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12936 X"$as_dir" : 'X\(//\)[^/]' \| \
12937 X"$as_dir" : 'X\(//\)$' \| \
12938 X"$as_dir" : 'X\(/\)' \| \
12939 . : '\(.\)' 2>/dev/null ||
12941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12943 /^X\(\/\/\)$/{ s//\1/; q; }
12944 /^X\(\/\).*/{ s//\1/; q; }
12947 test ! -n "$as_dirs" || mkdir $as_dirs
12948 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12949 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12950 { (exit 1); exit 1; }; }; }
12954 if test "$ac_dir" != .; then
12955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12956 # A "../" for each directory in $ac_dir_suffix.
12957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12959 ac_dir_suffix= ac_top_builddir=
12963 .) # No --srcdir option. We are building in place.
12965 if test -z "$ac_top_builddir"; then
12968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12970 [\\/]* | ?:[\\/]* ) # Absolute path.
12971 ac_srcdir=$srcdir$ac_dir_suffix;
12972 ac_top_srcdir=$srcdir ;;
12973 *) # Relative path.
12974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12977 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12979 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12980 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12981 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12982 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12986 if test x"$ac_file" != x-; then
12987 { echo "$as_me:$LINENO: creating $ac_file" >&5
12988 echo "$as_me: creating $ac_file" >&6;}
12991 # Let's still pretend it is `configure' which instantiates (i.e., don't
12992 # use $as_me), people would be surprised to read:
12993 # /* config.h. Generated by config.status. */
12994 if test x"$ac_file" = x-; then
12997 configure_input="$ac_file. "
12999 configure_input=$configure_input"Generated from `echo $ac_file_in |
13000 sed 's,.*/,,'` by configure."
13002 # First look for the input files in the build tree, otherwise in the
13004 ac_file_inputs=`IFS=:
13005 for f in $ac_file_in; do
13007 -) echo $tmp/stdin ;;
13009 # Absolute (can't be DOS-style, as IFS=:)
13010 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13011 echo "$as_me: error: cannot find input file: $f" >&2;}
13012 { (exit 1); exit 1; }; }
13015 if test -f "$f"; then
13018 elif test -f "$srcdir/$f"; then
13023 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13024 echo "$as_me: error: cannot find input file: $f" >&2;}
13025 { (exit 1); exit 1; }; }
13028 done` || { (exit 1); exit 1; }
13030 cat >>$CONFIG_STATUS <<_ACEOF
13034 cat >>$CONFIG_STATUS <<\_ACEOF
13036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13037 s,@configure_input@,$configure_input,;t t
13038 s,@srcdir@,$ac_srcdir,;t t
13039 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13040 s,@top_srcdir@,$ac_top_srcdir,;t t
13041 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13042 s,@builddir@,$ac_builddir,;t t
13043 s,@abs_builddir@,$ac_abs_builddir,;t t
13044 s,@top_builddir@,$ac_top_builddir,;t t
13045 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13046 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13048 if test x"$ac_file" != x-; then
13049 mv $tmp/out $ac_file
13057 cat >>$CONFIG_STATUS <<\_ACEOF
13060 # CONFIG_HEADER section.
13063 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13064 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13066 # ac_d sets the value in "#define NAME VALUE" lines.
13067 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13068 ac_dB='[ ].*$,\1#\2'
13071 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13072 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13073 ac_uB='$,\1#\2define\3'
13077 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13078 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13080 - | *:- | *:-:* ) # input from stdin
13082 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13083 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13084 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13085 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13086 * ) ac_file_in=$ac_file.in ;;
13089 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13090 echo "$as_me: creating $ac_file" >&6;}
13092 # First look for the input files in the build tree, otherwise in the
13094 ac_file_inputs=`IFS=:
13095 for f in $ac_file_in; do
13097 -) echo $tmp/stdin ;;
13099 # Absolute (can't be DOS-style, as IFS=:)
13100 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13101 echo "$as_me: error: cannot find input file: $f" >&2;}
13102 { (exit 1); exit 1; }; }
13105 if test -f "$f"; then
13108 elif test -f "$srcdir/$f"; then
13113 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13114 echo "$as_me: error: cannot find input file: $f" >&2;}
13115 { (exit 1); exit 1; }; }
13118 done` || { (exit 1); exit 1; }
13119 # Remove the trailing spaces.
13120 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13124 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13125 # `conftest.undefs', that substitutes the proper values into
13126 # config.h.in to produce config.h. The first handles `#define'
13127 # templates, and the second `#undef' templates.
13128 # And first: Protect against being on the right side of a sed subst in
13129 # config.status. Protect against being in an unquoted here document
13130 # in config.status.
13131 rm -f conftest.defines conftest.undefs
13132 # Using a here document instead of a string reduces the quoting nightmare.
13133 # Putting comments in sed scripts is not portable.
13135 # `end' is used to avoid that the second main sed command (meant for
13136 # 0-ary CPP macros) applies to n-ary macro definitions.
13137 # See the Autoconf documentation for `clear'.
13138 cat >confdef2sed.sed <<\_ACEOF
13143 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13145 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13148 # If some macros were called several times there might be several times
13149 # the same #defines, which is useless. Nevertheless, we may not want to
13150 # sort them, since we want the *last* AC-DEFINE to be honored.
13151 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13152 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13153 rm -f confdef2sed.sed
13155 # This sed command replaces #undef with comments. This is necessary, for
13156 # example, in the case of _POSIX_SOURCE, which is predefined and required
13157 # on some systems where configure will not decide to define it.
13158 cat >>conftest.undefs <<\_ACEOF
13159 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13162 # Break up conftest.defines because some shells have a limit on the size
13163 # of here documents, and old seds have small limits too (100 cmds).
13164 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13165 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13166 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13167 echo ' :' >>$CONFIG_STATUS
13168 rm -f conftest.tail
13169 while grep . conftest.defines >/dev/null
13171 # Write a limited-size here document to $tmp/defines.sed.
13172 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13173 # Speed up: don't consider the non `#define' lines.
13174 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13175 # Work around the forget-to-reset-the-flag bug.
13176 echo 't clr' >>$CONFIG_STATUS
13177 echo ': clr' >>$CONFIG_STATUS
13178 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13180 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13182 mv $tmp/out $tmp/in
13184 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13185 rm -f conftest.defines
13186 mv conftest.tail conftest.defines
13188 rm -f conftest.defines
13189 echo ' fi # grep' >>$CONFIG_STATUS
13190 echo >>$CONFIG_STATUS
13192 # Break up conftest.undefs because some shells have a limit on the size
13193 # of here documents, and old seds have small limits too (100 cmds).
13194 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13195 rm -f conftest.tail
13196 while grep . conftest.undefs >/dev/null
13198 # Write a limited-size here document to $tmp/undefs.sed.
13199 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13200 # Speed up: don't consider the non `#undef'
13201 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13202 # Work around the forget-to-reset-the-flag bug.
13203 echo 't clr' >>$CONFIG_STATUS
13204 echo ': clr' >>$CONFIG_STATUS
13205 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13207 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13209 mv $tmp/out $tmp/in
13211 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13212 rm -f conftest.undefs
13213 mv conftest.tail conftest.undefs
13215 rm -f conftest.undefs
13217 cat >>$CONFIG_STATUS <<\_ACEOF
13218 # Let's still pretend it is `configure' which instantiates (i.e., don't
13219 # use $as_me), people would be surprised to read:
13220 # /* config.h. Generated by config.status. */
13221 if test x"$ac_file" = x-; then
13222 echo "/* Generated by configure. */" >$tmp/config.h
13224 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13226 cat $tmp/in >>$tmp/config.h
13228 if test x"$ac_file" != x-; then
13229 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13230 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13231 echo "$as_me: $ac_file is unchanged" >&6;}
13233 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13235 X"$ac_file" : 'X\(//\)[^/]' \| \
13236 X"$ac_file" : 'X\(//\)$' \| \
13237 X"$ac_file" : 'X\(/\)' \| \
13238 . : '\(.\)' 2>/dev/null ||
13240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13241 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13242 /^X\(\/\/\)$/{ s//\1/; q; }
13243 /^X\(\/\).*/{ s//\1/; q; }
13245 { if $as_mkdir_p; then
13250 while test ! -d "$as_dir"; do
13251 as_dirs="$as_dir $as_dirs"
13252 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13254 X"$as_dir" : 'X\(//\)[^/]' \| \
13255 X"$as_dir" : 'X\(//\)$' \| \
13256 X"$as_dir" : 'X\(/\)' \| \
13257 . : '\(.\)' 2>/dev/null ||
13259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13261 /^X\(\/\/\)$/{ s//\1/; q; }
13262 /^X\(\/\).*/{ s//\1/; q; }
13265 test ! -n "$as_dirs" || mkdir $as_dirs
13266 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13267 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13268 { (exit 1); exit 1; }; }; }
13271 mv $tmp/config.h $ac_file
13275 rm -f $tmp/config.h
13279 cat >>$CONFIG_STATUS <<\_ACEOF
13282 # CONFIG_COMMANDS section.
13284 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13285 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13286 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13287 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13288 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13289 X"$ac_dest" : 'X\(//\)[^/]' \| \
13290 X"$ac_dest" : 'X\(//\)$' \| \
13291 X"$ac_dest" : 'X\(/\)' \| \
13292 . : '\(.\)' 2>/dev/null ||
13294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13296 /^X\(\/\/\)$/{ s//\1/; q; }
13297 /^X\(\/\).*/{ s//\1/; q; }
13301 if test "$ac_dir" != .; then
13302 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13303 # A "../" for each directory in $ac_dir_suffix.
13304 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13306 ac_dir_suffix= ac_top_builddir=
13310 .) # No --srcdir option. We are building in place.
13312 if test -z "$ac_top_builddir"; then
13315 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13317 [\\/]* | ?:[\\/]* ) # Absolute path.
13318 ac_srcdir=$srcdir$ac_dir_suffix;
13319 ac_top_srcdir=$srcdir ;;
13320 *) # Relative path.
13321 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13322 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13324 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13326 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13327 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13328 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13329 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13332 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13333 echo "$as_me: executing $ac_dest commands" >&6;}
13336 case ${CONFIG_HEADERS} in
13337 *auto-host.h:config.in*)
13340 # Make sure all the subdirs exist.
13343 test -d $d || mkdir $d
13345 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13346 # bootstrapping and the installation procedure can still use
13347 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13348 # FLAGS_TO_PASS has been modified to solve the problem there.
13349 # This is virtually a duplicate of what happens in configure.lang; we do
13350 # an extra check to make sure this only happens if ln -s can be used.
13351 if test "$symbolic_link" = "ln -s"; then
13352 for d in ${subdirs} fixinc ; do
13353 STARTDIR=`${PWDCMD-pwd}`
13355 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13358 $symbolic_link ../$t $t 2>/dev/null
13368 cat >>$CONFIG_STATUS <<\_ACEOF
13370 { (exit 0); exit 0; }
13372 chmod +x $CONFIG_STATUS
13373 ac_clean_files=$ac_clean_files_save
13376 # configure is writing to config.log, and then calls config.status.
13377 # config.status does its own redirection, appending to config.log.
13378 # Unfortunately, on DOS this fails, as config.log is still kept open
13379 # by configure, so config.status won't be able to write to it; its
13380 # output is simply discarded. So we exec the FD to /dev/null,
13381 # effectively closing config.log, so it can be properly (re)opened and
13382 # appended to by config.status. When coming back to configure, we
13383 # need to make the FD available again.
13384 if test "$no_create" != yes; then
13386 ac_config_status_args=
13387 test "$silent" = yes &&
13388 ac_config_status_args="$ac_config_status_args --quiet"
13390 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13392 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13393 # would make configure fail if this is the last instruction.
13394 $ac_cs_success || { (exit 1); exit 1; }