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
1329 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1332 # Determine the host, build, and target systems
1334 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1335 if test -f $ac_dir/install-sh; then
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1339 elif test -f $ac_dir/install.sh; then
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1343 elif test -f $ac_dir/shtool; then
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1349 if test -z "$ac_aux_dir"; then
1350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1351 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1352 { (exit 1); exit 1; }; }
1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358 # Make sure we can run config.sub.
1359 $ac_config_sub sun4 >/dev/null 2>&1 ||
1360 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1361 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1362 { (exit 1); exit 1; }; }
1364 echo "$as_me:$LINENO: checking build system type" >&5
1365 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1366 if test "${ac_cv_build+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 ac_cv_build_alias=$build_alias
1370 test -z "$ac_cv_build_alias" &&
1371 ac_cv_build_alias=`$ac_config_guess`
1372 test -z "$ac_cv_build_alias" &&
1373 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1374 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1375 { (exit 1); exit 1; }; }
1376 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1378 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1379 { (exit 1); exit 1; }; }
1382 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1383 echo "${ECHO_T}$ac_cv_build" >&6
1385 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1390 echo "$as_me:$LINENO: checking host system type" >&5
1391 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1392 if test "${ac_cv_host+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 ac_cv_host_alias=$host_alias
1396 test -z "$ac_cv_host_alias" &&
1397 ac_cv_host_alias=$ac_cv_build_alias
1398 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1399 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1400 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1401 { (exit 1); exit 1; }; }
1404 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1405 echo "${ECHO_T}$ac_cv_host" >&6
1407 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412 echo "$as_me:$LINENO: checking target system type" >&5
1413 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1414 if test "${ac_cv_target+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 ac_cv_target_alias=$target_alias
1418 test "x$ac_cv_target_alias" = "x" &&
1419 ac_cv_target_alias=$ac_cv_host_alias
1420 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1421 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1422 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1423 { (exit 1); exit 1; }; }
1426 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1427 echo "${ECHO_T}$ac_cv_target" >&6
1428 target=$ac_cv_target
1429 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434 # The aliases save the names the user supplied, while $host etc.
1435 # will get canonicalized.
1436 test -n "$target_alias" &&
1437 test "$program_prefix$program_suffix$program_transform_name" = \
1439 program_prefix=${target_alias}-
1441 # Determine the noncanonical target name, for directory use.
1442 case ${build_alias} in
1443 "") build_noncanonical=${build} ;;
1444 *) build_noncanonical=${build_alias} ;;
1447 case ${host_alias} in
1448 "") host_noncanonical=${build_noncanonical} ;;
1449 *) host_noncanonical=${host_alias} ;;
1452 case ${target_alias} in
1453 "") target_noncanonical=${host_noncanonical} ;;
1454 *) target_noncanonical=${target_alias} ;;
1458 # Determine the target- and build-specific subdirectories
1459 # Prefix 'build-' so this never conflicts with target_subdir.
1460 build_subdir="build-${build_noncanonical}"
1461 # Not really a subdirectory, but here for completeness.
1464 target_subdir=${target_noncanonical}
1467 # Set program_transform_name
1468 test "$program_prefix" != NONE &&
1469 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470 # Use a double $ so make ignores it.
1471 test "$program_suffix" != NONE &&
1472 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473 # Double any \ or $. echo might interpret backslashes.
1474 # By default was `s,x,x', remove it if useless.
1475 cat <<\_ACEOF >conftest.sed
1476 s/[\\$]/&&/g;s/;s,x,x,$//
1478 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1482 # Check for bogus environment variables.
1483 # Test if LIBRARY_PATH contains the notation for the current directory
1484 # since this would lead to problems installing/building glibc.
1485 # LIBRARY_PATH contains the current directory if one of the following
1487 # - one of the terminals (":" and ";") is the first or last sign
1488 # - two terminals occur directly after each other
1489 # - the path contains an element with a dot in it
1490 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1491 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1492 case ${LIBRARY_PATH} in
1493 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1494 library_path_setting="contains current directory"
1497 library_path_setting="ok"
1500 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1501 echo "${ECHO_T}$library_path_setting" >&6
1502 if test "$library_path_setting" != "ok"; then
1503 { { echo "$as_me:$LINENO: error:
1504 *** LIBRARY_PATH shouldn't contain the current directory when
1505 *** building gcc. Please change the environment variable
1506 *** and run configure again." >&5
1507 echo "$as_me: error:
1508 *** LIBRARY_PATH shouldn't contain the current directory when
1509 *** building gcc. Please change the environment variable
1510 *** and run configure again." >&2;}
1511 { (exit 1); exit 1; }; }
1514 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1515 # since this would lead to problems installing/building glibc.
1516 # GCC_EXEC_PREFIX contains the current directory if one of the following
1518 # - one of the terminals (":" and ";") is the first or last sign
1519 # - two terminals occur directly after each other
1520 # - the path contains an element with a dot in it
1521 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1522 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1523 case ${GCC_EXEC_PREFIX} in
1524 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1525 gcc_exec_prefix_setting="contains current directory"
1528 gcc_exec_prefix_setting="ok"
1531 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1532 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1533 if test "$gcc_exec_prefix_setting" != "ok"; then
1534 { { echo "$as_me:$LINENO: error:
1535 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1536 *** building gcc. Please change the environment variable
1537 *** and run configure again." >&5
1538 echo "$as_me: error:
1539 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1540 *** building gcc. Please change the environment variable
1541 *** and run configure again." >&2;}
1542 { (exit 1); exit 1; }; }
1549 # Specify the local prefix
1552 # Check whether --with-local-prefix or --without-local-prefix was given.
1553 if test "${with_local_prefix+set}" = set; then
1554 withval="$with_local_prefix"
1555 case "${withval}" in
1556 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1557 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1558 { (exit 1); exit 1; }; } ;;
1560 *) local_prefix=$with_local_prefix ;;
1564 # Default local prefix if it is empty
1565 if test x$local_prefix = x; then
1566 local_prefix=/usr/local
1569 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1570 # passed in by the toplevel make and thus we'd get different behavior
1571 # depending on where we built the sources.
1572 gcc_gxx_include_dir=
1573 # Specify the g++ header file directory
1575 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1576 if test "${with_gxx_include_dir+set}" = set; then
1577 withval="$with_gxx_include_dir"
1578 case "${withval}" in
1579 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1580 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1581 { (exit 1); exit 1; }; } ;;
1583 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1587 if test x${gcc_gxx_include_dir} = x; then
1588 if test x${enable_version_specific_runtime_libs} = xyes; then
1589 gcc_gxx_include_dir='${libsubdir}/include/c++'
1591 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1592 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1597 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1598 if test "${with_cpp_install_dir+set}" = set; then
1599 withval="$with_cpp_install_dir"
1600 if test x$withval = xyes; then
1601 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1602 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1603 { (exit 1); exit 1; }; }
1604 elif test x$withval != xno; then
1605 cpp_install_dir=$withval
1609 # We would like to our source tree to be readonly. However when releases or
1610 # pre-releases are generated, the flex/bison generated files as well as the
1611 # various formats of manuals need to be included along with the rest of the
1612 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1615 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1616 if test "${enable_generated_files_in_srcdir+set}" = set; then
1617 enableval="$enable_generated_files_in_srcdir"
1618 case ${enableval} in
1619 no) parsedir='$(objdir)'; docobjdir='$(objdir)/doc';;
1620 *) parsedir='$(srcdir)'; docobjdir='$(srcdir)/doc';;
1623 parsedir='$(objdir)'; docobjdir='$(objdir)/doc';
1626 # -------------------
1627 # Find default linker
1628 # -------------------
1632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1633 if test "${with_gnu_ld+set}" = set; then
1634 withval="$with_gnu_ld"
1635 gnu_ld_flag="$with_gnu_ld"
1640 # With pre-defined ld
1642 # Check whether --with-ld or --without-ld was given.
1643 if test "${with_ld+set}" = set; then
1645 DEFAULT_LINKER="$with_ld"
1647 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1648 if test ! -x "$DEFAULT_LINKER"; then
1649 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1650 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1651 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1655 cat >>confdefs.h <<_ACEOF
1656 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1661 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1662 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1663 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1664 if test x"$gnu_ld_flag" = x"no"; then
1665 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1666 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1668 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1669 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1676 # ----------------------
1677 # Find default assembler
1678 # ----------------------
1682 # Check whether --with-gnu-as or --without-gnu-as was given.
1683 if test "${with_gnu_as+set}" = set; then
1684 withval="$with_gnu_as"
1685 gas_flag="$with_gnu_as"
1691 # Check whether --with-as or --without-as was given.
1692 if test "${with_as+set}" = set; then
1694 DEFAULT_ASSEMBLER="$with_as"
1696 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1697 if test ! -x "$DEFAULT_ASSEMBLER"; then
1698 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1699 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1700 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1704 cat >>confdefs.h <<_ACEOF
1705 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1710 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1711 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1712 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1713 if test x"$gas_flag" = x"no"; then
1714 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1715 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1717 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1718 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1729 # Find the native compiler
1731 ac_cpp='$CPP $CPPFLAGS'
1732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1735 if test -n "$ac_tool_prefix"; then
1736 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1738 echo "$as_me:$LINENO: checking for $ac_word" >&5
1739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740 if test "${ac_cv_prog_CC+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 if test -n "$CC"; then
1744 ac_cv_prog_CC="$CC" # Let the user override the test.
1746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 test -z "$as_dir" && as_dir=.
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 if test -n "$CC"; then
1764 echo "$as_me:$LINENO: result: $CC" >&5
1765 echo "${ECHO_T}$CC" >&6
1767 echo "$as_me:$LINENO: result: no" >&5
1768 echo "${ECHO_T}no" >&6
1772 if test -z "$ac_cv_prog_CC"; then
1774 # Extract the first word of "gcc", so it can be a program name with args.
1775 set dummy gcc; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 if test -n "$ac_ct_CC"; then
1782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 test -z "$as_dir" && as_dir=.
1789 for ac_exec_ext in '' $ac_executable_extensions; do
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791 ac_cv_prog_ac_ct_CC="gcc"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1801 if test -n "$ac_ct_CC"; then
1802 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1803 echo "${ECHO_T}$ac_ct_CC" >&6
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1814 if test -z "$CC"; then
1815 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1817 set dummy ${ac_tool_prefix}cc; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="${ac_tool_prefix}cc"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1852 if test -z "$ac_cv_prog_CC"; then
1854 # Extract the first word of "cc", so it can be a program name with args.
1855 set dummy cc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="cc"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1895 if test -z "$CC"; then
1896 # Extract the first word of "cc", so it can be a program name with args.
1897 set dummy cc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC="$CC" # Let the user override the test.
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1915 ac_prog_rejected=yes
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 if test $ac_prog_rejected = yes; then
1926 # We found a bogon in the path, so make sure we never use it.
1927 set dummy $ac_cv_prog_CC
1929 if test $# != 0; then
1930 # We chose a different compiler from the bogus one.
1931 # However, it has the same basename, so the bogon will be chosen
1932 # first if we set CC to just the basename; use the full file name.
1934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1940 if test -n "$CC"; then
1941 echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1949 if test -z "$CC"; then
1950 if test -n "$ac_tool_prefix"; then
1953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC="$CC" # Let the user override the test.
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 if test -n "$CC"; then
1981 echo "$as_me:$LINENO: result: $CC" >&5
1982 echo "${ECHO_T}$CC" >&6
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1988 test -n "$CC" && break
1991 if test -z "$CC"; then
1995 # Extract the first word of "$ac_prog", so it can be a program name with args.
1996 set dummy $ac_prog; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 if test -n "$ac_ct_CC"; then
2003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 ac_cv_prog_ac_ct_CC="$ac_prog"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2030 test -n "$ac_ct_CC" && break
2039 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2040 See \`config.log' for more details." >&5
2041 echo "$as_me: error: no acceptable C compiler found in \$PATH
2042 See \`config.log' for more details." >&2;}
2043 { (exit 1); exit 1; }; }
2045 # Provide some information about the compiler.
2046 echo "$as_me:$LINENO:" \
2047 "checking for C compiler version" >&5
2048 ac_compiler=`set X $ac_compile; echo $2`
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2050 (eval $ac_compiler --version </dev/null >&5) 2>&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }
2054 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2055 (eval $ac_compiler -v </dev/null >&5) 2>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }
2059 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2060 (eval $ac_compiler -V </dev/null >&5) 2>&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }
2065 cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2081 ac_clean_files_save=$ac_clean_files
2082 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2083 # Try to create an executable without -o first, disregard a.out.
2084 # It will help us diagnose broken compilers, and finding out an intuition
2086 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2087 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2088 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2089 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2090 (eval $ac_link_default) 2>&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; then
2094 # Find the output, starting from the most likely. This scheme is
2095 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2098 # Be careful to initialize this variable, since it used to be cached.
2099 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2101 # b.out is created by i960 compilers.
2102 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2104 test -f "$ac_file" || continue
2106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2109 # This is the source file.
2112 # We found the default executable, but exeext='' is most
2116 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2117 # FIXME: I believe we export ac_cv_exeext for Libtool,
2118 # but it would be cool to find out if it's true. Does anybody
2119 # maintain Libtool? --akim.
2127 echo "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2130 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: C compiler cannot create executables
2133 See \`config.log' for more details." >&2;}
2134 { (exit 77); exit 77; }; }
2137 ac_exeext=$ac_cv_exeext
2138 echo "$as_me:$LINENO: result: $ac_file" >&5
2139 echo "${ECHO_T}$ac_file" >&6
2141 # Check the compiler produces executables we can run. If not, either
2142 # the compiler is broken, or we cross compile.
2143 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2144 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2145 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2146 # If not cross compiling, check that we can run a simple program.
2147 if test "$cross_compiling" != yes; then
2148 if { ac_try='./$ac_file'
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; }; then
2156 if test "$cross_compiling" = maybe; then
2159 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2160 If you meant to cross compile, use \`--host'.
2161 See \`config.log' for more details." >&5
2162 echo "$as_me: error: cannot run C compiled programs.
2163 If you meant to cross compile, use \`--host'.
2164 See \`config.log' for more details." >&2;}
2165 { (exit 1); exit 1; }; }
2169 echo "$as_me:$LINENO: result: yes" >&5
2170 echo "${ECHO_T}yes" >&6
2172 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2173 ac_clean_files=$ac_clean_files_save
2174 # Check the compiler produces executables we can run. If not, either
2175 # the compiler is broken, or we cross compile.
2176 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2177 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2178 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2179 echo "${ECHO_T}$cross_compiling" >&6
2181 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2182 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2184 (eval $ac_link) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2189 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2190 # work properly (i.e., refer to `conftest.exe'), while it won't with
2192 for ac_file in conftest.exe conftest conftest.*; do
2193 test -f "$ac_file" || continue
2195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2196 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2203 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2206 See \`config.log' for more details." >&2;}
2207 { (exit 1); exit 1; }; }
2210 rm -f conftest$ac_cv_exeext
2211 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2212 echo "${ECHO_T}$ac_cv_exeext" >&6
2214 rm -f conftest.$ac_ext
2215 EXEEXT=$ac_cv_exeext
2217 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2218 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2219 if test "${ac_cv_objext+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 cat >conftest.$ac_ext <<_ACEOF
2223 #line $LINENO "configure"
2226 cat confdefs.h >>conftest.$ac_ext
2227 cat >>conftest.$ac_ext <<_ACEOF
2228 /* end confdefs.h. */
2238 rm -f conftest.o conftest.obj
2239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240 (eval $ac_compile) 2>&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; then
2244 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2247 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2255 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2258 See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2262 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2264 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2265 echo "${ECHO_T}$ac_cv_objext" >&6
2266 OBJEXT=$ac_cv_objext
2268 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2269 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2270 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h. */
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); } &&
2298 { ac_try='test -s conftest.$ac_objext'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2311 rm -f conftest.$ac_objext conftest.$ac_ext
2312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2315 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2316 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2317 GCC=`test $ac_compiler_gnu = yes && echo yes`
2318 ac_test_CFLAGS=${CFLAGS+set}
2319 ac_save_CFLAGS=$CFLAGS
2321 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2322 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2323 if test "${ac_cv_prog_cc_g+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 cat >conftest.$ac_ext <<_ACEOF
2327 #line $LINENO "configure"
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try='test -s conftest.$ac_objext'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; }; then
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2361 rm -f conftest.$ac_objext conftest.$ac_ext
2363 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2364 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2365 if test "$ac_test_CFLAGS" = set; then
2366 CFLAGS=$ac_save_CFLAGS
2367 elif test $ac_cv_prog_cc_g = yes; then
2368 if test "$GCC" = yes; then
2374 if test "$GCC" = yes; then
2380 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2381 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2382 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 ac_cv_prog_cc_stdc=no
2387 cat >conftest.$ac_ext <<_ACEOF
2388 #line $LINENO "configure"
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2396 #include <sys/types.h>
2397 #include <sys/stat.h>
2398 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2399 struct buf { int x; };
2400 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2401 static char *e (p, i)
2407 static char *f (char * (*g) (char **, int), char **p, ...)
2412 s = g (p, va_arg (v,int));
2416 int test (int i, double x);
2417 struct s1 {int (*f) (int a);};
2418 struct s2 {int (*f) (double a);};
2419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2425 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2430 # Don't try gcc -ansi; that turns off useful extensions and
2431 # breaks some systems' header files.
2432 # AIX -qlanglvl=ansi
2433 # Ultrix and OSF/1 -std1
2434 # HP-UX 10.20 and later -Ae
2435 # HP-UX older versions -Aa -D_HPUX_SOURCE
2436 # SVR4 -Xc -D__EXTENSIONS__
2437 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2439 CC="$ac_save_CC $ac_arg"
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2452 ac_cv_prog_cc_stdc=$ac_arg
2455 echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2459 rm -f conftest.$ac_objext
2461 rm -f conftest.$ac_ext conftest.$ac_objext
2466 case "x$ac_cv_prog_cc_stdc" in
2468 echo "$as_me:$LINENO: result: none needed" >&5
2469 echo "${ECHO_T}none needed" >&6 ;;
2471 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2472 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2473 CC="$CC $ac_cv_prog_cc_stdc" ;;
2476 # Some people use a C++ compiler to compile C. Since we use `exit',
2477 # in C++ we need to declare it. In case someone uses the same compiler
2478 # for both compiling C and C++ we need to have the C++ compiler decide
2479 # the declaration of exit, since it's the most demanding environment.
2480 cat >conftest.$ac_ext <<_ACEOF
2485 rm -f conftest.$ac_objext
2486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487 (eval $ac_compile) 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 { ac_try='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2497 for ac_declaration in \
2499 'extern "C" void std::exit (int) throw (); using std::exit;' \
2500 'extern "C" void std::exit (int); using std::exit;' \
2501 'extern "C" void exit (int) throw ();' \
2502 'extern "C" void exit (int);' \
2505 cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2541 rm -f conftest.$ac_objext conftest.$ac_ext
2542 cat >conftest.$ac_ext <<_ACEOF
2543 #line $LINENO "configure"
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2558 rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2576 rm -f conftest.$ac_objext conftest.$ac_ext
2579 if test -n "$ac_declaration"; then
2580 echo '#ifdef __cplusplus' >>confdefs.h
2581 echo $ac_declaration >>confdefs.h
2582 echo '#endif' >>confdefs.h
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2590 rm -f conftest.$ac_objext conftest.$ac_ext
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597 if test "x$CC" != xcc; then
2598 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2599 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2601 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2602 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2604 set dummy $CC; ac_cc=`echo $2 |
2605 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2606 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2625 # Make sure it works both with $CC and with simple cc.
2626 # We do the test twice because some compilers refuse to overwrite an
2627 # existing .o file with -o, though they will create one.
2628 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2629 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); };
2640 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2641 if test "x$CC" != xcc; then
2642 # Test first that cc exists at all.
2643 if { ac_try='cc -c conftest.$ac_ext >&5'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2650 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); };
2664 # cc exists but doesn't like -o.
2665 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2670 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2675 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2676 echo "$as_me:$LINENO: result: yes" >&5
2677 echo "${ECHO_T}yes" >&6
2679 echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6
2682 cat >>confdefs.h <<\_ACEOF
2683 #define NO_MINUS_C_MINUS_O 1
2688 # autoconf is lame and doesn't give us any substitution variable for this.
2689 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2690 NO_MINUS_C_MINUS_O=yes
2692 OUTPUT_OPTION='-o $@'
2697 # -------------------------
2698 # Check C compiler features
2699 # -------------------------
2702 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2703 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2704 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 save_CFLAGS="$CFLAGS"
2708 CFLAGS="-Wno-long-long"
2709 cat >conftest.$ac_ext <<_ACEOF
2710 #line $LINENO "configure"
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 ac_cv_prog_cc_no_long_long=yes
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2742 ac_cv_prog_cc_no_long_long=no
2744 rm -f conftest.$ac_objext conftest.$ac_ext
2745 CFLAGS="$save_CFLAGS"
2747 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2751 ac_cpp='$CPP $CPPFLAGS'
2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2756 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2757 # On Suns, sometimes $CPP names a directory.
2758 if test -n "$CPP" && test -d "$CPP"; then
2761 if test -z "$CPP"; then
2762 if test "${ac_cv_prog_CPP+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 # Double quotes because CPP needs to be expanded
2766 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2769 for ac_c_preproc_warn_flag in '' yes
2771 # Use a header file that comes with gcc, so configuring glibc
2772 # with a fresh cross-compiler works.
2773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2774 # <limits.h> exists even on freestanding compilers.
2775 # On the NeXT, cc -E runs the code through the compiler's parser,
2776 # not just through cpp. "Syntax error" is here to catch this case.
2777 cat >conftest.$ac_ext <<_ACEOF
2778 #line $LINENO "configure"
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2785 # include <limits.h>
2787 # include <assert.h>
2791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794 grep -v '^ *+' conftest.er1 >conftest.err
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } >/dev/null; then
2799 if test -s conftest.err; then
2800 ac_cpp_err=$ac_c_preproc_warn_flag
2807 if test -z "$ac_cpp_err"; then
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 # Broken: fails on valid input.
2816 rm -f conftest.err conftest.$ac_ext
2818 # OK, works on sane cases. Now check whether non-existent headers
2819 # can be detected and how.
2820 cat >conftest.$ac_ext <<_ACEOF
2821 #line $LINENO "configure"
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2827 #include <ac_nonexistent.h>
2829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2832 grep -v '^ *+' conftest.er1 >conftest.err
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } >/dev/null; then
2837 if test -s conftest.err; then
2838 ac_cpp_err=$ac_c_preproc_warn_flag
2845 if test -z "$ac_cpp_err"; then
2846 # Broken: success on invalid input.
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2852 # Passes both tests.
2856 rm -f conftest.err conftest.$ac_ext
2859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2860 rm -f conftest.err conftest.$ac_ext
2861 if $ac_preproc_ok; then
2873 echo "$as_me:$LINENO: result: $CPP" >&5
2874 echo "${ECHO_T}$CPP" >&6
2876 for ac_c_preproc_warn_flag in '' yes
2878 # Use a header file that comes with gcc, so configuring glibc
2879 # with a fresh cross-compiler works.
2880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2881 # <limits.h> exists even on freestanding compilers.
2882 # On the NeXT, cc -E runs the code through the compiler's parser,
2883 # not just through cpp. "Syntax error" is here to catch this case.
2884 cat >conftest.$ac_ext <<_ACEOF
2885 #line $LINENO "configure"
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2892 # include <limits.h>
2894 # include <assert.h>
2898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901 grep -v '^ *+' conftest.er1 >conftest.err
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } >/dev/null; then
2906 if test -s conftest.err; then
2907 ac_cpp_err=$ac_c_preproc_warn_flag
2914 if test -z "$ac_cpp_err"; then
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2920 # Broken: fails on valid input.
2923 rm -f conftest.err conftest.$ac_ext
2925 # OK, works on sane cases. Now check whether non-existent headers
2926 # can be detected and how.
2927 cat >conftest.$ac_ext <<_ACEOF
2928 #line $LINENO "configure"
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2934 #include <ac_nonexistent.h>
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
2952 if test -z "$ac_cpp_err"; then
2953 # Broken: success on invalid input.
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Passes both tests.
2963 rm -f conftest.err conftest.$ac_ext
2966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2967 rm -f conftest.err conftest.$ac_ext
2968 if $ac_preproc_ok; then
2971 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2972 See \`config.log' for more details." >&5
2973 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2974 See \`config.log' for more details." >&2;}
2975 { (exit 1); exit 1; }; }
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 echo "$as_me:$LINENO: checking for inline" >&5
2985 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2986 if test "${ac_cv_c_inline+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 for ac_kw in inline __inline__ __inline; do
2991 cat >conftest.$ac_ext <<_ACEOF
2992 #line $LINENO "configure"
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3000 static $ac_kw foo_t static_foo () {return 0; }
3001 $ac_kw foo_t foo () {return 0; }
3005 rm -f conftest.$ac_objext
3006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007 (eval $ac_compile) 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_cv_c_inline=$ac_kw; break
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3023 rm -f conftest.$ac_objext conftest.$ac_ext
3027 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3028 echo "${ECHO_T}$ac_cv_c_inline" >&6
3029 case $ac_cv_c_inline in
3032 cat >>confdefs.h <<\_ACEOF
3036 *) cat >>confdefs.h <<_ACEOF
3037 #define inline $ac_cv_c_inline
3043 echo "$as_me:$LINENO: checking for long long int" >&5
3044 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3045 if test "${ac_cv_c_long_long+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 rm -f conftest.$ac_objext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066 (eval $ac_compile) 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_cv_c_long_long=yes
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3081 ac_cv_c_long_long=no
3083 rm -f conftest.$ac_objext conftest.$ac_ext
3085 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3086 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3087 if test $ac_cv_c_long_long = yes; then
3089 cat >>confdefs.h <<\_ACEOF
3090 #define HAVE_LONG_LONG 1
3094 echo "$as_me:$LINENO: checking for __int64" >&5
3095 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3096 if test "${ac_cv_c___int64+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 cat >conftest.$ac_ext <<_ACEOF
3100 #line $LINENO "configure"
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3115 rm -f conftest.$ac_objext
3116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117 (eval $ac_compile) 2>&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
3121 { ac_try='test -s conftest.$ac_objext'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3134 rm -f conftest.$ac_objext conftest.$ac_ext
3136 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3137 echo "${ECHO_T}$ac_cv_c___int64" >&6
3138 if test $ac_cv_c___int64 = yes; then
3140 cat >>confdefs.h <<\_ACEOF
3141 #define HAVE___INT64 1
3146 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3147 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3148 if test "${gcc_cv_c__bool+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 cat >conftest.$ac_ext <<_ACEOF
3152 #line $LINENO "configure"
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3167 rm -f conftest.$ac_objext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169 (eval $ac_compile) 2>&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3186 rm -f conftest.$ac_objext conftest.$ac_ext
3189 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3190 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3191 if test $gcc_cv_c__bool = yes; then
3193 cat >>confdefs.h <<\_ACEOF
3194 #define HAVE__BOOL 1
3200 # sizeof(char) is 1 by definition.
3201 echo "$as_me:$LINENO: checking size of void *" >&5
3202 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3203 if test "${ac_cv_sizeof_void_p+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3207 cat >conftest.$ac_ext <<_ACEOF
3208 #line $LINENO "configure"
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214 #include "confdefs.h"
3215 #include <sys/types.h>
3221 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228 (eval $ac_compile) 2>&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
3232 { ac_try='test -s conftest.$ac_objext'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; }; then
3238 ac_cv_sizeof_void_p=$ac_size
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3244 rm -f conftest.$ac_objext conftest.$ac_ext
3245 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3250 if test x$ac_cv_sizeof_void_p = x ; then
3251 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3252 echo "$as_me: error: cannot determine a size for void *" >&2;}
3253 { (exit 1); exit 1; }; }
3255 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3256 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3258 cat >>confdefs.h <<_ACEOF
3259 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3263 echo "$as_me:$LINENO: checking size of short" >&5
3264 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3265 if test "${ac_cv_sizeof_short+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line $LINENO "configure"
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276 #include "confdefs.h"
3277 #include <sys/types.h>
3283 switch (0) case 0: case (sizeof (short) == $ac_size):;
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 { ac_try='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 ac_cv_sizeof_short=$ac_size
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3306 rm -f conftest.$ac_objext conftest.$ac_ext
3307 if test x$ac_cv_sizeof_short != x ; then break; fi
3312 if test x$ac_cv_sizeof_short = x ; then
3313 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3314 echo "$as_me: error: cannot determine a size for short" >&2;}
3315 { (exit 1); exit 1; }; }
3317 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3318 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3320 cat >>confdefs.h <<_ACEOF
3321 #define SIZEOF_SHORT $ac_cv_sizeof_short
3325 echo "$as_me:$LINENO: checking size of int" >&5
3326 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3327 if test "${ac_cv_sizeof_int+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3331 cat >conftest.$ac_ext <<_ACEOF
3332 #line $LINENO "configure"
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3338 #include "confdefs.h"
3339 #include <sys/types.h>
3345 switch (0) case 0: case (sizeof (int) == $ac_size):;
3350 rm -f conftest.$ac_objext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352 (eval $ac_compile) 2>&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_sizeof_int=$ac_size
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3368 rm -f conftest.$ac_objext conftest.$ac_ext
3369 if test x$ac_cv_sizeof_int != x ; then break; fi
3374 if test x$ac_cv_sizeof_int = x ; then
3375 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3376 echo "$as_me: error: cannot determine a size for int" >&2;}
3377 { (exit 1); exit 1; }; }
3379 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3380 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3382 cat >>confdefs.h <<_ACEOF
3383 #define SIZEOF_INT $ac_cv_sizeof_int
3387 echo "$as_me:$LINENO: checking size of long" >&5
3388 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3389 if test "${ac_cv_sizeof_long+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3393 cat >conftest.$ac_ext <<_ACEOF
3394 #line $LINENO "configure"
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400 #include "confdefs.h"
3401 #include <sys/types.h>
3407 switch (0) case 0: case (sizeof (long) == $ac_size):;
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } &&
3418 { ac_try='test -s conftest.$ac_objext'
3419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; }; then
3424 ac_cv_sizeof_long=$ac_size
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3430 rm -f conftest.$ac_objext conftest.$ac_ext
3431 if test x$ac_cv_sizeof_long != x ; then break; fi
3436 if test x$ac_cv_sizeof_long = x ; then
3437 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3438 echo "$as_me: error: cannot determine a size for long" >&2;}
3439 { (exit 1); exit 1; }; }
3441 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3442 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3444 cat >>confdefs.h <<_ACEOF
3445 #define SIZEOF_LONG $ac_cv_sizeof_long
3449 if test $ac_cv_c_long_long = yes; then
3450 echo "$as_me:$LINENO: checking size of long long" >&5
3451 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3452 if test "${ac_cv_sizeof_long_long+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3456 cat >conftest.$ac_ext <<_ACEOF
3457 #line $LINENO "configure"
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3463 #include "confdefs.h"
3464 #include <sys/types.h>
3470 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3475 rm -f conftest.$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } &&
3481 { ac_try='test -s conftest.$ac_objext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_cv_sizeof_long_long=$ac_size
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3493 rm -f conftest.$ac_objext conftest.$ac_ext
3494 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3499 if test x$ac_cv_sizeof_long_long = x ; then
3500 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3501 echo "$as_me: error: cannot determine a size for long long" >&2;}
3502 { (exit 1); exit 1; }; }
3504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3505 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3507 cat >>confdefs.h <<_ACEOF
3508 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3513 if test $ac_cv_c___int64 = yes; then
3514 echo "$as_me:$LINENO: checking size of __int64" >&5
3515 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3516 if test "${ac_cv_sizeof___int64+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3520 cat >conftest.$ac_ext <<_ACEOF
3521 #line $LINENO "configure"
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #include "confdefs.h"
3528 #include <sys/types.h>
3534 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551 ac_cv_sizeof___int64=$ac_size
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3557 rm -f conftest.$ac_objext conftest.$ac_ext
3558 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3563 if test x$ac_cv_sizeof___int64 = x ; then
3564 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3565 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3566 { (exit 1); exit 1; }; }
3568 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3569 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3571 cat >>confdefs.h <<_ACEOF
3572 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3582 # See if GNAT has been installed
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3589 echo "$as_me:$LINENO: checking for $ac_word" >&5
3590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3591 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 if test -n "$GNATBIND"; then
3595 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 GNATBIND=$ac_cv_prog_GNATBIND
3614 if test -n "$GNATBIND"; then
3615 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3616 echo "${ECHO_T}$GNATBIND" >&6
3618 echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6
3623 if test -z "$ac_cv_prog_GNATBIND"; then
3624 ac_ct_GNATBIND=$GNATBIND
3625 # Extract the first word of "gnatbind", so it can be a program name with args.
3626 set dummy gnatbind; ac_word=$2
3627 echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3629 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 if test -n "$ac_ct_GNATBIND"; then
3633 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3652 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3653 if test -n "$ac_ct_GNATBIND"; then
3654 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3655 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3657 echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6
3661 GNATBIND=$ac_ct_GNATBIND
3663 GNATBIND="$ac_cv_prog_GNATBIND"
3666 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3667 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3668 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 cat >conftest.adb <<EOF
3672 procedure conftest is begin null; end conftest;
3674 gcc_cv_cc_supports_ada=no
3675 # There is a bug in old released versions of GCC which causes the
3676 # driver to exit successfully when the appropriate language module
3677 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3678 # Therefore we must check for the error message as well as an
3679 # unsuccessful exit.
3680 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3681 if test x"$errors" = x; then
3682 gcc_cv_cc_supports_ada=yes
3687 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3688 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3690 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3697 # ---------------------
3698 # Warnings and checking
3699 # ---------------------
3702 if test $ac_cv_prog_cc_no_long_long = yes ; then
3703 strict1_warn="-pedantic -Wno-long-long"
3707 # If the native compiler is GCC, we can enable warnings even in stage1.
3708 # That's useful for people building cross-compilers, or just running a
3711 if test "x$GCC" = "xyes"; then
3712 warn_cflags='$(GCC_WARN_CFLAGS)'
3716 # Enable -Werror in bootstrap stage2 and later.
3717 # Change the default to "no" on release branches.
3718 # Check whether --enable-werror or --disable-werror was given.
3719 if test "${enable_werror+set}" = set; then
3720 enableval="$enable_werror"
3725 if test x$enable_werror = xyes ; then
3730 # Enable expensive internal checks
3731 # Check whether --enable-checking or --disable-checking was given.
3732 if test "${enable_checking+set}" = set; then
3733 enableval="$enable_checking"
3737 ac_rtlflag_checking=
3739 ac_gc_always_collect=
3741 case "${enableval}" in
3742 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3743 ac_rtlflag_checking=1 ;;
3745 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3746 set fnord $enableval; shift
3751 misc) ac_checking=1 ;;
3752 tree) ac_tree_checking=1 ;;
3753 rtlflag) ac_rtlflag_checking=1 ;;
3754 rtl) ac_rtl_checking=1 ;;
3755 gc) ac_gc_checking=1 ;;
3756 gcac) ac_gc_always_collect=1 ;;
3757 fold) ac_fold_checking=1 ;;
3758 valgrind) ac_checking_valgrind=1 ;;
3759 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3760 echo "$as_me: error: unknown check category $check" >&2;}
3761 { (exit 1); exit 1; }; } ;;
3768 # Enable some checks by default for development versions of GCC
3769 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3772 if test x$ac_checking != x ; then
3774 cat >>confdefs.h <<\_ACEOF
3775 #define ENABLE_CHECKING 1
3778 nocommon_flag=-fno-common
3781 if test x$ac_tree_checking != x ; then
3783 cat >>confdefs.h <<\_ACEOF
3784 #define ENABLE_TREE_CHECKING 1
3788 if test x$ac_rtl_checking != x ; then
3790 cat >>confdefs.h <<\_ACEOF
3791 #define ENABLE_RTL_CHECKING 1
3795 if test x$ac_rtlflag_checking != x ; then
3797 cat >>confdefs.h <<\_ACEOF
3798 #define ENABLE_RTL_FLAG_CHECKING 1
3802 if test x$ac_gc_checking != x ; then
3804 cat >>confdefs.h <<\_ACEOF
3805 #define ENABLE_GC_CHECKING 1
3809 if test x$ac_gc_always_collect != x ; then
3811 cat >>confdefs.h <<\_ACEOF
3812 #define ENABLE_GC_ALWAYS_COLLECT 1
3816 if test x$ac_fold_checking != x ; then
3818 cat >>confdefs.h <<\_ACEOF
3819 #define ENABLE_FOLD_CHECKING 1
3823 valgrind_path_defines=
3827 echo "$as_me:$LINENO: checking for egrep" >&5
3828 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3829 if test "${ac_cv_prog_egrep+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3833 then ac_cv_prog_egrep='grep -E'
3834 else ac_cv_prog_egrep='egrep'
3837 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3838 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3839 EGREP=$ac_cv_prog_egrep
3842 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3844 if test "${ac_cv_header_stdc+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 cat >conftest.$ac_ext <<_ACEOF
3848 #line $LINENO "configure"
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 ac_cv_header_stdc=yes
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_cv_header_stdc=no
3886 rm -f conftest.$ac_objext conftest.$ac_ext
3888 if test $ac_cv_header_stdc = yes; then
3889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890 cat >conftest.$ac_ext <<_ACEOF
3891 #line $LINENO "configure"
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901 $EGREP "memchr" >/dev/null 2>&1; then
3904 ac_cv_header_stdc=no
3910 if test $ac_cv_header_stdc = yes; then
3911 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3912 cat >conftest.$ac_ext <<_ACEOF
3913 #line $LINENO "configure"
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923 $EGREP "free" >/dev/null 2>&1; then
3926 ac_cv_header_stdc=no
3932 if test $ac_cv_header_stdc = yes; then
3933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3934 if test "$cross_compiling" = yes; then
3937 cat >conftest.$ac_ext <<_ACEOF
3938 #line $LINENO "configure"
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3945 #if ((' ' & 0x0FF) == 0x020)
3946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3949 # define ISLOWER(c) \
3950 (('a' <= (c) && (c) <= 'i') \
3951 || ('j' <= (c) && (c) <= 'r') \
3952 || ('s' <= (c) && (c) <= 'z'))
3953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3961 for (i = 0; i < 256; i++)
3962 if (XOR (islower (i), ISLOWER (i))
3963 || toupper (i) != TOUPPER (i))
3968 rm -f conftest$ac_exeext
3969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3970 (eval $ac_link) 2>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3981 echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3986 ac_cv_header_stdc=no
3988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3992 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3993 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3994 if test $ac_cv_header_stdc = yes; then
3996 cat >>confdefs.h <<\_ACEOF
3997 #define STDC_HEADERS 1
4002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013 inttypes.h stdint.h unistd.h
4015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 echo "$as_me:$LINENO: checking for $ac_header" >&5
4017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 cat >conftest.$ac_ext <<_ACEOF
4022 #line $LINENO "configure"
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028 $ac_includes_default
4030 #include <$ac_header>
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 eval "$as_ac_Header=yes"
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 eval "$as_ac_Header=no"
4051 rm -f conftest.$ac_objext conftest.$ac_ext
4053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4056 cat >>confdefs.h <<_ACEOF
4057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4065 if test "${ac_cv_header_valgrind_h+set}" = set; then
4066 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4067 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4068 if test "${ac_cv_header_valgrind_h+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4072 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4074 # Is the header compilable?
4075 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4076 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4077 cat >conftest.$ac_ext <<_ACEOF
4078 #line $LINENO "configure"
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 $ac_includes_default
4085 #include <valgrind.h>
4087 rm -f conftest.$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 ac_header_compiler=yes
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 ac_header_compiler=no
4106 rm -f conftest.$ac_objext conftest.$ac_ext
4107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4108 echo "${ECHO_T}$ac_header_compiler" >&6
4110 # Is the header present?
4111 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4112 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4113 cat >conftest.$ac_ext <<_ACEOF
4114 #line $LINENO "configure"
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <valgrind.h>
4122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4125 grep -v '^ *+' conftest.er1 >conftest.err
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } >/dev/null; then
4130 if test -s conftest.err; then
4131 ac_cpp_err=$ac_c_preproc_warn_flag
4138 if test -z "$ac_cpp_err"; then
4139 ac_header_preproc=yes
4141 echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4144 ac_header_preproc=no
4146 rm -f conftest.err conftest.$ac_ext
4147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4148 echo "${ECHO_T}$ac_header_preproc" >&6
4150 # So? What about this header?
4151 case $ac_header_compiler:$ac_header_preproc in
4153 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4154 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4156 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4159 ## ------------------------------------ ##
4160 ## Report this to bug-autoconf@gnu.org. ##
4161 ## ------------------------------------ ##
4164 sed "s/^/$as_me: WARNING: /" >&2
4167 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4168 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4169 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4170 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4171 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4172 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4175 ## ------------------------------------ ##
4176 ## Report this to bug-autoconf@gnu.org. ##
4177 ## ------------------------------------ ##
4180 sed "s/^/$as_me: WARNING: /" >&2
4183 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4184 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4185 if test "${ac_cv_header_valgrind_h+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 ac_cv_header_valgrind_h=$ac_header_preproc
4190 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4191 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4194 if test $ac_cv_header_valgrind_h = yes; then
4202 if test x$ac_checking_valgrind != x ; then
4203 # It is certainly possible that there's valgrind but no valgrind.h.
4204 # GCC relies on making annotations so we must have both.
4205 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4206 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4207 cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 #include <valgrind/memcheck.h>
4215 #ifndef VALGRIND_DISCARD
4216 #error VALGRIND_DISCARD not defined
4219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } >/dev/null; then
4227 if test -s conftest.err; then
4228 ac_cpp_err=$ac_c_preproc_warn_flag
4235 if test -z "$ac_cpp_err"; then
4236 gcc_cv_header_valgrind_memcheck_h=yes
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 gcc_cv_header_valgrind_memcheck_h=no
4243 rm -f conftest.err conftest.$ac_ext
4244 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4245 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4246 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4247 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4248 cat >conftest.$ac_ext <<_ACEOF
4249 #line $LINENO "configure"
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 #include <memcheck.h>
4256 #ifndef VALGRIND_DISCARD
4257 #error VALGRIND_DISCARD not defined
4260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } >/dev/null; then
4268 if test -s conftest.err; then
4269 ac_cpp_err=$ac_c_preproc_warn_flag
4276 if test -z "$ac_cpp_err"; then
4277 gcc_cv_header_memcheck_h=yes
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 gcc_cv_header_memcheck_h=no
4284 rm -f conftest.err conftest.$ac_ext
4285 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4286 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4288 # Prepare PATH_SEPARATOR.
4289 # The user is always right.
4290 if test "${PATH_SEPARATOR+set}" != set; then
4291 echo "#! /bin/sh" >conf$$.sh
4292 echo "exit 0" >>conf$$.sh
4294 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4302 # Find out how to test for executable files. Don't use a zero-byte file,
4303 # as systems may use methods other than mode bits to determine executability.
4304 cat >conf$$.file <<_ASEOF
4308 chmod +x conf$$.file
4309 if test -x conf$$.file >/dev/null 2>&1; then
4310 ac_executable_p="test -x"
4312 ac_executable_p="test -f"
4316 # Extract the first word of "valgrind", so it can be a program name with args.
4317 set dummy valgrind; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_path_valgrind_path+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 case "$valgrind_path" in
4325 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4328 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4329 for ac_dir in $PATH; do
4331 test -z "$ac_dir" && ac_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4334 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4335 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4345 valgrind_path="$ac_cv_path_valgrind_path"
4346 if test -n "$valgrind_path"; then
4347 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4348 echo "${ECHO_T}$valgrind_path" >&6
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4354 if test "x$valgrind_path" = "x" \
4355 || (test $have_valgrind_h = no \
4356 && test $gcc_cv_header_memcheck_h = no \
4357 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4358 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4359 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4360 { (exit 1); exit 1; }; }
4362 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4363 valgrind_command="$valgrind_path -q"
4365 cat >>confdefs.h <<\_ACEOF
4366 #define ENABLE_VALGRIND_CHECKING 1
4369 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4371 cat >>confdefs.h <<\_ACEOF
4372 #define HAVE_VALGRIND_MEMCHECK_H 1
4376 if test $gcc_cv_header_memcheck_h = yes; then
4378 cat >>confdefs.h <<\_ACEOF
4379 #define HAVE_MEMCHECK_H 1
4387 # Enable code coverage collection
4388 # Check whether --enable-coverage or --disable-coverage was given.
4389 if test "${enable_coverage+set}" = set; then
4390 enableval="$enable_coverage"
4391 case "${enableval}" in
4393 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4396 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4399 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4400 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4401 { (exit 1); exit 1; }; }
4409 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4410 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4411 enableval="$enable_gather_detailed_mem_stats"
4414 enable_gather_detailed_mem_stats=no
4416 if test x$enable_gather_detailed_mem_stats = xyes ; then
4418 cat >>confdefs.h <<\_ACEOF
4419 #define GATHER_STATISTICS 1
4424 # -------------------------------
4425 # Miscenalleous configure options
4426 # -------------------------------
4430 # Check whether --with-stabs or --without-stabs was given.
4431 if test "${with_stabs+set}" = set; then
4432 withval="$with_stabs"
4438 # Determine whether or not multilibs are enabled.
4439 # Check whether --enable-multilib or --disable-multilib was given.
4440 if test "${enable_multilib+set}" = set; then
4441 enableval="$enable_multilib"
4448 # Enable __cxa_atexit for C++.
4449 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4450 if test "${enable___cxa_atexit+set}" = set; then
4451 enableval="$enable___cxa_atexit"
4456 # Pass with no value to take the default
4457 # Pass with a value to specify a thread package
4458 # Check whether --enable-threads or --disable-threads was given.
4459 if test "${enable_threads+set}" = set; then
4460 enableval="$enable_threads"
4465 # Save in case it gets overwritten in config.gcc
4466 enable_threads_flag=$enable_threads
4468 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4469 if test "${enable_objc_gc+set}" = set; then
4470 enableval="$enable_objc_gc"
4471 if test x$enable_objc_gc = xno; then
4481 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4482 if test "${with_dwarf2+set}" = set; then
4483 withval="$with_dwarf2"
4484 dwarf2="$with_dwarf2"
4489 # Check whether --enable-shared or --disable-shared was given.
4490 if test "${enable_shared+set}" = set; then
4491 enableval="$enable_shared"
4493 case $enable_shared in
4497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4498 for pkg in $enableval; do
4499 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4513 # Check whether --with-sysroot or --without-sysroot was given.
4514 if test "${with_sysroot+set}" = set; then
4515 withval="$with_sysroot"
4517 case ${with_sysroot} in
4518 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4519 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4522 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4523 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4525 if test "x$exec_prefix" = xNONE; then
4526 if test "x$prefix" = xNONE; then
4527 test_prefix=/usr/local
4532 test_prefix=$exec_prefix
4534 case ${TARGET_SYSTEM_ROOT} in
4535 "${test_prefix}"|"${test_prefix}/"*|\
4536 '${exec_prefix}'|'${exec_prefix}/'*)
4537 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4538 TARGET_SYSTEM_ROOT_DEFINE="$t"
4545 TARGET_SYSTEM_ROOT_DEFINE=
4546 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4553 # Build with intermodule optimisations
4554 # Check whether --enable-intermodule or --disable-intermodule was given.
4555 if test "${enable_intermodule+set}" = set; then
4556 enableval="$enable_intermodule"
4557 case ${enable_intermodule} in
4558 yes) onestep="-onestep";;
4566 # -------------------------
4567 # Checks for other programs
4568 # -------------------------
4570 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4571 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4572 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4573 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 cat >conftest.make <<\_ACEOF
4578 @echo 'ac_maketemp="$(MAKE)"'
4580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4581 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4582 if test -n "$ac_maketemp"; then
4583 eval ac_cv_prog_make_${ac_make}_set=yes
4585 eval ac_cv_prog_make_${ac_make}_set=no
4589 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4590 echo "$as_me:$LINENO: result: yes" >&5
4591 echo "${ECHO_T}yes" >&6
4594 echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6
4596 SET_MAKE="MAKE=${MAKE-make}"
4600 # Find some useful tools
4601 for ac_prog in gawk mawk nawk awk
4603 # Extract the first word of "$ac_prog", so it can be a program name with args.
4604 set dummy $ac_prog; ac_word=$2
4605 echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607 if test "${ac_cv_prog_AWK+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 if test -n "$AWK"; then
4611 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620 ac_cv_prog_AWK="$ac_prog"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 if test -n "$AWK"; then
4631 echo "$as_me:$LINENO: result: $AWK" >&5
4632 echo "${ECHO_T}$AWK" >&6
4634 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4638 test -n "$AWK" && break
4641 # We need awk to run opts.sh (to create options.c and options.h).
4642 # Bail out if it's missing.
4644 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4645 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4646 { (exit 1); exit 1; }; } ;;
4649 echo "$as_me:$LINENO: checking whether ln works" >&5
4650 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4651 if test "${gcc_cv_prog_LN+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 rm -f conftestdata_t
4655 echo >conftestdata_f
4656 if ln conftestdata_f conftestdata_t 2>/dev/null
4660 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4662 gcc_cv_prog_LN="ln -s"
4667 rm -f conftestdata_f conftestdata_t
4670 LN="$gcc_cv_prog_LN"
4671 if test "$gcc_cv_prog_LN" = "ln"; then
4672 echo "$as_me:$LINENO: result: yes" >&5
4673 echo "${ECHO_T}yes" >&6
4675 if test "$gcc_cv_prog_LN" = "ln -s"; then
4676 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4677 echo "${ECHO_T}no, using ln -s" >&6
4679 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4680 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4684 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4685 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4686 if test "${gcc_cv_prog_LN_S+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 rm -f conftestdata_t
4690 echo >conftestdata_f
4691 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4693 gcc_cv_prog_LN_S="ln -s"
4695 if ln conftestdata_f conftestdata_t 2>/dev/null
4702 rm -f conftestdata_f conftestdata_t
4705 LN_S="$gcc_cv_prog_LN_S"
4706 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4707 echo "$as_me:$LINENO: result: yes" >&5
4708 echo "${ECHO_T}yes" >&6
4710 if test "$gcc_cv_prog_LN_S" = "ln"; then
4711 echo "$as_me:$LINENO: result: no, using ln" >&5
4712 echo "${ECHO_T}no, using ln" >&6
4714 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4715 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4719 if test -n "$ac_tool_prefix"; then
4720 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4722 echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724 if test "${ac_cv_prog_RANLIB+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 if test -n "$RANLIB"; then
4728 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 RANLIB=$ac_cv_prog_RANLIB
4747 if test -n "$RANLIB"; then
4748 echo "$as_me:$LINENO: result: $RANLIB" >&5
4749 echo "${ECHO_T}$RANLIB" >&6
4751 echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6
4756 if test -z "$ac_cv_prog_RANLIB"; then
4757 ac_ct_RANLIB=$RANLIB
4758 # Extract the first word of "ranlib", so it can be a program name with args.
4759 set dummy ranlib; ac_word=$2
4760 echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4762 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 if test -n "$ac_ct_RANLIB"; then
4766 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775 ac_cv_prog_ac_ct_RANLIB="ranlib"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4785 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4786 if test -n "$ac_ct_RANLIB"; then
4787 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4788 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4790 echo "$as_me:$LINENO: result: no" >&5
4791 echo "${ECHO_T}no" >&6
4794 RANLIB=$ac_ct_RANLIB
4796 RANLIB="$ac_cv_prog_RANLIB"
4799 # Find a good install program. We prefer a C program (faster),
4800 # so one script is as good as another. But avoid the broken or
4801 # incompatible versions:
4802 # SysV /etc/install, /usr/sbin/install
4803 # SunOS /usr/etc/install
4804 # IRIX /sbin/install
4806 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4807 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4808 # ./install, which can be erroneously created by make from ./install.sh.
4809 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4810 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4811 if test -z "$INSTALL"; then
4812 if test "${ac_cv_path_install+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4816 for ac_dir in $PATH; do
4817 # Account for people who put trailing slashes in PATH elements.
4819 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4821 # OSF1 and SCO ODT 3.0 have their own names for install.
4822 for ac_prog in ginstall scoinst install; do
4823 if test -f $ac_dir/$ac_prog; then
4824 if test $ac_prog = install &&
4825 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4826 # AIX install. It has an incompatible calling convention.
4827 # OSF/1 installbsd also uses dspmsg, but is usable.
4830 ac_cv_path_install="$ac_dir/$ac_prog -c"
4841 if test "${ac_cv_path_install+set}" = set; then
4842 INSTALL="$ac_cv_path_install"
4844 # As a last resort, use the slow shell script. We don't cache a
4845 # path for INSTALL within a source directory, because that will
4846 # break other packages using the cache if that directory is
4847 # removed, or if the path is relative.
4848 INSTALL="$ac_install_sh"
4851 echo "$as_me:$LINENO: result: $INSTALL" >&5
4852 echo "${ECHO_T}$INSTALL" >&6
4854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4855 # It thinks the first close brace ends the variable substitution.
4856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4861 # See if cmp has --ignore-initial.
4862 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4863 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4864 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 gcc_cv_prog_cmp_skip=slowcompare
4870 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4871 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4874 gcc_cv_prog_cmp_skip=gnucompare
4877 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
4878 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4879 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4882 gcc_cv_prog_cmp_skip=fastcompare
4889 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4890 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4891 make_compare_target=$gcc_cv_prog_cmp_skip
4895 # See if we have the mktemp command.
4896 # Extract the first word of "mktemp", so it can be a program name with args.
4897 set dummy mktemp; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 if test -n "$have_mktemp_command"; then
4904 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_have_mktemp_command="yes"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4923 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4924 if test -n "$have_mktemp_command"; then
4925 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4926 echo "${ECHO_T}$have_mktemp_command" >&6
4928 echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4933 # Do we have a single-tree copy of texinfo?
4934 if test -f $srcdir/../texinfo/Makefile.in; then
4935 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4936 gcc_cv_prog_makeinfo_modern=yes
4937 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4938 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4940 # See if makeinfo has been installed and is modern enough
4941 # that we can use it.
4942 # Extract the first word of "makeinfo", so it can be a program name with args.
4943 set dummy makeinfo; ac_word=$2
4944 echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4946 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 if test -n "$MAKEINFO"; then
4950 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_MAKEINFO="makeinfo"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 MAKEINFO=$ac_cv_prog_MAKEINFO
4969 if test -n "$MAKEINFO"; then
4970 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4971 echo "${ECHO_T}$MAKEINFO" >&6
4973 echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4977 if test -n "$MAKEINFO"; then
4978 # Found it, now check the version.
4979 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4980 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4981 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 ac_prog_version=`$MAKEINFO --version 2>&1 |
4985 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4986 echo "configure:4986: version of makeinfo is $ac_prog_version" >&5
4987 case $ac_prog_version in
4988 '') gcc_cv_prog_makeinfo_modern=no;;
4990 gcc_cv_prog_makeinfo_modern=yes;;
4991 *) gcc_cv_prog_makeinfo_modern=no;;
4995 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
4996 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
4998 gcc_cv_prog_makeinfo_modern=no
5003 if test $gcc_cv_prog_makeinfo_modern = no; then
5004 { echo "$as_me:$LINENO: WARNING:
5005 *** Makeinfo is missing or too old.
5006 *** Info documentation will not be built." >&5
5007 echo "$as_me: WARNING:
5008 *** Makeinfo is missing or too old.
5009 *** Info documentation will not be built." >&2;}
5015 # Is pod2man recent enough to regenerate manpages?
5016 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5017 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5018 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5019 echo "$as_me:$LINENO: result: yes" >&5
5020 echo "${ECHO_T}yes" >&6
5021 GENERATED_MANPAGES=generated-manpages
5023 echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6
5029 if test -f $srcdir/../flex/skel.c; then
5030 FLEX='$(objdir)/../flex/flex'
5032 # Extract the first word of "flex", so it can be a program name with args.
5033 set dummy flex; ac_word=$2
5034 echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5036 if test "${ac_cv_prog_FLEX+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 if test -n "$FLEX"; then
5040 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_prog_FLEX="flex"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5059 FLEX=$ac_cv_prog_FLEX
5060 if test -n "$FLEX"; then
5061 echo "$as_me:$LINENO: result: $FLEX" >&5
5062 echo "${ECHO_T}$FLEX" >&6
5064 echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6
5071 # The -L switch is so bison can find its skeleton file.
5072 if test -f $srcdir/../bison/bison.simple; then
5073 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5075 # Extract the first word of "bison", so it can be a program name with args.
5076 set dummy bison; ac_word=$2
5077 echo "$as_me:$LINENO: checking for $ac_word" >&5
5078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5079 if test "${ac_cv_prog_BISON+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 if test -n "$BISON"; then
5083 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092 ac_cv_prog_BISON="bison"
5093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5102 BISON=$ac_cv_prog_BISON
5103 if test -n "$BISON"; then
5104 echo "$as_me:$LINENO: result: $BISON" >&5
5105 echo "${ECHO_T}$BISON" >&6
5107 echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6
5113 # --------------------
5114 # Checks for C headers
5115 # --------------------
5117 echo "$as_me:$LINENO: checking for GNU C library" >&5
5118 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5119 if test "${gcc_cv_glibc+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 cat >conftest.$ac_ext <<_ACEOF
5123 #line $LINENO "configure"
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 #include <features.h>
5134 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5135 #error Not a GNU C library system
5141 rm -f conftest.$ac_objext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143 (eval $ac_compile) 2>&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try='test -s conftest.$ac_objext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5160 rm -f conftest.$ac_objext conftest.$ac_ext
5163 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5164 echo "${ECHO_T}$gcc_cv_glibc" >&6
5165 if test $gcc_cv_glibc = yes; then
5167 cat >>confdefs.h <<\_ACEOF
5168 #define _GNU_SOURCE 1
5173 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5174 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5175 if test "${ac_cv_header_stdc+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 cat >conftest.$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 (eval $ac_compile) 2>&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } &&
5204 { ac_try='test -s conftest.$ac_objext'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 ac_cv_header_stdc=yes
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ac_cv_header_stdc=no
5217 rm -f conftest.$ac_objext conftest.$ac_ext
5219 if test $ac_cv_header_stdc = yes; then
5220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5221 cat >conftest.$ac_ext <<_ACEOF
5222 #line $LINENO "configure"
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5232 $EGREP "memchr" >/dev/null 2>&1; then
5235 ac_cv_header_stdc=no
5241 if test $ac_cv_header_stdc = yes; then
5242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5243 cat >conftest.$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254 $EGREP "free" >/dev/null 2>&1; then
5257 ac_cv_header_stdc=no
5263 if test $ac_cv_header_stdc = yes; then
5264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5265 if test "$cross_compiling" = yes; then
5268 cat >conftest.$ac_ext <<_ACEOF
5269 #line $LINENO "configure"
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5276 #if ((' ' & 0x0FF) == 0x020)
5277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5280 # define ISLOWER(c) \
5281 (('a' <= (c) && (c) <= 'i') \
5282 || ('j' <= (c) && (c) <= 'r') \
5283 || ('s' <= (c) && (c) <= 'z'))
5284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5292 for (i = 0; i < 256; i++)
5293 if (XOR (islower (i), ISLOWER (i))
5294 || toupper (i) != TOUPPER (i))
5299 rm -f conftest$ac_exeext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5301 (eval $ac_link) 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5312 echo "$as_me: program exited with status $ac_status" >&5
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5317 ac_cv_header_stdc=no
5319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5323 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5324 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5325 if test $ac_cv_header_stdc = yes; then
5327 cat >>confdefs.h <<\_ACEOF
5328 #define STDC_HEADERS 1
5333 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5334 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5335 if test "${ac_cv_header_time+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 cat >conftest.$ac_ext <<_ACEOF
5339 #line $LINENO "configure"
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 #include <sys/types.h>
5346 #include <sys/time.h>
5352 if ((struct tm *) 0)
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_cv_header_time=yes
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5375 ac_cv_header_time=no
5377 rm -f conftest.$ac_objext conftest.$ac_ext
5379 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5380 echo "${ECHO_T}$ac_cv_header_time" >&6
5381 if test $ac_cv_header_time = yes; then
5383 cat >>confdefs.h <<\_ACEOF
5384 #define TIME_WITH_SYS_TIME 1
5389 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5390 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5391 if test "${ac_cv_header_stdbool_h+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 cat >conftest.$ac_ext <<_ACEOF
5395 #line $LINENO "configure"
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401 #include <stdbool.h>
5410 rm -f conftest.$ac_objext
5411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412 (eval $ac_compile) 2>&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } &&
5416 { ac_try='test -s conftest.$ac_objext'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5422 ac_cv_header_stdbool_h=yes
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 ac_cv_header_stdbool_h=no
5429 rm -f conftest.$ac_objext conftest.$ac_ext
5431 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5432 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5433 if test $ac_cv_header_stdbool_h = yes; then
5435 cat >>confdefs.h <<\_ACEOF
5436 #define HAVE_STDBOOL_H 1
5441 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5442 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5443 if test "${gcc_cv_header_string+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 cat >conftest.$ac_ext <<_ACEOF
5447 #line $LINENO "configure"
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5454 #include <strings.h>
5463 rm -f conftest.$ac_objext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5465 (eval $ac_compile) 2>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 gcc_cv_header_string=yes
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 gcc_cv_header_string=no
5482 rm -f conftest.$ac_objext conftest.$ac_ext
5484 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5485 echo "${ECHO_T}$gcc_cv_header_string" >&6
5486 if test $gcc_cv_header_string = yes; then
5488 cat >>confdefs.h <<\_ACEOF
5489 #define STRING_WITH_STRINGS 1
5494 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5495 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5496 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 cat >conftest.$ac_ext <<_ACEOF
5500 #line $LINENO "configure"
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 #include <sys/types.h>
5507 #include <sys/wait.h>
5509 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5512 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5520 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5525 rm -f conftest.$ac_objext
5526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527 (eval $ac_compile) 2>&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -s conftest.$ac_objext'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 ac_cv_header_sys_wait_h=yes
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5542 ac_cv_header_sys_wait_h=no
5544 rm -f conftest.$ac_objext conftest.$ac_ext
5546 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5547 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5548 if test $ac_cv_header_sys_wait_h = yes; then
5550 cat >>confdefs.h <<\_ACEOF
5551 #define HAVE_SYS_WAIT_H 1
5577 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5578 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5579 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5580 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5584 echo "$as_me:$LINENO: checking for $ac_header" >&5
5585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5592 # Is the header compilable?
5593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5595 cat >conftest.$ac_ext <<_ACEOF
5596 #line $LINENO "configure"
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602 $ac_includes_default
5603 #include <$ac_header>
5605 rm -f conftest.$ac_objext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607 (eval $ac_compile) 2>&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } &&
5611 { ac_try='test -s conftest.$ac_objext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_header_compiler=yes
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5622 ac_header_compiler=no
5624 rm -f conftest.$ac_objext conftest.$ac_ext
5625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5626 echo "${ECHO_T}$ac_header_compiler" >&6
5628 # Is the header present?
5629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5631 cat >conftest.$ac_ext <<_ACEOF
5632 #line $LINENO "configure"
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <$ac_header>
5640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5643 grep -v '^ *+' conftest.er1 >conftest.err
5645 cat conftest.err >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } >/dev/null; then
5648 if test -s conftest.err; then
5649 ac_cpp_err=$ac_c_preproc_warn_flag
5656 if test -z "$ac_cpp_err"; then
5657 ac_header_preproc=yes
5659 echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5662 ac_header_preproc=no
5664 rm -f conftest.err conftest.$ac_ext
5665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5666 echo "${ECHO_T}$ac_header_preproc" >&6
5668 # So? What about this header?
5669 case $ac_header_compiler:$ac_header_preproc in
5671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5677 ## ------------------------------------ ##
5678 ## Report this to bug-autoconf@gnu.org. ##
5679 ## ------------------------------------ ##
5682 sed "s/^/$as_me: WARNING: /" >&2
5685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5693 ## ------------------------------------ ##
5694 ## Report this to bug-autoconf@gnu.org. ##
5695 ## ------------------------------------ ##
5698 sed "s/^/$as_me: WARNING: /" >&2
5701 echo "$as_me:$LINENO: checking for $ac_header" >&5
5702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 eval "$as_ac_Header=$ac_header_preproc"
5708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5713 cat >>confdefs.h <<_ACEOF
5714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5722 # Check for thread headers.
5723 if test "${ac_cv_header_thread_h+set}" = set; then
5724 echo "$as_me:$LINENO: checking for thread.h" >&5
5725 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5726 if test "${ac_cv_header_thread_h+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5730 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5732 # Is the header compilable?
5733 echo "$as_me:$LINENO: checking thread.h usability" >&5
5734 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line $LINENO "configure"
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 $ac_includes_default
5745 rm -f conftest.$ac_objext
5746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747 (eval $ac_compile) 2>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
5751 { ac_try='test -s conftest.$ac_objext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_header_compiler=yes
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5762 ac_header_compiler=no
5764 rm -f conftest.$ac_objext conftest.$ac_ext
5765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5766 echo "${ECHO_T}$ac_header_compiler" >&6
5768 # Is the header present?
5769 echo "$as_me:$LINENO: checking thread.h presence" >&5
5770 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5783 grep -v '^ *+' conftest.er1 >conftest.err
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } >/dev/null; then
5788 if test -s conftest.err; then
5789 ac_cpp_err=$ac_c_preproc_warn_flag
5796 if test -z "$ac_cpp_err"; then
5797 ac_header_preproc=yes
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 ac_header_preproc=no
5804 rm -f conftest.err conftest.$ac_ext
5805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5806 echo "${ECHO_T}$ac_header_preproc" >&6
5808 # So? What about this header?
5809 case $ac_header_compiler:$ac_header_preproc in
5811 { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5812 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5813 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5814 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5817 ## ------------------------------------ ##
5818 ## Report this to bug-autoconf@gnu.org. ##
5819 ## ------------------------------------ ##
5822 sed "s/^/$as_me: WARNING: /" >&2
5825 { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
5826 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
5827 { echo "$as_me:$LINENO: WARNING: thread.h: check for missing prerequisite headers?" >&5
5828 echo "$as_me: WARNING: thread.h: check for missing prerequisite headers?" >&2;}
5829 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5830 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5833 ## ------------------------------------ ##
5834 ## Report this to bug-autoconf@gnu.org. ##
5835 ## ------------------------------------ ##
5838 sed "s/^/$as_me: WARNING: /" >&2
5841 echo "$as_me:$LINENO: checking for thread.h" >&5
5842 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5843 if test "${ac_cv_header_thread_h+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 ac_cv_header_thread_h=$ac_header_preproc
5848 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5849 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5852 if test $ac_cv_header_thread_h = yes; then
5859 if test "${ac_cv_header_pthread_h+set}" = set; then
5860 echo "$as_me:$LINENO: checking for pthread.h" >&5
5861 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5862 if test "${ac_cv_header_pthread_h+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5866 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5868 # Is the header compilable?
5869 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5870 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5871 cat >conftest.$ac_ext <<_ACEOF
5872 #line $LINENO "configure"
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878 $ac_includes_default
5879 #include <pthread.h>
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try='test -s conftest.$ac_objext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 ac_header_compiler=yes
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 ac_header_compiler=no
5900 rm -f conftest.$ac_objext conftest.$ac_ext
5901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5902 echo "${ECHO_T}$ac_header_compiler" >&6
5904 # Is the header present?
5905 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5906 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5907 cat >conftest.$ac_ext <<_ACEOF
5908 #line $LINENO "configure"
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <pthread.h>
5916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5919 grep -v '^ *+' conftest.er1 >conftest.err
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } >/dev/null; then
5924 if test -s conftest.err; then
5925 ac_cpp_err=$ac_c_preproc_warn_flag
5932 if test -z "$ac_cpp_err"; then
5933 ac_header_preproc=yes
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 ac_header_preproc=no
5940 rm -f conftest.err conftest.$ac_ext
5941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5942 echo "${ECHO_T}$ac_header_preproc" >&6
5944 # So? What about this header?
5945 case $ac_header_compiler:$ac_header_preproc in
5947 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5948 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5949 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5950 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5953 ## ------------------------------------ ##
5954 ## Report this to bug-autoconf@gnu.org. ##
5955 ## ------------------------------------ ##
5958 sed "s/^/$as_me: WARNING: /" >&2
5961 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5962 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5963 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5964 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5965 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5966 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5969 ## ------------------------------------ ##
5970 ## Report this to bug-autoconf@gnu.org. ##
5971 ## ------------------------------------ ##
5974 sed "s/^/$as_me: WARNING: /" >&2
5977 echo "$as_me:$LINENO: checking for pthread.h" >&5
5978 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5979 if test "${ac_cv_header_pthread_h+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 ac_cv_header_pthread_h=$ac_header_preproc
5984 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5985 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5988 if test $ac_cv_header_pthread_h = yes; then
5996 # These tests can't be done till we know if we have limits.h.
5997 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5998 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5999 if test "${gcc_cv_decl_char_bit+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 cat >conftest.$ac_ext <<_ACEOF
6003 #line $LINENO "configure"
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 #ifdef HAVE_LIMITS_H
6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017 $EGREP "found" >/dev/null 2>&1; then
6018 gcc_cv_decl_char_bit=yes
6020 gcc_cv_decl_char_bit=no
6026 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6027 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6028 if test $gcc_cv_decl_char_bit = no; then
6029 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6030 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6031 if test "${gcc_cv_c_nbby+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 while test $i -lt 65; do
6037 cat >conftest.$ac_ext <<_ACEOF
6038 #line $LINENO "configure"
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6049 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6050 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 gcc_cv_c_nbby=$i; break
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6074 rm -f conftest.$ac_objext conftest.$ac_ext
6077 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6080 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6081 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6082 if test $gcc_cv_c_nbby = failed; then
6083 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6084 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6085 { (exit 1); exit 1; }; }
6088 cat >>confdefs.h <<_ACEOF
6089 #define CHAR_BIT $gcc_cv_c_nbby
6094 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6095 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6096 if test "${ac_cv_c_bigendian+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 ac_cv_c_bigendian=unknown
6100 # See if sys/param.h defines the BYTE_ORDER macro.
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <sys/types.h>
6109 #include <sys/param.h>
6114 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6121 rm -f conftest.$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -s conftest.$ac_objext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 # It does; now see whether it defined to BIG_ENDIAN or not.
6134 cat >conftest.$ac_ext <<_ACEOF
6135 #line $LINENO "configure"
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <sys/types.h>
6142 #include <sys/param.h>
6147 #if BYTE_ORDER != BIG_ENDIAN
6154 rm -f conftest.$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_c_bigendian=yes
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 ac_cv_c_bigendian=no
6173 rm -f conftest.$ac_objext conftest.$ac_ext
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6179 rm -f conftest.$ac_objext conftest.$ac_ext
6180 if test $ac_cv_c_bigendian = unknown; then
6181 if test "$cross_compiling" = yes; then
6182 echo $ac_n "cross-compiling... " 2>&6
6184 cat >conftest.$ac_ext <<_ACEOF
6185 #line $LINENO "configure"
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6192 /* Are we little or big endian? From Harbison&Steele. */
6196 char c[sizeof (long)];
6199 exit (u.c[sizeof (long) - 1] == 1);
6202 rm -f conftest$ac_exeext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204 (eval $ac_link) 2>&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 ac_cv_c_bigendian=no
6215 echo "$as_me: program exited with status $ac_status" >&5
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6220 ac_cv_c_bigendian=yes
6222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6226 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6227 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6228 if test $ac_cv_c_bigendian = unknown; then
6229 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6230 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6232 cat >conftest.c <<EOF
6233 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6234 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6235 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6236 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6237 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6238 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6239 int main() { _ascii (); _ebcdic (); return 0; }
6241 if test -f conftest.c ; then
6242 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6243 if test `grep -l BIGenDianSyS conftest.o` ; then
6244 echo $ac_n ' big endian probe OK, ' 1>&6
6245 ac_cv_c_bigendian=yes
6247 if test `grep -l LiTTleEnDian conftest.o` ; then
6248 echo $ac_n ' little endian probe OK, ' 1>&6
6249 if test $ac_cv_c_bigendian = yes ; then
6250 ac_cv_c_bigendian=unknown;
6252 ac_cv_c_bigendian=no
6255 echo $ac_n 'guessing bigendian ... ' >&6
6258 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6259 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6261 if test $ac_cv_c_bigendian = yes; then
6263 cat >>confdefs.h <<\_ACEOF
6264 #define WORDS_BIGENDIAN 1
6268 cat >>confdefs.h <<\_ACEOF
6269 #define HOST_WORDS_BIG_ENDIAN 1
6277 cat >>confdefs.h <<_ACEOF
6278 #define BYTEORDER $BYTEORDER
6281 if test $ac_cv_c_bigendian = unknown; then
6282 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6283 echo "$as_me: error: unknown endianess - sorry" >&2;}
6284 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6292 # Stage specific cflags for build.
6296 if test x$GCC = xyes
6298 stage1_cflags="-Wa,-J"
6304 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6305 # sources; use -no-cpp-precomp to get to GNU cpp.
6306 # Apple's GCC has bugs in designated initializer handling, so disable
6308 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6313 # These libraries may be used by collect2.
6314 # We may need a special search path to get them linked.
6315 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6316 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6317 if test "${gcc_cv_collect2_libs+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 for libs in '' -lld -lmld \
6322 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6323 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6326 cat >conftest.$ac_ext <<_ACEOF
6327 #line $LINENO "configure"
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6334 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6351 (eval $ac_link) 2>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -s conftest$ac_exeext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 gcc_cv_collect2_libs="$libs"; break
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6370 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6372 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6373 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6374 case $gcc_cv_collect2_libs in
6376 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6380 # When building Ada code on Alpha, we need exc_resume which is usually in
6381 # -lexc. So test for it.
6384 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6385 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6386 if test "${ac_cv_search_exc_resume+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 ac_func_search_save_LIBS=$LIBS
6390 ac_cv_search_exc_resume=no
6391 cat >conftest.$ac_ext <<_ACEOF
6392 #line $LINENO "configure"
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6399 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */
6414 rm -f conftest.$ac_objext conftest$ac_exeext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6416 (eval $ac_link) 2>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -s conftest$ac_exeext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_search_exc_resume="none required"
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6433 if test "$ac_cv_search_exc_resume" = no; then
6434 for ac_lib in exc; do
6435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6436 cat >conftest.$ac_ext <<_ACEOF
6437 #line $LINENO "configure"
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6444 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6459 rm -f conftest.$ac_objext conftest$ac_exeext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -s conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 ac_cv_search_exc_resume="-l$ac_lib"
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6481 LIBS=$ac_func_search_save_LIBS
6483 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6484 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6485 if test "$ac_cv_search_exc_resume" != no; then
6486 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6494 # Some systems put ldexp and frexp in libm instead of libc; assume
6495 # they're both in the same place. jcf-dump needs them.
6498 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6499 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6500 if test "${ac_cv_search_ldexp+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 ac_func_search_save_LIBS=$LIBS
6504 ac_cv_search_ldexp=no
6505 cat >conftest.$ac_ext <<_ACEOF
6506 #line $LINENO "configure"
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6513 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -s conftest$ac_exeext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_search_ldexp="none required"
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6547 if test "$ac_cv_search_ldexp" = no; then
6549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6550 cat >conftest.$ac_ext <<_ACEOF
6551 #line $LINENO "configure"
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6558 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6573 rm -f conftest.$ac_objext conftest$ac_exeext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -s conftest$ac_exeext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_cv_search_ldexp="-l$ac_lib"
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6595 LIBS=$ac_func_search_save_LIBS
6597 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6598 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6599 if test "$ac_cv_search_ldexp" != no; then
6600 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6608 # Use <inttypes.h> only if it exists,
6609 # doesn't clash with <sys/types.h>, and declares intmax_t.
6610 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6611 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6612 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 cat >conftest.$ac_ext <<_ACEOF
6616 #line $LINENO "configure"
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <sys/types.h>
6623 #include <inttypes.h>
6632 rm -f conftest.$ac_objext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6634 (eval $ac_compile) 2>&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try='test -s conftest.$ac_objext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 gcc_cv_header_inttypes_h=yes
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6649 gcc_cv_header_inttypes_h=no
6651 rm -f conftest.$ac_objext conftest.$ac_ext
6654 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6655 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6656 if test $gcc_cv_header_inttypes_h = yes; then
6658 cat >>confdefs.h <<\_ACEOF
6659 #define HAVE_INTTYPES_H 1
6690 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6691 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6692 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6693 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6697 echo "$as_me:$LINENO: checking for $ac_func" >&5
6698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6699 if eval "test \"\${$as_ac_var+set}\" = set"; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 /* System header to define __stub macros and hopefully few prototypes,
6710 which can conflict with char $ac_func (); below.
6711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6712 <limits.h> exists even on freestanding compilers. */
6714 # include <limits.h>
6716 # include <assert.h>
6718 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6726 /* The GNU C library defines this for functions which it implements
6727 to always fail with ENOSYS. Some functions are actually named
6728 something starting with __ and the normal name is an alias. */
6729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6732 char (*f) () = $ac_func;
6741 return f != $ac_func;
6746 rm -f conftest.$ac_objext conftest$ac_exeext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6748 (eval $ac_link) 2>&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } &&
6752 { ac_try='test -s conftest$ac_exeext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 eval "$as_ac_var=yes"
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 eval "$as_ac_var=no"
6765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6769 if test `eval echo '${'$as_ac_var'}'` = yes; then
6770 cat >>confdefs.h <<_ACEOF
6771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6778 if test x$ac_cv_func_mbstowcs = xyes; then
6779 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6780 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6781 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 if test "$cross_compiling" = yes; then
6785 gcc_cv_func_mbstowcs_works=yes
6787 cat >conftest.$ac_ext <<_ACEOF
6788 #line $LINENO "configure"
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6801 rm -f conftest$ac_exeext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6803 (eval $ac_link) 2>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 gcc_cv_func_mbstowcs_works=yes
6814 echo "$as_me: program exited with status $ac_status" >&5
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6819 gcc_cv_func_mbstowcs_works=no
6821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6824 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6825 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6826 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6828 cat >>confdefs.h <<\_ACEOF
6829 #define HAVE_WORKING_MBSTOWCS 1
6835 echo "$as_me:$LINENO: checking for ssize_t" >&5
6836 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6837 if test "${ac_cv_type_ssize_t+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 cat >conftest.$ac_ext <<_ACEOF
6841 #line $LINENO "configure"
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 $ac_includes_default
6853 if (sizeof (ssize_t))
6859 rm -f conftest.$ac_objext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861 (eval $ac_compile) 2>&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } &&
6865 { ac_try='test -s conftest.$ac_objext'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
6871 ac_cv_type_ssize_t=yes
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6876 ac_cv_type_ssize_t=no
6878 rm -f conftest.$ac_objext conftest.$ac_ext
6880 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6881 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6882 if test $ac_cv_type_ssize_t = yes; then
6886 cat >>confdefs.h <<_ACEOF
6893 # Try to determine the array type of the second argument of getgroups
6894 # for the target system (int or gid_t).
6895 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6896 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6897 if test "${ac_cv_type_uid_t+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 cat >conftest.$ac_ext <<_ACEOF
6901 #line $LINENO "configure"
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 #include <sys/types.h>
6910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911 $EGREP "uid_t" >/dev/null 2>&1; then
6912 ac_cv_type_uid_t=yes
6919 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6920 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6921 if test $ac_cv_type_uid_t = no; then
6923 cat >>confdefs.h <<\_ACEOF
6928 cat >>confdefs.h <<\_ACEOF
6934 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6935 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6936 if test "${ac_cv_type_getgroups+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 if test "$cross_compiling" = yes; then
6940 ac_cv_type_getgroups=cross
6942 cat >conftest.$ac_ext <<_ACEOF
6943 #line $LINENO "configure"
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 /* Thanks to Mike Rendell for this test. */
6950 #include <sys/types.h>
6953 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6960 union { gid_t gval; long lval; } val;
6963 for (i = 0; i < NGID; i++)
6964 gidset[i] = val.gval;
6965 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6967 /* Exit non-zero if getgroups seems to require an array of ints. This
6968 happens when gid_t is short but getgroups modifies an array of ints. */
6969 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6972 rm -f conftest$ac_exeext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974 (eval $ac_link) 2>&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6983 ac_cv_type_getgroups=gid_t
6985 echo "$as_me: program exited with status $ac_status" >&5
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6990 ac_cv_type_getgroups=int
6992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6994 if test $ac_cv_type_getgroups = cross; then
6995 cat >conftest.$ac_ext <<_ACEOF
6996 #line $LINENO "configure"
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7006 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7007 ac_cv_type_getgroups=gid_t
7009 ac_cv_type_getgroups=int
7015 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7016 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7018 cat >>confdefs.h <<_ACEOF
7019 #define GETGROUPS_T $ac_cv_type_getgroups
7023 if test "${target}" = "${build}"; then
7024 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7027 # This condition may need some tweaking. It should include all
7028 # targets where the array type of the second argument of getgroups
7029 # is int and the type of gid_t is not equivalent to int.
7030 *-*-sunos* | *-*-ultrix*)
7031 TARGET_GETGROUPS_T=int
7034 TARGET_GETGROUPS_T=gid_t
7040 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7041 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7042 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 if test "$cross_compiling" = yes; then
7046 gcc_cv_func_printf_ptr=no
7048 cat >conftest.$ac_ext <<_ACEOF
7049 #line $LINENO "configure"
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7060 char *p = buf, *q = NULL;
7061 sprintf(buf, "%p", p);
7062 sscanf(buf, "%p", &q);
7066 rm -f conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 gcc_cv_func_printf_ptr=yes
7079 echo "$as_me: program exited with status $ac_status" >&5
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7084 gcc_cv_func_printf_ptr=no
7086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7088 rm -f core core.* *.core
7090 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7091 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7092 if test $gcc_cv_func_printf_ptr = yes ; then
7094 cat >>confdefs.h <<\_ACEOF
7095 #define HAVE_PRINTF_PTR 1
7100 if test $ac_cv_header_sys_mman_h != yes \
7101 || test $ac_cv_func_mmap != yes; then
7102 gcc_cv_func_mmap_file=no
7103 gcc_cv_func_mmap_dev_zero=no
7104 gcc_cv_func_mmap_anon=no
7106 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7107 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7108 if test "${gcc_cv_func_mmap_file+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 # Add a system to this blacklist if
7112 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7113 # memory area containing the same data that you'd get if you applied
7114 # read() to the same fd. The only system known to have a problem here
7115 # is VMS, where text files have record structure.
7118 gcc_cv_func_mmap_file=no ;;
7120 gcc_cv_func_mmap_file=yes;;
7123 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7124 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7125 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7126 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7127 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 # Add a system to this blacklist if it has mmap() but /dev/zero
7131 # does not exist, or if mmapping /dev/zero does not give anonymous
7132 # zeroed pages with both the following properties:
7133 # 1. If you map N consecutive pages in with one call, and then
7134 # unmap any subset of those pages, the pages that were not
7135 # explicitly unmapped remain accessible.
7136 # 2. If you map two adjacent blocks of memory and then unmap them
7137 # both at once, they must both go away.
7138 # Systems known to be in this category are Windows (all variants),
7141 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7142 gcc_cv_func_mmap_dev_zero=no ;;
7144 gcc_cv_func_mmap_dev_zero=yes;;
7147 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7148 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7150 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7151 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7152 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7153 if test "${gcc_cv_decl_map_anon+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 cat >conftest.$ac_ext <<_ACEOF
7157 #line $LINENO "configure"
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #include <sys/types.h>
7164 #include <sys/mman.h>
7167 #ifndef MAP_ANONYMOUS
7168 #define MAP_ANONYMOUS MAP_ANON
7174 int n = MAP_ANONYMOUS;
7179 rm -f conftest.$ac_objext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181 (eval $ac_compile) 2>&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 gcc_cv_decl_map_anon=yes
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 gcc_cv_decl_map_anon=no
7198 rm -f conftest.$ac_objext conftest.$ac_ext
7200 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7201 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7203 if test $gcc_cv_decl_map_anon = no; then
7204 gcc_cv_func_mmap_anon=no
7206 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7207 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7208 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7212 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7213 # doesn't give anonymous zeroed pages with the same properties listed
7214 # above for use of /dev/zero.
7215 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7217 vms* | cygwin* | pe | mingw* | sco* | udk* )
7218 gcc_cv_func_mmap_anon=no ;;
7220 gcc_cv_func_mmap_anon=yes;;
7223 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7224 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7228 if test $gcc_cv_func_mmap_file = yes; then
7230 cat >>confdefs.h <<\_ACEOF
7231 #define HAVE_MMAP_FILE 1
7235 if test $gcc_cv_func_mmap_dev_zero = yes; then
7237 cat >>confdefs.h <<\_ACEOF
7238 #define HAVE_MMAP_DEV_ZERO 1
7242 if test $gcc_cv_func_mmap_anon = yes; then
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_MMAP_ANON 1
7253 # Under VMS, vfork works very differently than on Unix. The standard test
7254 # won't work, and it isn't easily adaptable. It makes more sense to
7256 ac_cv_func_vfork_works=yes
7259 echo "$as_me:$LINENO: checking for pid_t" >&5
7260 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7261 if test "${ac_cv_type_pid_t+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 cat >conftest.$ac_ext <<_ACEOF
7265 #line $LINENO "configure"
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 $ac_includes_default
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_type_pid_t=yes
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7302 rm -f conftest.$ac_objext conftest.$ac_ext
7304 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7305 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7306 if test $ac_cv_type_pid_t = yes; then
7310 cat >>confdefs.h <<_ACEOF
7318 for ac_header in unistd.h vfork.h
7320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7322 echo "$as_me:$LINENO: checking for $ac_header" >&5
7323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7330 # Is the header compilable?
7331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7333 cat >conftest.$ac_ext <<_ACEOF
7334 #line $LINENO "configure"
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 $ac_includes_default
7341 #include <$ac_header>
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try='test -s conftest.$ac_objext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_header_compiler=yes
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 ac_header_compiler=no
7362 rm -f conftest.$ac_objext conftest.$ac_ext
7363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7364 echo "${ECHO_T}$ac_header_compiler" >&6
7366 # Is the header present?
7367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7369 cat >conftest.$ac_ext <<_ACEOF
7370 #line $LINENO "configure"
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 #include <$ac_header>
7378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7381 grep -v '^ *+' conftest.er1 >conftest.err
7383 cat conftest.err >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } >/dev/null; then
7386 if test -s conftest.err; then
7387 ac_cpp_err=$ac_c_preproc_warn_flag
7394 if test -z "$ac_cpp_err"; then
7395 ac_header_preproc=yes
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7400 ac_header_preproc=no
7402 rm -f conftest.err conftest.$ac_ext
7403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7404 echo "${ECHO_T}$ac_header_preproc" >&6
7406 # So? What about this header?
7407 case $ac_header_compiler:$ac_header_preproc in
7409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7415 ## ------------------------------------ ##
7416 ## Report this to bug-autoconf@gnu.org. ##
7417 ## ------------------------------------ ##
7420 sed "s/^/$as_me: WARNING: /" >&2
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7431 ## ------------------------------------ ##
7432 ## Report this to bug-autoconf@gnu.org. ##
7433 ## ------------------------------------ ##
7436 sed "s/^/$as_me: WARNING: /" >&2
7439 echo "$as_me:$LINENO: checking for $ac_header" >&5
7440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 eval "$as_ac_Header=$ac_header_preproc"
7446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7451 cat >>confdefs.h <<_ACEOF
7452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7461 for ac_func in fork vfork
7463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7464 echo "$as_me:$LINENO: checking for $ac_func" >&5
7465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7466 if eval "test \"\${$as_ac_var+set}\" = set"; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 cat >conftest.$ac_ext <<_ACEOF
7470 #line $LINENO "configure"
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 /* System header to define __stub macros and hopefully few prototypes,
7477 which can conflict with char $ac_func (); below.
7478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7479 <limits.h> exists even on freestanding compilers. */
7481 # include <limits.h>
7483 # include <assert.h>
7485 /* Override any gcc2 internal prototype to avoid an error. */
7490 /* We use char because int might match the return type of a gcc2
7491 builtin and then its argument prototype would still apply. */
7493 /* The GNU C library defines this for functions which it implements
7494 to always fail with ENOSYS. Some functions are actually named
7495 something starting with __ and the normal name is an alias. */
7496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7499 char (*f) () = $ac_func;
7508 return f != $ac_func;
7513 rm -f conftest.$ac_objext conftest$ac_exeext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515 (eval $ac_link) 2>&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } &&
7519 { ac_try='test -s conftest$ac_exeext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 eval "$as_ac_var=yes"
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 eval "$as_ac_var=no"
7532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7536 if test `eval echo '${'$as_ac_var'}'` = yes; then
7537 cat >>confdefs.h <<_ACEOF
7538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7544 if test "x$ac_cv_func_fork" = xyes; then
7545 echo "$as_me:$LINENO: checking for working fork" >&5
7546 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7547 if test "${ac_cv_func_fork_works+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 if test "$cross_compiling" = yes; then
7551 ac_cv_func_fork_works=cross
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* By Ruediger Kuhlmann. */
7555 #include <sys/types.h>
7557 # include <unistd.h>
7559 /* Some systems only have a dummy stub for fork() */
7567 rm -f conftest$ac_exeext
7568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7569 (eval $ac_link) 2>&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; }; then
7578 ac_cv_func_fork_works=yes
7580 echo "$as_me: program exited with status $ac_status" >&5
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7585 ac_cv_func_fork_works=no
7587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7590 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7591 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7594 ac_cv_func_fork_works=$ac_cv_func_fork
7596 if test "x$ac_cv_func_fork_works" = xcross; then
7598 *-*-amigaos* | *-*-msdosdjgpp*)
7599 # Override, as these systems have only a dummy fork() stub
7600 ac_cv_func_fork_works=no
7603 ac_cv_func_fork_works=yes
7606 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7607 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7609 ac_cv_func_vfork_works=$ac_cv_func_vfork
7610 if test "x$ac_cv_func_vfork" = xyes; then
7611 echo "$as_me:$LINENO: checking for working vfork" >&5
7612 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7613 if test "${ac_cv_func_vfork_works+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 if test "$cross_compiling" = yes; then
7617 ac_cv_func_vfork_works=cross
7619 cat >conftest.$ac_ext <<_ACEOF
7620 #line $LINENO "configure"
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 /* Thanks to Paul Eggert for this test. */
7629 #include <sys/types.h>
7630 #include <sys/stat.h>
7631 #include <sys/wait.h>
7633 # include <unistd.h>
7638 /* On some sparc systems, changes by the child to local and incoming
7639 argument registers are propagated back to the parent. The compiler
7640 is told about this with #include <vfork.h>, but some compilers
7641 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7642 static variable whose address is put into a register that is
7643 clobbered by the vfork. */
7646 sparc_address_test (int arg)
7648 sparc_address_test (arg) int arg;
7669 pid_t parent = getpid ();
7672 sparc_address_test (0);
7677 /* Here is another test for sparc vfork register problems. This
7678 test uses lots of local variables, at least as many local
7679 variables as main has allocated so far including compiler
7680 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7681 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7682 reuse the register of parent for one of the local variables,
7683 since it will think that parent can't possibly be used any more
7684 in this routine. Assigning to the local variable will thus
7685 munge parent in the parent process. */
7687 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7688 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7689 /* Convince the compiler that p..p7 are live; otherwise, it might
7690 use the same hardware register for all 8 local variables. */
7691 if (p != p1 || p != p2 || p != p3 || p != p4
7692 || p != p5 || p != p6 || p != p7)
7695 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7696 from child file descriptors. If the child closes a descriptor
7697 before it execs or exits, this munges the parent's descriptor
7698 as well. Test for this by closing stdout in the child. */
7699 _exit(close(fileno(stdout)) != 0);
7704 while (wait(&status) != child)
7707 /* Was there some problem with vforking? */
7710 /* Did the child fail? (This shouldn't happen.) */
7713 /* Did the vfork/compiler bug occur? */
7714 || parent != getpid()
7716 /* Did the file descriptor bug occur? */
7717 || fstat(fileno(stdout), &st) != 0
7722 rm -f conftest$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724 (eval $ac_link) 2>&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7733 ac_cv_func_vfork_works=yes
7735 echo "$as_me: program exited with status $ac_status" >&5
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7740 ac_cv_func_vfork_works=no
7742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7745 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7746 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7749 if test "x$ac_cv_func_fork_works" = xcross; then
7750 ac_cv_func_vfork_works=ac_cv_func_vfork
7751 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7752 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7755 if test "x$ac_cv_func_vfork_works" = xyes; then
7757 cat >>confdefs.h <<\_ACEOF
7758 #define HAVE_WORKING_VFORK 1
7763 cat >>confdefs.h <<\_ACEOF
7768 if test "x$ac_cv_func_fork_works" = xyes; then
7770 cat >>confdefs.h <<\_ACEOF
7771 #define HAVE_WORKING_FORK 1
7779 am_cv_lib_iconv_ldpath=
7781 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7782 if test "${with_libiconv_prefix+set}" = set; then
7783 withval="$with_libiconv_prefix"
7785 for dir in `echo "$withval" | tr : ' '`; do
7786 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7787 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7793 for ac_header in iconv.h
7795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7797 echo "$as_me:$LINENO: checking for $ac_header" >&5
7798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7805 # Is the header compilable?
7806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7808 cat >conftest.$ac_ext <<_ACEOF
7809 #line $LINENO "configure"
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 $ac_includes_default
7816 #include <$ac_header>
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -s conftest.$ac_objext'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7830 ac_header_compiler=yes
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7835 ac_header_compiler=no
7837 rm -f conftest.$ac_objext conftest.$ac_ext
7838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7839 echo "${ECHO_T}$ac_header_compiler" >&6
7841 # Is the header present?
7842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7844 cat >conftest.$ac_ext <<_ACEOF
7845 #line $LINENO "configure"
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7851 #include <$ac_header>
7853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7856 grep -v '^ *+' conftest.er1 >conftest.err
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } >/dev/null; then
7861 if test -s conftest.err; then
7862 ac_cpp_err=$ac_c_preproc_warn_flag
7869 if test -z "$ac_cpp_err"; then
7870 ac_header_preproc=yes
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7875 ac_header_preproc=no
7877 rm -f conftest.err conftest.$ac_ext
7878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7879 echo "${ECHO_T}$ac_header_preproc" >&6
7881 # So? What about this header?
7882 case $ac_header_compiler:$ac_header_preproc in
7884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7890 ## ------------------------------------ ##
7891 ## Report this to bug-autoconf@gnu.org. ##
7892 ## ------------------------------------ ##
7895 sed "s/^/$as_me: WARNING: /" >&2
7898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7906 ## ------------------------------------ ##
7907 ## Report this to bug-autoconf@gnu.org. ##
7908 ## ------------------------------------ ##
7911 sed "s/^/$as_me: WARNING: /" >&2
7914 echo "$as_me:$LINENO: checking for $ac_header" >&5
7915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 eval "$as_ac_Header=$ac_header_preproc"
7921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7926 cat >>confdefs.h <<_ACEOF
7927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7935 echo "$as_me:$LINENO: checking for iconv" >&5
7936 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7937 if test "${am_cv_func_iconv+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 am_cv_func_iconv="no, consider installing GNU libiconv"
7943 cat >conftest.$ac_ext <<_ACEOF
7944 #line $LINENO "configure"
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7955 iconv_t cd = iconv_open("","");
7956 iconv(cd,NULL,NULL,NULL,NULL);
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 am_cv_func_iconv=yes
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7981 if test "$am_cv_func_iconv" != yes; then
7982 am_save_LIBS="$LIBS"
7983 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7984 cat >conftest.$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7996 iconv_t cd = iconv_open("","");
7997 iconv(cd,NULL,NULL,NULL,NULL);
8003 rm -f conftest.$ac_objext conftest$ac_exeext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005 (eval $ac_link) 2>&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } &&
8009 { ac_try='test -s conftest$ac_exeext'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8016 am_cv_func_iconv=yes
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8023 LIBS="$am_save_LIBS"
8027 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8028 echo "${ECHO_T}$am_cv_func_iconv" >&6
8029 if test "$am_cv_func_iconv" = yes; then
8031 cat >>confdefs.h <<\_ACEOF
8032 #define HAVE_ICONV 1
8035 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8036 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8037 if test "${am_cv_proto_iconv+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8042 #line $LINENO "configure"
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8055 #if defined(__STDC__) || defined(__cplusplus)
8056 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8069 rm -f conftest.$ac_objext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8071 (eval $ac_compile) 2>&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -s conftest.$ac_objext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 am_cv_proto_iconv_arg1=""
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8086 am_cv_proto_iconv_arg1="const"
8088 rm -f conftest.$ac_objext conftest.$ac_ext
8089 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);"
8092 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8093 echo "$as_me:$LINENO: result: ${ac_t:-
8094 }$am_cv_proto_iconv" >&5
8095 echo "${ECHO_T}${ac_t:-
8096 }$am_cv_proto_iconv" >&6
8098 cat >>confdefs.h <<_ACEOF
8099 #define ICONV_CONST $am_cv_proto_iconv_arg1
8104 if test "$am_cv_lib_iconv" = yes; then
8105 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8109 # Until we have in-tree GNU iconv:
8114 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8115 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8116 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8137 (eval $ac_link) 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -s conftest$ac_exeext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 am_cv_val_LC_MESSAGES=yes
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 am_cv_val_LC_MESSAGES=no
8154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8156 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8157 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8158 if test $am_cv_val_LC_MESSAGES = yes; then
8160 cat >>confdefs.h <<\_ACEOF
8161 #define HAVE_LC_MESSAGES 1
8167 # We will need to find libiberty.h and ansidecl.h
8168 saved_CFLAGS="$CFLAGS"
8169 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8170 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8171 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8172 fprintf_unlocked strstr errno snprintf vasprintf \
8173 malloc realloc calloc free basename getopt clock
8175 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8176 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8177 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8178 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 cat >conftest.$ac_ext <<_ACEOF
8182 #line $LINENO "configure"
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8189 #define $ac_tr_decl 1
8191 #include "ansidecl.h"
8198 char *(*pfn) = (char *(*)) $ac_func ;
8204 rm -f conftest.$ac_objext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8206 (eval $ac_compile) 2>&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -s conftest.$ac_objext'
8211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
8216 eval "gcc_cv_have_decl_$ac_func=yes"
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8221 eval "gcc_cv_have_decl_$ac_func=no"
8223 rm -f conftest.$ac_objext conftest.$ac_ext
8226 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8227 echo "$as_me:$LINENO: result: yes" >&5
8228 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8229 #define $ac_tr_decl 1
8233 echo "$as_me:$LINENO: result: no" >&5
8234 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8235 #define $ac_tr_decl 0
8241 if test x = y ; then
8243 cat >>confdefs.h <<\_ACEOF
8244 #define HAVE_DECL_GETENV 1
8247 cat >>confdefs.h <<\_ACEOF
8248 #define HAVE_DECL_ATOL 1
8251 cat >>confdefs.h <<\_ACEOF
8252 #define HAVE_DECL_SBRK 1
8255 cat >>confdefs.h <<\_ACEOF
8256 #define HAVE_DECL_ABORT 1
8259 cat >>confdefs.h <<\_ACEOF
8260 #define HAVE_DECL_ATOF 1
8263 cat >>confdefs.h <<\_ACEOF
8264 #define HAVE_DECL_GETCWD 1
8267 cat >>confdefs.h <<\_ACEOF
8268 #define HAVE_DECL_GETWD 1
8272 cat >>confdefs.h <<\_ACEOF
8273 #define HAVE_DECL_STRSIGNAL 1
8276 cat >>confdefs.h <<\_ACEOF
8277 #define HAVE_DECL_PUTC_UNLOCKED 1
8280 cat >>confdefs.h <<\_ACEOF
8281 #define HAVE_DECL_FPUTS_UNLOCKED 1
8284 cat >>confdefs.h <<\_ACEOF
8285 #define HAVE_DECL_FWRITE_UNLOCKED 1
8289 cat >>confdefs.h <<\_ACEOF
8290 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8293 cat >>confdefs.h <<\_ACEOF
8294 #define HAVE_DECL_STRSTR 1
8297 cat >>confdefs.h <<\_ACEOF
8298 #define HAVE_DECL_ERRNO 1
8301 cat >>confdefs.h <<\_ACEOF
8302 #define HAVE_DECL_SNPRINTF 1
8305 cat >>confdefs.h <<\_ACEOF
8306 #define HAVE_DECL_VASPRINTF 1
8310 cat >>confdefs.h <<\_ACEOF
8311 #define HAVE_DECL_MALLOC 1
8314 cat >>confdefs.h <<\_ACEOF
8315 #define HAVE_DECL_REALLOC 1
8318 cat >>confdefs.h <<\_ACEOF
8319 #define HAVE_DECL_CALLOC 1
8322 cat >>confdefs.h <<\_ACEOF
8323 #define HAVE_DECL_FREE 1
8326 cat >>confdefs.h <<\_ACEOF
8327 #define HAVE_DECL_BASENAME 1
8330 cat >>confdefs.h <<\_ACEOF
8331 #define HAVE_DECL_GETOPT 1
8334 cat >>confdefs.h <<\_ACEOF
8335 #define HAVE_DECL_CLOCK 1
8340 for ac_func in getrlimit setrlimit getrusage
8342 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8343 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8344 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8345 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 cat >conftest.$ac_ext <<_ACEOF
8349 #line $LINENO "configure"
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8356 #define $ac_tr_decl 1
8358 #include "ansidecl.h"
8360 #ifdef HAVE_SYS_RESOURCE_H
8361 #include <sys/resource.h>
8369 char *(*pfn) = (char *(*)) $ac_func ;
8375 rm -f conftest.$ac_objext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 (eval $ac_compile) 2>&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -s conftest.$ac_objext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 eval "gcc_cv_have_decl_$ac_func=yes"
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 eval "gcc_cv_have_decl_$ac_func=no"
8394 rm -f conftest.$ac_objext conftest.$ac_ext
8397 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8398 echo "$as_me:$LINENO: result: yes" >&5
8399 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8400 #define $ac_tr_decl 1
8404 echo "$as_me:$LINENO: result: no" >&5
8405 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8406 #define $ac_tr_decl 0
8412 if test x = y ; then
8414 cat >>confdefs.h <<\_ACEOF
8415 #define HAVE_DECL_GETRLIMIT 1
8418 cat >>confdefs.h <<\_ACEOF
8419 #define HAVE_DECL_SETRLIMIT 1
8422 cat >>confdefs.h <<\_ACEOF
8423 #define HAVE_DECL_GETRUSAGE 1
8428 cat >conftest.$ac_ext <<_ACEOF
8429 #line $LINENO "configure"
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8436 #include "ansidecl.h"
8438 #ifdef HAVE_SYS_RESOURCE_H
8439 #include <sys/resource.h>
8450 rm -f conftest.$ac_objext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8452 (eval $ac_compile) 2>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -s conftest.$ac_objext'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8468 cat >>confdefs.h <<\_ACEOF
8473 rm -f conftest.$ac_objext conftest.$ac_ext
8475 for ac_func in ldgetname
8477 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8478 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8479 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8480 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 cat >conftest.$ac_ext <<_ACEOF
8484 #line $LINENO "configure"
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8491 #define $ac_tr_decl 1
8493 #include "ansidecl.h"
8504 char *(*pfn) = (char *(*)) $ac_func ;
8510 rm -f conftest.$ac_objext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8512 (eval $ac_compile) 2>&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } &&
8516 { ac_try='test -s conftest.$ac_objext'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8522 eval "gcc_cv_have_decl_$ac_func=yes"
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 eval "gcc_cv_have_decl_$ac_func=no"
8529 rm -f conftest.$ac_objext conftest.$ac_ext
8532 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8533 echo "$as_me:$LINENO: result: yes" >&5
8534 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8535 #define $ac_tr_decl 1
8539 echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8541 #define $ac_tr_decl 0
8547 if test x = y ; then
8549 cat >>confdefs.h <<\_ACEOF
8550 #define HAVE_DECL_LDGETNAME 1
8555 for ac_func in times
8557 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8558 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8559 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8560 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8564 #line $LINENO "configure"
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8571 #define $ac_tr_decl 1
8573 #include "ansidecl.h"
8575 #ifdef HAVE_SYS_TIMES_H
8576 #include <sys/times.h>
8584 char *(*pfn) = (char *(*)) $ac_func ;
8590 rm -f conftest.$ac_objext
8591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8592 (eval $ac_compile) 2>&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } &&
8596 { ac_try='test -s conftest.$ac_objext'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; }; then
8602 eval "gcc_cv_have_decl_$ac_func=yes"
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8607 eval "gcc_cv_have_decl_$ac_func=no"
8609 rm -f conftest.$ac_objext conftest.$ac_ext
8612 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8613 echo "$as_me:$LINENO: result: yes" >&5
8614 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8615 #define $ac_tr_decl 1
8619 echo "$as_me:$LINENO: result: no" >&5
8620 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8621 #define $ac_tr_decl 0
8627 if test x = y ; then
8629 cat >>confdefs.h <<\_ACEOF
8630 #define HAVE_DECL_TIMES 1
8635 # More time-related stuff.
8636 echo "$as_me:$LINENO: checking for struct tms" >&5
8637 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8638 if test "${ac_cv_struct_tms+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8650 #include "ansidecl.h"
8652 #ifdef HAVE_SYS_TIMES_H
8653 #include <sys/times.h>
8664 rm -f conftest.$ac_objext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 (eval $ac_compile) 2>&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -s conftest.$ac_objext'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 ac_cv_struct_tms=yes
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8683 rm -f conftest.$ac_objext conftest.$ac_ext
8685 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8686 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8687 if test $ac_cv_struct_tms = yes; then
8689 cat >>confdefs.h <<\_ACEOF
8690 #define HAVE_STRUCT_TMS 1
8695 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8696 # revisit after autoconf 2.50.
8697 echo "$as_me:$LINENO: checking for clock_t" >&5
8698 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8699 if test "${gcc_cv_type_clock_t+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 cat >conftest.$ac_ext <<_ACEOF
8704 #line $LINENO "configure"
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8711 #include "ansidecl.h"
8722 rm -f conftest.$ac_objext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8724 (eval $ac_compile) 2>&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -s conftest.$ac_objext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 gcc_cv_type_clock_t=yes
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 gcc_cv_type_clock_t=no
8741 rm -f conftest.$ac_objext conftest.$ac_ext
8743 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8744 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8745 if test $gcc_cv_type_clock_t = yes; then
8747 cat >>confdefs.h <<\_ACEOF
8748 #define HAVE_CLOCK_T 1
8753 echo "$as_me:$LINENO: checking for uchar" >&5
8754 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8755 if test "${gcc_cv_type_uchar+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 cat >conftest.$ac_ext <<_ACEOF
8759 #line $LINENO "configure"
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8766 #include "ansidecl.h"
8772 if ((uchar *)0) return 0;
8773 if (sizeof(uchar)) return 0;
8778 rm -f conftest.$ac_objext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8780 (eval $ac_compile) 2>&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } &&
8784 { ac_try='test -s conftest.$ac_objext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 ac_cv_type_uchar=yes
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8797 rm -f conftest.$ac_objext conftest.$ac_ext
8799 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8800 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8801 if test $ac_cv_type_uchar = yes; then
8803 cat >>confdefs.h <<\_ACEOF
8804 #define HAVE_UCHAR 1
8809 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8810 CFLAGS="$saved_CFLAGS"
8812 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8813 if test "${enable_initfini_array+set}" = set; then
8814 enableval="$enable_initfini_array"
8818 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8819 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8820 if test "${gcc_cv_initfini_array+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 if test "$cross_compiling" = yes; then
8824 gcc_cv_initfini_array=no
8826 cat >conftest.$ac_ext <<_ACEOF
8827 #line $LINENO "configure"
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8835 int main (void) { return x; }
8836 int foo (void) { x = 0; }
8837 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8839 rm -f conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 gcc_cv_initfini_array=yes
8852 echo "$as_me: program exited with status $ac_status" >&5
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8857 gcc_cv_initfini_array=no
8859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8862 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8863 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8864 enable_initfini_array=$gcc_cv_initfini_array
8867 if test $enable_initfini_array = yes; then
8869 cat >>confdefs.h <<\_ACEOF
8870 #define HAVE_INITFINI_ARRAY 1
8875 # mkdir takes a single argument on some systems.
8876 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8877 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8878 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 cat >conftest.$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8889 #include <sys/types.h>
8890 #ifdef HAVE_SYS_STAT_H
8891 # include <sys/stat.h>
8893 #ifdef HAVE_UNISTD_H
8894 # include <unistd.h>
8896 #ifdef HAVE_DIRECT_H
8897 # include <direct.h>
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } &&
8913 { ac_try='test -s conftest.$ac_objext'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 gcc_cv_mkdir_takes_one_arg=no
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 gcc_cv_mkdir_takes_one_arg=yes
8926 rm -f conftest.$ac_objext conftest.$ac_ext
8928 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8929 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8930 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8932 cat >>confdefs.h <<\_ACEOF
8933 #define MKDIR_TAKES_ONE_ARG 1
8945 # With Setjmp/Longjmp based exception handling.
8946 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8947 if test "${enable_sjlj_exceptions+set}" = set; then
8948 enableval="$enable_sjlj_exceptions"
8949 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8951 cat >>confdefs.h <<_ACEOF
8952 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8957 if test x$host = x$target; then
8958 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8959 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8960 if test "${ac_cv_lib_unwind_main+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 ac_check_lib_save_LIBS=$LIBS
8964 LIBS="-lunwind $LIBS"
8965 cat >conftest.$ac_ext <<_ACEOF
8966 #line $LINENO "configure"
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8982 rm -f conftest.$ac_objext conftest$ac_exeext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8984 (eval $ac_link) 2>&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try='test -s conftest$ac_exeext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_cv_lib_unwind_main=yes
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 ac_cv_lib_unwind_main=no
9001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9002 LIBS=$ac_check_lib_save_LIBS
9004 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9005 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9006 if test $ac_cv_lib_unwind_main = yes; then
9007 use_libunwind_default=yes
9009 use_libunwind_default=no
9013 use_libunwind_default=no
9015 # Use libunwind based exception handling.
9016 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9017 if test "${enable_libunwind_exceptions+set}" = set; then
9018 enableval="$enable_libunwind_exceptions"
9019 use_libunwind_exceptions=$enableval
9021 use_libunwind_exceptions=$use_libunwind_default
9023 if test x"$use_libunwind_exceptions" = xyes; then
9025 cat >>confdefs.h <<\_ACEOF
9026 #define USE_LIBUNWIND_EXCEPTIONS 1
9031 # --------------------------------------------------------
9032 # Build, host, and target specific configuration fragments
9033 # --------------------------------------------------------
9035 # Collect build-machine-specific information.
9036 . ${srcdir}/config.build
9038 # Collect host-machine-specific information.
9039 . ${srcdir}/config.host
9043 # Collect target-machine-specific information.
9044 . ${srcdir}/config.gcc
9046 extra_objs="${host_extra_objs} ${extra_objs}"
9048 # Default the target-machine variables that were not explicitly set.
9049 if test x"$tm_file" = x
9050 then tm_file=$cpu_type/$cpu_type.h; fi
9052 if test x"$extra_headers" = x
9053 then extra_headers=; fi
9055 if test x$md_file = x
9056 then md_file=$cpu_type/$cpu_type.md; fi
9058 if test x$out_file = x
9059 then out_file=$cpu_type/$cpu_type.c; fi
9061 if test x"$tmake_file" = x
9062 then tmake_file=$cpu_type/t-$cpu_type
9065 if test x"$dwarf2" = xyes
9066 then tm_file="$tm_file tm-dwarf2.h"
9069 # Say what files are being used for the output code and MD file.
9070 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9071 echo "Using \`$srcdir/config/$md_file' as machine description file."
9073 # If any of the xm_file variables contain nonexistent files, warn
9074 # about them and drop them.
9077 for x in $build_xm_file; do
9078 if test -f $srcdir/config/$x
9080 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9081 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9087 for x in $host_xm_file; do
9088 if test -f $srcdir/config/$x
9090 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9091 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9097 for x in $xm_file; do
9098 if test -f $srcdir/config/$x
9100 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9101 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9107 for f in $tm_file; do
9110 if test $count = ax; then
9111 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9113 echo "Using the following target machine macro files:"
9114 for f in $tm_file; do
9115 echo " $srcdir/config/$f"
9119 if test x$need_64bit_hwint = xyes; then
9121 cat >>confdefs.h <<\_ACEOF
9122 #define NEED_64BIT_HOST_WIDE_INT 1
9128 for f in $host_xm_file; do
9131 if test $count = a; then
9133 elif test $count = ax; then
9134 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9136 echo "Using the following host machine macro files:"
9137 for f in $host_xm_file; do
9138 echo " $srcdir/config/$f"
9141 echo "Using ${out_host_hook_obj} for host machine hooks."
9143 if test "$host_xm_file" != "$build_xm_file"; then
9145 for f in $build_xm_file; do
9148 if test $count = a; then
9150 elif test $count = ax; then
9151 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9153 echo "Using the following build machine macro files:"
9154 for f in $build_xm_file; do
9155 echo " $srcdir/config/$f"
9160 # Check if a valid thread package
9161 case ${enable_threads_flag} in
9164 target_thread_file='single'
9168 target_thread_file='single'
9170 aix | dce | gnat | irix | posix | rtems | \
9171 single | solaris | vxworks | win32 )
9172 target_thread_file=${enable_threads_flag}
9175 echo "${enable_threads_flag} is an unknown thread package" 1>&2
9180 if test x${thread_file} = x; then
9181 # No thread file set by target-specific clauses in config.gcc,
9182 # so use file chosen by default logic above
9183 thread_file=${target_thread_file}
9186 if test x$enable___cxa_atexit = xyes || \
9187 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9189 cat >>confdefs.h <<\_ACEOF
9190 #define DEFAULT_USE_CXA_ATEXIT 1
9195 # Look for a file containing extra machine modes.
9196 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9197 extra_modes_file='$(srcdir)'/config/${extra_modes}
9200 cat >>confdefs.h <<_ACEOF
9201 #define EXTRA_MODES_FILE "config/$extra_modes"
9206 # auto-host.h is the file containing items generated by autoconf and is
9207 # the first file included by config.h.
9208 # If host=build, it is correct to have bconfig include auto-host.h
9209 # as well. If host!=build, we are in error and need to do more
9210 # work to find out the build config parameters.
9211 if test x$host = x$build
9213 build_auto=auto-host.h
9216 # We create a subdir, then run autoconf in the subdir.
9217 # To prevent recursion we set host and build for the new
9218 # invocation of configure to the build for this invocation
9225 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9226 *) realsrcdir=../${srcdir};;
9228 saved_CFLAGS="${CFLAGS}"
9229 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9230 ${realsrcdir}/configure \
9231 --target=$target_alias --host=$build_alias --build=$build_alias
9232 CFLAGS="${saved_CFLAGS}"
9234 # We just finished tests for the build machine, so rename
9235 # the file auto-build.h in the gcc directory.
9236 mv auto-host.h ../auto-build.h
9239 build_auto=auto-build.h
9240 FORBUILD=../${build_subdir}
9244 tm_file="${tm_file} defaults.h"
9245 tm_p_file="${tm_p_file} tm-preds.h"
9246 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9247 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9248 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9249 # put this back in temporarily.
9250 xm_file="ansidecl.h ${xm_file}"
9256 # Get the version trigger filename from the toplevel
9257 if test "${with_gcc_version_trigger+set}" = set; then
9258 gcc_version_trigger=$with_gcc_version_trigger
9260 gcc_version_trigger=${srcdir}/version.c
9262 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9263 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9265 # Compile in configure arguments.
9266 if test -f configargs.h ; then
9267 # Being re-configured.
9268 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9269 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9271 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9274 # Double all backslashes and backslash all quotes to turn
9275 # gcc_config_arguments into a C string.
9276 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9277 $gcc_config_arguments
9279 gcc_config_arguments_str=`cat conftest.out`
9282 cat > configargs.h <<EOF
9283 /* Generated automatically. */
9284 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9285 static const char thread_model[] = "$thread_file";
9287 static const struct {
9288 const char *name, *value;
9289 } configure_default_options[] = $configure_default_options;
9292 # Internationalization
9294 VERSION="$gcc_version"
9298 # If we haven't got the data from the intl directory,
9299 # assume NLS is disabled.
9307 if test -f ../intl/config.intl; then
9308 . ../intl/config.intl
9310 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9311 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9312 if test x"$USE_NLS" != xyes; then
9313 echo "$as_me:$LINENO: result: no" >&5
9314 echo "${ECHO_T}no" >&6
9316 echo "$as_me:$LINENO: result: yes" >&5
9317 echo "${ECHO_T}yes" >&6
9319 cat >>confdefs.h <<\_ACEOF
9320 #define ENABLE_NLS 1
9324 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9325 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9326 # Look for .po and .gmo files in the source directory.
9329 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9330 # If there aren't any .gmo files the shell will give us the
9331 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9333 case "$cat" in *\**)
9336 # The quadruple backslash is collapsed to a double backslash
9337 # by the backticks, then collapsed again by the double quotes,
9338 # leaving us with one backslash in the sed expression (right
9339 # before the dot that mustn't act as a wildcard).
9340 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9341 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9342 # The user is allowed to set LINGUAS to a list of languages to
9343 # install catalogs for. If it's empty that means "all of them."
9344 if test "x$LINGUAS" = x; then
9345 CATALOGS="$CATALOGS $cat"
9346 XLINGUAS="$XLINGUAS $lang"
9348 case "$LINGUAS" in *$lang*)
9349 CATALOGS="$CATALOGS $cat"
9350 XLINGUAS="$XLINGUAS $lang"
9356 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9357 echo "${ECHO_T}$LINGUAS" >&6
9360 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9361 # -liconv on the link line twice.
9362 case "$LIBINTL" in *$LIBICONV*)
9366 # Windows32 Registry support for specifying GCC installation paths.
9367 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9368 if test "${enable_win32_registry+set}" = set; then
9369 enableval="$enable_win32_registry"
9373 win32 | pe | cygwin* | mingw32* | uwin*)
9374 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9375 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9376 if test "x$enable_win32_registry" != xno; then
9378 cat >>confdefs.h <<\_ACEOF
9379 #define ENABLE_WIN32_REGISTRY 1
9382 echo "$as_me:$LINENO: result: yes" >&5
9383 echo "${ECHO_T}yes" >&6
9384 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9385 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9386 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 ac_func_search_save_LIBS=$LIBS
9390 ac_cv_search_RegOpenKeyExA=no
9391 cat >conftest.$ac_ext <<_ACEOF
9392 #line $LINENO "configure"
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9399 /* Override any gcc2 internal prototype to avoid an error. */
9403 /* We use char because int might match the return type of a gcc2
9404 builtin and then its argument prototype would still apply. */
9405 char RegOpenKeyExA ();
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9416 (eval $ac_link) 2>&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -s conftest$ac_exeext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 ac_cv_search_RegOpenKeyExA="none required"
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9433 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9434 for ac_lib in advapi32; do
9435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9436 cat >conftest.$ac_ext <<_ACEOF
9437 #line $LINENO "configure"
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9444 /* Override any gcc2 internal prototype to avoid an error. */
9448 /* We use char because int might match the return type of a gcc2
9449 builtin and then its argument prototype would still apply. */
9450 char RegOpenKeyExA ();
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9461 (eval $ac_link) 2>&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -s conftest$ac_exeext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9474 echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9481 LIBS=$ac_func_search_save_LIBS
9483 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9484 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9485 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9486 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9491 echo "$as_me:$LINENO: result: no" >&5
9492 echo "${ECHO_T}no" >&6
9495 # Check if user specified a different registry key.
9496 case "x${enable_win32_registry}" in
9499 gcc_cv_win32_registry_key="$VERSION"
9502 # no registry lookup.
9503 gcc_cv_win32_registry_key=''
9506 # user-specified key.
9507 gcc_cv_win32_registry_key="$enable_win32_registry"
9511 if test "x$enable_win32_registry" != xno; then
9512 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9513 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9515 cat >>confdefs.h <<_ACEOF
9516 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9519 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9520 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9525 # Get an absolute path to the GCC top-level source directory
9526 holddir=`${PWDCMD-pwd}`
9528 topdir=`${PWDCMD-pwd}`
9531 # Conditionalize the makefile for this host machine.
9533 for f in ${host_xmake_file}
9535 if test -f ${srcdir}/config/$f
9537 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9541 # Conditionalize the makefile for this target machine.
9543 for f in ${tmake_file}
9545 if test -f ${srcdir}/config/$f
9547 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9550 tmake_file="${tmake_file_}"
9552 symbolic_link='ln -s'
9554 # If the host doesn't support symlinks, modify CC in
9555 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9556 # Otherwise, we can use "CC=$(CC)".
9558 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9560 cc_set_by_configure="\$(CC)"
9561 quoted_cc_set_by_configure="\$(CC)"
9562 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9563 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9566 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9568 symbolic_link="cp -p"
9572 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9573 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9574 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9575 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9579 out_object_file=`basename $out_file .c`.o
9583 for f in $tm_file; do
9586 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9587 tm_include_list="${tm_include_list} $f"
9590 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9591 tm_include_list="${tm_include_list} config/$f"
9598 for f in $tm_p_file; do
9601 tm_p_file_list="${tm_p_file_list} $f"
9602 tm_p_include_list="${tm_p_include_list} $f"
9605 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9606 tm_p_include_list="${tm_p_include_list} config/$f"
9612 for f in $xm_file; do
9615 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9616 xm_include_list="${xm_include_list} $f"
9619 xm_file_list="${xm_file_list} $f"
9620 xm_include_list="${xm_include_list} $f"
9623 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9624 xm_include_list="${xm_include_list} config/$f"
9630 host_xm_include_list=
9631 for f in $host_xm_file; do
9634 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9635 host_xm_include_list="${host_xm_include_list} $f"
9638 host_xm_file_list="${host_xm_file_list} $f"
9639 host_xm_include_list="${host_xm_include_list} $f"
9642 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9643 host_xm_include_list="${host_xm_include_list} config/$f"
9649 for f in $build_xm_file; do
9652 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9653 build_xm_include_list="${build_xm_include_list} $f"
9655 auto-build.h | auto-host.h )
9656 build_xm_file_list="${build_xm_file_list} $f"
9657 build_xm_include_list="${build_xm_include_list} $f"
9660 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9661 build_xm_include_list="${build_xm_include_list} config/$f"
9666 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9667 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9670 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9671 if test x$host != x$target
9673 CROSS="-DCROSS_COMPILE"
9675 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9676 case "$host","$target" in
9677 # Darwin crosses can use the host system's libraries and headers,
9678 # because of the fat library support. Of course, it must be the
9679 # same version of Darwin on both sides. Allow the user to
9680 # just say --target=foo-darwin without a version number to mean
9681 # "the version on this system".
9682 *-*-darwin*,*-*-darwin*)
9683 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9684 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9685 if test $hostos = $targetos -o $targetos = darwin ; then
9687 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9692 i?86-*-*,x86_64-*-* \
9693 | powerpc*-*-*,powerpc64*-*-*)
9694 CROSS="$CROSS -DNATIVE_CROSS" ;;
9696 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9697 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9698 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9701 # If this is a cross-compiler that does not
9702 # have its own set of headers then define
9705 # If this is using newlib, without having the headers available now,
9706 # then define inhibit_libc in LIBGCC2_CFLAGS.
9707 # This prevents libgcc2 from containing any code which requires libc
9710 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9711 test x$with_newlib = xyes ; } &&
9712 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9713 inhibit_libc=-Dinhibit_libc
9717 # When building gcc with a cross-compiler, we need to adjust things so
9718 # that the generator programs are still built with the native compiler.
9719 # Also, we cannot run fixincludes or fix-header.
9721 # These are the normal (build=host) settings:
9723 BUILD_PREFIX_1=ignore-
9724 CC_FOR_BUILD='$(CC)'
9725 BUILD_CFLAGS='$(ALL_CFLAGS)'
9727 STMP_FIXINC=stmp-fixinc
9729 # Possibly disable fixproto, on a per-target basis.
9730 case ${use_fixproto} in
9735 STMP_FIXPROTO=stmp-fixproto
9740 # And these apply if build != host, or we are generating coverage data
9741 if test x$build != x$host || test "x$coverage_flags" != x
9744 BUILD_PREFIX_1=build-
9745 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9747 if test "x$TARGET_SYSTEM_ROOT" = x; then
9753 # Expand extra_headers to include complete path.
9754 # This substitutes for lots of t-* files.
9756 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9757 for file in ${extra_headers} ; do
9758 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9761 # Add a definition of USE_COLLECT2 if system wants one.
9762 case $use_collect2 in
9763 no) use_collect2= ;;
9766 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9767 xm_defines="${xm_defines} USE_COLLECT2"
9771 # Identify the assembler which will work hand-in-glove with the newly
9772 # built GCC, so that we can examine its features. This is the assembler
9773 # which will be driven by the driver program.
9775 # If build != host, and we aren't building gas in-tree, we identify a
9776 # build->target assembler and hope that it will have the same features
9777 # as the host->target assembler we'll be using.
9778 echo "$as_me:$LINENO: checking what assembler to use" >&5
9779 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9782 gcc_cv_gas_major_version=
9783 gcc_cv_gas_minor_version=
9784 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9785 if test -x "$DEFAULT_ASSEMBLER"; then
9786 gcc_cv_as="$DEFAULT_ASSEMBLER"
9787 elif test -x "$AS"; then
9789 elif test -x as$host_exeext; then
9790 # Build using assembler in the current directory.
9791 gcc_cv_as=./as$host_exeext
9792 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9793 && test -f ../gas/Makefile; then
9794 # Single tree build which includes gas.
9796 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9797 for f in $gcc_cv_as_bfd_srcdir/configure \
9798 $gcc_cv_as_gas_srcdir/configure \
9799 $gcc_cv_as_gas_srcdir/configure.in \
9800 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9801 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9802 if test x$gcc_cv_gas_version != x; then
9806 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9807 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9808 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9809 case $gcc_cv_gas_patch_version in
9810 "") gcc_cv_gas_patch_version="0" ;;
9812 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9813 + $gcc_cv_gas_minor_version \) \* 1000 \
9814 + $gcc_cv_gas_patch_version`
9816 rm -f as$host_exeext
9817 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9818 in_tree_gas_is_elf=no
9819 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9820 || (grep 'obj_format = multi' ../gas/Makefile \
9821 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9823 in_tree_gas_is_elf=yes
9827 if test "x$gcc_cv_as" = x; then
9828 # Search the same directories that the installed compiler will
9829 # search. Else we may find the wrong assembler and lose. If we
9830 # do not find a suitable assembler binary, then try the user's
9833 # Also note we have to check MD_EXEC_PREFIX before checking the
9834 # user's path. Unfortunately, there is no good way to get at the
9835 # value of MD_EXEC_PREFIX here. So we do a brute force search
9836 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9837 # to be fixed as part of the make/configure rewrite too.
9839 if test "x$exec_prefix" = xNONE; then
9840 if test "x$prefix" = xNONE; then
9841 test_prefix=/usr/local
9846 test_prefix=$exec_prefix
9849 # If the loop below does not find an assembler, then use whatever
9850 # one we can find in the users's path.
9852 if test "x$program_prefix" != xNONE; then
9853 gcc_cv_as=${program_prefix}as$host_exeext
9855 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
9858 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9859 $test_prefix/lib/gcc-lib/$target_noncanonical \
9860 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9861 /usr/lib/gcc/$target_noncanonical \
9862 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9863 $test_prefix/$target_noncanonical/bin"
9865 if test x$host = x$target; then
9866 test_dirs="$test_dirs \
9871 /bsd43/usr/lib/cmplrs/cc \
9872 /usr/cross64/usr/bin \
9873 /usr/lib/cmplrs/cc \
9874 /sysv/usr/lib/cmplrs/cc \
9875 /svr4/usr/lib/cmplrs/cc \
9879 for dir in $test_dirs; do
9880 if test -x $dir/as$host_exeext; then
9881 gcc_cv_as=$dir/as$host_exeext
9886 case $in_tree_gas in
9888 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9889 echo "${ECHO_T}\"newly built gas\"" >&6
9892 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9893 echo "${ECHO_T}$gcc_cv_as" >&6
9897 # Identify the linker which will work hand-in-glove with the newly
9898 # built GCC, so that we can examine its features. This is the linker
9899 # which will be driven by the driver program.
9901 # If build != host, and we aren't building gas in-tree, we identify a
9902 # build->target linker and hope that it will have the same features
9903 # as the host->target linker we'll be using.
9904 echo "$as_me:$LINENO: checking what linker to use" >&5
9905 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9908 gcc_cv_gld_major_version=
9909 gcc_cv_gld_minor_version=
9910 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9911 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9912 if test -x "$DEFAULT_LINKER"; then
9913 gcc_cv_ld="$DEFAULT_LINKER"
9914 elif test -x "$LD"; then
9916 elif test -x collect-ld$host_exeext; then
9917 # Build using linker in the current directory.
9918 gcc_cv_ld=./collect-ld$host_exeext
9919 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9920 && test -f ../ld/Makefile; then
9921 # Single tree build which includes ld.
9923 in_tree_ld_is_elf=no
9924 if (grep 'EMUL = .*elf' ../ld/Makefile \
9925 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9926 in_tree_ld_is_elf=yes
9928 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
9930 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9931 if test x$gcc_cv_gld_version != x; then
9935 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9936 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9937 rm -f collect-ld$host_exeext
9938 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9942 if test "x$gcc_cv_ld" = x; then
9943 # Search the same directories that the installed compiler will
9944 # search. Else we may find the wrong linker and lose. If we
9945 # do not find a suitable linker binary, then try the user's
9948 # Also note we have to check MD_EXEC_PREFIX before checking the
9949 # user's path. Unfortunately, there is no good way to get at the
9950 # value of MD_EXEC_PREFIX here. So we do a brute force search
9951 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9952 # to be fixed as part of the make/configure rewrite too.
9954 if test "x$exec_prefix" = xNONE; then
9955 if test "x$prefix" = xNONE; then
9956 test_prefix=/usr/local
9961 test_prefix=$exec_prefix
9964 # If the loop below does not find an linker, then use whatever
9965 # one we can find in the users's path.
9967 if test "x$program_prefix" != xNONE; then
9968 gcc_cv_ld=${program_prefix}ld$host_exeext
9970 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
9973 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9974 $test_prefix/lib/gcc-lib/$target_noncanonical \
9975 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9976 /usr/lib/gcc/$target_noncanonical \
9977 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9978 $test_prefix/$target_noncanonical/bin"
9980 if test x$host = x$target; then
9981 test_dirs="$test_dirs \
9986 /bsd43/usr/lib/cmplrs/cc \
9987 /usr/cross64/usr/bin \
9988 /usr/lib/cmplrs/cc \
9989 /sysv/usr/lib/cmplrs/cc \
9990 /svr4/usr/lib/cmplrs/cc \
9994 for dir in $test_dirs; do
9995 if test -x $dir/ld$host_exeext; then
9996 gcc_cv_ld=$dir/ld$host_exeext
10001 case $in_tree_ld in
10003 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10004 echo "${ECHO_T}\"newly built ld\"" >&6
10007 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10008 echo "${ECHO_T}$gcc_cv_ld" >&6
10012 # Figure out what nm we will be using.
10013 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10014 echo "$as_me:$LINENO: checking what nm to use" >&5
10015 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10017 if test -x nm$host_exeext; then
10018 gcc_cv_nm=./nm$host_exeext
10019 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10020 && test -f ../binutils/Makefile; then
10021 # Single tree build which includes binutils.
10023 gcc_cv_nm=./nm$host_exeext
10024 rm -f nm$host_exeext
10025 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10026 elif test "x$program_prefix" != xNONE; then
10027 gcc_cv_nm=${program_prefix}nm$host_exeext
10029 gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
10031 case $in_tree_nm in
10032 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10033 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10034 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10035 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10038 # Figure out what objdump we will be using.
10039 echo "$as_me:$LINENO: checking what objdump to use" >&5
10040 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10042 if test -x objdump$host_exeext; then
10043 gcc_cv_objdump=./objdump$host_exeext
10044 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10045 && test -f ../binutils/Makefile; then
10046 # Single tree build which includes binutils.
10047 in_tree_objdump=yes
10048 gcc_cv_objdump=./objdump$host_exeext
10049 rm -f objdump$host_exeext
10050 $symbolic_link ../binutils/objdump$host_exeext \
10051 objdump$host_exeext 2>/dev/null
10052 elif test "x$program_prefix" != xNONE; then
10053 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10055 gcc_cv_objdump=`echo objdump | \
10056 sed ${program_transform_name}`$host_exeext
10058 case $in_tree_objdump in
10059 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10060 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10061 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10062 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10065 # Figure out what assembler alignment features are present.
10066 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10067 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10068 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 gcc_cv_as_balign_and_p2align=no
10072 if test $in_tree_gas = yes; then
10073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10074 then gcc_cv_as_balign_and_p2align=yes
10076 elif test x$gcc_cv_as != x; then
10078 .p2align 2' > conftest.s
10079 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }
10086 gcc_cv_as_balign_and_p2align=yes
10088 echo "configure: failed program was" >&5
10091 rm -f conftest.o conftest.s
10094 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10095 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10096 if test $gcc_cv_as_balign_and_p2align = yes; then
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10104 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10105 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10106 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 gcc_cv_as_max_skip_p2align=no
10110 if test $in_tree_gas = yes; then
10111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10112 then gcc_cv_as_max_skip_p2align=yes
10114 elif test x$gcc_cv_as != x; then
10115 echo '.p2align 4,,7' > conftest.s
10116 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }
10123 gcc_cv_as_max_skip_p2align=yes
10125 echo "configure: failed program was" >&5
10128 rm -f conftest.o conftest.s
10131 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10132 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10133 if test $gcc_cv_as_max_skip_p2align = yes; then
10135 cat >>confdefs.h <<\_ACEOF
10136 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10141 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10142 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10143 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 gcc_cv_as_subsection_m1=no
10147 if test $in_tree_gas = yes; then
10148 if test $in_tree_gas_is_elf = yes \
10149 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10150 then gcc_cv_as_subsection_m1=yes
10152 elif test x$gcc_cv_as != x; then
10153 echo 'conftest_label1: .word 0
10155 conftest_label2: .word 0
10156 .previous' > conftest.s
10157 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }
10164 if test x$gcc_cv_nm != x; then
10165 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10166 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10167 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10169 else gcc_cv_as_subsection_m1=yes
10171 rm -f conftest.nm1 conftest.nm2
10174 echo "configure: failed program was" >&5
10177 rm -f conftest.o conftest.s
10180 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10181 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10182 if test $gcc_cv_as_subsection_m1 = yes; then
10184 cat >>confdefs.h <<\_ACEOF
10185 #define HAVE_GAS_SUBSECTION_ORDERING 1
10190 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10191 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10192 if test "${gcc_cv_as_weak+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 if test $in_tree_gas = yes; then
10197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10198 then gcc_cv_as_weak=yes
10200 elif test x$gcc_cv_as != x; then
10201 echo ' .weak foobar' > conftest.s
10202 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }
10211 echo "configure: failed program was" >&5
10214 rm -f conftest.o conftest.s
10217 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10218 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10219 if test $gcc_cv_as_weak = yes; then
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_GAS_WEAK 1
10227 # .hidden needs to be supported in both the assembler and the linker,
10228 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10229 # This is irritatingly difficult to feature test for; we have to check the
10230 # date string after the version number. If we've got an in-tree
10231 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10233 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10234 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10235 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10236 if test "${gcc_cv_as_hidden+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 gcc_cv_as_hidden=no
10240 if test $in_tree_gas = yes; then
10241 if test $in_tree_gas_is_elf = yes \
10242 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10243 then gcc_cv_as_hidden=yes
10245 elif test x$gcc_cv_as != x; then
10246 echo ' .hidden foobar
10247 foobar:' > conftest.s
10248 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }
10255 gcc_cv_as_hidden=yes
10257 echo "configure: failed program was" >&5
10260 rm -f conftest.o conftest.s
10263 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10264 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10267 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10268 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10269 if test "${gcc_cv_ld_hidden+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 if test $in_tree_ld = yes ; then
10273 gcc_cv_ld_hidden=no
10274 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 \
10275 && test $in_tree_ld_is_elf = yes; then
10276 gcc_cv_ld_hidden=yes
10279 gcc_cv_ld_hidden=yes
10280 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10281 if echo "$ld_ver" | grep GNU > /dev/null; then
10282 ld_vers=`echo $ld_ver | sed -n \
10283 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10284 -e 's,^.*[ ]\([0-9][0-9]*\.[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]*\.[0-9][0-9]*\)$,\1,p' \
10286 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10287 -e 's,^.*[ ]\([0-9][0-9]*\.[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]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10289 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'`
10290 if test 0"$ld_date" -lt 20020404; then
10291 if test -n "$ld_date"; then
10292 # If there was date string, but was earlier than 2002-04-04, fail
10293 gcc_cv_ld_hidden=no
10294 elif test -z "$ld_vers"; then
10295 # If there was no date string nor ld version number, something is wrong
10296 gcc_cv_ld_hidden=no
10298 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10299 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10300 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10301 test -z "$ld_vers_patch" && ld_vers_patch=0
10302 if test "$ld_vers_major" -lt 2; then
10303 gcc_cv_ld_hidden=no
10304 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10305 gcc_cv_ld_hidden="no"
10306 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10307 gcc_cv_ld_hidden=no
10312 case "${target}" in
10314 gcc_cv_ld_hidden=yes
10317 gcc_cv_ld_hidden=no
10323 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10324 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10325 libgcc_visibility=no
10327 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10328 libgcc_visibility=yes
10330 cat >>confdefs.h <<\_ACEOF
10331 #define HAVE_GAS_HIDDEN 1
10336 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10337 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10338 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10339 if test "${gcc_cv_as_leb128+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 gcc_cv_as_leb128=no
10343 if test $in_tree_gas = yes; then
10344 if test $in_tree_gas_is_elf = yes \
10345 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10346 then gcc_cv_as_leb128=yes
10348 elif test x$gcc_cv_as != x; then
10355 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }
10362 # GAS versions before 2.11 do not support uleb128,
10363 # despite appearing to.
10364 # ??? There exists an elf-specific test that will crash
10365 # the assembler. Perhaps it's better to figure out whether
10366 # arbitrary sections are supported and try the test.
10367 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10368 if echo "$as_ver" | grep GNU > /dev/null; then
10369 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10370 as_major=`echo $as_ver | sed 's/\..*//'`
10371 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10372 if test $as_major -eq 2 && test $as_minor -lt 11
10374 else gcc_cv_as_leb128=yes
10378 echo "configure: failed program was" >&5
10381 rm -f conftest.o conftest.s
10384 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10385 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10386 if test $gcc_cv_as_leb128 = yes; then
10388 cat >>confdefs.h <<\_ACEOF
10389 #define HAVE_AS_LEB128 1
10394 # GAS versions up to and including 2.11.0 may mis-optimize
10396 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10397 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10398 if test "${gcc_cv_as_eh_frame+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 gcc_cv_as_eh_frame=no
10402 if test $in_tree_gas = yes; then
10403 if test $in_tree_gas_is_elf = yes \
10404 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10405 then gcc_cv_as_eh_frame=yes
10407 elif test x$gcc_cv_as != x; then
10414 .section .eh_frame,"aw",@progbits
10416 .4byte .LECIE1-.LSCIE1
10430 .4byte .LEFDE1-.LASFDE1
10432 .4byte .LASFDE1-__FRAME_BEGIN__
10439 .LEFDE1:' > conftest.s
10440 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; }
10447 cat > conftest.lit <<EOF
10448 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10449 0010 01000000 12000000 18000000 00000000 ................
10450 0020 08000000 04080000 0044 .........D
10452 cat > conftest.big <<EOF
10453 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10454 0010 00000001 00000012 00000018 00000000 ................
10455 0020 00000008 04000000 0844 .........D
10457 # If the assembler didn't choke, and we can objdump,
10458 # and we got the correct data, then succeed.
10459 if test x$gcc_cv_objdump != x \
10460 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10461 | tail -3 > conftest.got \
10462 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10463 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10465 gcc_cv_as_eh_frame=yes
10466 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 gcc_cv_as_eh_frame=buggy
10474 # Uh oh, what do we do now?
10475 gcc_cv_as_eh_frame=no
10478 echo "configure: failed program was" >&5
10481 rm -f conftest.o conftest.s
10484 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10485 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10488 if test $gcc_cv_as_eh_frame = buggy; then
10490 cat >>confdefs.h <<\_ACEOF
10491 #define USE_AS_TRADITIONAL_FORMAT 1
10496 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10497 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10498 if test "${gcc_cv_as_shf_merge+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 gcc_cv_as_shf_merge=no
10502 if test $in_tree_gas = yes; then
10503 if test $in_tree_gas_is_elf = yes \
10504 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10505 then gcc_cv_as_shf_merge=yes
10507 elif test x$gcc_cv_as != x; then
10508 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10509 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }
10516 gcc_cv_as_shf_merge=yes
10518 echo "configure: failed program was" >&5
10521 rm -f conftest.o conftest.s
10524 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10525 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10528 cat >>confdefs.h <<_ACEOF
10529 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10533 # Thread-local storage - the check is heavily parametrized.
10541 .section ".tdata","awT",@progbits
10544 ldq $27,__tls_get_addr($29) !literal!1
10545 lda $16,foo($29) !tlsgd!1
10546 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10547 ldq $27,__tls_get_addr($29) !literal!2
10548 lda $16,foo($29) !tlsldm!2
10549 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10550 ldq $1,foo($29) !gotdtprel
10551 ldah $2,foo($29) !dtprelhi
10552 lda $3,foo($2) !dtprello
10553 lda $4,foo($29) !dtprel
10554 ldq $1,foo($29) !gottprel
10555 ldah $2,foo($29) !tprelhi
10556 lda $3,foo($2) !tprello
10557 lda $4,foo($29) !tprel'
10563 .section ".tdata","awT",@progbits
10567 leal foo@TLSGD(,%ebx,1), %eax
10568 leal foo@TLSLDM(%ebx), %eax
10569 leal foo@DTPOFF(%eax), %edx
10570 movl foo@GOTTPOFF(%ebx), %eax
10571 subl foo@GOTTPOFF(%ebx), %eax
10572 addl foo@GOTNTPOFF(%ebx), %eax
10573 movl foo@INDNTPOFF, %eax
10574 movl $foo@TPOFF, %eax
10575 subl $foo@TPOFF, %eax
10576 leal foo@NTPOFF(%ecx), %eax'
10582 .section ".tdata","awT",@progbits
10586 leaq foo@TLSGD(%rip), %rdi
10587 leaq foo@TLSLD(%rip), %rdi
10588 leaq foo@DTPOFF(%rax), %rdx
10589 movq foo@GOTTPOFF(%rip), %rax
10590 movq $foo@TPOFF, %rax'
10596 .section ".tdata","awT",@progbits
10599 addl r16 = @ltoff(@dtpmod(foo#)), gp
10600 addl r17 = @ltoff(@dtprel(foo#)), gp
10601 addl r18 = @ltoff(@tprel(foo#)), gp
10602 addl r19 = @dtprel(foo#), gp
10603 adds r21 = @dtprel(foo#), r13
10604 movl r23 = @dtprel(foo#)
10605 addl r20 = @tprel(foo#), gp
10606 adds r22 = @tprel(foo#), r13
10607 movl r24 = @tprel(foo#)'
10613 .section ".tdata","awT",@progbits
10621 addi 3,31,ld0@got@tlsgd
10623 addi 3,31,x1@got@tlsld
10626 addis 9,3,x2@dtprel@ha
10627 addi 9,9,x2@dtprel@l
10628 lwz 9,x3@got@tprel(31)
10631 addis 9,2,x2@tprel@ha
10632 addi 9,9,x2@tprel@l'
10639 .section ".tdata","awT",@progbits
10647 addi 3,2,ld0@got@tlsgd
10653 addi 3,2,x1@got@tlsld
10659 addis 9,3,x2@dtprel@ha
10660 addi 9,9,x2@dtprel@l
10663 ld 9,x3@got@dtprel(2)
10673 .section ".tdata","awT",@progbits
10680 .long foo@GOTNTPOFF
10681 .long foo@INDNTPOFF
10682 l %r1,foo@GOTNTPOFF(%r12)
10683 l %r1,0(%r1):tls_load:foo
10684 bas %r14,0(%r1,%r13):tls_gdcall:foo
10685 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10692 .section ".tdata","awT",@progbits
10699 .quad foo@GOTNTPOFF
10700 lg %r1,foo@GOTNTPOFF(%r12)
10701 larl %r1,foo@INDNTPOFF
10702 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10703 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10706 tls_as_opt="-m64 -Aesame"
10708 sh-*-* | sh[34]-*-*)
10710 .section ".tdata","awT",@progbits
10723 .section ".tdata","awT",@progbits
10726 sethi %tgd_hi22(foo), %o0
10727 add %o0, %tgd_lo10(foo), %o1
10728 add %l7, %o1, %o0, %tgd_add(foo)
10729 call __tls_get_addr, %tgd_call(foo)
10730 sethi %tldm_hi22(foo), %l1
10731 add %l1, %tldm_lo10(foo), %l2
10732 add %l7, %l2, %o0, %tldm_add(foo)
10733 call __tls_get_addr, %tldm_call(foo)
10734 sethi %tldo_hix22(foo), %l3
10735 xor %l3, %tldo_lox10(foo), %l4
10736 add %o0, %l4, %l5, %tldo_add(foo)
10737 sethi %tie_hi22(foo), %o3
10738 add %o3, %tie_lo10(foo), %o3
10739 ld [%l7 + %o3], %o2, %tie_ld(foo)
10740 add %g7, %o2, %o4, %tie_add(foo)
10741 sethi %tle_hix22(foo), %l1
10742 xor %l1, %tle_lox10(foo), %o5
10743 ld [%g7 + %o5], %o1'
10749 if test -z "$tls_first_major"; then
10750 : # If we don't have a check, assume no support.
10752 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10753 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10754 if test "${gcc_cv_as_tls+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 if test $in_tree_gas = yes; then
10759 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10760 then gcc_cv_as_tls=yes
10762 elif test x$gcc_cv_as != x; then
10763 echo "$conftest_s" > conftest.s
10764 if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }
10773 echo "configure: failed program was" >&5
10776 rm -f conftest.o conftest.s
10779 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10780 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10781 if test $gcc_cv_as_tls = yes; then
10783 cat >>confdefs.h <<\_ACEOF
10784 #define HAVE_AS_TLS 1
10790 # Target-specific assembler checks.
10793 # All TARGET_ABI_OSF targets.
10794 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10795 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10796 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10797 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 gcc_cv_as_alpha_explicit_relocs=no
10801 if test $in_tree_gas = yes; then
10802 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10803 then gcc_cv_as_alpha_explicit_relocs=yes
10805 elif test x$gcc_cv_as != x; then
10806 echo ' .set nomacro
10808 extbl $3, $2, $3 !lituse_bytoff!1
10809 ldq $2, a($29) !literal!1
10810 ldq $4, b($29) !literal!2
10811 ldq_u $3, 0($2) !lituse_base!1
10812 ldq $27, f($29) !literal!5
10813 jsr $26, ($27), f !lituse_jsr!5
10814 ldah $29, 0($26) !gpdisp!3
10815 lda $0, c($29) !gprel
10816 ldah $1, d($29) !gprelhigh
10817 lda $1, d($1) !gprellow
10818 lda $29, 0($29) !gpdisp!3' > conftest.s
10819 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }
10826 gcc_cv_as_alpha_explicit_relocs=yes
10828 echo "configure: failed program was" >&5
10831 rm -f conftest.o conftest.s
10834 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10835 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10836 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10838 cat >>confdefs.h <<\_ACEOF
10839 #define HAVE_AS_EXPLICIT_RELOCS 1
10846 echo "$as_me:$LINENO: checking assembler for .register" >&5
10847 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10848 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 gcc_cv_as_sparc_register_op=no
10852 if test x$gcc_cv_as != x; then
10853 echo '.register %g2, #scratch' > conftest.s
10854 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }
10861 gcc_cv_as_sparc_register_op=yes
10863 echo "configure: failed program was" >&5
10866 rm -f conftest.o conftest.s
10869 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10870 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10871 if test $gcc_cv_as_sparc_register_op = yes; then
10873 cat >>confdefs.h <<\_ACEOF
10874 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10879 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10880 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10881 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 gcc_cv_as_sparc_relax=no
10885 if test x$gcc_cv_as != x; then
10886 echo '.text' > conftest.s
10887 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }
10894 gcc_cv_as_sparc_relax=yes
10896 echo "configure: failed program was" >&5
10899 rm -f conftest.o conftest.s
10902 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10903 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10904 if test $gcc_cv_as_sparc_relax = yes; then
10906 cat >>confdefs.h <<\_ACEOF
10907 #define HAVE_AS_RELAX_OPTION 1
10912 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10913 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10914 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 gcc_cv_as_sparc_ua_pcrel=no
10918 if test x$gcc_cv_as != x; then
10925 .uaword %r_disp32(foo)' > conftest.s
10926 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }
10933 if test x$gcc_cv_ld != x \
10934 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
10935 gcc_cv_as_sparc_ua_pcrel=yes
10939 echo "configure: failed program was" >&5
10942 rm -f conftest.o conftest.s
10945 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10946 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10947 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10949 cat >>confdefs.h <<\_ACEOF
10950 #define HAVE_AS_SPARC_UA_PCREL 1
10954 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10955 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10956 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 gcc_cv_as_sparc_ua_pcrel_hidden=no
10960 if test x$gcc_cv_as != x; then
10964 .uaword %r_disp32(foo)
10965 .byte 0x32, 0x33, 0x34
10969 .skip 4' > conftest.s
10970 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }
10977 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
10978 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
10979 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
10980 | grep ' 31000000 07323334' > /dev/null 2>&1; then
10981 if $gcc_cv_objdump -R conftest 2> /dev/null \
10982 | grep 'DISP32' > /dev/null 2>&1; then
10985 gcc_cv_as_sparc_ua_pcrel_hidden=yes
10990 echo "configure: failed program was" >&5
10993 rm -f conftest.o conftest.s
10996 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10997 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10998 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11000 cat >>confdefs.h <<\_ACEOF
11001 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11006 fi # unaligned pcrel relocs
11008 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11009 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11010 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 gcc_cv_as_sparc_offsetable_lo10=no
11014 if test x$gcc_cv_as != x; then
11016 or %g1, %lo(ab) + 12, %g1
11017 or %g1, %lo(ab + 12), %g1' > conftest.s
11018 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }
11025 if test x$gcc_cv_objdump != x \
11026 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11027 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11028 gcc_cv_as_offsetable_lo10=yes
11031 echo "configure: failed program was" >&5
11034 rm -f conftest.o conftest.s
11037 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11038 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11039 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11041 cat >>confdefs.h <<\_ACEOF
11042 #define HAVE_AS_OFFSETABLE_LO10 1
11048 i[34567]86-*-* | x86_64-*-*)
11049 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11050 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11051 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 gcc_cv_as_ix86_filds_fists=no
11055 if test $in_tree_gas = yes; then
11056 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11057 then gcc_cv_as_ix86_filds_fists=yes
11059 elif test x$gcc_cv_as != x; then
11060 echo 'filds mem; fists mem' > conftest.s
11061 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }
11068 gcc_cv_as_ix86_filds_fists=yes
11070 echo "configure: failed program was" >&5
11073 rm -f conftest.o conftest.s
11076 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11077 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11078 if test $gcc_cv_as_ix86_filds_fists = yes; then
11080 cat >>confdefs.h <<\_ACEOF
11081 #define HAVE_GAS_FILDS_FISTS 1
11086 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11087 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11088 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 gcc_cv_as_ix86_cmov_sun_syntax=no
11092 if test x$gcc_cv_as != x; then
11093 echo 'cmovl.l %edx, %eax' > conftest.s
11094 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }
11101 gcc_cv_as_ix86_cmov_sun_syntax=yes
11103 echo "configure: failed program was" >&5
11106 rm -f conftest.o conftest.s
11109 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11110 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11111 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11113 cat >>confdefs.h <<\_ACEOF
11114 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11119 # This one is used unconditionally by i386.[ch]; it is to be defined
11120 # to 1 if the feature is present, 0 otherwise.
11121 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11122 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11123 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 gcc_cv_as_ix86_gotoff_in_data=no
11127 if test $in_tree_gas = yes; then
11128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11129 then gcc_cv_as_ix86_gotoff_in_data=yes
11131 elif test x$gcc_cv_as != x; then
11136 .long .L0@GOTOFF' > conftest.s
11137 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }
11144 gcc_cv_as_ix86_gotoff_in_data=yes
11146 echo "configure: failed program was" >&5
11149 rm -f conftest.o conftest.s
11152 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11153 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11156 cat >>confdefs.h <<_ACEOF
11157 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11163 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11164 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11165 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11169 if test $in_tree_gas = yes; then
11170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11171 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11173 elif test x$gcc_cv_as != x; then
11175 addl r15 = @ltoffx(x#), gp
11177 ld8.mov r16 = [r15], x#' > conftest.s
11178 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }
11185 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11187 echo "configure: failed program was" >&5
11190 rm -f conftest.o conftest.s
11193 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11194 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11195 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11197 cat >>confdefs.h <<\_ACEOF
11198 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11207 *-*-aix) conftest_s=' .csect .textPR';;
11208 *) conftest_s=' .text';;
11210 conftest_s="$conftest_s
11213 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11214 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11215 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 gcc_cv_as_powerpc_mfcrf=no
11219 if test $in_tree_gas = yes; then
11220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11221 then gcc_cv_as_powerpc_mfcrf=yes
11223 elif test x$gcc_cv_as != x; then
11224 echo "$conftest_s" > conftest.s
11225 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }
11232 gcc_cv_as_powerpc_mfcrf=yes
11234 echo "configure: failed program was" >&5
11237 rm -f conftest.o conftest.s
11240 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11241 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11242 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11244 cat >>confdefs.h <<\_ACEOF
11245 #define HAVE_AS_MFCRF 1
11252 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11253 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11254 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 gcc_cv_as_mips_explicit_relocs=no
11258 if test $in_tree_gas = yes; then
11259 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11260 then gcc_cv_as_mips_explicit_relocs=yes
11262 elif test x$gcc_cv_as != x; then
11263 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11264 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }
11271 gcc_cv_as_mips_explicit_relocs=yes
11273 echo "configure: failed program was" >&5
11276 rm -f conftest.o conftest.s
11279 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11280 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11281 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11282 if test x$target_cpu_default = x
11283 then target_cpu_default=MASK_EXPLICIT_RELOCS
11284 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11290 # ??? Not all targets support dwarf2 debug_line, even within a version
11291 # of gas. Moreover, we need to emit a valid instruction to trigger any
11292 # info to the output file. So, as supported targets are added to gas 2.11,
11293 # add some instruction here to (also) show we expect this might work.
11294 # ??? Once 2.11 is released, probably need to add first known working
11295 # version to the per-target configury.
11297 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11298 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11299 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11309 if test x"$insn" != x; then
11311 .file 1 \"conftest.s\"
11314 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11315 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11316 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 gcc_cv_as_dwarf2_debug_line=no
11320 if test $in_tree_gas = yes; then
11321 if test $in_tree_gas_is_elf = yes \
11322 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11323 then gcc_cv_as_dwarf2_debug_line=yes
11325 elif test x$gcc_cv_as != x; then
11326 echo "$conftest_s" > conftest.s
11327 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }
11334 # ??? This fails with non-gnu grep. Maybe use objdump?
11335 if grep debug_line conftest.o > /dev/null 2>&1; then
11336 gcc_cv_as_dwarf2_debug_line=yes
11339 echo "configure: failed program was" >&5
11342 rm -f conftest.o conftest.s
11345 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11346 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11349 # The .debug_line file table must be in the exact order that
11350 # we specified the files, since these indices are also used
11351 # by DW_AT_decl_file. Approximate this test by testing if
11352 # the assembler bitches if the same index is assigned twice.
11353 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11354 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11355 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 gcc_cv_as_dwarf2_file_buggy=no
11359 if test x$gcc_cv_as != x; then
11360 echo ' .file 1 "foo.s"
11361 .file 1 "bar.s"' > conftest.s
11362 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }
11369 gcc_cv_as_dwarf2_file_buggy=yes
11371 echo "configure: failed program was" >&5
11374 rm -f conftest.o conftest.s
11377 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11378 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11381 if test $gcc_cv_as_dwarf2_debug_line = yes \
11382 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11384 cat >>confdefs.h <<\_ACEOF
11385 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11390 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11391 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11392 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 gcc_cv_as_gdwarf2_flag=no
11396 if test $in_tree_gas = yes; then
11397 if test $in_tree_gas_is_elf = yes \
11398 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11399 then gcc_cv_as_gdwarf2_flag=yes
11401 elif test x$gcc_cv_as != x; then
11402 echo "$insn" > conftest.s
11403 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }
11410 gcc_cv_as_gdwarf2_flag=yes
11412 echo "configure: failed program was" >&5
11415 rm -f conftest.o conftest.s
11418 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11419 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11420 if test $gcc_cv_as_gdwarf2_flag = yes; then
11422 cat >>confdefs.h <<\_ACEOF
11423 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11428 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11429 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11430 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 gcc_cv_as_gstabs_flag=no
11434 if test $in_tree_gas = yes; then
11435 if test $in_tree_gas_is_elf = yes \
11436 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11437 then gcc_cv_as_gstabs_flag=yes
11439 elif test x$gcc_cv_as != x; then
11440 echo "$insn" > conftest.s
11441 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }
11448 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11449 # and warns about it, but still exits successfully. So check for
11451 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }
11458 else gcc_cv_as_gstabs_flag=yes
11461 echo "configure: failed program was" >&5
11464 rm -f conftest.o conftest.s
11467 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11468 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11469 if test $gcc_cv_as_gstabs_flag = yes; then
11471 cat >>confdefs.h <<\_ACEOF
11472 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11478 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11479 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11480 gcc_cv_ld_ro_rw_mix=unknown
11481 if test $in_tree_ld = yes ; then
11482 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 \
11483 && test $in_tree_ld_is_elf = yes; then
11484 gcc_cv_ld_ro_rw_mix=read-write
11486 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11487 echo '.section myfoosect, "a"' > conftest1.s
11488 echo '.section myfoosect, "aw"' > conftest2.s
11489 echo '.byte 1' >> conftest2.s
11490 echo '.section myfoosect, "a"' > conftest3.s
11491 echo '.byte 0' >> conftest3.s
11492 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11493 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11494 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11495 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11496 conftest2.o conftest3.o > /dev/null 2>&1; then
11497 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11498 | sed -e '/myfoosect/!d' -e N`
11499 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11500 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11501 gcc_cv_ld_ro_rw_mix=read-only
11503 gcc_cv_ld_ro_rw_mix=read-write
11507 rm -f conftest.* conftest[123].*
11509 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11511 cat >>confdefs.h <<\_ACEOF
11512 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11516 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11517 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11519 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11520 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11521 gcc_cv_ld_eh_frame_hdr=no
11522 if test $in_tree_ld = yes ; then
11523 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 \
11524 && test $in_tree_ld_is_elf = yes; then
11525 gcc_cv_ld_eh_frame_hdr=yes
11527 elif test x$gcc_cv_ld != x; then
11528 # Check if linker supports --eh-frame-hdr option
11529 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11530 gcc_cv_ld_eh_frame_hdr=yes
11533 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11535 cat >>confdefs.h <<\_ACEOF
11536 #define HAVE_LD_EH_FRAME_HDR 1
11540 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11541 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11543 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11544 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11546 if test $in_tree_ld = yes ; then
11547 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 \
11548 && test $in_tree_ld_is_elf = yes; then
11551 elif test x$gcc_cv_ld != x; then
11552 # Check if linker supports -pie option
11553 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11557 if test x"$gcc_cv_ld_pie" = xyes; then
11559 cat >>confdefs.h <<\_ACEOF
11560 #define HAVE_LD_PIE 1
11564 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11565 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11567 if test x$with_sysroot = x && test x$host = x$target \
11568 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11570 cat >>confdefs.h <<_ACEOF
11571 #define PREFIX_INCLUDE_DIR "$prefix/include"
11576 # Figure out what language subdirectories are present.
11577 # Look if the user specified --enable-languages="..."; if not, use
11578 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11579 # go away some day.
11580 # NB: embedded tabs in this IF block -- do not untabify
11581 if test x"${enable_languages+set}" != xset; then
11582 if test x"${LANGUAGES+set}" = xset; then
11583 enable_languages="${LANGUAGES}"
11584 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11585 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11588 enable_languages=all
11591 if test x"${enable_languages}" = x \
11592 || test x"${enable_languages}" = xyes;
11594 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11595 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11596 { (exit 1); exit 1; }; }
11599 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11601 # First scan to see if an enabled language requires some other language.
11602 # We assume that a given config-lang.in will list all the language
11603 # front ends it requires, even if some are required indirectly.
11604 for lang in ${srcdir}/*/config-lang.in
11607 # The odd quoting in the next line works around
11608 # an apparent bug in bash 1.12 on linux.
11609 ${srcdir}/[*]/config-lang.in)
11612 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11613 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11614 for other in $this_lang_requires
11616 case ,${enable_languages}, in
11622 enable_languages="$enable_languages,$other"
11630 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11633 for lang in ${srcdir}/*/config-lang.in
11636 # The odd quoting in the next line works around
11637 # an apparent bug in bash 1.12 on linux.
11638 ${srcdir}/[*]/config-lang.in) ;;
11640 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11641 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11642 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11643 if test "x$lang_alias" = x
11645 echo "$lang doesn't set \$language." 1>&2
11648 case ${build_by_default},${enable_languages}, in
11649 *,$lang_alias,*) add_this_lang=yes ;;
11650 no,*) add_this_lang=no ;;
11651 *,all,*) add_this_lang=yes ;;
11652 *) add_this_lang=no ;;
11654 found_languages="${found_languages} ${lang_alias}"
11655 if test x"${add_this_lang}" = xyes; then
11657 ${srcdir}/ada/config-lang.in)
11658 if test x$have_gnat = xyes ; then
11659 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11663 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11672 for expected_language in ${expected_languages} ..
11674 if test "${expected_language}" != ..; then
11675 missing_language="${expected_language}"
11676 if test "${expected_language}" = "c" \
11677 || test "${expected_language}" = "all"; then
11680 for found_language in ${found_languages} ..
11682 if test "${found_language}" != ..; then
11683 if test "${expected_language}" = "${found_language}"; then
11688 if test "x${missing_language}" != x; then
11689 missing_languages="${missing_languages} ${missing_language}"
11694 if test "x$missing_languages" != x; then
11695 { { echo "$as_me:$LINENO: error:
11696 The following requested languages were not found:${missing_languages}
11697 The following languages were available: c${found_languages}" >&5
11698 echo "$as_me: error:
11699 The following requested languages were not found:${missing_languages}
11700 The following languages were available: c${found_languages}" >&2;}
11701 { (exit 1); exit 1; }; }
11704 # Make gthr-default.h if we have a thread file.
11706 if test $thread_file != single; then
11707 rm -f gthr-default.h
11708 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11709 gthread_flags=-DHAVE_GTHR_DEFAULT
11713 # Find out what GC implementation we want, or may, use.
11715 # Check whether --with-gc or --without-gc was given.
11716 if test "${with_gc+set}" = set; then
11719 simple | page | zone)
11723 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11724 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11725 { (exit 1); exit 1; }; }
11732 echo "Using $GGC for garbage collection."
11734 # Use the system's zlib library.
11736 zlibinc="-I\$(srcdir)/../zlib"
11738 # Check whether --with-system-zlib or --without-system-zlib was given.
11739 if test "${with_system_zlib+set}" = set; then
11740 withval="$with_system_zlib"
11749 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11750 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11751 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11752 if test "${enable_maintainer_mode+set}" = set; then
11753 enableval="$enable_maintainer_mode"
11754 maintainer_mode=$enableval
11759 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11760 echo "${ECHO_T}$maintainer_mode" >&6
11762 if test "$maintainer_mode" = "yes"; then
11768 # Make empty files to contain the specs and options for each language.
11769 # Then add #include lines to for a compiler that has specs and/or options.
11774 for subdir in . $subdirs
11776 if test -f $srcdir/$subdir/lang.opt; then
11777 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11779 if test -f $srcdir/$subdir/lang-specs.h; then
11780 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11782 if test -f $srcdir/$subdir/$subdir-tree.def; then
11783 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11787 # These (without "all_") are set in each config-lang.in.
11788 # `language' must be a single word so is spelled singularly.
11790 all_boot_languages=
11793 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11794 # List of language makefile fragments.
11795 all_lang_makefrags=
11796 # List of language subdirectory makefiles. Deprecated.
11797 all_lang_makefiles=
11798 # Files for gengtype
11799 all_gtfiles="$target_gtfiles"
11800 # Files for gengtype with language
11801 all_gtfiles_files_langs=
11802 all_gtfiles_files_files=
11804 # Add the language fragments.
11805 # Languages are added via two mechanisms. Some information must be
11806 # recorded in makefile variables, these are defined in config-lang.in.
11807 # We accumulate them and plug them into the main Makefile.
11808 # The other mechanism is a set of hooks for each of the main targets
11809 # like `clean', `install', etc.
11811 language_hooks="Make-hooks"
11821 . ${srcdir}/$s/config-lang.in
11822 if test "x$language" = x
11824 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11827 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11828 if test -f ${srcdir}/$s/Makefile.in
11829 then all_lang_makefiles="$s/Makefile"
11831 all_languages="$all_languages $language"
11832 if test "x$boot_language" = xyes
11834 all_boot_languages="$all_boot_languages $language"
11836 all_compilers="$all_compilers $compilers"
11837 all_stagestuff="$all_stagestuff $stagestuff"
11838 all_outputs="$all_outputs $outputs"
11839 all_gtfiles="$all_gtfiles $gtfiles"
11842 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11843 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11847 # Pick up gtfiles for c
11850 . ${srcdir}/c-config-lang.in
11851 all_gtfiles="$all_gtfiles $gtfiles"
11854 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11855 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11859 for language in $all_languages
11861 check_languages="$check_languages check-$language"
11864 # We link each language in with a set of hooks, reached indirectly via
11869 target_list="all.build all.cross start.encap rest.encap tags \
11870 install-normal install-common install-man \
11872 mostlyclean clean distclean maintainer-clean \
11873 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11874 for t in $target_list
11877 for lang in $all_languages
11881 echo "lang.$t: $x" >> Make-hooks
11886 echo "dir ." > .gdbinit
11887 echo "dir ${srcdir}" >> .gdbinit
11888 if test x$gdb_needs_out_file_path = xyes
11890 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11892 if test "x$subdirs" != x; then
11895 echo "dir ${srcdir}/$s" >> .gdbinit
11898 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11900 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11901 # absolute path for gcc_tooldir based on inserting the number of up-directory
11902 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11903 # $(libsubdir)/@(unlibsubdir) based path.
11904 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11905 # make and thus we'd get different behavior depending on where we built the
11907 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
11908 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11910 # An explanation of the sed strings:
11911 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
11912 # -e 's|/$||' match a trailing forward slash and eliminates it
11913 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
11914 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
11916 # (*) Note this pattern overwrites the first character of the string
11917 # with a forward slash if one is not already present. This is not a
11918 # problem because the exact names of the sub-directories concerned is
11919 # unimportant, just the number of them matters.
11921 # The practical upshot of these patterns is like this:
11923 # prefix exec_prefix result
11924 # ------ ----------- ------
11925 # /foo /foo/bar ../
11926 # /foo/ /foo/bar ../
11927 # /foo /foo/bar/ ../
11928 # /foo/ /foo/bar/ ../
11929 # /foo /foo/bar/ugg ../../
11932 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11937 # Find a directory in which to install a shared libgcc.
11939 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11940 if test "${enable_version_specific_runtime_libs+set}" = set; then
11941 enableval="$enable_version_specific_runtime_libs"
11946 # Check whether --with-slibdir or --without-slibdir was given.
11947 if test "${with_slibdir+set}" = set; then
11948 withval="$with_slibdir"
11949 slibdir="$with_slibdir"
11951 if test "${enable_version_specific_runtime_libs+set}" = set; then
11952 slibdir='$(libsubdir)'
11953 elif test "$host" != "$target"; then
11954 slibdir='$(build_tooldir)/lib'
11956 slibdir='$(libdir)'
11961 objdir=`${PWDCMD-pwd}`
11964 # Substitute configuration variables
12036 if test x${build} = x${host} ; then
12037 if test x${host} = x${target} ; then
12038 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12040 echo "Links are now set up to build a cross-compiler" 1>&2
12041 echo " from ${host} to ${target}." 1>&2
12044 if test x${host} = x${target} ; then
12045 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12046 echo " for ${target}." 1>&2
12048 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12049 echo " from ${host} to ${target}." 1>&2
12053 # Configure the subdirectories
12054 # AC_CONFIG_SUBDIRS($subdirs)
12056 # Create the Makefile
12057 # and configure language subdirectories
12058 ac_config_files="$ac_config_files $all_outputs"
12059 ac_config_commands="$ac_config_commands default"
12060 cat >confcache <<\_ACEOF
12061 # This file is a shell script that caches the results of configure
12062 # tests run on this system so they can be shared between configure
12063 # scripts and configure runs, see configure's option --config-cache.
12064 # It is not useful on other systems. If it contains results you don't
12065 # want to keep, you may remove or edit it.
12067 # config.status only pays attention to the cache file if you give it
12068 # the --recheck option to rerun configure.
12070 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12071 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12072 # following values.
12076 # The following way of writing the cache mishandles newlines in values,
12077 # but we know of no workaround that is simple, portable, and efficient.
12078 # So, don't put newlines in cache variables' values.
12079 # Ultrix sh set writes to stderr and can't be redirected directly,
12080 # and sets the high bit in the cache file unless we assign to the vars.
12083 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12085 # `set' does not quote correctly, so add quotes (double-quote
12086 # substitution turns \\\\ into \\, and sed turns \\ into \).
12089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12092 # `set' quotes correctly as required by POSIX, so do not add quotes.
12094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12101 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12103 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12105 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12106 if test -w $cache_file; then
12107 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12108 cat confcache >$cache_file
12110 echo "not updating unwritable cache $cache_file"
12115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12116 # Let make expand exec_prefix.
12117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12119 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12120 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12121 # trailing colons and then remove the whole line if VPATH becomes empty
12122 # (actually we leave an empty line to preserve line numbers).
12123 if test "x$srcdir" = x.; then
12124 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12125 s/:*\$(srcdir):*/:/;
12126 s/:*\${srcdir}:*/:/;
12128 s/^\([^=]*=[ ]*\):*/\1/;
12134 DEFS=-DHAVE_CONFIG_H
12138 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12139 # 1. Remove the extension, and $U if already installed.
12140 ac_i=`echo "$ac_i" |
12141 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12143 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12144 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12146 LIBOBJS=$ac_libobjs
12148 LTLIBOBJS=$ac_ltlibobjs
12152 : ${CONFIG_STATUS=./config.status}
12153 ac_clean_files_save=$ac_clean_files
12154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12155 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12156 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12157 cat >$CONFIG_STATUS <<_ACEOF
12159 # Generated by $as_me.
12160 # Run this file to recreate the current configuration.
12161 # Compiler output produced by configure, useful for debugging
12162 # configure, is in config.log if it exists.
12165 ac_cs_recheck=false
12167 SHELL=\${CONFIG_SHELL-$SHELL}
12170 cat >>$CONFIG_STATUS <<\_ACEOF
12171 ## --------------------- ##
12172 ## M4sh Initialization. ##
12173 ## --------------------- ##
12175 # Be Bourne compatible
12176 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12179 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12180 # is contrary to our usage. Disable this feature.
12181 alias -g '${1+"$@"}'='"$@"'
12182 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12186 # Support unset when possible.
12187 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12194 # Work around bugs in pre-3.0 UWIN ksh.
12195 $as_unset ENV MAIL MAILPATH
12202 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12203 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12204 LC_TELEPHONE LC_TIME
12206 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12207 eval $as_var=C; export $as_var
12213 # Required to use basename.
12214 if expr a : '\(a\)' >/dev/null 2>&1; then
12220 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12221 as_basename=basename
12227 # Name of the executable.
12228 as_me=`$as_basename "$0" ||
12229 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12230 X"$0" : 'X\(//\)$' \| \
12231 X"$0" : 'X\(/\)$' \| \
12232 . : '\(.\)' 2>/dev/null ||
12234 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12235 /^X\/\(\/\/\)$/{ s//\1/; q; }
12236 /^X\/\(\/\).*/{ s//\1/; q; }
12240 # PATH needs CR, and LINENO needs CR and PATH.
12241 # Avoid depending upon Character Ranges.
12242 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12243 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12244 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12245 as_cr_digits='0123456789'
12246 as_cr_alnum=$as_cr_Letters$as_cr_digits
12248 # The user is always right.
12249 if test "${PATH_SEPARATOR+set}" != set; then
12250 echo "#! /bin/sh" >conf$$.sh
12251 echo "exit 0" >>conf$$.sh
12253 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12262 as_lineno_1=$LINENO
12263 as_lineno_2=$LINENO
12264 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12265 test "x$as_lineno_1" != "x$as_lineno_2" &&
12266 test "x$as_lineno_3" = "x$as_lineno_2" || {
12267 # Find who we are. Look in the path if we contain no path at all
12270 *[\\/]* ) as_myself=$0 ;;
12271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH
12275 test -z "$as_dir" && as_dir=.
12276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12281 # We did not find ourselves, most probably we were run as `sh COMMAND'
12282 # in which case we are not to be found in the path.
12283 if test "x$as_myself" = x; then
12286 if test ! -f "$as_myself"; then
12287 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12288 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12289 { (exit 1); exit 1; }; }
12291 case $CONFIG_SHELL in
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12297 test -z "$as_dir" && as_dir=.
12298 for as_base in sh bash ksh sh5; do
12301 if ("$as_dir/$as_base" -c '
12302 as_lineno_1=$LINENO
12303 as_lineno_2=$LINENO
12304 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12305 test "x$as_lineno_1" != "x$as_lineno_2" &&
12306 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12307 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12308 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12309 CONFIG_SHELL=$as_dir/$as_base
12310 export CONFIG_SHELL
12311 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12319 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12320 # uniformly replaced by the line number. The first 'sed' inserts a
12321 # line-number line before each line; the second 'sed' does the real
12322 # work. The second script uses 'N' to pair each line-number line
12323 # with the numbered line, and appends trailing '-' during
12324 # substitution so that $LINENO is not a special case at line end.
12325 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12326 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12327 sed '=' <$as_myself |
12332 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12335 s,^['$as_cr_digits']*\n,,
12336 ' >$as_me.lineno &&
12337 chmod +x $as_me.lineno ||
12338 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12339 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12340 { (exit 1); exit 1; }; }
12342 # Don't try to exec as it changes $[0], causing all sort of problems
12343 # (the dirname of $[0] is not the place where we might find the
12344 # original and so on. Autoconf is especially sensible to this).
12346 # Exit status is that of the last command.
12351 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12352 *c*,-n*) ECHO_N= ECHO_C='
12354 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12355 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12358 if expr a : '\(a\)' >/dev/null 2>&1; then
12364 rm -f conf$$ conf$$.exe conf$$.file
12366 if ln -s conf$$.file conf$$ 2>/dev/null; then
12367 # We could just check for DJGPP; but this test a) works b) is more generic
12368 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12369 if test -f conf$$.exe; then
12370 # Don't use ln at all; we don't have any links
12375 elif ln conf$$.file conf$$ 2>/dev/null; then
12380 rm -f conf$$ conf$$.exe conf$$.file
12382 if mkdir -p . 2>/dev/null; then
12388 as_executable_p="test -f"
12390 # Sed expression to map a string onto a valid CPP name.
12391 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12393 # Sed expression to map a string onto a valid variable name.
12394 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12398 # We need space, tab and new line, in precisely that order.
12408 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12409 # report actual input values of CONFIG_FILES etc. instead of their
12410 # values after options handling. Logging --version etc. is OK.
12414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12415 ## Running $as_me. ##
12420 This file was extended by $as_me, which was
12421 generated by GNU Autoconf 2.57. Invocation command line was
12423 CONFIG_FILES = $CONFIG_FILES
12424 CONFIG_HEADERS = $CONFIG_HEADERS
12425 CONFIG_LINKS = $CONFIG_LINKS
12426 CONFIG_COMMANDS = $CONFIG_COMMANDS
12430 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12434 # Files that config.status was made for.
12435 if test -n "$ac_config_files"; then
12436 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12439 if test -n "$ac_config_headers"; then
12440 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12443 if test -n "$ac_config_links"; then
12444 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12447 if test -n "$ac_config_commands"; then
12448 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12451 cat >>$CONFIG_STATUS <<\_ACEOF
12454 \`$as_me' instantiates files from templates according to the
12455 current configuration.
12457 Usage: $0 [OPTIONS] [FILE]...
12459 -h, --help print this help, then exit
12460 -V, --version print version number, then exit
12461 -q, --quiet do not print progress messages
12462 -d, --debug don't remove temporary files
12463 --recheck update $as_me by reconfiguring in the same conditions
12464 --file=FILE[:TEMPLATE]
12465 instantiate the configuration file FILE
12466 --header=FILE[:TEMPLATE]
12467 instantiate the configuration header FILE
12469 Configuration files:
12472 Configuration headers:
12475 Configuration commands:
12478 Report bugs to <bug-autoconf@gnu.org>."
12481 cat >>$CONFIG_STATUS <<_ACEOF
12484 configured by $0, generated by GNU Autoconf 2.57,
12485 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12487 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12488 Free Software Foundation, Inc.
12489 This config.status script is free software; the Free Software Foundation
12490 gives unlimited permission to copy, distribute and modify it."
12494 cat >>$CONFIG_STATUS <<\_ACEOF
12495 # If no file are specified by the user, then we need to provide default
12496 # value. By we need to know if files were specified by the user.
12502 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12503 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12511 *) # This is not an option, so the user has probably given explicit
12514 ac_need_defaults=false;;
12518 # Handling of the options.
12520 cat >>$CONFIG_STATUS <<\_ACEOF
12521 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12523 --version | --vers* | -V )
12524 echo "$ac_cs_version"; exit 0 ;;
12526 # Conflict between --help and --header
12527 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12528 Try \`$0 --help' for more information." >&5
12529 echo "$as_me: error: ambiguous option: $1
12530 Try \`$0 --help' for more information." >&2;}
12531 { (exit 1); exit 1; }; };;
12532 --help | --hel | -h )
12533 echo "$ac_cs_usage"; exit 0 ;;
12534 --debug | --d* | -d )
12536 --file | --fil | --fi | --f )
12538 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12539 ac_need_defaults=false;;
12540 --header | --heade | --head | --hea )
12542 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12543 ac_need_defaults=false;;
12544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12548 # This is an error.
12549 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12550 Try \`$0 --help' for more information." >&5
12551 echo "$as_me: error: unrecognized option: $1
12552 Try \`$0 --help' for more information." >&2;}
12553 { (exit 1); exit 1; }; } ;;
12555 *) ac_config_targets="$ac_config_targets $1" ;;
12561 ac_configure_extra_args=
12563 if $ac_cs_silent; then
12565 ac_configure_extra_args="$ac_configure_extra_args --silent"
12569 cat >>$CONFIG_STATUS <<_ACEOF
12570 if \$ac_cs_recheck; then
12571 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12572 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12577 cat >>$CONFIG_STATUS <<_ACEOF
12579 # INIT-COMMANDS section.
12583 symbolic_link='$symbolic_link'
12590 cat >>$CONFIG_STATUS <<\_ACEOF
12591 for ac_config_target in $ac_config_targets
12593 case "$ac_config_target" in
12594 # Handling of arguments.
12595 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12596 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12597 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12598 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12599 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12600 { (exit 1); exit 1; }; };;
12604 # If the user did not use the arguments to specify the items to instantiate,
12605 # then the envvar interface is used. Set only those that are not.
12606 # We use the long form for the default assignment because of an extremely
12607 # bizarre bug on SunOS 4.1.3.
12608 if $ac_need_defaults; then
12609 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12610 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12611 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12614 # Have a temporary directory for convenience. Make it in the build tree
12615 # simply because there is no reason to put it here, and in addition,
12616 # creating and moving files from /tmp can sometimes cause problems.
12617 # Create a temporary directory, and hook for its removal unless debugging.
12620 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12621 trap '{ (exit 1); exit 1; }' 1 2 13 15
12624 # Create a (secure) tmp directory for tmp files.
12627 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12628 test -n "$tmp" && test -d "$tmp"
12631 tmp=./confstat$$-$RANDOM
12632 (umask 077 && mkdir $tmp)
12635 echo "$me: cannot create a temporary directory in ." >&2
12636 { (exit 1); exit 1; }
12641 cat >>$CONFIG_STATUS <<_ACEOF
12644 # CONFIG_FILES section.
12647 # No need to generate the scripts if there are no CONFIG_FILES.
12648 # This happens for instance when ./config.status config.h
12649 if test -n "\$CONFIG_FILES"; then
12650 # Protect against being on the right side of a sed subst in config.status.
12651 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12652 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12653 s,@SHELL@,$SHELL,;t t
12654 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12655 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12656 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12657 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12658 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12659 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12660 s,@exec_prefix@,$exec_prefix,;t t
12661 s,@prefix@,$prefix,;t t
12662 s,@program_transform_name@,$program_transform_name,;t t
12663 s,@bindir@,$bindir,;t t
12664 s,@sbindir@,$sbindir,;t t
12665 s,@libexecdir@,$libexecdir,;t t
12666 s,@datadir@,$datadir,;t t
12667 s,@sysconfdir@,$sysconfdir,;t t
12668 s,@sharedstatedir@,$sharedstatedir,;t t
12669 s,@localstatedir@,$localstatedir,;t t
12670 s,@libdir@,$libdir,;t t
12671 s,@includedir@,$includedir,;t t
12672 s,@oldincludedir@,$oldincludedir,;t t
12673 s,@infodir@,$infodir,;t t
12674 s,@mandir@,$mandir,;t t
12675 s,@build_alias@,$build_alias,;t t
12676 s,@host_alias@,$host_alias,;t t
12677 s,@target_alias@,$target_alias,;t t
12678 s,@DEFS@,$DEFS,;t t
12679 s,@ECHO_C@,$ECHO_C,;t t
12680 s,@ECHO_N@,$ECHO_N,;t t
12681 s,@ECHO_T@,$ECHO_T,;t t
12682 s,@LIBS@,$LIBS,;t t
12683 s,@build@,$build,;t t
12684 s,@build_cpu@,$build_cpu,;t t
12685 s,@build_vendor@,$build_vendor,;t t
12686 s,@build_os@,$build_os,;t t
12687 s,@host@,$host,;t t
12688 s,@host_cpu@,$host_cpu,;t t
12689 s,@host_vendor@,$host_vendor,;t t
12690 s,@host_os@,$host_os,;t t
12691 s,@target@,$target,;t t
12692 s,@target_cpu@,$target_cpu,;t t
12693 s,@target_vendor@,$target_vendor,;t t
12694 s,@target_os@,$target_os,;t t
12695 s,@build_subdir@,$build_subdir,;t t
12696 s,@host_subdir@,$host_subdir,;t t
12697 s,@target_subdir@,$target_subdir,;t t
12699 s,@CFLAGS@,$CFLAGS,;t t
12700 s,@LDFLAGS@,$LDFLAGS,;t t
12701 s,@CPPFLAGS@,$CPPFLAGS,;t t
12702 s,@ac_ct_CC@,$ac_ct_CC,;t t
12703 s,@EXEEXT@,$EXEEXT,;t t
12704 s,@OBJEXT@,$OBJEXT,;t t
12705 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12706 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12708 s,@GNATBIND@,$GNATBIND,;t t
12709 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12710 s,@strict1_warn@,$strict1_warn,;t t
12711 s,@warn_cflags@,$warn_cflags,;t t
12712 s,@WERROR@,$WERROR,;t t
12713 s,@nocommon_flag@,$nocommon_flag,;t t
12714 s,@EGREP@,$EGREP,;t t
12715 s,@valgrind_path@,$valgrind_path,;t t
12716 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12717 s,@valgrind_command@,$valgrind_command,;t t
12718 s,@coverage_flags@,$coverage_flags,;t t
12719 s,@enable_multilib@,$enable_multilib,;t t
12720 s,@enable_shared@,$enable_shared,;t t
12721 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12722 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12723 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12724 s,@onestep@,$onestep,;t t
12725 s,@SET_MAKE@,$SET_MAKE,;t t
12728 s,@LN_S@,$LN_S,;t t
12729 s,@RANLIB@,$RANLIB,;t t
12730 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12731 s,@INSTALL@,$INSTALL,;t t
12732 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12733 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12734 s,@make_compare_target@,$make_compare_target,;t t
12735 s,@have_mktemp_command@,$have_mktemp_command,;t t
12736 s,@MAKEINFO@,$MAKEINFO,;t t
12737 s,@BUILD_INFO@,$BUILD_INFO,;t t
12738 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12739 s,@FLEX@,$FLEX,;t t
12740 s,@BISON@,$BISON,;t t
12741 s,@stage1_cflags@,$stage1_cflags,;t t
12742 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12743 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12744 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12745 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12746 s,@LIBICONV@,$LIBICONV,;t t
12747 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12748 s,@manext@,$manext,;t t
12749 s,@objext@,$objext,;t t
12750 s,@extra_modes_file@,$extra_modes_file,;t t
12751 s,@FORBUILD@,$FORBUILD,;t t
12752 s,@PACKAGE@,$PACKAGE,;t t
12753 s,@VERSION@,$VERSION,;t t
12754 s,@USE_NLS@,$USE_NLS,;t t
12755 s,@LIBINTL@,$LIBINTL,;t t
12756 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12757 s,@INCINTL@,$INCINTL,;t t
12758 s,@XGETTEXT@,$XGETTEXT,;t t
12759 s,@GMSGFMT@,$GMSGFMT,;t t
12760 s,@POSUB@,$POSUB,;t t
12761 s,@CATALOGS@,$CATALOGS,;t t
12762 s,@CROSS@,$CROSS,;t t
12764 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12765 s,@inhibit_libc@,$inhibit_libc,;t t
12766 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12767 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12768 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12769 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12770 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12771 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12772 s,@libgcc_visibility@,$libgcc_visibility,;t t
12773 s,@gthread_flags@,$gthread_flags,;t t
12775 s,@zlibdir@,$zlibdir,;t t
12776 s,@zlibinc@,$zlibinc,;t t
12777 s,@MAINT@,$MAINT,;t t
12778 s,@gcc_tooldir@,$gcc_tooldir,;t t
12779 s,@dollar@,$dollar,;t t
12780 s,@slibdir@,$slibdir,;t t
12781 s,@objdir@,$objdir,;t t
12782 s,@subdirs@,$subdirs,;t t
12783 s,@srcdir@,$srcdir,;t t
12784 s,@docobjdir@,$docobjdir,;t t
12785 s,@parsedir@,$parsedir,;t t
12786 s,@all_boot_languages@,$all_boot_languages,;t t
12787 s,@all_compilers@,$all_compilers,;t t
12788 s,@all_gtfiles@,$all_gtfiles,;t t
12789 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12790 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12791 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12792 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12793 s,@all_languages@,$all_languages,;t t
12794 s,@all_stagestuff@,$all_stagestuff,;t t
12795 s,@build_exeext@,$build_exeext,;t t
12796 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12797 s,@build_xm_file_list@,$build_xm_file_list,;t t
12798 s,@build_xm_include_list@,$build_xm_include_list,;t t
12799 s,@build_xm_defines@,$build_xm_defines,;t t
12800 s,@check_languages@,$check_languages,;t t
12801 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12802 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12803 s,@cpp_install_dir@,$cpp_install_dir,;t t
12804 s,@xmake_file@,$xmake_file,;t t
12805 s,@tmake_file@,$tmake_file,;t t
12806 s,@extra_headers_list@,$extra_headers_list,;t t
12807 s,@extra_objs@,$extra_objs,;t t
12808 s,@extra_parts@,$extra_parts,;t t
12809 s,@extra_passes@,$extra_passes,;t t
12810 s,@extra_programs@,$extra_programs,;t t
12811 s,@float_h_file@,$float_h_file,;t t
12812 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12813 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12814 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12815 s,@gcc_version@,$gcc_version,;t t
12816 s,@gcc_version_full@,$gcc_version_full,;t t
12817 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12818 s,@host_exeext@,$host_exeext,;t t
12819 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12820 s,@host_xm_file_list@,$host_xm_file_list,;t t
12821 s,@host_xm_include_list@,$host_xm_include_list,;t t
12822 s,@host_xm_defines@,$host_xm_defines,;t t
12823 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12824 s,@install@,$install,;t t
12825 s,@lang_opt_files@,$lang_opt_files,;t t
12826 s,@lang_specs_files@,$lang_specs_files,;t t
12827 s,@lang_tree_files@,$lang_tree_files,;t t
12828 s,@local_prefix@,$local_prefix,;t t
12829 s,@md_file@,$md_file,;t t
12830 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12831 s,@out_file@,$out_file,;t t
12832 s,@out_object_file@,$out_object_file,;t t
12833 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12834 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12835 s,@symbolic_link@,$symbolic_link,;t t
12836 s,@thread_file@,$thread_file,;t t
12837 s,@tm_file_list@,$tm_file_list,;t t
12838 s,@tm_include_list@,$tm_include_list,;t t
12839 s,@tm_defines@,$tm_defines,;t t
12840 s,@tm_p_file_list@,$tm_p_file_list,;t t
12841 s,@tm_p_include_list@,$tm_p_include_list,;t t
12842 s,@xm_file_list@,$xm_file_list,;t t
12843 s,@xm_include_list@,$xm_include_list,;t t
12844 s,@xm_defines@,$xm_defines,;t t
12845 s,@target_noncanonical@,$target_noncanonical,;t t
12846 s,@c_target_objs@,$c_target_objs,;t t
12847 s,@cxx_target_objs@,$cxx_target_objs,;t t
12848 s,@target_cpu_default@,$target_cpu_default,;t t
12849 s,@LIBOBJS@,$LIBOBJS,;t t
12850 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12851 /@language_hooks@/r $language_hooks
12852 s,@language_hooks@,,;t t
12857 cat >>$CONFIG_STATUS <<\_ACEOF
12858 # Split the substitutions into bite-sized pieces for seds with
12859 # small command number limits, like on Digital OSF/1 and HP-UX.
12860 ac_max_sed_lines=48
12861 ac_sed_frag=1 # Number of current file.
12862 ac_beg=1 # First line for current file.
12863 ac_end=$ac_max_sed_lines # Line after last line for current file.
12866 while $ac_more_lines; do
12867 if test $ac_beg -gt 1; then
12868 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12870 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12872 if test ! -s $tmp/subs.frag; then
12873 ac_more_lines=false
12875 # The purpose of the label and of the branching condition is to
12876 # speed up the sed processing (if there are no `@' at all, there
12877 # is no need to browse any of the substitutions).
12878 # These are the two extra sed commands mentioned above.
12880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12881 if test -z "$ac_sed_cmds"; then
12882 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12884 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12886 ac_sed_frag=`expr $ac_sed_frag + 1`
12888 ac_end=`expr $ac_end + $ac_max_sed_lines`
12891 if test -z "$ac_sed_cmds"; then
12894 fi # test -n "$CONFIG_FILES"
12897 cat >>$CONFIG_STATUS <<\_ACEOF
12898 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12899 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12901 - | *:- | *:-:* ) # input from stdin
12903 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12905 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12906 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12907 * ) ac_file_in=$ac_file.in ;;
12910 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12911 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12912 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12913 X"$ac_file" : 'X\(//\)[^/]' \| \
12914 X"$ac_file" : 'X\(//\)$' \| \
12915 X"$ac_file" : 'X\(/\)' \| \
12916 . : '\(.\)' 2>/dev/null ||
12918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12920 /^X\(\/\/\)$/{ s//\1/; q; }
12921 /^X\(\/\).*/{ s//\1/; q; }
12923 { if $as_mkdir_p; then
12928 while test ! -d "$as_dir"; do
12929 as_dirs="$as_dir $as_dirs"
12930 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12932 X"$as_dir" : 'X\(//\)[^/]' \| \
12933 X"$as_dir" : 'X\(//\)$' \| \
12934 X"$as_dir" : 'X\(/\)' \| \
12935 . : '\(.\)' 2>/dev/null ||
12937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12939 /^X\(\/\/\)$/{ s//\1/; q; }
12940 /^X\(\/\).*/{ s//\1/; q; }
12943 test ! -n "$as_dirs" || mkdir $as_dirs
12944 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12945 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12946 { (exit 1); exit 1; }; }; }
12950 if test "$ac_dir" != .; then
12951 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12952 # A "../" for each directory in $ac_dir_suffix.
12953 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12955 ac_dir_suffix= ac_top_builddir=
12959 .) # No --srcdir option. We are building in place.
12961 if test -z "$ac_top_builddir"; then
12964 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12966 [\\/]* | ?:[\\/]* ) # Absolute path.
12967 ac_srcdir=$srcdir$ac_dir_suffix;
12968 ac_top_srcdir=$srcdir ;;
12969 *) # Relative path.
12970 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12971 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12973 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12975 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12976 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12977 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12978 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12982 if test x"$ac_file" != x-; then
12983 { echo "$as_me:$LINENO: creating $ac_file" >&5
12984 echo "$as_me: creating $ac_file" >&6;}
12987 # Let's still pretend it is `configure' which instantiates (i.e., don't
12988 # use $as_me), people would be surprised to read:
12989 # /* config.h. Generated by config.status. */
12990 if test x"$ac_file" = x-; then
12993 configure_input="$ac_file. "
12995 configure_input=$configure_input"Generated from `echo $ac_file_in |
12996 sed 's,.*/,,'` by configure."
12998 # First look for the input files in the build tree, otherwise in the
13000 ac_file_inputs=`IFS=:
13001 for f in $ac_file_in; do
13003 -) echo $tmp/stdin ;;
13005 # Absolute (can't be DOS-style, as IFS=:)
13006 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13007 echo "$as_me: error: cannot find input file: $f" >&2;}
13008 { (exit 1); exit 1; }; }
13011 if test -f "$f"; then
13014 elif test -f "$srcdir/$f"; then
13019 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13020 echo "$as_me: error: cannot find input file: $f" >&2;}
13021 { (exit 1); exit 1; }; }
13024 done` || { (exit 1); exit 1; }
13026 cat >>$CONFIG_STATUS <<_ACEOF
13030 cat >>$CONFIG_STATUS <<\_ACEOF
13032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13033 s,@configure_input@,$configure_input,;t t
13034 s,@srcdir@,$ac_srcdir,;t t
13035 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13036 s,@top_srcdir@,$ac_top_srcdir,;t t
13037 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13038 s,@builddir@,$ac_builddir,;t t
13039 s,@abs_builddir@,$ac_abs_builddir,;t t
13040 s,@top_builddir@,$ac_top_builddir,;t t
13041 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13042 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13044 if test x"$ac_file" != x-; then
13045 mv $tmp/out $ac_file
13053 cat >>$CONFIG_STATUS <<\_ACEOF
13056 # CONFIG_HEADER section.
13059 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13060 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13062 # ac_d sets the value in "#define NAME VALUE" lines.
13063 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13064 ac_dB='[ ].*$,\1#\2'
13067 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13068 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13069 ac_uB='$,\1#\2define\3'
13073 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13076 - | *:- | *:-:* ) # input from stdin
13078 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13079 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13080 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13082 * ) ac_file_in=$ac_file.in ;;
13085 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13086 echo "$as_me: creating $ac_file" >&6;}
13088 # First look for the input files in the build tree, otherwise in the
13090 ac_file_inputs=`IFS=:
13091 for f in $ac_file_in; do
13093 -) echo $tmp/stdin ;;
13095 # Absolute (can't be DOS-style, as IFS=:)
13096 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13097 echo "$as_me: error: cannot find input file: $f" >&2;}
13098 { (exit 1); exit 1; }; }
13101 if test -f "$f"; then
13104 elif test -f "$srcdir/$f"; then
13109 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13110 echo "$as_me: error: cannot find input file: $f" >&2;}
13111 { (exit 1); exit 1; }; }
13114 done` || { (exit 1); exit 1; }
13115 # Remove the trailing spaces.
13116 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13120 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13121 # `conftest.undefs', that substitutes the proper values into
13122 # config.h.in to produce config.h. The first handles `#define'
13123 # templates, and the second `#undef' templates.
13124 # And first: Protect against being on the right side of a sed subst in
13125 # config.status. Protect against being in an unquoted here document
13126 # in config.status.
13127 rm -f conftest.defines conftest.undefs
13128 # Using a here document instead of a string reduces the quoting nightmare.
13129 # Putting comments in sed scripts is not portable.
13131 # `end' is used to avoid that the second main sed command (meant for
13132 # 0-ary CPP macros) applies to n-ary macro definitions.
13133 # See the Autoconf documentation for `clear'.
13134 cat >confdef2sed.sed <<\_ACEOF
13139 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13141 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13144 # If some macros were called several times there might be several times
13145 # the same #defines, which is useless. Nevertheless, we may not want to
13146 # sort them, since we want the *last* AC-DEFINE to be honored.
13147 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13148 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13149 rm -f confdef2sed.sed
13151 # This sed command replaces #undef with comments. This is necessary, for
13152 # example, in the case of _POSIX_SOURCE, which is predefined and required
13153 # on some systems where configure will not decide to define it.
13154 cat >>conftest.undefs <<\_ACEOF
13155 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13158 # Break up conftest.defines because some shells have a limit on the size
13159 # of here documents, and old seds have small limits too (100 cmds).
13160 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13161 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13162 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13163 echo ' :' >>$CONFIG_STATUS
13164 rm -f conftest.tail
13165 while grep . conftest.defines >/dev/null
13167 # Write a limited-size here document to $tmp/defines.sed.
13168 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13169 # Speed up: don't consider the non `#define' lines.
13170 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13171 # Work around the forget-to-reset-the-flag bug.
13172 echo 't clr' >>$CONFIG_STATUS
13173 echo ': clr' >>$CONFIG_STATUS
13174 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13176 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13178 mv $tmp/out $tmp/in
13180 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13181 rm -f conftest.defines
13182 mv conftest.tail conftest.defines
13184 rm -f conftest.defines
13185 echo ' fi # grep' >>$CONFIG_STATUS
13186 echo >>$CONFIG_STATUS
13188 # Break up conftest.undefs because some shells have a limit on the size
13189 # of here documents, and old seds have small limits too (100 cmds).
13190 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13191 rm -f conftest.tail
13192 while grep . conftest.undefs >/dev/null
13194 # Write a limited-size here document to $tmp/undefs.sed.
13195 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13196 # Speed up: don't consider the non `#undef'
13197 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13198 # Work around the forget-to-reset-the-flag bug.
13199 echo 't clr' >>$CONFIG_STATUS
13200 echo ': clr' >>$CONFIG_STATUS
13201 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13203 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13205 mv $tmp/out $tmp/in
13207 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13208 rm -f conftest.undefs
13209 mv conftest.tail conftest.undefs
13211 rm -f conftest.undefs
13213 cat >>$CONFIG_STATUS <<\_ACEOF
13214 # Let's still pretend it is `configure' which instantiates (i.e., don't
13215 # use $as_me), people would be surprised to read:
13216 # /* config.h. Generated by config.status. */
13217 if test x"$ac_file" = x-; then
13218 echo "/* Generated by configure. */" >$tmp/config.h
13220 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13222 cat $tmp/in >>$tmp/config.h
13224 if test x"$ac_file" != x-; then
13225 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13226 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13227 echo "$as_me: $ac_file is unchanged" >&6;}
13229 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13231 X"$ac_file" : 'X\(//\)[^/]' \| \
13232 X"$ac_file" : 'X\(//\)$' \| \
13233 X"$ac_file" : 'X\(/\)' \| \
13234 . : '\(.\)' 2>/dev/null ||
13236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13238 /^X\(\/\/\)$/{ s//\1/; q; }
13239 /^X\(\/\).*/{ s//\1/; q; }
13241 { if $as_mkdir_p; then
13246 while test ! -d "$as_dir"; do
13247 as_dirs="$as_dir $as_dirs"
13248 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13250 X"$as_dir" : 'X\(//\)[^/]' \| \
13251 X"$as_dir" : 'X\(//\)$' \| \
13252 X"$as_dir" : 'X\(/\)' \| \
13253 . : '\(.\)' 2>/dev/null ||
13255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13257 /^X\(\/\/\)$/{ s//\1/; q; }
13258 /^X\(\/\).*/{ s//\1/; q; }
13261 test ! -n "$as_dirs" || mkdir $as_dirs
13262 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13263 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13264 { (exit 1); exit 1; }; }; }
13267 mv $tmp/config.h $ac_file
13271 rm -f $tmp/config.h
13275 cat >>$CONFIG_STATUS <<\_ACEOF
13278 # CONFIG_COMMANDS section.
13280 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13281 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13282 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13283 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13284 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13285 X"$ac_dest" : 'X\(//\)[^/]' \| \
13286 X"$ac_dest" : 'X\(//\)$' \| \
13287 X"$ac_dest" : 'X\(/\)' \| \
13288 . : '\(.\)' 2>/dev/null ||
13290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13292 /^X\(\/\/\)$/{ s//\1/; q; }
13293 /^X\(\/\).*/{ s//\1/; q; }
13297 if test "$ac_dir" != .; then
13298 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13299 # A "../" for each directory in $ac_dir_suffix.
13300 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13302 ac_dir_suffix= ac_top_builddir=
13306 .) # No --srcdir option. We are building in place.
13308 if test -z "$ac_top_builddir"; then
13311 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13313 [\\/]* | ?:[\\/]* ) # Absolute path.
13314 ac_srcdir=$srcdir$ac_dir_suffix;
13315 ac_top_srcdir=$srcdir ;;
13316 *) # Relative path.
13317 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13318 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13320 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13322 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13323 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13324 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13325 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13328 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13329 echo "$as_me: executing $ac_dest commands" >&6;}
13332 case ${CONFIG_HEADERS} in
13333 *auto-host.h:config.in*)
13336 # Make sure all the subdirs exist.
13339 test -d $d || mkdir $d
13341 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13342 # bootstrapping and the installation procedure can still use
13343 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13344 # FLAGS_TO_PASS has been modified to solve the problem there.
13345 # This is virtually a duplicate of what happens in configure.lang; we do
13346 # an extra check to make sure this only happens if ln -s can be used.
13347 if test "$symbolic_link" = "ln -s"; then
13348 for d in ${subdirs} fixinc ; do
13349 STARTDIR=`${PWDCMD-pwd}`
13351 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13354 $symbolic_link ../$t $t 2>/dev/null
13364 cat >>$CONFIG_STATUS <<\_ACEOF
13366 { (exit 0); exit 0; }
13368 chmod +x $CONFIG_STATUS
13369 ac_clean_files=$ac_clean_files_save
13372 # configure is writing to config.log, and then calls config.status.
13373 # config.status does its own redirection, appending to config.log.
13374 # Unfortunately, on DOS this fails, as config.log is still kept open
13375 # by configure, so config.status won't be able to write to it; its
13376 # output is simply discarded. So we exec the FD to /dev/null,
13377 # effectively closing config.log, so it can be properly (re)opened and
13378 # appended to by config.status. When coming back to configure, we
13379 # need to make the FD available again.
13380 if test "$no_create" != yes; then
13382 ac_config_status_args=
13383 test "$silent" = yes &&
13384 ac_config_status_args="$ac_config_status_args --quiet"
13386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13389 # would make configure fail if this is the last instruction.
13390 $ac_cs_success || { (exit 1); exit 1; }