2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: assert,fold,gc,gcac,misc,
871 rtlflag,rtl,tree,valgrind,release,yes,all;
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --enable-initfini-array use .init_array/.fini_array sections
890 --enable-sjlj-exceptions
891 arrange to use setjmp/longjmp exception handling
892 --disable-win32-registry
893 disable lookup of installation paths in the
894 Registry on Windows hosts
895 --enable-win32-registry enable registry lookup (default)
896 --enable-win32-registry=KEY
897 use KEY instead of GCC version as the last portion
899 --enable-maintainer-mode
900 enable make rules and dependencies not useful
901 (and sometimes confusing) to the casual installer
902 --enable-version-specific-runtime-libs
903 specify that runtime libraries should be
904 installed in a compiler-specific directory
907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
909 --with-local-prefix=DIR specifies directory to put local include
910 --with-gxx-include-dir=DIR
911 specifies directory to put g++ header files
912 --with-cpp-install-dir=DIR
913 install the user visible C preprocessor in DIR
914 (relative to PREFIX) as well as PREFIX/bin
915 --with-gnu-ld arrange to work with GNU ld.
916 --with-ld arrange to use the specified ld (full pathname)
917 --with-demangler-in-ld try to use demangler in GNU ld.
918 --with-gnu-as arrange to work with GNU as
919 --with-as arrange to use the specified as (full pathname)
920 --with-stabs arrange to use stabs instead of host debug format
921 --with-dwarf2 force the default debug format to be DWARF 2
922 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
923 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
924 --with-system-libunwind use installed libunwind
925 --with-gc={page,zone} choose the garbage collection mechanism to use
927 --with-system-zlib use installed libz
928 --with-slibdir=DIR shared libraries in DIR LIBDIR
930 Some influential environment variables:
931 CC C compiler command
932 CFLAGS C compiler flags
933 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
934 nonstandard directory <lib dir>
935 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
936 headers in a nonstandard directory <include dir>
938 GMPLIBS How to link GMP
939 GMPINC How to find GMP include files
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
947 if test "$ac_init_help" = "recursive"; then
948 # If there are subdirs, report their specific --help.
950 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951 test -d $ac_dir || continue
954 if test "$ac_dir" != .; then
955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956 # A "../" for each directory in $ac_dir_suffix.
957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
959 ac_dir_suffix= ac_top_builddir=
963 .) # No --srcdir option. We are building in place.
965 if test -z "$ac_top_builddir"; then
968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
970 [\\/]* | ?:[\\/]* ) # Absolute path.
971 ac_srcdir=$srcdir$ac_dir_suffix;
972 ac_top_srcdir=$srcdir ;;
974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
978 # Do not use `cd foo && pwd` to compute absolute paths, because
979 # the directories may not exist.
981 .) ac_abs_builddir="$ac_dir";;
984 .) ac_abs_builddir=`pwd`;;
985 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986 *) ac_abs_builddir=`pwd`/"$ac_dir";;
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
992 case ${ac_top_builddir}. in
993 .) ac_abs_top_builddir=$ac_abs_builddir;;
994 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1002 .) ac_abs_srcdir=$ac_abs_builddir;;
1003 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1010 case $ac_top_srcdir in
1011 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1018 # Check for guested configure; otherwise get Cygnus style configure.
1019 if test -f $ac_srcdir/configure.gnu; then
1021 $SHELL $ac_srcdir/configure.gnu --help=recursive
1022 elif test -f $ac_srcdir/configure; then
1024 $SHELL $ac_srcdir/configure --help=recursive
1025 elif test -f $ac_srcdir/configure.ac ||
1026 test -f $ac_srcdir/configure.in; then
1028 $ac_configure --help
1030 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1040 Copyright (C) 2003 Free Software Foundation, Inc.
1041 This configure script is free software; the Free Software Foundation
1042 gives unlimited permission to copy, distribute and modify it.
1048 This file contains any messages produced by compilers while
1049 running configure, to aid debugging if configure makes a mistake.
1051 It was created by $as_me, which was
1052 generated by GNU Autoconf 2.59. Invocation command line was
1063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1070 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1072 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1073 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1075 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1076 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1077 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1078 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 test -z "$as_dir" && as_dir=.
1087 echo "PATH: $as_dir"
1102 # Keep a trace of the command line.
1103 # Strip out --no-create and --no-recursion so they do not pile up.
1104 # Strip out --silent because we don't want to record it for future runs.
1105 # Also quote any args containing shell meta-characters.
1106 # Make two passes to allow for proper duplicate-argument suppression.
1111 ac_must_keep_next=false
1117 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1121 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1125 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1127 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1128 if test $ac_must_keep_next = true; then
1129 ac_must_keep_next=false # Got value, back to normal.
1132 *=* | --config-cache | -C | -disable-* | --disable-* \
1133 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1134 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1135 | -with-* | --with-* | -without-* | --without-* | --x)
1136 case "$ac_configure_args0 " in
1137 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1140 -* ) ac_must_keep_next=true ;;
1143 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1144 # Get rid of the leading space.
1150 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1151 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1153 # When interrupted or exit'd, cleanup temporary files, and complete
1154 # config.log. We remove comments because anyway the quotes in there
1155 # would cause problems or look ugly.
1156 # WARNING: Be sure not to use single quotes in there, as some shells,
1157 # such as our DU 5.0 friend, will then `close' the trap.
1158 trap 'exit_status=$?
1159 # Save into config.log some information that might help in debugging.
1164 ## ---------------- ##
1165 ## Cache variables. ##
1166 ## ---------------- ##
1169 # The following way of writing the cache mishandles newlines in values,
1172 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1175 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1180 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1187 ## ----------------- ##
1188 ## Output variables. ##
1189 ## ----------------- ##
1192 for ac_var in $ac_subst_vars
1194 eval ac_val=$`echo $ac_var`
1195 echo "$ac_var='"'"'$ac_val'"'"'"
1199 if test -n "$ac_subst_files"; then
1206 for ac_var in $ac_subst_files
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1214 if test -s confdefs.h; then
1221 sed "/^$/d" confdefs.h | sort
1224 test "$ac_signal" != 0 &&
1225 echo "$as_me: caught signal $ac_signal"
1226 echo "$as_me: exit $exit_status"
1228 rm -f core *.core &&
1229 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1232 for ac_signal in 1 2 13 15; do
1233 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1242 # Predefined preprocessor variables.
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272 if test "x$prefix" != xNONE; then
1273 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278 for ac_site_file in $CONFIG_SITE; do
1279 if test -r "$ac_site_file"; then
1280 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282 sed 's/^/| /' "$ac_site_file" >&5
1287 if test -r "$cache_file"; then
1288 # Some versions of bash will fail to source /dev/null (special
1289 # files actually), so we avoid doing that.
1290 if test -f "$cache_file"; then
1291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1294 [\\/]* | ?:[\\/]* ) . $cache_file;;
1295 *) . ./$cache_file;;
1299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1304 # Check that the precious variables saved in the cache have kept the same
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310 eval ac_new_set=\$ac_env_${ac_var}_set
1311 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312 eval ac_new_val="\$ac_env_${ac_var}_value"
1313 case $ac_old_set,$ac_new_set in
1315 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317 ac_cache_corrupted=: ;;
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1324 if test "x$ac_old_val" != "x$ac_new_val"; then
1325 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1328 echo "$as_me: former value: $ac_old_val" >&2;}
1329 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1330 echo "$as_me: current value: $ac_new_val" >&2;}
1331 ac_cache_corrupted=:
1334 # Pass precious variables to config.status.
1335 if test "$ac_new_set" = set; then
1337 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339 *) ac_arg=$ac_var=$ac_new_val ;;
1341 case " $ac_configure_args " in
1342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 if $ac_cache_corrupted; then
1348 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352 { (exit 1); exit 1; }; }
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1380 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1383 #Set to 1 on a release branch
1386 # Determine the host, build, and target systems
1388 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1389 if test -f $ac_dir/install-sh; then
1391 ac_install_sh="$ac_aux_dir/install-sh -c"
1393 elif test -f $ac_dir/install.sh; then
1395 ac_install_sh="$ac_aux_dir/install.sh -c"
1397 elif test -f $ac_dir/shtool; then
1399 ac_install_sh="$ac_aux_dir/shtool install -c"
1403 if test -z "$ac_aux_dir"; then
1404 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1405 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1406 { (exit 1); exit 1; }; }
1408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1410 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412 # Make sure we can run config.sub.
1413 $ac_config_sub sun4 >/dev/null 2>&1 ||
1414 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1415 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1416 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: checking build system type" >&5
1419 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1420 if test "${ac_cv_build+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 ac_cv_build_alias=$build_alias
1424 test -z "$ac_cv_build_alias" &&
1425 ac_cv_build_alias=`$ac_config_guess`
1426 test -z "$ac_cv_build_alias" &&
1427 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1429 { (exit 1); exit 1; }; }
1430 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1431 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1437 echo "${ECHO_T}$ac_cv_build" >&6
1439 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444 echo "$as_me:$LINENO: checking host system type" >&5
1445 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1446 if test "${ac_cv_host+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 ac_cv_host_alias=$host_alias
1450 test -z "$ac_cv_host_alias" &&
1451 ac_cv_host_alias=$ac_cv_build_alias
1452 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1453 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1455 { (exit 1); exit 1; }; }
1458 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1459 echo "${ECHO_T}$ac_cv_host" >&6
1461 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1466 echo "$as_me:$LINENO: checking target system type" >&5
1467 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1468 if test "${ac_cv_target+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 ac_cv_target_alias=$target_alias
1472 test "x$ac_cv_target_alias" = "x" &&
1473 ac_cv_target_alias=$ac_cv_host_alias
1474 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1475 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1477 { (exit 1); exit 1; }; }
1480 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1481 echo "${ECHO_T}$ac_cv_target" >&6
1482 target=$ac_cv_target
1483 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488 # The aliases save the names the user supplied, while $host etc.
1489 # will get canonicalized.
1490 test -n "$target_alias" &&
1491 test "$program_prefix$program_suffix$program_transform_name" = \
1493 program_prefix=${target_alias}-
1495 # Determine the noncanonical target name, for directory use.
1496 case ${build_alias} in
1497 "") build_noncanonical=${build} ;;
1498 *) build_noncanonical=${build_alias} ;;
1501 case ${host_alias} in
1502 "") host_noncanonical=${build_noncanonical} ;;
1503 *) host_noncanonical=${host_alias} ;;
1506 case ${target_alias} in
1507 "") target_noncanonical=${host_noncanonical} ;;
1508 *) target_noncanonical=${target_alias} ;;
1514 # Determine the target- and build-specific subdirectories
1515 # Prefix 'build-' so this never conflicts with target_subdir.
1516 build_subdir="build-${build_noncanonical}"
1517 # Not really a subdirectory, but here for completeness.
1520 target_subdir=${target_noncanonical}
1523 # Set program_transform_name
1524 test "$program_prefix" != NONE &&
1525 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1526 # Use a double $ so make ignores it.
1527 test "$program_suffix" != NONE &&
1528 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1529 # Double any \ or $. echo might interpret backslashes.
1530 # By default was `s,x,x', remove it if useless.
1531 cat <<\_ACEOF >conftest.sed
1532 s/[\\$]/&&/g;s/;s,x,x,$//
1534 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1538 # Check for bogus environment variables.
1539 # Test if LIBRARY_PATH contains the notation for the current directory
1540 # since this would lead to problems installing/building glibc.
1541 # LIBRARY_PATH contains the current directory if one of the following
1543 # - one of the terminals (":" and ";") is the first or last sign
1544 # - two terminals occur directly after each other
1545 # - the path contains an element with a dot in it
1546 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1547 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1548 case ${LIBRARY_PATH} in
1549 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1550 library_path_setting="contains current directory"
1553 library_path_setting="ok"
1556 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1557 echo "${ECHO_T}$library_path_setting" >&6
1558 if test "$library_path_setting" != "ok"; then
1559 { { echo "$as_me:$LINENO: error:
1560 *** LIBRARY_PATH shouldn't contain the current directory when
1561 *** building gcc. Please change the environment variable
1562 *** and run configure again." >&5
1563 echo "$as_me: error:
1564 *** LIBRARY_PATH shouldn't contain the current directory when
1565 *** building gcc. Please change the environment variable
1566 *** and run configure again." >&2;}
1567 { (exit 1); exit 1; }; }
1570 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1571 # since this would lead to problems installing/building glibc.
1572 # GCC_EXEC_PREFIX contains the current directory if one of the following
1574 # - one of the terminals (":" and ";") is the first or last sign
1575 # - two terminals occur directly after each other
1576 # - the path contains an element with a dot in it
1577 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1578 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1579 case ${GCC_EXEC_PREFIX} in
1580 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1581 gcc_exec_prefix_setting="contains current directory"
1584 gcc_exec_prefix_setting="ok"
1587 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1588 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1589 if test "$gcc_exec_prefix_setting" != "ok"; then
1590 { { echo "$as_me:$LINENO: error:
1591 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1592 *** building gcc. Please change the environment variable
1593 *** and run configure again." >&5
1594 echo "$as_me: error:
1595 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1596 *** building gcc. Please change the environment variable
1597 *** and run configure again." >&2;}
1598 { (exit 1); exit 1; }; }
1605 # Specify the local prefix
1608 # Check whether --with-local-prefix or --without-local-prefix was given.
1609 if test "${with_local_prefix+set}" = set; then
1610 withval="$with_local_prefix"
1611 case "${withval}" in
1612 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1613 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1614 { (exit 1); exit 1; }; } ;;
1616 *) local_prefix=$with_local_prefix ;;
1620 # Default local prefix if it is empty
1621 if test x$local_prefix = x; then
1622 local_prefix=/usr/local
1625 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1626 # passed in by the toplevel make and thus we'd get different behavior
1627 # depending on where we built the sources.
1628 gcc_gxx_include_dir=
1629 # Specify the g++ header file directory
1631 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1632 if test "${with_gxx_include_dir+set}" = set; then
1633 withval="$with_gxx_include_dir"
1634 case "${withval}" in
1635 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1636 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1637 { (exit 1); exit 1; }; } ;;
1639 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1643 if test x${gcc_gxx_include_dir} = x; then
1644 if test x${enable_version_specific_runtime_libs} = xyes; then
1645 gcc_gxx_include_dir='${libsubdir}/include/c++'
1647 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1648 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1653 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1654 if test "${with_cpp_install_dir+set}" = set; then
1655 withval="$with_cpp_install_dir"
1656 if test x$withval = xyes; then
1657 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1658 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1659 { (exit 1); exit 1; }; }
1660 elif test x$withval != xno; then
1661 cpp_install_dir=$withval
1665 # We would like to our source tree to be readonly. However when releases or
1666 # pre-releases are generated, the flex/bison generated files as well as the
1667 # various formats of manuals need to be included along with the rest of the
1668 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1671 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1672 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1673 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1674 if test "${enable_generated_files_in_srcdir+set}" = set; then
1675 enableval="$enable_generated_files_in_srcdir"
1676 generated_files_in_srcdir=$enableval
1678 generated_files_in_srcdir=no
1681 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1682 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1684 if test "$generated_files_in_srcdir" = "yes"; then
1691 # -------------------
1692 # Find default linker
1693 # -------------------
1697 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1698 if test "${with_gnu_ld+set}" = set; then
1699 withval="$with_gnu_ld"
1700 gnu_ld_flag="$with_gnu_ld"
1705 # With pre-defined ld
1707 # Check whether --with-ld or --without-ld was given.
1708 if test "${with_ld+set}" = set; then
1710 DEFAULT_LINKER="$with_ld"
1712 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1713 if test ! -x "$DEFAULT_LINKER"; then
1714 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1715 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1716 { (exit 1); exit 1; }; }
1717 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1721 cat >>confdefs.h <<_ACEOF
1722 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1727 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1728 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1729 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1730 if test x"$gnu_ld_flag" = x"no"; then
1731 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1732 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1734 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1735 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1742 # With demangler in GNU ld
1744 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1745 if test "${with_demangler_in_ld+set}" = set; then
1746 withval="$with_demangler_in_ld"
1747 demangler_in_ld="$with_demangler_in_ld"
1752 # ----------------------
1753 # Find default assembler
1754 # ----------------------
1758 # Check whether --with-gnu-as or --without-gnu-as was given.
1759 if test "${with_gnu_as+set}" = set; then
1760 withval="$with_gnu_as"
1761 gas_flag="$with_gnu_as"
1767 # Check whether --with-as or --without-as was given.
1768 if test "${with_as+set}" = set; then
1770 DEFAULT_ASSEMBLER="$with_as"
1772 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1773 if test ! -x "$DEFAULT_ASSEMBLER"; then
1774 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1775 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1776 { (exit 1); exit 1; }; }
1777 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1781 cat >>confdefs.h <<_ACEOF
1782 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1787 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1788 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1789 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1790 if test x"$gas_flag" = x"no"; then
1791 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1792 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1794 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1795 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1806 # If a non-executable a.out is present (e.g. created by GNU as above even if
1807 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1808 # file, even when creating an executable, so an execution test fails.
1809 # Remove possible default executable files to avoid this.
1811 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1812 # Autoconf includes it.
1813 rm -f a.out a.exe b.out
1815 # Find the native compiler
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 if test -n "$ac_tool_prefix"; then
1822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1823 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849 if test -n "$CC"; then
1850 echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6
1853 echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1858 if test -z "$ac_cv_prog_CC"; then
1860 # Extract the first word of "gcc", so it can be a program name with args.
1861 set dummy gcc; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 if test -n "$ac_ct_CC"; then
1868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_ac_ct_CC="gcc"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887 if test -n "$ac_ct_CC"; then
1888 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889 echo "${ECHO_T}$ac_ct_CC" >&6
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1900 if test -z "$CC"; then
1901 if test -n "$ac_tool_prefix"; then
1902 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1903 set dummy ${ac_tool_prefix}cc; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_CC+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_CC="${ac_tool_prefix}cc"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 if test -n "$CC"; then
1930 echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1938 if test -z "$ac_cv_prog_CC"; then
1940 # Extract the first word of "cc", so it can be a program name with args.
1941 set dummy cc; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 if test -n "$ac_ct_CC"; then
1948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_ac_ct_CC="cc"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967 if test -n "$ac_ct_CC"; then
1968 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969 echo "${ECHO_T}$ac_ct_CC" >&6
1971 echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1981 if test -z "$CC"; then
1982 # Extract the first word of "cc", so it can be a program name with args.
1983 set dummy cc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2001 ac_prog_rejected=yes
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 if test $ac_prog_rejected = yes; then
2012 # We found a bogon in the path, so make sure we never use it.
2013 set dummy $ac_cv_prog_CC
2015 if test $# != 0; then
2016 # We chose a different compiler from the bogus one.
2017 # However, it has the same basename, so the bogon will be chosen
2018 # first if we set CC to just the basename; use the full file name.
2020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2026 if test -n "$CC"; then
2027 echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2035 if test -z "$CC"; then
2036 if test -n "$ac_tool_prefix"; then
2039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_CC+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test.
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 if test -n "$CC"; then
2067 echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2074 test -n "$CC" && break
2077 if test -z "$CC"; then
2081 # Extract the first word of "$ac_prog", so it can be a program name with args.
2082 set dummy $ac_prog; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_ac_ct_CC="$ac_prog"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2112 echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2116 test -n "$ac_ct_CC" && break
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129 { (exit 1); exit 1; }; }
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO:" \
2133 "checking for C compiler version" >&5
2134 ac_compiler=`set X $ac_compile; echo $2`
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2136 (eval $ac_compiler --version </dev/null >&5) 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2141 (eval $ac_compiler -v </dev/null >&5) 2>&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2146 (eval $ac_compiler -V </dev/null >&5) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2151 cat >conftest.$ac_ext <<_ACEOF
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2166 ac_clean_files_save=$ac_clean_files
2167 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2168 # Try to create an executable without -o first, disregard a.out.
2169 # It will help us diagnose broken compilers, and finding out an intuition
2171 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2172 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2173 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2174 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2175 (eval $ac_link_default) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # Find the output, starting from the most likely. This scheme is
2180 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2183 # Be careful to initialize this variable, since it used to be cached.
2184 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2186 # b.out is created by i960 compilers.
2187 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2189 test -f "$ac_file" || continue
2191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2194 # This is the source file.
2197 # We found the default executable, but exeext='' is most
2201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202 # FIXME: I believe we export ac_cv_exeext for Libtool,
2203 # but it would be cool to find out if it's true. Does anybody
2204 # maintain Libtool? --akim.
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2215 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&2;}
2219 { (exit 77); exit 77; }; }
2222 ac_exeext=$ac_cv_exeext
2223 echo "$as_me:$LINENO: result: $ac_file" >&5
2224 echo "${ECHO_T}$ac_file" >&6
2226 # Check the compiler produces executables we can run. If not, either
2227 # the compiler is broken, or we cross compile.
2228 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2229 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2230 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2231 # If not cross compiling, check that we can run a simple program.
2232 if test "$cross_compiling" != yes; then
2233 if { ac_try='./$ac_file'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2241 if test "$cross_compiling" = maybe; then
2244 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2254 echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6
2257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258 ac_clean_files=$ac_clean_files_save
2259 # Check the compiler produces executables we can run. If not, either
2260 # the compiler is broken, or we cross compile.
2261 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2263 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264 echo "${ECHO_T}$cross_compiling" >&6
2266 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2269 (eval $ac_link) 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; then
2273 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2274 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2275 # work properly (i.e., refer to `conftest.exe'), while it won't with
2277 for ac_file in conftest.exe conftest conftest.*; do
2278 test -f "$ac_file" || continue
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest$ac_cv_exeext
2296 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2302 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2304 if test "${ac_cv_objext+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 cat >conftest.$ac_ext <<_ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2322 rm -f conftest.o conftest.obj
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&2;}
2343 { (exit 1); exit 1; }; }
2346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2349 echo "${ECHO_T}$ac_cv_objext" >&6
2350 OBJEXT=$ac_cv_objext
2352 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 cat >conftest.$ac_ext <<_ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>conftest.er1
2379 grep -v '^ *+' conftest.er1 >conftest.err
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -z "$ac_c_werror_flag"
2385 || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 cat >conftest.$ac_ext <<_ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2438 grep -v '^ *+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag"
2444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2467 if test "$ac_test_CFLAGS" = set; then
2468 CFLAGS=$ac_save_CFLAGS
2469 elif test $ac_cv_prog_cc_g = yes; then
2470 if test "$GCC" = yes; then
2476 if test "$GCC" = yes; then
2482 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2483 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2484 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 ac_cv_prog_cc_stdc=no
2489 cat >conftest.$ac_ext <<_ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2497 #include <sys/types.h>
2498 #include <sys/stat.h>
2499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2500 struct buf { int x; };
2501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502 static char *e (p, i)
2508 static char *f (char * (*g) (char **, int), char **p, ...)
2513 s = g (p, va_arg (v,int));
2518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2519 function prototypes and stuff, but not '\xHH' hex character constants.
2520 These don't provoke an error unfortunately, instead are silently treated
2521 as 'x'. The following induces an error, until -std1 is added to get
2522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2523 array size at least. It's necessary to write '\x00'==0 to get something
2524 that's true only with -std1. */
2525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2527 int test (int i, double x);
2528 struct s1 {int (*f) (int a);};
2529 struct s2 {int (*f) (double a);};
2530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX -qlanglvl=ansi
2544 # Ultrix and OSF/1 -std1
2545 # HP-UX 10.20 and later -Ae
2546 # HP-UX older versions -Aa -D_HPUX_SOURCE
2547 # SVR4 -Xc -D__EXTENSIONS__
2548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2550 CC="$ac_save_CC $ac_arg"
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>conftest.er1
2555 grep -v '^ *+' conftest.er1 >conftest.err
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_cv_prog_cc_stdc=$ac_arg
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2580 rm -f conftest.err conftest.$ac_objext
2582 rm -f conftest.$ac_ext conftest.$ac_objext
2587 case "x$ac_cv_prog_cc_stdc" in
2589 echo "$as_me:$LINENO: result: none needed" >&5
2590 echo "${ECHO_T}none needed" >&6 ;;
2592 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2593 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2594 CC="$CC $ac_cv_prog_cc_stdc" ;;
2597 # Some people use a C++ compiler to compile C. Since we use `exit',
2598 # in C++ we need to declare it. In case someone uses the same compiler
2599 # for both compiling C and C++ we need to have the C++ compiler decide
2600 # the declaration of exit, since it's the most demanding environment.
2601 cat >conftest.$ac_ext <<_ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608 (eval $ac_compile) 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag"
2616 || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 for ac_declaration in \
2630 'extern "C" void std::exit (int) throw (); using std::exit;' \
2631 'extern "C" void std::exit (int); using std::exit;' \
2632 'extern "C" void exit (int) throw ();' \
2633 'extern "C" void exit (int);' \
2636 cat >conftest.$ac_ext <<_ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2656 grep -v '^ *+' conftest.er1 >conftest.err
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
2701 grep -v '^ *+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -z "$ac_c_werror_flag"
2707 || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 if test -n "$ac_declaration"; then
2729 echo '#ifdef __cplusplus' >>confdefs.h
2730 echo $ac_declaration >>confdefs.h
2731 echo '#endif' >>confdefs.h
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 if test "x$CC" != xcc; then
2747 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2748 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2750 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2751 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2753 set dummy $CC; ac_cc=`echo $2 |
2754 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2755 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 cat >conftest.$ac_ext <<_ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2773 # Make sure it works both with $CC and with simple cc.
2774 # We do the test twice because some compilers refuse to overwrite an
2775 # existing .o file with -o, though they will create one.
2776 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2777 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); };
2788 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2789 if test "x$CC" != xcc; then
2790 # Test first that cc exists at all.
2791 if { ac_try='cc -c conftest.$ac_ext >&5'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2798 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); };
2812 # cc exists but doesn't like -o.
2813 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2818 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2823 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2824 echo "$as_me:$LINENO: result: yes" >&5
2825 echo "${ECHO_T}yes" >&6
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2830 cat >>confdefs.h <<\_ACEOF
2831 #define NO_MINUS_C_MINUS_O 1
2836 # expand $ac_aux_dir to an absolute path
2837 am_aux_dir=`cd $ac_aux_dir && pwd`
2839 # FIXME: we rely on the cache variable name because
2840 # there is no other way.
2842 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2843 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2844 # Losing compiler, so override with the script.
2845 # FIXME: It is wrong to rewrite CC.
2846 # But if we don't then we get into trouble of one sort or another.
2847 # A longer-term fix would be to have automake use am__CC in this case,
2848 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2849 CC="$am_aux_dir/compile $CC"
2852 # autoconf is lame and doesn't give us any substitution variable for this.
2853 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2854 NO_MINUS_C_MINUS_O=yes
2856 OUTPUT_OPTION='-o $@'
2861 # -------------------------
2862 # Check C compiler features
2863 # -------------------------
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2871 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2872 # On Suns, sometimes $CPP names a directory.
2873 if test -n "$CPP" && test -d "$CPP"; then
2876 if test -z "$CPP"; then
2877 if test "${ac_cv_prog_CPP+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 # Double quotes because CPP needs to be expanded
2881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2884 for ac_c_preproc_warn_flag in '' yes
2886 # Use a header file that comes with gcc, so configuring glibc
2887 # with a fresh cross-compiler works.
2888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2889 # <limits.h> exists even on freestanding compilers.
2890 # On the NeXT, cc -E runs the code through the compiler's parser,
2891 # not just through cpp. "Syntax error" is here to catch this case.
2892 cat >conftest.$ac_ext <<_ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2899 # include <limits.h>
2901 # include <assert.h>
2905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2908 grep -v '^ *+' conftest.er1 >conftest.err
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } >/dev/null; then
2913 if test -s conftest.err; then
2914 ac_cpp_err=$ac_c_preproc_warn_flag
2915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2922 if test -z "$ac_cpp_err"; then
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2928 # Broken: fails on valid input.
2931 rm -f conftest.err conftest.$ac_ext
2933 # OK, works on sane cases. Now check whether non-existent headers
2934 # can be detected and how.
2935 cat >conftest.$ac_ext <<_ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941 #include <ac_nonexistent.h>
2943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } >/dev/null; then
2951 if test -s conftest.err; then
2952 ac_cpp_err=$ac_c_preproc_warn_flag
2953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960 if test -z "$ac_cpp_err"; then
2961 # Broken: success on invalid input.
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 # Passes both tests.
2971 rm -f conftest.err conftest.$ac_ext
2974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2975 rm -f conftest.err conftest.$ac_ext
2976 if $ac_preproc_ok; then
2988 echo "$as_me:$LINENO: result: $CPP" >&5
2989 echo "${ECHO_T}$CPP" >&6
2991 for ac_c_preproc_warn_flag in '' yes
2993 # Use a header file that comes with gcc, so configuring glibc
2994 # with a fresh cross-compiler works.
2995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2996 # <limits.h> exists even on freestanding compilers.
2997 # On the NeXT, cc -E runs the code through the compiler's parser,
2998 # not just through cpp. "Syntax error" is here to catch this case.
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3006 # include <limits.h>
3008 # include <assert.h>
3012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } >/dev/null; then
3020 if test -s conftest.err; then
3021 ac_cpp_err=$ac_c_preproc_warn_flag
3022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3029 if test -z "$ac_cpp_err"; then
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 # Broken: fails on valid input.
3038 rm -f conftest.err conftest.$ac_ext
3040 # OK, works on sane cases. Now check whether non-existent headers
3041 # can be detected and how.
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048 #include <ac_nonexistent.h>
3050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } >/dev/null; then
3058 if test -s conftest.err; then
3059 ac_cpp_err=$ac_c_preproc_warn_flag
3060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067 if test -z "$ac_cpp_err"; then
3068 # Broken: success on invalid input.
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3074 # Passes both tests.
3078 rm -f conftest.err conftest.$ac_ext
3081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3082 rm -f conftest.err conftest.$ac_ext
3083 if $ac_preproc_ok; then
3086 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3087 See \`config.log' for more details." >&5
3088 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 echo "$as_me:$LINENO: checking for inline" >&5
3101 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3102 if test "${ac_cv_c_inline+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 for ac_kw in inline __inline__ __inline; do
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3115 static $ac_kw foo_t static_foo () {return 0; }
3116 $ac_kw foo_t foo () {return 0; }
3120 rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122 (eval $ac_compile) 2>conftest.er1
3124 grep -v '^ *+' conftest.er1 >conftest.err
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag"
3130 || test ! -s conftest.err'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 ac_cv_c_inline=$ac_kw; break
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3152 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3153 echo "${ECHO_T}$ac_cv_c_inline" >&6
3156 case $ac_cv_c_inline in
3159 case $ac_cv_c_inline in
3161 *) ac_val=$ac_cv_c_inline;;
3163 cat >>confdefs.h <<_ACEOF
3165 #define inline $ac_val
3172 echo "$as_me:$LINENO: checking for long long int" >&5
3173 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3174 if test "${ac_cv_c_long_long+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 cat >conftest.$ac_ext <<_ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3192 rm -f conftest.$ac_objext
3193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3194 (eval $ac_compile) 2>conftest.er1
3196 grep -v '^ *+' conftest.er1 >conftest.err
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } &&
3201 { ac_try='test -z "$ac_c_werror_flag"
3202 || test ! -s conftest.err'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; } &&
3208 { ac_try='test -s conftest.$ac_objext'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 ac_cv_c_long_long=yes
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3219 ac_cv_c_long_long=no
3221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3223 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3224 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3225 if test $ac_cv_c_long_long = yes; then
3227 cat >>confdefs.h <<\_ACEOF
3228 #define HAVE_LONG_LONG 1
3232 echo "$as_me:$LINENO: checking for __int64" >&5
3233 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3234 if test "${ac_cv_c___int64+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3252 rm -f conftest.$ac_objext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254 (eval $ac_compile) 2>conftest.er1
3256 grep -v '^ *+' conftest.er1 >conftest.err
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try='test -z "$ac_c_werror_flag"
3262 || test ! -s conftest.err'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; } &&
3268 { ac_try='test -s conftest.$ac_objext'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3284 echo "${ECHO_T}$ac_cv_c___int64" >&6
3285 if test $ac_cv_c___int64 = yes; then
3287 cat >>confdefs.h <<\_ACEOF
3288 #define HAVE___INT64 1
3294 # sizeof(char) is 1 by definition.
3296 echo "$as_me:$LINENO: checking for egrep" >&5
3297 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3298 if test "${ac_cv_prog_egrep+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3302 then ac_cv_prog_egrep='grep -E'
3303 else ac_cv_prog_egrep='egrep'
3306 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3307 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3308 EGREP=$ac_cv_prog_egrep
3311 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3312 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3313 if test "${ac_cv_header_stdc+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3335 rm -f conftest.$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>conftest.er1
3339 grep -v '^ *+' conftest.er1 >conftest.err
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try='test -z "$ac_c_werror_flag"
3345 || test ! -s conftest.err'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_header_stdc=yes
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 ac_cv_header_stdc=no
3364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3366 if test $ac_cv_header_stdc = yes; then
3367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3368 cat >conftest.$ac_ext <<_ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3378 $EGREP "memchr" >/dev/null 2>&1; then
3381 ac_cv_header_stdc=no
3387 if test $ac_cv_header_stdc = yes; then
3388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3389 cat >conftest.$ac_ext <<_ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3399 $EGREP "free" >/dev/null 2>&1; then
3402 ac_cv_header_stdc=no
3408 if test $ac_cv_header_stdc = yes; then
3409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3410 if test "$cross_compiling" = yes; then
3413 cat >conftest.$ac_ext <<_ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3420 #if ((' ' & 0x0FF) == 0x020)
3421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3424 # define ISLOWER(c) \
3425 (('a' <= (c) && (c) <= 'i') \
3426 || ('j' <= (c) && (c) <= 'r') \
3427 || ('s' <= (c) && (c) <= 'z'))
3428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3436 for (i = 0; i < 256; i++)
3437 if (XOR (islower (i), ISLOWER (i))
3438 || toupper (i) != TOUPPER (i))
3443 rm -f conftest$ac_exeext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3445 (eval $ac_link) 2>&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3456 echo "$as_me: program exited with status $ac_status" >&5
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3461 ac_cv_header_stdc=no
3463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3467 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3468 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3469 if test $ac_cv_header_stdc = yes; then
3471 cat >>confdefs.h <<\_ACEOF
3472 #define STDC_HEADERS 1
3477 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3487 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3488 inttypes.h stdint.h unistd.h
3490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3491 echo "$as_me:$LINENO: checking for $ac_header" >&5
3492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 cat >conftest.$ac_ext <<_ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 $ac_includes_default
3504 #include <$ac_header>
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 eval "$as_ac_Header=yes"
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 eval "$as_ac_Header=no"
3535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3540 cat >>confdefs.h <<_ACEOF
3541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3549 echo "$as_me:$LINENO: checking for void *" >&5
3550 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3551 if test "${ac_cv_type_void_p+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 $ac_includes_default
3566 if (sizeof (void *))
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>conftest.er1
3576 grep -v '^ *+' conftest.er1 >conftest.err
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try='test -z "$ac_c_werror_flag"
3582 || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_cv_type_void_p=yes
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3599 ac_cv_type_void_p=no
3601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3604 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3606 echo "$as_me:$LINENO: checking size of void *" >&5
3607 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3608 if test "${ac_cv_sizeof_void_p+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 if test "$ac_cv_type_void_p" = yes; then
3612 # The cast to unsigned long works around a bug in the HP C Compiler
3613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3615 # This bug is HP SR number 8606223364.
3616 if test "$cross_compiling" = yes; then
3617 # Depending upon the size, compute the lo and hi bounds.
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 $ac_includes_default
3628 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>conftest.er1
3639 grep -v '^ *+' conftest.er1 >conftest.err
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } &&
3644 { ac_try='test -z "$ac_c_werror_flag"
3645 || test ! -s conftest.err'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 $ac_includes_default
3669 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3676 rm -f conftest.$ac_objext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>conftest.er1
3680 grep -v '^ *+' conftest.er1 >conftest.err
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -z "$ac_c_werror_flag"
3686 || test ! -s conftest.err'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest.$ac_objext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 ac_hi=$ac_mid; break
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 ac_lo=`expr $ac_mid + 1`
3704 if test $ac_lo -le $ac_mid; then
3708 ac_mid=`expr 2 '*' $ac_mid + 1`
3710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 cat >conftest.$ac_ext <<_ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 $ac_includes_default
3726 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>conftest.er1
3737 grep -v '^ *+' conftest.er1 >conftest.err
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -z "$ac_c_werror_flag"
3743 || test ! -s conftest.err'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; } &&
3749 { ac_try='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3757 cat >conftest.$ac_ext <<_ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 $ac_includes_default
3767 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3774 rm -f conftest.$ac_objext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776 (eval $ac_compile) 2>conftest.er1
3778 grep -v '^ *+' conftest.er1 >conftest.err
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -z "$ac_c_werror_flag"
3784 || test ! -s conftest.err'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try='test -s conftest.$ac_objext'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 ac_lo=$ac_mid; break
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 ac_hi=`expr '(' $ac_mid ')' - 1`
3802 if test $ac_mid -le $ac_hi; then
3806 ac_mid=`expr 2 '*' $ac_mid`
3808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3819 # Binary search between lo and hi bounds.
3820 while test "x$ac_lo" != "x$ac_hi"; do
3821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3822 cat >conftest.$ac_ext <<_ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 $ac_includes_default
3832 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3839 rm -f conftest.$ac_objext
3840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841 (eval $ac_compile) 2>conftest.er1
3843 grep -v '^ *+' conftest.er1 >conftest.err
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } &&
3848 { ac_try='test -z "$ac_c_werror_flag"
3849 || test ! -s conftest.err'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try='test -s conftest.$ac_objext'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 ac_lo=`expr '(' $ac_mid ')' + 1`
3868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3872 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3873 See \`config.log' for more details." >&5
3874 echo "$as_me: error: cannot compute sizeof (void *), 77
3875 See \`config.log' for more details." >&2;}
3876 { (exit 1); exit 1; }; } ;;
3879 if test "$cross_compiling" = yes; then
3880 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3881 See \`config.log' for more details." >&5
3882 echo "$as_me: error: cannot run test program while cross compiling
3883 See \`config.log' for more details." >&2;}
3884 { (exit 1); exit 1; }; }
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 $ac_includes_default
3893 long longval () { return (long) (sizeof (void *)); }
3894 unsigned long ulongval () { return (long) (sizeof (void *)); }
3901 FILE *f = fopen ("conftest.val", "w");
3904 if (((long) (sizeof (void *))) < 0)
3906 long i = longval ();
3907 if (i != ((long) (sizeof (void *))))
3909 fprintf (f, "%ld\n", i);
3913 unsigned long i = ulongval ();
3914 if (i != ((long) (sizeof (void *))))
3916 fprintf (f, "%lu\n", i);
3918 exit (ferror (f) || fclose (f) != 0);
3924 rm -f conftest$ac_exeext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926 (eval $ac_link) 2>&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 ac_cv_sizeof_void_p=`cat conftest.val`
3937 echo "$as_me: program exited with status $ac_status" >&5
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3943 See \`config.log' for more details." >&5
3944 echo "$as_me: error: cannot compute sizeof (void *), 77
3945 See \`config.log' for more details." >&2;}
3946 { (exit 1); exit 1; }; }
3948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3953 ac_cv_sizeof_void_p=0
3956 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3957 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3958 cat >>confdefs.h <<_ACEOF
3959 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3963 echo "$as_me:$LINENO: checking for short" >&5
3964 echo $ECHO_N "checking for short... $ECHO_C" >&6
3965 if test "${ac_cv_type_short+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 cat >conftest.$ac_ext <<_ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3974 $ac_includes_default
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>conftest.er1
3990 grep -v '^ *+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -z "$ac_c_werror_flag"
3996 || test ! -s conftest.err'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; } &&
4002 { ac_try='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_cv_type_short=yes
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4018 echo "${ECHO_T}$ac_cv_type_short" >&6
4020 echo "$as_me:$LINENO: checking size of short" >&5
4021 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4022 if test "${ac_cv_sizeof_short+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test "$ac_cv_type_short" = yes; then
4026 # The cast to unsigned long works around a bug in the HP C Compiler
4027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4029 # This bug is HP SR number 8606223364.
4030 if test "$cross_compiling" = yes; then
4031 # Depending upon the size, compute the lo and hi bounds.
4032 cat >conftest.$ac_ext <<_ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4038 $ac_includes_default
4042 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4049 rm -f conftest.$ac_objext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051 (eval $ac_compile) 2>conftest.er1
4053 grep -v '^ *+' conftest.er1 >conftest.err
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -z "$ac_c_werror_flag"
4059 || test ! -s conftest.err'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; } &&
4065 { ac_try='test -s conftest.$ac_objext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 $ac_includes_default
4083 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>conftest.er1
4094 grep -v '^ *+' conftest.er1 >conftest.err
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -z "$ac_c_werror_flag"
4100 || test ! -s conftest.err'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest.$ac_objext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 ac_hi=$ac_mid; break
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 ac_lo=`expr $ac_mid + 1`
4118 if test $ac_lo -le $ac_mid; then
4122 ac_mid=`expr 2 '*' $ac_mid + 1`
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4136 $ac_includes_default
4140 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_c_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 $ac_includes_default
4181 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4188 rm -f conftest.$ac_objext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190 (eval $ac_compile) 2>conftest.er1
4192 grep -v '^ *+' conftest.er1 >conftest.err
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_lo=$ac_mid; break
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 ac_hi=`expr '(' $ac_mid ')' - 1`
4216 if test $ac_mid -le $ac_hi; then
4220 ac_mid=`expr 2 '*' $ac_mid`
4222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4233 # Binary search between lo and hi bounds.
4234 while test "x$ac_lo" != "x$ac_hi"; do
4235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 $ac_includes_default
4246 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4253 rm -f conftest.$ac_objext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255 (eval $ac_compile) 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 ac_lo=`expr '(' $ac_mid ')' + 1`
4282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285 ?*) ac_cv_sizeof_short=$ac_lo;;
4286 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4287 See \`config.log' for more details." >&5
4288 echo "$as_me: error: cannot compute sizeof (short), 77
4289 See \`config.log' for more details." >&2;}
4290 { (exit 1); exit 1; }; } ;;
4293 if test "$cross_compiling" = yes; then
4294 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4295 See \`config.log' for more details." >&5
4296 echo "$as_me: error: cannot run test program while cross compiling
4297 See \`config.log' for more details." >&2;}
4298 { (exit 1); exit 1; }; }
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 $ac_includes_default
4307 long longval () { return (long) (sizeof (short)); }
4308 unsigned long ulongval () { return (long) (sizeof (short)); }
4315 FILE *f = fopen ("conftest.val", "w");
4318 if (((long) (sizeof (short))) < 0)
4320 long i = longval ();
4321 if (i != ((long) (sizeof (short))))
4323 fprintf (f, "%ld\n", i);
4327 unsigned long i = ulongval ();
4328 if (i != ((long) (sizeof (short))))
4330 fprintf (f, "%lu\n", i);
4332 exit (ferror (f) || fclose (f) != 0);
4338 rm -f conftest$ac_exeext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340 (eval $ac_link) 2>&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_sizeof_short=`cat conftest.val`
4351 echo "$as_me: program exited with status $ac_status" >&5
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4357 See \`config.log' for more details." >&5
4358 echo "$as_me: error: cannot compute sizeof (short), 77
4359 See \`config.log' for more details." >&2;}
4360 { (exit 1); exit 1; }; }
4362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4367 ac_cv_sizeof_short=0
4370 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4371 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4372 cat >>confdefs.h <<_ACEOF
4373 #define SIZEOF_SHORT $ac_cv_sizeof_short
4377 echo "$as_me:$LINENO: checking for int" >&5
4378 echo $ECHO_N "checking for int... $ECHO_C" >&6
4379 if test "${ac_cv_type_int+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 $ac_includes_default
4400 rm -f conftest.$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402 (eval $ac_compile) 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -z "$ac_c_werror_flag"
4410 || test ! -s conftest.err'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4432 echo "${ECHO_T}$ac_cv_type_int" >&6
4434 echo "$as_me:$LINENO: checking size of int" >&5
4435 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4436 if test "${ac_cv_sizeof_int+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test "$ac_cv_type_int" = yes; then
4440 # The cast to unsigned long works around a bug in the HP C Compiler
4441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4443 # This bug is HP SR number 8606223364.
4444 if test "$cross_compiling" = yes; then
4445 # Depending upon the size, compute the lo and hi bounds.
4446 cat >conftest.$ac_ext <<_ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 $ac_includes_default
4456 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4463 rm -f conftest.$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -z "$ac_c_werror_flag"
4473 || test ! -s conftest.err'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4497 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>conftest.er1
4508 grep -v '^ *+' conftest.er1 >conftest.err
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag"
4514 || test ! -s conftest.err'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; } &&
4520 { ac_try='test -s conftest.$ac_objext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 ac_hi=$ac_mid; break
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4531 ac_lo=`expr $ac_mid + 1`
4532 if test $ac_lo -le $ac_mid; then
4536 ac_mid=`expr 2 '*' $ac_mid + 1`
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 $ac_includes_default
4554 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>conftest.er1
4565 grep -v '^ *+' conftest.er1 >conftest.err
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -z "$ac_c_werror_flag"
4571 || test ! -s conftest.err'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4585 cat >conftest.$ac_ext <<_ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 $ac_includes_default
4595 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_lo=$ac_mid; break
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_hi=`expr '(' $ac_mid ')' - 1`
4630 if test $ac_mid -le $ac_hi; then
4634 ac_mid=`expr 2 '*' $ac_mid`
4636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4647 # Binary search between lo and hi bounds.
4648 while test "x$ac_lo" != "x$ac_hi"; do
4649 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4660 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4667 rm -f conftest.$ac_objext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669 (eval $ac_compile) 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -z "$ac_c_werror_flag"
4677 || test ! -s conftest.err'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try='test -s conftest.$ac_objext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4694 ac_lo=`expr '(' $ac_mid ')' + 1`
4696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 ?*) ac_cv_sizeof_int=$ac_lo;;
4700 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4701 See \`config.log' for more details." >&5
4702 echo "$as_me: error: cannot compute sizeof (int), 77
4703 See \`config.log' for more details." >&2;}
4704 { (exit 1); exit 1; }; } ;;
4707 if test "$cross_compiling" = yes; then
4708 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4709 See \`config.log' for more details." >&5
4710 echo "$as_me: error: cannot run test program while cross compiling
4711 See \`config.log' for more details." >&2;}
4712 { (exit 1); exit 1; }; }
4714 cat >conftest.$ac_ext <<_ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 $ac_includes_default
4721 long longval () { return (long) (sizeof (int)); }
4722 unsigned long ulongval () { return (long) (sizeof (int)); }
4729 FILE *f = fopen ("conftest.val", "w");
4732 if (((long) (sizeof (int))) < 0)
4734 long i = longval ();
4735 if (i != ((long) (sizeof (int))))
4737 fprintf (f, "%ld\n", i);
4741 unsigned long i = ulongval ();
4742 if (i != ((long) (sizeof (int))))
4744 fprintf (f, "%lu\n", i);
4746 exit (ferror (f) || fclose (f) != 0);
4752 rm -f conftest$ac_exeext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4754 (eval $ac_link) 2>&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 ac_cv_sizeof_int=`cat conftest.val`
4765 echo "$as_me: program exited with status $ac_status" >&5
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4771 See \`config.log' for more details." >&5
4772 echo "$as_me: error: cannot compute sizeof (int), 77
4773 See \`config.log' for more details." >&2;}
4774 { (exit 1); exit 1; }; }
4776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4784 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4785 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4786 cat >>confdefs.h <<_ACEOF
4787 #define SIZEOF_INT $ac_cv_sizeof_int
4791 echo "$as_me:$LINENO: checking for long" >&5
4792 echo $ECHO_N "checking for long... $ECHO_C" >&6
4793 if test "${ac_cv_type_long+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 $ac_includes_default
4814 rm -f conftest.$ac_objext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816 (eval $ac_compile) 2>conftest.er1
4818 grep -v '^ *+' conftest.er1 >conftest.err
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -z "$ac_c_werror_flag"
4824 || test ! -s conftest.err'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; } &&
4830 { ac_try='test -s conftest.$ac_objext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4846 echo "${ECHO_T}$ac_cv_type_long" >&6
4848 echo "$as_me:$LINENO: checking size of long" >&5
4849 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4850 if test "${ac_cv_sizeof_long+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 if test "$ac_cv_type_long" = yes; then
4854 # The cast to unsigned long works around a bug in the HP C Compiler
4855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4857 # This bug is HP SR number 8606223364.
4858 if test "$cross_compiling" = yes; then
4859 # Depending upon the size, compute the lo and hi bounds.
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 $ac_includes_default
4870 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4877 rm -f conftest.$ac_objext
4878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879 (eval $ac_compile) 2>conftest.er1
4881 grep -v '^ *+' conftest.er1 >conftest.err
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -z "$ac_c_werror_flag"
4887 || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try='test -s conftest.$ac_objext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4901 cat >conftest.$ac_ext <<_ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 $ac_includes_default
4911 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag"
4928 || test ! -s conftest.err'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_hi=$ac_mid; break
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 ac_lo=`expr $ac_mid + 1`
4946 if test $ac_lo -le $ac_mid; then
4950 ac_mid=`expr 2 '*' $ac_mid + 1`
4952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4958 cat >conftest.$ac_ext <<_ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4968 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>conftest.er1
4979 grep -v '^ *+' conftest.er1 >conftest.err
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try='test -z "$ac_c_werror_flag"
4985 || test ! -s conftest.err'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; } &&
4991 { ac_try='test -s conftest.$ac_objext'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4999 cat >conftest.$ac_ext <<_ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 $ac_includes_default
5009 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>conftest.er1
5020 grep -v '^ *+' conftest.er1 >conftest.err
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -z "$ac_c_werror_flag"
5026 || test ! -s conftest.err'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try='test -s conftest.$ac_objext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 ac_lo=$ac_mid; break
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 ac_hi=`expr '(' $ac_mid ')' - 1`
5044 if test $ac_mid -le $ac_hi; then
5048 ac_mid=`expr 2 '*' $ac_mid`
5050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5061 # Binary search between lo and hi bounds.
5062 while test "x$ac_lo" != "x$ac_hi"; do
5063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5074 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5081 rm -f conftest.$ac_objext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5083 (eval $ac_compile) 2>conftest.er1
5085 grep -v '^ *+' conftest.er1 >conftest.err
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -z "$ac_c_werror_flag"
5091 || test ! -s conftest.err'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; } &&
5097 { ac_try='test -s conftest.$ac_objext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5108 ac_lo=`expr '(' $ac_mid ')' + 1`
5110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5113 ?*) ac_cv_sizeof_long=$ac_lo;;
5114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5115 See \`config.log' for more details." >&5
5116 echo "$as_me: error: cannot compute sizeof (long), 77
5117 See \`config.log' for more details." >&2;}
5118 { (exit 1); exit 1; }; } ;;
5121 if test "$cross_compiling" = yes; then
5122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5123 See \`config.log' for more details." >&5
5124 echo "$as_me: error: cannot run test program while cross compiling
5125 See \`config.log' for more details." >&2;}
5126 { (exit 1); exit 1; }; }
5128 cat >conftest.$ac_ext <<_ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 $ac_includes_default
5135 long longval () { return (long) (sizeof (long)); }
5136 unsigned long ulongval () { return (long) (sizeof (long)); }
5143 FILE *f = fopen ("conftest.val", "w");
5146 if (((long) (sizeof (long))) < 0)
5148 long i = longval ();
5149 if (i != ((long) (sizeof (long))))
5151 fprintf (f, "%ld\n", i);
5155 unsigned long i = ulongval ();
5156 if (i != ((long) (sizeof (long))))
5158 fprintf (f, "%lu\n", i);
5160 exit (ferror (f) || fclose (f) != 0);
5166 rm -f conftest$ac_exeext
5167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5168 (eval $ac_link) 2>&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_sizeof_long=`cat conftest.val`
5179 echo "$as_me: program exited with status $ac_status" >&5
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5185 See \`config.log' for more details." >&5
5186 echo "$as_me: error: cannot compute sizeof (long), 77
5187 See \`config.log' for more details." >&2;}
5188 { (exit 1); exit 1; }; }
5190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5198 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5199 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5200 cat >>confdefs.h <<_ACEOF
5201 #define SIZEOF_LONG $ac_cv_sizeof_long
5205 if test $ac_cv_c_long_long = yes; then
5206 echo "$as_me:$LINENO: checking for long long" >&5
5207 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5208 if test "${ac_cv_type_long_long+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 cat >conftest.$ac_ext <<_ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 $ac_includes_default
5221 if ((long long *) 0)
5223 if (sizeof (long long))
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>conftest.er1
5233 grep -v '^ *+' conftest.er1 >conftest.err
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -z "$ac_c_werror_flag"
5239 || test ! -s conftest.err'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; } &&
5245 { ac_try='test -s conftest.$ac_objext'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5251 ac_cv_type_long_long=yes
5253 echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5256 ac_cv_type_long_long=no
5258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5260 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5261 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5263 echo "$as_me:$LINENO: checking size of long long" >&5
5264 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5265 if test "${ac_cv_sizeof_long_long+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 if test "$ac_cv_type_long_long" = yes; then
5269 # The cast to unsigned long works around a bug in the HP C Compiler
5270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5272 # This bug is HP SR number 8606223364.
5273 if test "$cross_compiling" = yes; then
5274 # Depending upon the size, compute the lo and hi bounds.
5275 cat >conftest.$ac_ext <<_ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 $ac_includes_default
5285 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5292 rm -f conftest.$ac_objext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294 (eval $ac_compile) 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -z "$ac_c_werror_flag"
5302 || test ! -s conftest.err'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; } &&
5308 { ac_try='test -s conftest.$ac_objext'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5326 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>conftest.er1
5337 grep -v '^ *+' conftest.er1 >conftest.err
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -z "$ac_c_werror_flag"
5343 || test ! -s conftest.err'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; } &&
5349 { ac_try='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_hi=$ac_mid; break
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 ac_lo=`expr $ac_mid + 1`
5361 if test $ac_lo -le $ac_mid; then
5365 ac_mid=`expr 2 '*' $ac_mid + 1`
5367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 $ac_includes_default
5383 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5414 cat >conftest.$ac_ext <<_ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 $ac_includes_default
5424 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5431 rm -f conftest.$ac_objext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5433 (eval $ac_compile) 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_c_werror_flag"
5441 || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_lo=$ac_mid; break
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_hi=`expr '(' $ac_mid ')' - 1`
5459 if test $ac_mid -le $ac_hi; then
5463 ac_mid=`expr 2 '*' $ac_mid`
5465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5476 # Binary search between lo and hi bounds.
5477 while test "x$ac_lo" != "x$ac_hi"; do
5478 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 $ac_includes_default
5489 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5496 rm -f conftest.$ac_objext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5498 (eval $ac_compile) 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try='test -z "$ac_c_werror_flag"
5506 || test ! -s conftest.err'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; } &&
5512 { ac_try='test -s conftest.$ac_objext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ac_lo=`expr '(' $ac_mid ')' + 1`
5525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5528 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5529 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5530 See \`config.log' for more details." >&5
5531 echo "$as_me: error: cannot compute sizeof (long long), 77
5532 See \`config.log' for more details." >&2;}
5533 { (exit 1); exit 1; }; } ;;
5536 if test "$cross_compiling" = yes; then
5537 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5538 See \`config.log' for more details." >&5
5539 echo "$as_me: error: cannot run test program while cross compiling
5540 See \`config.log' for more details." >&2;}
5541 { (exit 1); exit 1; }; }
5543 cat >conftest.$ac_ext <<_ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5549 $ac_includes_default
5550 long longval () { return (long) (sizeof (long long)); }
5551 unsigned long ulongval () { return (long) (sizeof (long long)); }
5558 FILE *f = fopen ("conftest.val", "w");
5561 if (((long) (sizeof (long long))) < 0)
5563 long i = longval ();
5564 if (i != ((long) (sizeof (long long))))
5566 fprintf (f, "%ld\n", i);
5570 unsigned long i = ulongval ();
5571 if (i != ((long) (sizeof (long long))))
5573 fprintf (f, "%lu\n", i);
5575 exit (ferror (f) || fclose (f) != 0);
5581 rm -f conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; }; then
5592 ac_cv_sizeof_long_long=`cat conftest.val`
5594 echo "$as_me: program exited with status $ac_status" >&5
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5600 See \`config.log' for more details." >&5
5601 echo "$as_me: error: cannot compute sizeof (long long), 77
5602 See \`config.log' for more details." >&2;}
5603 { (exit 1); exit 1; }; }
5605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5610 ac_cv_sizeof_long_long=0
5613 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5614 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5615 cat >>confdefs.h <<_ACEOF
5616 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5621 if test $ac_cv_c___int64 = yes; then
5622 echo "$as_me:$LINENO: checking for __int64" >&5
5623 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5624 if test "${ac_cv_type___int64+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 cat >conftest.$ac_ext <<_ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 $ac_includes_default
5639 if (sizeof (__int64))
5645 rm -f conftest.$ac_objext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647 (eval $ac_compile) 2>conftest.er1
5649 grep -v '^ *+' conftest.er1 >conftest.err
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_c_werror_flag"
5655 || test ! -s conftest.err'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; } &&
5661 { ac_try='test -s conftest.$ac_objext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_cv_type___int64=yes
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5672 ac_cv_type___int64=no
5674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5676 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5677 echo "${ECHO_T}$ac_cv_type___int64" >&6
5679 echo "$as_me:$LINENO: checking size of __int64" >&5
5680 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5681 if test "${ac_cv_sizeof___int64+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 if test "$ac_cv_type___int64" = yes; then
5685 # The cast to unsigned long works around a bug in the HP C Compiler
5686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5688 # This bug is HP SR number 8606223364.
5689 if test "$cross_compiling" = yes; then
5690 # Depending upon the size, compute the lo and hi bounds.
5691 cat >conftest.$ac_ext <<_ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 $ac_includes_default
5701 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5708 rm -f conftest.$ac_objext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710 (eval $ac_compile) 2>conftest.er1
5712 grep -v '^ *+' conftest.er1 >conftest.err
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -z "$ac_c_werror_flag"
5718 || test ! -s conftest.err'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5732 cat >conftest.$ac_ext <<_ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 $ac_includes_default
5742 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>conftest.er1
5753 grep -v '^ *+' conftest.er1 >conftest.err
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -z "$ac_c_werror_flag"
5759 || test ! -s conftest.err'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 ac_hi=$ac_mid; break
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5776 ac_lo=`expr $ac_mid + 1`
5777 if test $ac_lo -le $ac_mid; then
5781 ac_mid=`expr 2 '*' $ac_mid + 1`
5783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5795 $ac_includes_default
5799 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5806 rm -f conftest.$ac_objext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -z "$ac_c_werror_flag"
5816 || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5830 cat >conftest.$ac_ext <<_ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 $ac_includes_default
5840 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849 (eval $ac_compile) 2>conftest.er1
5851 grep -v '^ *+' conftest.er1 >conftest.err
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_c_werror_flag"
5857 || test ! -s conftest.err'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; } &&
5863 { ac_try='test -s conftest.$ac_objext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_lo=$ac_mid; break
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 ac_hi=`expr '(' $ac_mid ')' - 1`
5875 if test $ac_mid -le $ac_hi; then
5879 ac_mid=`expr 2 '*' $ac_mid`
5881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5892 # Binary search between lo and hi bounds.
5893 while test "x$ac_lo" != "x$ac_hi"; do
5894 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5895 cat >conftest.$ac_ext <<_ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 $ac_includes_default
5905 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5912 rm -f conftest.$ac_objext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914 (eval $ac_compile) 2>conftest.er1
5916 grep -v '^ *+' conftest.er1 >conftest.err
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try='test -z "$ac_c_werror_flag"
5922 || test ! -s conftest.err'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try='test -s conftest.$ac_objext'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 ac_lo=`expr '(' $ac_mid ')' + 1`
5941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5944 ?*) ac_cv_sizeof___int64=$ac_lo;;
5945 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5946 See \`config.log' for more details." >&5
5947 echo "$as_me: error: cannot compute sizeof (__int64), 77
5948 See \`config.log' for more details." >&2;}
5949 { (exit 1); exit 1; }; } ;;
5952 if test "$cross_compiling" = yes; then
5953 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5954 See \`config.log' for more details." >&5
5955 echo "$as_me: error: cannot run test program while cross compiling
5956 See \`config.log' for more details." >&2;}
5957 { (exit 1); exit 1; }; }
5959 cat >conftest.$ac_ext <<_ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5966 long longval () { return (long) (sizeof (__int64)); }
5967 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5974 FILE *f = fopen ("conftest.val", "w");
5977 if (((long) (sizeof (__int64))) < 0)
5979 long i = longval ();
5980 if (i != ((long) (sizeof (__int64))))
5982 fprintf (f, "%ld\n", i);
5986 unsigned long i = ulongval ();
5987 if (i != ((long) (sizeof (__int64))))
5989 fprintf (f, "%lu\n", i);
5991 exit (ferror (f) || fclose (f) != 0);
5997 rm -f conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 ac_cv_sizeof___int64=`cat conftest.val`
6010 echo "$as_me: program exited with status $ac_status" >&5
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6015 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6016 See \`config.log' for more details." >&5
6017 echo "$as_me: error: cannot compute sizeof (__int64), 77
6018 See \`config.log' for more details." >&2;}
6019 { (exit 1); exit 1; }; }
6021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6026 ac_cv_sizeof___int64=0
6029 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6030 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6031 cat >>confdefs.h <<_ACEOF
6032 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6038 # ---------------------
6039 # Warnings and checking
6040 # ---------------------
6042 # Check $CC warning features (if it's GCC).
6043 # We want to use -pedantic, but we don't want warnings about
6046 # So, we only use -pedantic if we can disable those warnings.
6048 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6049 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6050 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 save_CFLAGS="$CFLAGS"
6054 CFLAGS="-Wno-long-long"
6055 cat >conftest.$ac_ext <<_ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6063 rm -f conftest.$ac_objext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065 (eval $ac_compile) 2>conftest.er1
6067 grep -v '^ *+' conftest.er1 >conftest.err
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -z "$ac_c_werror_flag"
6073 || test ! -s conftest.err'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_prog_cc_w_no_long_long=yes
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_cv_prog_cc_w_no_long_long=no
6092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6093 CFLAGS="$save_CFLAGS"
6096 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6097 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6099 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6100 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6101 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 save_CFLAGS="$CFLAGS"
6105 CFLAGS="-Wno-variadic-macros"
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6118 grep -v '^ *+' conftest.er1 >conftest.err
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag"
6124 || test ! -s conftest.err'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest.$ac_objext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_prog_cc_w_no_variadic_macros=yes
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 ac_cv_prog_cc_w_no_variadic_macros=no
6143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6144 CFLAGS="$save_CFLAGS"
6147 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6148 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6151 if test $ac_cv_prog_cc_w_no_long_long = yes \
6152 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6153 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6157 # Add -Wold-style-definition if it's accepted
6158 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6159 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6160 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 save_CFLAGS="$CFLAGS"
6164 CFLAGS="-Wold-style-definition"
6165 cat >conftest.$ac_ext <<_ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6173 rm -f conftest.$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>conftest.er1
6177 grep -v '^ *+' conftest.er1 >conftest.err
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try='test -z "$ac_c_werror_flag"
6183 || test ! -s conftest.err'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; } &&
6189 { ac_try='test -s conftest.$ac_objext'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 ac_cv_prog_cc_w_old_style_definition=yes
6197 echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6200 ac_cv_prog_cc_w_old_style_definition=no
6202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6203 CFLAGS="$save_CFLAGS"
6206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6207 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6208 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6209 strict1_warn="${strict1_warn} -Wold-style-definition"
6212 # Enable -Werror, period.
6213 # Check whether --enable-werror_always or --disable-werror_always was given.
6214 if test "${enable_werror_always+set}" = set; then
6215 enableval="$enable_werror_always"
6218 enable_werror_always=no
6220 if test x${enable_werror_always} = xyes ; then
6221 strict1_warn="${strict1_warn} -Werror"
6225 # If the native compiler is GCC, we can enable warnings even in stage1.
6226 # That's useful for people building cross-compilers, or just running a
6229 if test "x$GCC" = "xyes"; then
6230 warn_cflags='$(GCC_WARN_CFLAGS)'
6234 # Enable -Werror in bootstrap stage2 and later.
6235 # Check whether --enable-werror or --disable-werror was given.
6236 if test "${enable_werror+set}" = set; then
6237 enableval="$enable_werror"
6240 if test x$is_release = x ; then
6241 # Default to "yes" on development branches.
6244 # Default to "no" on release branches.
6248 if test x$enable_werror = xyes ; then
6253 # Enable expensive internal checks
6254 # Check whether --enable-checking or --disable-checking was given.
6255 if test "${enable_checking+set}" = set; then
6256 enableval="$enable_checking"
6257 ac_checking_flags="${enableval}"
6260 # Determine the default checks.
6261 if test x$is_release = x ; then
6262 ac_checking_flags=yes
6264 ac_checking_flags=release
6267 ac_assert_checking=1
6271 ac_rtlflag_checking=
6273 ac_gc_always_collect=
6275 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6276 for check in $ac_checking_flags
6279 yes) ac_assert_checking=1 ; ac_checking=1 ;
6280 ac_tree_checking=1 ; ac_gc_checking=1 ;
6281 ac_rtlflag_checking=1 ;;
6282 no) ac_assert_checking= ; ac_checking= ;
6283 ac_tree_checking= ; ac_rtl_checking= ;
6284 ac_rtlflag_checking= ; ac_gc_checking= ;
6285 ac_gc_always_collect= ; ac_fold_checking= ;;
6286 all) ac_assert_checking=1 ; ac_checking=1 ;
6287 ac_tree_checking=1 ; ac_rtl_checking=1 ;
6288 ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6289 ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6290 release) ac_assert_checking=1 ;;
6291 assert) ac_assert_checking=1 ;;
6292 fold) ac_fold_checking=1 ;;
6293 gc) ac_gc_checking=1 ;;
6294 gcac) ac_gc_always_collect=1 ;;
6295 misc) ac_checking=1 ;;
6296 rtlflag) ac_rtlflag_checking=1 ;;
6297 rtl) ac_rtl_checking=1 ;;
6298 tree) ac_tree_checking=1 ;;
6299 valgrind) ac_checking_valgrind=1 ;;
6300 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6301 echo "$as_me: error: unknown check category $check" >&2;}
6302 { (exit 1); exit 1; }; } ;;
6308 if test x$ac_checking != x ; then
6310 cat >>confdefs.h <<\_ACEOF
6311 #define ENABLE_CHECKING 1
6314 nocommon_flag=-fno-common
6317 if test x$ac_assert_checking != x ; then
6319 cat >>confdefs.h <<\_ACEOF
6320 #define ENABLE_ASSERT_CHECKING 1
6324 if test x$ac_tree_checking != x ; then
6326 cat >>confdefs.h <<\_ACEOF
6327 #define ENABLE_TREE_CHECKING 1
6330 TREEBROWSER=tree-browser.o
6333 if test x$ac_rtl_checking != x ; then
6335 cat >>confdefs.h <<\_ACEOF
6336 #define ENABLE_RTL_CHECKING 1
6340 if test x$ac_rtlflag_checking != x ; then
6342 cat >>confdefs.h <<\_ACEOF
6343 #define ENABLE_RTL_FLAG_CHECKING 1
6347 if test x$ac_gc_checking != x ; then
6349 cat >>confdefs.h <<\_ACEOF
6350 #define ENABLE_GC_CHECKING 1
6354 if test x$ac_gc_always_collect != x ; then
6356 cat >>confdefs.h <<\_ACEOF
6357 #define ENABLE_GC_ALWAYS_COLLECT 1
6361 if test x$ac_fold_checking != x ; then
6363 cat >>confdefs.h <<\_ACEOF
6364 #define ENABLE_FOLD_CHECKING 1
6368 valgrind_path_defines=
6371 if test "${ac_cv_header_valgrind_h+set}" = set; then
6372 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6373 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6374 if test "${ac_cv_header_valgrind_h+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6378 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6380 # Is the header compilable?
6381 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6382 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6383 cat >conftest.$ac_ext <<_ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6390 #include <valgrind.h>
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6396 grep -v '^ *+' conftest.er1 >conftest.err
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_header_compiler=yes
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_header_compiler=no
6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6423 echo "${ECHO_T}$ac_header_compiler" >&6
6425 # Is the header present?
6426 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6427 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6428 cat >conftest.$ac_ext <<_ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 #include <valgrind.h>
6436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6439 grep -v '^ *+' conftest.er1 >conftest.err
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } >/dev/null; then
6444 if test -s conftest.err; then
6445 ac_cpp_err=$ac_c_preproc_warn_flag
6446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6453 if test -z "$ac_cpp_err"; then
6454 ac_header_preproc=yes
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 ac_header_preproc=no
6461 rm -f conftest.err conftest.$ac_ext
6462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6463 echo "${ECHO_T}$ac_header_preproc" >&6
6465 # So? What about this header?
6466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6468 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6469 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6471 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6472 ac_header_preproc=yes
6475 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6476 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6478 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6480 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6482 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6484 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6486 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6489 ## ------------------------------------------ ##
6490 ## Report this to the AC_PACKAGE_NAME lists. ##
6491 ## ------------------------------------------ ##
6494 sed "s/^/$as_me: WARNING: /" >&2
6497 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6498 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6499 if test "${ac_cv_header_valgrind_h+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 ac_cv_header_valgrind_h=$ac_header_preproc
6504 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6505 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6508 if test $ac_cv_header_valgrind_h = yes; then
6516 if test x$ac_checking_valgrind != x ; then
6517 # It is certainly possible that there's valgrind but no valgrind.h.
6518 # GCC relies on making annotations so we must have both.
6519 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6520 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6521 cat >conftest.$ac_ext <<_ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 #include <valgrind/memcheck.h>
6528 #ifndef VALGRIND_DISCARD
6529 #error VALGRIND_DISCARD not defined
6532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6535 grep -v '^ *+' conftest.er1 >conftest.err
6537 cat conftest.err >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } >/dev/null; then
6540 if test -s conftest.err; then
6541 ac_cpp_err=$ac_c_preproc_warn_flag
6542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6549 if test -z "$ac_cpp_err"; then
6550 gcc_cv_header_valgrind_memcheck_h=yes
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 gcc_cv_header_valgrind_memcheck_h=no
6557 rm -f conftest.err conftest.$ac_ext
6558 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6559 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6560 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6561 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6562 cat >conftest.$ac_ext <<_ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <memcheck.h>
6569 #ifndef VALGRIND_DISCARD
6570 #error VALGRIND_DISCARD not defined
6573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6576 grep -v '^ *+' conftest.er1 >conftest.err
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } >/dev/null; then
6581 if test -s conftest.err; then
6582 ac_cpp_err=$ac_c_preproc_warn_flag
6583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6590 if test -z "$ac_cpp_err"; then
6591 gcc_cv_header_memcheck_h=yes
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 gcc_cv_header_memcheck_h=no
6598 rm -f conftest.err conftest.$ac_ext
6599 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6600 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6602 # Prepare PATH_SEPARATOR.
6603 # The user is always right.
6604 if test "${PATH_SEPARATOR+set}" != set; then
6605 echo "#! /bin/sh" >conf$$.sh
6606 echo "exit 0" >>conf$$.sh
6608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6616 # Find out how to test for executable files. Don't use a zero-byte file,
6617 # as systems may use methods other than mode bits to determine executability.
6618 cat >conf$$.file <<_ASEOF
6622 chmod +x conf$$.file
6623 if test -x conf$$.file >/dev/null 2>&1; then
6624 ac_executable_p="test -x"
6626 ac_executable_p="test -f"
6630 # Extract the first word of "valgrind", so it can be a program name with args.
6631 set dummy valgrind; ac_word=$2
6632 echo "$as_me:$LINENO: checking for $ac_word" >&5
6633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6634 if test "${ac_cv_path_valgrind_path+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 case "$valgrind_path" in
6639 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6642 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6643 for ac_dir in $PATH; do
6645 test -z "$ac_dir" && ac_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6648 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6649 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6659 valgrind_path="$ac_cv_path_valgrind_path"
6660 if test -n "$valgrind_path"; then
6661 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6662 echo "${ECHO_T}$valgrind_path" >&6
6664 echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6
6668 if test "x$valgrind_path" = "x" \
6669 || (test $have_valgrind_h = no \
6670 && test $gcc_cv_header_memcheck_h = no \
6671 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6672 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6673 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6674 { (exit 1); exit 1; }; }
6676 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6677 valgrind_command="$valgrind_path -q"
6679 cat >>confdefs.h <<\_ACEOF
6680 #define ENABLE_VALGRIND_CHECKING 1
6683 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6685 cat >>confdefs.h <<\_ACEOF
6686 #define HAVE_VALGRIND_MEMCHECK_H 1
6690 if test $gcc_cv_header_memcheck_h = yes; then
6692 cat >>confdefs.h <<\_ACEOF
6693 #define HAVE_MEMCHECK_H 1
6701 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6702 if test "${enable_mapped_location+set}" = set; then
6703 enableval="$enable_mapped_location"
6706 enable_mapped_location=no
6709 if test "$enable_mapped_location" = yes ; then
6711 cat >>confdefs.h <<\_ACEOF
6712 #define USE_MAPPED_LOCATION 1
6717 # Enable code coverage collection
6718 # Check whether --enable-coverage or --disable-coverage was given.
6719 if test "${enable_coverage+set}" = set; then
6720 enableval="$enable_coverage"
6721 case "${enableval}" in
6723 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6726 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6729 # a.k.a. --disable-coverage
6733 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6734 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6735 { (exit 1); exit 1; }; }
6743 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6744 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6745 enableval="$enable_gather_detailed_mem_stats"
6748 enable_gather_detailed_mem_stats=no
6750 if test x$enable_gather_detailed_mem_stats = xyes ; then
6752 cat >>confdefs.h <<\_ACEOF
6753 #define GATHER_STATISTICS 1
6758 # -------------------------------
6759 # Miscenalleous configure options
6760 # -------------------------------
6764 # Check whether --with-stabs or --without-stabs was given.
6765 if test "${with_stabs+set}" = set; then
6766 withval="$with_stabs"
6772 # Determine whether or not multilibs are enabled.
6773 # Check whether --enable-multilib or --disable-multilib was given.
6774 if test "${enable_multilib+set}" = set; then
6775 enableval="$enable_multilib"
6782 # Enable __cxa_atexit for C++.
6783 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6784 if test "${enable___cxa_atexit+set}" = set; then
6785 enableval="$enable___cxa_atexit"
6790 # Pass with no value to take the default
6791 # Pass with a value to specify a thread package
6792 # Check whether --enable-threads or --disable-threads was given.
6793 if test "${enable_threads+set}" = set; then
6794 enableval="$enable_threads"
6800 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6801 if test "${enable_objc_gc+set}" = set; then
6802 enableval="$enable_objc_gc"
6803 if test x$enable_objc_gc = xno; then
6813 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6814 if test "${with_dwarf2+set}" = set; then
6815 withval="$with_dwarf2"
6816 dwarf2="$with_dwarf2"
6821 # Check whether --enable-shared or --disable-shared was given.
6822 if test "${enable_shared+set}" = set; then
6823 enableval="$enable_shared"
6825 case $enable_shared in
6829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6830 for pkg in $enableval; do
6831 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6845 # Check whether --with-sysroot or --without-sysroot was given.
6846 if test "${with_sysroot+set}" = set; then
6847 withval="$with_sysroot"
6849 case ${with_sysroot} in
6850 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6851 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6854 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6855 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6857 if test "x$exec_prefix" = xNONE; then
6858 if test "x$prefix" = xNONE; then
6859 test_prefix=/usr/local
6864 test_prefix=$exec_prefix
6866 case ${TARGET_SYSTEM_ROOT} in
6867 "${test_prefix}"|"${test_prefix}/"*|\
6868 '${exec_prefix}'|'${exec_prefix}/'*)
6869 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6870 TARGET_SYSTEM_ROOT_DEFINE="$t"
6877 TARGET_SYSTEM_ROOT_DEFINE=
6878 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6885 # Build with intermodule optimisations
6886 # Check whether --enable-intermodule or --disable-intermodule was given.
6887 if test "${enable_intermodule+set}" = set; then
6888 enableval="$enable_intermodule"
6889 case ${enable_intermodule} in
6890 yes) onestep="-onestep";;
6898 # Sanity check enable_languages in case someone does not run the toplevel
6899 # configure # script.
6900 # Check whether --enable-languages or --disable-languages was given.
6901 if test "${enable_languages+set}" = set; then
6902 enableval="$enable_languages"
6903 case ,${enable_languages}, in
6905 # go safe -- we cannot be much sure without the toplevel
6907 # analysis of which target libs are present and usable
6911 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6912 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6913 { (exit 1); exit 1; }; }
6918 enable_languages=c,${enable_languages}
6926 for lang in ${srcdir}/*/config-lang.in
6929 # The odd quoting in the next line works around
6930 # an apparent bug in bash 1.12 on linux.
6931 ${srcdir}/[*]/config-lang.in) ;;
6933 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6934 if test "x$lang_alias" = x
6936 echo "$lang doesn't set \$language." 1>&2
6939 case ",$enable_languages," in
6941 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6948 # -------------------------
6949 # Checks for other programs
6950 # -------------------------
6952 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6953 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6954 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6955 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 cat >conftest.make <<\_ACEOF
6960 @echo 'ac_maketemp="$(MAKE)"'
6962 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6963 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6964 if test -n "$ac_maketemp"; then
6965 eval ac_cv_prog_make_${ac_make}_set=yes
6967 eval ac_cv_prog_make_${ac_make}_set=no
6971 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6972 echo "$as_me:$LINENO: result: yes" >&5
6973 echo "${ECHO_T}yes" >&6
6976 echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6
6978 SET_MAKE="MAKE=${MAKE-make}"
6982 # Find some useful tools
6983 for ac_prog in gawk mawk nawk awk
6985 # Extract the first word of "$ac_prog", so it can be a program name with args.
6986 set dummy $ac_prog; ac_word=$2
6987 echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6989 if test "${ac_cv_prog_AWK+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 if test -n "$AWK"; then
6993 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_AWK="$ac_prog"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 if test -n "$AWK"; then
7013 echo "$as_me:$LINENO: result: $AWK" >&5
7014 echo "${ECHO_T}$AWK" >&6
7016 echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6
7020 test -n "$AWK" && break
7023 # We need awk to create options.c and options.h.
7024 # Bail out if it's missing.
7026 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7027 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7028 { (exit 1); exit 1; }; } ;;
7031 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7032 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7033 if test "${gcc_cv_prog_LN_S+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 rm -f conftestdata_t
7037 echo >conftestdata_f
7038 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7040 gcc_cv_prog_LN_S="ln -s"
7042 if ln conftestdata_f conftestdata_t 2>/dev/null
7049 rm -f conftestdata_f conftestdata_t
7052 LN_S="$gcc_cv_prog_LN_S"
7053 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7054 echo "$as_me:$LINENO: result: yes" >&5
7055 echo "${ECHO_T}yes" >&6
7057 if test "$gcc_cv_prog_LN_S" = "ln"; then
7058 echo "$as_me:$LINENO: result: no, using ln" >&5
7059 echo "${ECHO_T}no, using ln" >&6
7061 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
7062 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
7066 echo "$as_me:$LINENO: checking whether ln works" >&5
7067 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7068 if test "${acx_cv_prog_LN+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 rm -f conftestdata_t
7072 echo >conftestdata_f
7073 if ln conftestdata_f conftestdata_t 2>/dev/null
7079 rm -f conftestdata_f conftestdata_t
7082 if test $acx_cv_prog_LN = no; then
7084 echo "$as_me:$LINENO: result: no, using $LN" >&5
7085 echo "${ECHO_T}no, using $LN" >&6
7087 LN="$acx_cv_prog_LN"
7088 echo "$as_me:$LINENO: result: yes" >&5
7089 echo "${ECHO_T}yes" >&6
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7095 echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7097 if test "${ac_cv_prog_RANLIB+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 if test -n "$RANLIB"; then
7101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 RANLIB=$ac_cv_prog_RANLIB
7120 if test -n "$RANLIB"; then
7121 echo "$as_me:$LINENO: result: $RANLIB" >&5
7122 echo "${ECHO_T}$RANLIB" >&6
7124 echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6
7129 if test -z "$ac_cv_prog_RANLIB"; then
7130 ac_ct_RANLIB=$RANLIB
7131 # Extract the first word of "ranlib", so it can be a program name with args.
7132 set dummy ranlib; ac_word=$2
7133 echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7135 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 if test -n "$ac_ct_RANLIB"; then
7139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_ac_ct_RANLIB="ranlib"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7158 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7159 if test -n "$ac_ct_RANLIB"; then
7160 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7161 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7163 echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7167 RANLIB=$ac_ct_RANLIB
7169 RANLIB="$ac_cv_prog_RANLIB"
7174 # By default, the Darwin ranlib will not treat common symbols as
7175 # definitions when building the archive table of contents. Other
7176 # ranlibs do that; pass an option to the Darwin ranlib that makes
7177 # it behave similarly.
7185 # Find a good install program. We prefer a C program (faster),
7186 # so one script is as good as another. But avoid the broken or
7187 # incompatible versions:
7188 # SysV /etc/install, /usr/sbin/install
7189 # SunOS /usr/etc/install
7190 # IRIX /sbin/install
7192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7194 # ./install, which can be erroneously created by make from ./install.sh.
7195 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7196 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7197 if test -z "$INSTALL"; then
7198 if test "${ac_cv_path_install+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7202 for ac_dir in $PATH; do
7203 # Account for people who put trailing slashes in PATH elements.
7205 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7207 # OSF1 and SCO ODT 3.0 have their own names for install.
7208 for ac_prog in ginstall scoinst install; do
7209 if test -f $ac_dir/$ac_prog; then
7210 if test $ac_prog = install &&
7211 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7212 # AIX install. It has an incompatible calling convention.
7213 # OSF/1 installbsd also uses dspmsg, but is usable.
7216 ac_cv_path_install="$ac_dir/$ac_prog -c"
7227 if test "${ac_cv_path_install+set}" = set; then
7228 INSTALL="$ac_cv_path_install"
7230 # As a last resort, use the slow shell script. We don't cache a
7231 # path for INSTALL within a source directory, because that will
7232 # break other packages using the cache if that directory is
7233 # removed, or if the path is relative.
7234 INSTALL="$ac_install_sh"
7237 echo "$as_me:$LINENO: result: $INSTALL" >&5
7238 echo "${ECHO_T}$INSTALL" >&6
7240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7241 # It thinks the first close brace ends the variable substitution.
7242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7247 # See if cmp has --ignore-initial.
7248 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7249 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7250 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 gcc_cv_prog_cmp_skip=slowcompare
7256 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7257 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7260 gcc_cv_prog_cmp_skip=gnucompare
7263 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7264 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7265 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7268 gcc_cv_prog_cmp_skip=fastcompare
7275 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7276 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7277 make_compare_target=$gcc_cv_prog_cmp_skip
7281 # See if we have the mktemp command.
7282 # Extract the first word of "mktemp", so it can be a program name with args.
7283 set dummy mktemp; ac_word=$2
7284 echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7286 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 if test -n "$have_mktemp_command"; then
7290 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_have_mktemp_command="yes"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7309 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7310 if test -n "$have_mktemp_command"; then
7311 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7312 echo "${ECHO_T}$have_mktemp_command" >&6
7314 echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6
7319 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7321 # See if makeinfo has been installed and is modern enough
7322 # that we can use it.
7323 # Extract the first word of "makeinfo", so it can be a program name with args.
7324 set dummy makeinfo; ac_word=$2
7325 echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7327 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 if test -n "$MAKEINFO"; then
7331 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_MAKEINFO="makeinfo"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 MAKEINFO=$ac_cv_prog_MAKEINFO
7350 if test -n "$MAKEINFO"; then
7351 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7352 echo "${ECHO_T}$MAKEINFO" >&6
7354 echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6
7358 if test -n "$MAKEINFO"; then
7359 # Found it, now check the version.
7360 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7361 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7362 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_prog_version=`$MAKEINFO --version 2>&1 |
7366 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7367 echo "configure:7367: version of makeinfo is $ac_prog_version" >&5
7368 case $ac_prog_version in
7369 '') gcc_cv_prog_makeinfo_modern=no;;
7371 gcc_cv_prog_makeinfo_modern=yes;;
7372 *) gcc_cv_prog_makeinfo_modern=no;;
7376 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7377 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7379 gcc_cv_prog_makeinfo_modern=no
7382 if test $gcc_cv_prog_makeinfo_modern = no; then
7383 MAKEINFO="$MISSING makeinfo"
7384 { echo "$as_me:$LINENO: WARNING:
7385 *** Makeinfo is missing or too old.
7386 *** Info documentation will not be built." >&5
7387 echo "$as_me: WARNING:
7388 *** Makeinfo is missing or too old.
7389 *** Info documentation will not be built." >&2;}
7396 # Is pod2man recent enough to regenerate manpages?
7397 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7398 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7399 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7400 echo "$as_me:$LINENO: result: yes" >&5
7401 echo "${ECHO_T}yes" >&6
7402 GENERATED_MANPAGES=generated-manpages
7404 echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7413 # Extract the first word of "$ac_prog", so it can be a program name with args.
7414 set dummy $ac_prog; ac_word=$2
7415 echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7417 if test "${ac_cv_prog_FLEX+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 if test -n "$FLEX"; then
7421 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_FLEX="$ac_prog"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 FLEX=$ac_cv_prog_FLEX
7440 if test -n "$FLEX"; then
7441 echo "$as_me:$LINENO: result: $FLEX" >&5
7442 echo "${ECHO_T}$FLEX" >&6
7444 echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6
7448 test -n "$FLEX" && break
7450 test -n "$FLEX" || FLEX="$MISSING flex"
7454 for ac_prog in bison
7456 # Extract the first word of "$ac_prog", so it can be a program name with args.
7457 set dummy $ac_prog; ac_word=$2
7458 echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7460 if test "${ac_cv_prog_BISON+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 if test -n "$BISON"; then
7464 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_prog_BISON="$ac_prog"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 BISON=$ac_cv_prog_BISON
7483 if test -n "$BISON"; then
7484 echo "$as_me:$LINENO: result: $BISON" >&5
7485 echo "${ECHO_T}$BISON" >&6
7487 echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6
7491 test -n "$BISON" && break
7493 test -n "$BISON" || BISON="$MISSING bison"
7496 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7497 # check for build == host before using them.
7500 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7501 && test -d ../binutils ; then
7502 NM='$(objdir)/../binutils/nm-new'
7504 # Extract the first word of "nm", so it can be a program name with args.
7505 set dummy nm; ac_word=$2
7506 echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7508 if test "${ac_cv_prog_NM+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 if test -n "$NM"; then
7512 ac_cv_prog_NM="$NM" # Let the user override the test.
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7532 if test -n "$NM"; then
7533 echo "$as_me:$LINENO: result: $NM" >&5
7534 echo "${ECHO_T}$NM" >&6
7536 echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6
7543 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7544 && test -d ../binutils ; then
7545 AR='$(objdir)/../binutils/ar'
7547 # Extract the first word of "ar", so it can be a program name with args.
7548 set dummy ar; ac_word=$2
7549 echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7551 if test "${ac_cv_prog_AR+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 if test -n "$AR"; then
7555 ac_cv_prog_AR="$AR" # Let the user override the test.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7575 if test -n "$AR"; then
7576 echo "$as_me:$LINENO: result: $AR" >&5
7577 echo "${ECHO_T}$AR" >&6
7579 echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7586 # --------------------
7587 # Checks for C headers
7588 # --------------------
7590 echo "$as_me:$LINENO: checking for GNU C library" >&5
7591 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7592 if test "${gcc_cv_glibc+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 cat >conftest.$ac_ext <<_ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #include <features.h>
7606 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7607 #error Not a GNU C library system
7613 rm -f conftest.$ac_objext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7615 (eval $ac_compile) 2>conftest.er1
7617 grep -v '^ *+' conftest.er1 >conftest.err
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -z "$ac_c_werror_flag"
7623 || test ! -s conftest.err'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; } &&
7629 { ac_try='test -s conftest.$ac_objext'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7645 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7646 echo "${ECHO_T}$gcc_cv_glibc" >&6
7647 if test $gcc_cv_glibc = yes; then
7649 cat >>confdefs.h <<\_ACEOF
7650 #define _GNU_SOURCE 1
7655 # Need to reject headers which give warnings, so that the -Werror bootstrap
7656 # works later. *sigh* This needs to come before all header checks.
7658 ac_c_preproc_warn_flag=yes
7660 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7661 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7662 if test "${ac_cv_header_stdc+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686 (eval $ac_compile) 2>conftest.er1
7688 grep -v '^ *+' conftest.er1 >conftest.err
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -z "$ac_c_werror_flag"
7694 || test ! -s conftest.err'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; } &&
7700 { ac_try='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 ac_cv_header_stdc=yes
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 ac_cv_header_stdc=no
7713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715 if test $ac_cv_header_stdc = yes; then
7716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7717 cat >conftest.$ac_ext <<_ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727 $EGREP "memchr" >/dev/null 2>&1; then
7730 ac_cv_header_stdc=no
7736 if test $ac_cv_header_stdc = yes; then
7737 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7738 cat >conftest.$ac_ext <<_ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7748 $EGREP "free" >/dev/null 2>&1; then
7751 ac_cv_header_stdc=no
7757 if test $ac_cv_header_stdc = yes; then
7758 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7759 if test "$cross_compiling" = yes; then
7762 cat >conftest.$ac_ext <<_ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7769 #if ((' ' & 0x0FF) == 0x020)
7770 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7771 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7773 # define ISLOWER(c) \
7774 (('a' <= (c) && (c) <= 'i') \
7775 || ('j' <= (c) && (c) <= 'r') \
7776 || ('s' <= (c) && (c) <= 'z'))
7777 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7780 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7785 for (i = 0; i < 256; i++)
7786 if (XOR (islower (i), ISLOWER (i))
7787 || toupper (i) != TOUPPER (i))
7792 rm -f conftest$ac_exeext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794 (eval $ac_link) 2>&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7805 echo "$as_me: program exited with status $ac_status" >&5
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7810 ac_cv_header_stdc=no
7812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7816 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7817 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7818 if test $ac_cv_header_stdc = yes; then
7820 cat >>confdefs.h <<\_ACEOF
7821 #define STDC_HEADERS 1
7826 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7827 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7828 if test "${ac_cv_header_time+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 cat >conftest.$ac_ext <<_ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 #include <sys/types.h>
7838 #include <sys/time.h>
7844 if ((struct tm *) 0)
7850 rm -f conftest.$ac_objext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7852 (eval $ac_compile) 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
7859 { ac_try='test -z "$ac_c_werror_flag"
7860 || test ! -s conftest.err'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; } &&
7866 { ac_try='test -s conftest.$ac_objext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 ac_cv_header_time=yes
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 ac_cv_header_time=no
7879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7881 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7882 echo "${ECHO_T}$ac_cv_header_time" >&6
7883 if test $ac_cv_header_time = yes; then
7885 cat >>confdefs.h <<\_ACEOF
7886 #define TIME_WITH_SYS_TIME 1
7891 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7892 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7893 if test "${gcc_cv_header_string+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 cat >conftest.$ac_ext <<_ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7903 #include <strings.h>
7912 rm -f conftest.$ac_objext
7913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7914 (eval $ac_compile) 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } &&
7921 { ac_try='test -z "$ac_c_werror_flag"
7922 || test ! -s conftest.err'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; } &&
7928 { ac_try='test -s conftest.$ac_objext'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; }; then
7934 gcc_cv_header_string=yes
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7939 gcc_cv_header_string=no
7941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7943 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7944 echo "${ECHO_T}$gcc_cv_header_string" >&6
7945 if test $gcc_cv_header_string = yes; then
7947 cat >>confdefs.h <<\_ACEOF
7948 #define STRING_WITH_STRINGS 1
7953 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7954 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7955 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 #include <sys/types.h>
7965 #include <sys/wait.h>
7967 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7970 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7978 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7983 rm -f conftest.$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985 (eval $ac_compile) 2>conftest.er1
7987 grep -v '^ *+' conftest.er1 >conftest.err
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } &&
7992 { ac_try='test -z "$ac_c_werror_flag"
7993 || test ! -s conftest.err'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; } &&
7999 { ac_try='test -s conftest.$ac_objext'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 ac_cv_header_sys_wait_h=yes
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8010 ac_cv_header_sys_wait_h=no
8012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8014 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8015 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8016 if test $ac_cv_header_sys_wait_h = yes; then
8018 cat >>confdefs.h <<\_ACEOF
8019 #define HAVE_SYS_WAIT_H 1
8045 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
8046 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8047 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8048 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8051 echo "$as_me:$LINENO: checking for $ac_header" >&5
8052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 #include <$ac_header>
8064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8067 grep -v '^ *+' conftest.er1 >conftest.err
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } >/dev/null; then
8072 if test -s conftest.err; then
8073 ac_cpp_err=$ac_c_preproc_warn_flag
8074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8081 if test -z "$ac_cpp_err"; then
8082 eval "$as_ac_Header=yes"
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 eval "$as_ac_Header=no"
8089 rm -f conftest.err conftest.$ac_ext
8091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8094 cat >>confdefs.h <<_ACEOF
8095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8102 # Check for thread headers.
8103 echo "$as_me:$LINENO: checking for thread.h" >&5
8104 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8105 if test "${ac_cv_header_thread_h+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 cat >conftest.$ac_ext <<_ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8119 grep -v '^ *+' conftest.er1 >conftest.err
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } >/dev/null; then
8124 if test -s conftest.err; then
8125 ac_cpp_err=$ac_c_preproc_warn_flag
8126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8133 if test -z "$ac_cpp_err"; then
8134 ac_cv_header_thread_h=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_header_thread_h=no
8141 rm -f conftest.err conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8144 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8145 if test $ac_cv_header_thread_h = yes; then
8151 echo "$as_me:$LINENO: checking for pthread.h" >&5
8152 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8153 if test "${ac_cv_header_pthread_h+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 cat >conftest.$ac_ext <<_ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 #include <pthread.h>
8164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8167 grep -v '^ *+' conftest.er1 >conftest.err
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } >/dev/null; then
8172 if test -s conftest.err; then
8173 ac_cpp_err=$ac_c_preproc_warn_flag
8174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8181 if test -z "$ac_cpp_err"; then
8182 ac_cv_header_pthread_h=yes
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 ac_cv_header_pthread_h=no
8189 rm -f conftest.err conftest.$ac_ext
8191 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8192 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8193 if test $ac_cv_header_pthread_h = yes; then
8200 # These tests can't be done till we know if we have limits.h.
8201 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8202 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8203 if test "${gcc_cv_decl_char_bit+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 #ifdef HAVE_LIMITS_H
8219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8220 $EGREP "found" >/dev/null 2>&1; then
8221 gcc_cv_decl_char_bit=yes
8223 gcc_cv_decl_char_bit=no
8229 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8230 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8231 if test $gcc_cv_decl_char_bit = no; then
8232 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8233 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8234 if test "${gcc_cv_c_nbby+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 while test $i -lt 65; do
8240 cat >conftest.$ac_ext <<_ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8251 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8252 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8258 rm -f conftest.$ac_objext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8260 (eval $ac_compile) 2>conftest.er1
8262 grep -v '^ *+' conftest.er1 >conftest.err
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag"
8268 || test ! -s conftest.err'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest.$ac_objext'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 gcc_cv_c_nbby=$i; break
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8289 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8292 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8293 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8294 if test $gcc_cv_c_nbby = failed; then
8295 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8296 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8297 { (exit 1); exit 1; }; }
8300 cat >>confdefs.h <<_ACEOF
8301 #define CHAR_BIT $gcc_cv_c_nbby
8306 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8307 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8308 if test "${ac_cv_c_bigendian+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 ac_cv_c_bigendian=unknown
8312 # See if sys/param.h defines the BYTE_ORDER macro.
8313 cat >conftest.$ac_ext <<_ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <sys/types.h>
8320 #include <sys/param.h>
8325 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8332 rm -f conftest.$ac_objext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8334 (eval $ac_compile) 2>conftest.er1
8336 grep -v '^ *+' conftest.er1 >conftest.err
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag"
8342 || test ! -s conftest.err'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; } &&
8348 { ac_try='test -s conftest.$ac_objext'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8354 # It does; now see whether it defined to BIG_ENDIAN or not.
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 #include <sys/types.h>
8362 #include <sys/param.h>
8367 #if BYTE_ORDER != BIG_ENDIAN
8374 rm -f conftest.$ac_objext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8376 (eval $ac_compile) 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag"
8384 || test ! -s conftest.err'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; } &&
8390 { ac_try='test -s conftest.$ac_objext'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8396 ac_cv_c_bigendian=yes
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 ac_cv_c_bigendian=no
8403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8410 if test $ac_cv_c_bigendian = unknown; then
8411 if test "$cross_compiling" = yes; then
8412 echo $ac_n "cross-compiling... " 2>&6
8414 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8421 /* Are we little or big endian? From Harbison&Steele. */
8425 char c[sizeof (long)];
8428 exit (u.c[sizeof (long) - 1] == 1);
8431 rm -f conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433 (eval $ac_link) 2>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_cv_c_bigendian=no
8444 echo "$as_me: program exited with status $ac_status" >&5
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_c_bigendian=yes
8451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8455 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8456 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8457 if test $ac_cv_c_bigendian = unknown; then
8458 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8459 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8461 cat >conftest.c <<EOF
8462 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8463 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8464 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8465 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8466 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8467 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8468 int main() { _ascii (); _ebcdic (); return 0; }
8470 if test -f conftest.c ; then
8471 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8472 if test `grep -l BIGenDianSyS conftest.o` ; then
8473 echo $ac_n ' big endian probe OK, ' 1>&6
8474 ac_cv_c_bigendian=yes
8476 if test `grep -l LiTTleEnDian conftest.o` ; then
8477 echo $ac_n ' little endian probe OK, ' 1>&6
8478 if test $ac_cv_c_bigendian = yes ; then
8479 ac_cv_c_bigendian=unknown;
8481 ac_cv_c_bigendian=no
8484 echo $ac_n 'guessing bigendian ... ' >&6
8487 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8488 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8490 if test $ac_cv_c_bigendian = yes; then
8492 cat >>confdefs.h <<\_ACEOF
8493 #define WORDS_BIGENDIAN 1
8497 cat >>confdefs.h <<\_ACEOF
8498 #define HOST_WORDS_BIG_ENDIAN 1
8506 cat >>confdefs.h <<_ACEOF
8507 #define BYTEORDER $BYTEORDER
8510 if test $ac_cv_c_bigendian = unknown; then
8511 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8512 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8513 { (exit 1); exit 1; }; }
8521 # Stage specific cflags for build.
8525 if test x$GCC = xyes
8527 stage1_cflags="-Wa,-J"
8533 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8534 # sources; use -no-cpp-precomp to get to GNU cpp.
8535 # Apple's GCC has bugs in designated initializer handling, so disable
8537 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8542 # These libraries may be used by collect2.
8543 # We may need a special search path to get them linked.
8544 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8545 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8546 if test "${gcc_cv_collect2_libs+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 for libs in '' -lld -lmld \
8551 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8552 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8555 cat >conftest.$ac_ext <<_ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8562 /* Override any gcc2 internal prototype to avoid an error. */
8566 /* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8579 (eval $ac_link) 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag"
8587 || test ! -s conftest.err'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest$ac_exeext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 gcc_cv_collect2_libs="$libs"; break
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8605 rm -f conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8609 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8611 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8612 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8613 case $gcc_cv_collect2_libs in
8615 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8619 # When building Ada code on Alpha, we need exc_resume which is usually in
8620 # -lexc. So test for it.
8623 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8624 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8625 if test "${ac_cv_search_exc_resume+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 ac_func_search_save_LIBS=$LIBS
8629 ac_cv_search_exc_resume=no
8630 cat >conftest.$ac_ext <<_ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8637 /* Override any gcc2 internal prototype to avoid an error. */
8641 /* We use char because int might match the return type of a gcc2
8642 builtin and then its argument prototype would still apply. */
8652 rm -f conftest.$ac_objext conftest$ac_exeext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654 (eval $ac_link) 2>conftest.er1
8656 grep -v '^ *+' conftest.er1 >conftest.err
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } &&
8661 { ac_try='test -z "$ac_c_werror_flag"
8662 || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest$ac_exeext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_search_exc_resume="none required"
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8680 rm -f conftest.err conftest.$ac_objext \
8681 conftest$ac_exeext conftest.$ac_ext
8682 if test "$ac_cv_search_exc_resume" = no; then
8683 for ac_lib in exc; do
8684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8685 cat >conftest.$ac_ext <<_ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8692 /* Override any gcc2 internal prototype to avoid an error. */
8696 /* We use char because int might match the return type of a gcc2
8697 builtin and then its argument prototype would still apply. */
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709 (eval $ac_link) 2>conftest.er1
8711 grep -v '^ *+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag"
8717 || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_cv_search_exc_resume="-l$ac_lib"
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8736 rm -f conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_func_search_save_LIBS
8742 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8743 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8744 if test "$ac_cv_search_exc_resume" != no; then
8745 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8753 # Some systems put ldexp and frexp in libm instead of libc; assume
8754 # they're both in the same place. jcf-dump needs them.
8757 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8758 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8759 if test "${ac_cv_search_ldexp+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 ac_func_search_save_LIBS=$LIBS
8763 ac_cv_search_ldexp=no
8764 cat >conftest.$ac_ext <<_ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8771 /* Override any gcc2 internal prototype to avoid an error. */
8775 /* We use char because int might match the return type of a gcc2
8776 builtin and then its argument prototype would still apply. */
8786 rm -f conftest.$ac_objext conftest$ac_exeext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8788 (eval $ac_link) 2>conftest.er1
8790 grep -v '^ *+' conftest.er1 >conftest.err
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } &&
8795 { ac_try='test -z "$ac_c_werror_flag"
8796 || test ! -s conftest.err'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest$ac_exeext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_cv_search_ldexp="none required"
8810 echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8814 rm -f conftest.err conftest.$ac_objext \
8815 conftest$ac_exeext conftest.$ac_ext
8816 if test "$ac_cv_search_ldexp" = no; then
8818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8819 cat >conftest.$ac_ext <<_ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8826 /* Override any gcc2 internal prototype to avoid an error. */
8830 /* We use char because int might match the return type of a gcc2
8831 builtin and then its argument prototype would still apply. */
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843 (eval $ac_link) 2>conftest.er1
8845 grep -v '^ *+' conftest.er1 >conftest.err
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } &&
8850 { ac_try='test -z "$ac_c_werror_flag"
8851 || test ! -s conftest.err'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; } &&
8857 { ac_try='test -s conftest$ac_exeext'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8863 ac_cv_search_ldexp="-l$ac_lib"
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8870 rm -f conftest.err conftest.$ac_objext \
8871 conftest$ac_exeext conftest.$ac_ext
8874 LIBS=$ac_func_search_save_LIBS
8876 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8877 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8878 if test "$ac_cv_search_ldexp" != no; then
8879 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8887 # Use <inttypes.h> only if it exists,
8888 # doesn't clash with <sys/types.h>, and declares intmax_t.
8889 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8890 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8891 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 #include <sys/types.h>
8901 #include <inttypes.h>
8910 rm -f conftest.$ac_objext
8911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8912 (eval $ac_compile) 2>conftest.er1
8914 grep -v '^ *+' conftest.er1 >conftest.err
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } &&
8919 { ac_try='test -z "$ac_c_werror_flag"
8920 || test ! -s conftest.err'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; } &&
8926 { ac_try='test -s conftest.$ac_objext'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; }; then
8932 gcc_cv_header_inttypes_h=yes
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8937 gcc_cv_header_inttypes_h=no
8939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8942 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8943 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8944 if test $gcc_cv_header_inttypes_h = yes; then
8946 cat >>confdefs.h <<\_ACEOF
8947 #define HAVE_INTTYPES_H 1
8978 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
8979 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8980 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8981 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8985 echo "$as_me:$LINENO: checking for $ac_func" >&5
8986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8987 if eval "test \"\${$as_ac_var+set}\" = set"; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8998 #define $ac_func innocuous_$ac_func
9000 /* System header to define __stub macros and hopefully few prototypes,
9001 which can conflict with char $ac_func (); below.
9002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9003 <limits.h> exists even on freestanding compilers. */
9006 # include <limits.h>
9008 # include <assert.h>
9013 /* Override any gcc2 internal prototype to avoid an error. */
9018 /* We use char because int might match the return type of a gcc2
9019 builtin and then its argument prototype would still apply. */
9021 /* The GNU C library defines this for functions which it implements
9022 to always fail with ENOSYS. Some functions are actually named
9023 something starting with __ and the normal name is an alias. */
9024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9027 char (*f) () = $ac_func;
9036 return f != $ac_func;
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>conftest.er1
9045 grep -v '^ *+' conftest.er1 >conftest.err
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 eval "$as_ac_var=yes"
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 eval "$as_ac_var=no"
9070 rm -f conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9075 if test `eval echo '${'$as_ac_var'}'` = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9084 if test x$ac_cv_func_mbstowcs = xyes; then
9085 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9086 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9087 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 if test "$cross_compiling" = yes; then
9091 gcc_cv_func_mbstowcs_works=yes
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9106 rm -f conftest$ac_exeext
9107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108 (eval $ac_link) 2>&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 gcc_cv_func_mbstowcs_works=yes
9119 echo "$as_me: program exited with status $ac_status" >&5
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9124 gcc_cv_func_mbstowcs_works=no
9126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9130 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9131 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9133 cat >>confdefs.h <<\_ACEOF
9134 #define HAVE_WORKING_MBSTOWCS 1
9140 echo "$as_me:$LINENO: checking for ssize_t" >&5
9141 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9142 if test "${ac_cv_type_ssize_t+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 cat >conftest.$ac_ext <<_ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 $ac_includes_default
9157 if (sizeof (ssize_t))
9163 rm -f conftest.$ac_objext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9165 (eval $ac_compile) 2>conftest.er1
9167 grep -v '^ *+' conftest.er1 >conftest.err
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } &&
9172 { ac_try='test -z "$ac_c_werror_flag"
9173 || test ! -s conftest.err'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try='test -s conftest.$ac_objext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_type_ssize_t=yes
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 ac_cv_type_ssize_t=no
9192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9194 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9195 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9196 if test $ac_cv_type_ssize_t = yes; then
9200 cat >>confdefs.h <<_ACEOF
9207 # Try to determine the array type of the second argument of getgroups
9208 # for the target system (int or gid_t).
9209 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9210 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9211 if test "${ac_cv_type_uid_t+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 cat >conftest.$ac_ext <<_ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9220 #include <sys/types.h>
9223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9224 $EGREP "uid_t" >/dev/null 2>&1; then
9225 ac_cv_type_uid_t=yes
9232 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9233 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9234 if test $ac_cv_type_uid_t = no; then
9236 cat >>confdefs.h <<\_ACEOF
9241 cat >>confdefs.h <<\_ACEOF
9247 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9248 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9249 if test "${ac_cv_type_getgroups+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 if test "$cross_compiling" = yes; then
9253 ac_cv_type_getgroups=cross
9255 cat >conftest.$ac_ext <<_ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9261 /* Thanks to Mike Rendell for this test. */
9262 #include <sys/types.h>
9265 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9272 union { gid_t gval; long lval; } val;
9275 for (i = 0; i < NGID; i++)
9276 gidset[i] = val.gval;
9277 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9279 /* Exit non-zero if getgroups seems to require an array of ints. This
9280 happens when gid_t is short but getgroups modifies an array of ints. */
9281 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9284 rm -f conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286 (eval $ac_link) 2>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_type_getgroups=gid_t
9297 echo "$as_me: program exited with status $ac_status" >&5
9298 echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_cv_type_getgroups=int
9304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9306 if test $ac_cv_type_getgroups = cross; then
9307 cat >conftest.$ac_ext <<_ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9317 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9318 ac_cv_type_getgroups=gid_t
9320 ac_cv_type_getgroups=int
9326 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9327 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9329 cat >>confdefs.h <<_ACEOF
9330 #define GETGROUPS_T $ac_cv_type_getgroups
9334 if test "${target}" = "${build}"; then
9335 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9338 # This condition may need some tweaking. It should include all
9339 # targets where the array type of the second argument of getgroups
9340 # is int and the type of gid_t is not equivalent to int.
9341 *-*-sunos* | *-*-ultrix*)
9342 TARGET_GETGROUPS_T=int
9345 TARGET_GETGROUPS_T=gid_t
9351 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9352 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9353 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 if test "$cross_compiling" = yes; then
9357 gcc_cv_func_printf_ptr=no
9359 cat >conftest.$ac_ext <<_ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9370 char *p = buf, *q = NULL;
9371 sprintf(buf, "%p", p);
9372 sscanf(buf, "%p", &q);
9376 rm -f conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 gcc_cv_func_printf_ptr=yes
9389 echo "$as_me: program exited with status $ac_status" >&5
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9394 gcc_cv_func_printf_ptr=no
9396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9398 rm -f core core.* *.core
9400 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9401 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9402 if test $gcc_cv_func_printf_ptr = yes ; then
9404 cat >>confdefs.h <<\_ACEOF
9405 #define HAVE_PRINTF_PTR 1
9411 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9412 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9413 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 cat >conftest.$ac_ext <<_ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9422 #include <sys/mman.h>
9424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9427 grep -v '^ *+' conftest.er1 >conftest.err
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } >/dev/null; then
9432 if test -s conftest.err; then
9433 ac_cpp_err=$ac_c_preproc_warn_flag
9434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9441 if test -z "$ac_cpp_err"; then
9442 ac_cv_header_sys_mman_h=yes
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 ac_cv_header_sys_mman_h=no
9449 rm -f conftest.err conftest.$ac_ext
9451 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9452 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9453 if test $ac_cv_header_sys_mman_h = yes; then
9454 gcc_header_sys_mman_h=yes
9456 gcc_header_sys_mman_h=no
9459 echo "$as_me:$LINENO: checking for mmap" >&5
9460 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9461 if test "${ac_cv_func_mmap+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 cat >conftest.$ac_ext <<_ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9472 #define mmap innocuous_mmap
9474 /* System header to define __stub macros and hopefully few prototypes,
9475 which can conflict with char mmap (); below.
9476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9477 <limits.h> exists even on freestanding compilers. */
9480 # include <limits.h>
9482 # include <assert.h>
9487 /* Override any gcc2 internal prototype to avoid an error. */
9492 /* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */
9495 /* The GNU C library defines this for functions which it implements
9496 to always fail with ENOSYS. Some functions are actually named
9497 something starting with __ and the normal name is an alias. */
9498 #if defined (__stub_mmap) || defined (__stub___mmap)
9501 char (*f) () = mmap;
9515 rm -f conftest.$ac_objext conftest$ac_exeext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517 (eval $ac_link) 2>conftest.er1
9519 grep -v '^ *+' conftest.er1 >conftest.err
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -z "$ac_c_werror_flag"
9525 || test ! -s conftest.err'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest$ac_exeext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9544 rm -f conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9547 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9548 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9549 if test $ac_cv_func_mmap = yes; then
9555 if test "$gcc_header_sys_mman_h" != yes \
9556 || test "$gcc_func_mmap" != yes; then
9557 gcc_cv_func_mmap_file=no
9558 gcc_cv_func_mmap_dev_zero=no
9559 gcc_cv_func_mmap_anon=no
9561 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9562 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9563 if test "${gcc_cv_func_mmap_file+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 # Add a system to this blacklist if
9567 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9568 # memory area containing the same data that you'd get if you applied
9569 # read() to the same fd. The only system known to have a problem here
9570 # is VMS, where text files have record structure.
9573 gcc_cv_func_mmap_file=no ;;
9575 gcc_cv_func_mmap_file=yes;;
9578 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9579 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9580 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9581 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9582 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 # Add a system to this blacklist if it has mmap() but /dev/zero
9586 # does not exist, or if mmapping /dev/zero does not give anonymous
9587 # zeroed pages with both the following properties:
9588 # 1. If you map N consecutive pages in with one call, and then
9589 # unmap any subset of those pages, the pages that were not
9590 # explicitly unmapped remain accessible.
9591 # 2. If you map two adjacent blocks of memory and then unmap them
9592 # both at once, they must both go away.
9593 # Systems known to be in this category are Windows (all variants),
9596 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9597 gcc_cv_func_mmap_dev_zero=no ;;
9599 gcc_cv_func_mmap_dev_zero=yes;;
9602 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9603 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9605 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9606 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9607 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9608 if test "${gcc_cv_decl_map_anon+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 cat >conftest.$ac_ext <<_ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 #include <sys/types.h>
9618 #include <sys/mman.h>
9621 #ifndef MAP_ANONYMOUS
9622 #define MAP_ANONYMOUS MAP_ANON
9628 int n = MAP_ANONYMOUS;
9633 rm -f conftest.$ac_objext
9634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9635 (eval $ac_compile) 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try='test -z "$ac_c_werror_flag"
9643 || test ! -s conftest.err'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; } &&
9649 { ac_try='test -s conftest.$ac_objext'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 gcc_cv_decl_map_anon=yes
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 gcc_cv_decl_map_anon=no
9662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9664 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9665 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9667 if test $gcc_cv_decl_map_anon = no; then
9668 gcc_cv_func_mmap_anon=no
9670 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9671 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9672 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9676 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9677 # doesn't give anonymous zeroed pages with the same properties listed
9678 # above for use of /dev/zero.
9679 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9681 vms* | cygwin* | pe | mingw* | sco* | udk* )
9682 gcc_cv_func_mmap_anon=no ;;
9684 gcc_cv_func_mmap_anon=yes;;
9687 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9688 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9692 if test $gcc_cv_func_mmap_file = yes; then
9694 cat >>confdefs.h <<\_ACEOF
9695 #define HAVE_MMAP_FILE 1
9699 if test $gcc_cv_func_mmap_dev_zero = yes; then
9701 cat >>confdefs.h <<\_ACEOF
9702 #define HAVE_MMAP_DEV_ZERO 1
9706 if test $gcc_cv_func_mmap_anon = yes; then
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_MMAP_ANON 1
9717 # Under VMS, vfork works very differently than on Unix. The standard test
9718 # won't work, and it isn't easily adaptable. It makes more sense to
9720 ac_cv_func_vfork_works=yes
9723 echo "$as_me:$LINENO: checking for pid_t" >&5
9724 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9725 if test "${ac_cv_type_pid_t+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 cat >conftest.$ac_ext <<_ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9734 $ac_includes_default
9746 rm -f conftest.$ac_objext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>conftest.er1
9750 grep -v '^ *+' conftest.er1 >conftest.err
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -z "$ac_c_werror_flag"
9756 || test ! -s conftest.err'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try='test -s conftest.$ac_objext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_type_pid_t=yes
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9777 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9778 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9779 if test $ac_cv_type_pid_t = yes; then
9783 cat >>confdefs.h <<_ACEOF
9791 for ac_header in unistd.h vfork.h
9793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9794 echo "$as_me:$LINENO: checking for $ac_header" >&5
9795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 cat >conftest.$ac_ext <<_ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 #include <$ac_header>
9807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9810 grep -v '^ *+' conftest.er1 >conftest.err
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } >/dev/null; then
9815 if test -s conftest.err; then
9816 ac_cpp_err=$ac_c_preproc_warn_flag
9817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9824 if test -z "$ac_cpp_err"; then
9825 eval "$as_ac_Header=yes"
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 eval "$as_ac_Header=no"
9832 rm -f conftest.err conftest.$ac_ext
9834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9837 cat >>confdefs.h <<_ACEOF
9838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9846 for ac_func in fork vfork
9848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9849 echo "$as_me:$LINENO: checking for $ac_func" >&5
9850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9851 if eval "test \"\${$as_ac_var+set}\" = set"; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 cat >conftest.$ac_ext <<_ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9862 #define $ac_func innocuous_$ac_func
9864 /* System header to define __stub macros and hopefully few prototypes,
9865 which can conflict with char $ac_func (); below.
9866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9867 <limits.h> exists even on freestanding compilers. */
9870 # include <limits.h>
9872 # include <assert.h>
9877 /* Override any gcc2 internal prototype to avoid an error. */
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9885 /* The GNU C library defines this for functions which it implements
9886 to always fail with ENOSYS. Some functions are actually named
9887 something starting with __ and the normal name is an alias. */
9888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9891 char (*f) () = $ac_func;
9900 return f != $ac_func;
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907 (eval $ac_link) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 eval "$as_ac_var=yes"
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 eval "$as_ac_var=no"
9934 rm -f conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9939 if test `eval echo '${'$as_ac_var'}'` = yes; then
9940 cat >>confdefs.h <<_ACEOF
9941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9947 if test "x$ac_cv_func_fork" = xyes; then
9948 echo "$as_me:$LINENO: checking for working fork" >&5
9949 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9950 if test "${ac_cv_func_fork_works+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 if test "$cross_compiling" = yes; then
9954 ac_cv_func_fork_works=cross
9956 cat >conftest.$ac_ext <<_ACEOF
9957 /* By Ruediger Kuhlmann. */
9958 #include <sys/types.h>
9960 # include <unistd.h>
9962 /* Some systems only have a dummy stub for fork() */
9970 rm -f conftest$ac_exeext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9972 (eval $ac_link) 2>&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_func_fork_works=yes
9983 echo "$as_me: program exited with status $ac_status" >&5
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_cv_func_fork_works=no
9990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9993 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9994 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9997 ac_cv_func_fork_works=$ac_cv_func_fork
9999 if test "x$ac_cv_func_fork_works" = xcross; then
10001 *-*-amigaos* | *-*-msdosdjgpp*)
10002 # Override, as these systems have only a dummy fork() stub
10003 ac_cv_func_fork_works=no
10006 ac_cv_func_fork_works=yes
10009 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10010 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10012 ac_cv_func_vfork_works=$ac_cv_func_vfork
10013 if test "x$ac_cv_func_vfork" = xyes; then
10014 echo "$as_me:$LINENO: checking for working vfork" >&5
10015 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10016 if test "${ac_cv_func_vfork_works+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 if test "$cross_compiling" = yes; then
10020 ac_cv_func_vfork_works=cross
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 /* Thanks to Paul Eggert for this test. */
10030 #include <stdlib.h>
10031 #include <sys/types.h>
10032 #include <sys/stat.h>
10033 #include <sys/wait.h>
10035 # include <unistd.h>
10038 # include <vfork.h>
10040 /* On some sparc systems, changes by the child to local and incoming
10041 argument registers are propagated back to the parent. The compiler
10042 is told about this with #include <vfork.h>, but some compilers
10043 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10044 static variable whose address is put into a register that is
10045 clobbered by the vfork. */
10048 sparc_address_test (int arg)
10050 sparc_address_test (arg) int arg;
10053 static pid_t child;
10071 pid_t parent = getpid ();
10074 sparc_address_test (0);
10079 /* Here is another test for sparc vfork register problems. This
10080 test uses lots of local variables, at least as many local
10081 variables as main has allocated so far including compiler
10082 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10083 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10084 reuse the register of parent for one of the local variables,
10085 since it will think that parent can't possibly be used any more
10086 in this routine. Assigning to the local variable will thus
10087 munge parent in the parent process. */
10089 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10090 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10091 /* Convince the compiler that p..p7 are live; otherwise, it might
10092 use the same hardware register for all 8 local variables. */
10093 if (p != p1 || p != p2 || p != p3 || p != p4
10094 || p != p5 || p != p6 || p != p7)
10097 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10098 from child file descriptors. If the child closes a descriptor
10099 before it execs or exits, this munges the parent's descriptor
10100 as well. Test for this by closing stdout in the child. */
10101 _exit(close(fileno(stdout)) != 0);
10106 while (wait(&status) != child)
10109 /* Was there some problem with vforking? */
10112 /* Did the child fail? (This shouldn't happen.) */
10115 /* Did the vfork/compiler bug occur? */
10116 || parent != getpid()
10118 /* Did the file descriptor bug occur? */
10119 || fstat(fileno(stdout), &st) != 0
10124 rm -f conftest$ac_exeext
10125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10126 (eval $ac_link) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 ac_cv_func_vfork_works=yes
10137 echo "$as_me: program exited with status $ac_status" >&5
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ( exit $ac_status )
10142 ac_cv_func_vfork_works=no
10144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10147 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10148 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10151 if test "x$ac_cv_func_fork_works" = xcross; then
10152 ac_cv_func_vfork_works=$ac_cv_func_vfork
10153 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10154 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10157 if test "x$ac_cv_func_vfork_works" = xyes; then
10159 cat >>confdefs.h <<\_ACEOF
10160 #define HAVE_WORKING_VFORK 1
10165 cat >>confdefs.h <<\_ACEOF
10170 if test "x$ac_cv_func_fork_works" = xyes; then
10172 cat >>confdefs.h <<\_ACEOF
10173 #define HAVE_WORKING_FORK 1
10181 am_cv_lib_iconv_ldpath=
10183 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10184 if test "${with_libiconv_prefix+set}" = set; then
10185 withval="$with_libiconv_prefix"
10187 for dir in `echo "$withval" | tr : ' '`; do
10188 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
10189 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
10195 for ac_header in iconv.h
10197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10198 echo "$as_me:$LINENO: checking for $ac_header" >&5
10199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 #include <$ac_header>
10211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10214 grep -v '^ *+' conftest.er1 >conftest.err
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } >/dev/null; then
10219 if test -s conftest.err; then
10220 ac_cpp_err=$ac_c_preproc_warn_flag
10221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10228 if test -z "$ac_cpp_err"; then
10229 eval "$as_ac_Header=yes"
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 eval "$as_ac_Header=no"
10236 rm -f conftest.err conftest.$ac_ext
10238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10241 cat >>confdefs.h <<_ACEOF
10242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10249 echo "$as_me:$LINENO: checking for iconv" >&5
10250 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10251 if test "${am_cv_func_iconv+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 am_cv_func_iconv="no, consider installing GNU libiconv"
10257 cat >conftest.$ac_ext <<_ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 #include <stdlib.h>
10268 iconv_t cd = iconv_open("","");
10269 iconv(cd,NULL,NULL,NULL,NULL);
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>conftest.er1
10279 grep -v '^ *+' conftest.er1 >conftest.err
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -z "$ac_c_werror_flag"
10285 || test ! -s conftest.err'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 am_cv_func_iconv=yes
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10303 rm -f conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 if test "$am_cv_func_iconv" != yes; then
10306 am_save_LIBS="$LIBS"
10307 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
10308 cat >conftest.$ac_ext <<_ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10314 #include <stdlib.h>
10319 iconv_t cd = iconv_open("","");
10320 iconv(cd,NULL,NULL,NULL,NULL);
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328 (eval $ac_link) 2>conftest.er1
10330 grep -v '^ *+' conftest.er1 >conftest.err
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } &&
10335 { ac_try='test -z "$ac_c_werror_flag"
10336 || test ! -s conftest.err'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; } &&
10342 { ac_try='test -s conftest$ac_exeext'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 am_cv_lib_iconv=yes
10349 am_cv_func_iconv=yes
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10355 rm -f conftest.err conftest.$ac_objext \
10356 conftest$ac_exeext conftest.$ac_ext
10357 LIBS="$am_save_LIBS"
10361 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10362 echo "${ECHO_T}$am_cv_func_iconv" >&6
10363 if test "$am_cv_func_iconv" = yes; then
10365 cat >>confdefs.h <<\_ACEOF
10366 #define HAVE_ICONV 1
10369 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10370 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10371 if test "${am_cv_proto_iconv+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 cat >conftest.$ac_ext <<_ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10382 #include <stdlib.h>
10388 #if defined(__STDC__) || defined(__cplusplus)
10389 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10402 rm -f conftest.$ac_objext
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404 (eval $ac_compile) 2>conftest.er1
10406 grep -v '^ *+' conftest.er1 >conftest.err
10408 cat conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } &&
10411 { ac_try='test -z "$ac_c_werror_flag"
10412 || test ! -s conftest.err'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; } &&
10418 { ac_try='test -s conftest.$ac_objext'
10419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420 (eval $ac_try) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; }; then
10424 am_cv_proto_iconv_arg1=""
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 am_cv_proto_iconv_arg1="const"
10431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10432 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);"
10435 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10436 echo "$as_me:$LINENO: result: ${ac_t:-
10437 }$am_cv_proto_iconv" >&5
10438 echo "${ECHO_T}${ac_t:-
10439 }$am_cv_proto_iconv" >&6
10441 cat >>confdefs.h <<_ACEOF
10442 #define ICONV_CONST $am_cv_proto_iconv_arg1
10447 if test "$am_cv_lib_iconv" = yes; then
10448 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
10452 # Until we have in-tree GNU iconv:
10457 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10458 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10459 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 cat >conftest.$ac_ext <<_ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 #include <locale.h>
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479 (eval $ac_link) 2>conftest.er1
10481 grep -v '^ *+' conftest.er1 >conftest.err
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try='test -z "$ac_c_werror_flag"
10487 || test ! -s conftest.err'
10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; } &&
10493 { ac_try='test -s conftest$ac_exeext'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10499 am_cv_val_LC_MESSAGES=yes
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 am_cv_val_LC_MESSAGES=no
10506 rm -f conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10509 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10510 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10511 if test $am_cv_val_LC_MESSAGES = yes; then
10513 cat >>confdefs.h <<\_ACEOF
10514 #define HAVE_LC_MESSAGES 1
10520 # We will need to find libiberty.h and ansidecl.h
10521 saved_CFLAGS="$CFLAGS"
10522 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10547 for ac_func in getenv atol sbrk abort atof getcwd getwd \
10548 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
10549 fprintf_unlocked strstr errno snprintf vasprintf \
10550 malloc realloc calloc free basename getopt clock getpagesize
10552 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10553 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10554 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10555 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 cat >conftest.$ac_ext <<_ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10565 #define $ac_tr_decl 1
10567 #include "ansidecl.h"
10568 #include "system.h"
10574 char *(*pfn) = (char *(*)) $ac_func ;
10580 rm -f conftest.$ac_objext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>conftest.er1
10584 grep -v '^ *+' conftest.er1 >conftest.err
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
10589 { ac_try='test -z "$ac_c_werror_flag"
10590 || test ! -s conftest.err'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest.$ac_objext'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 eval "gcc_cv_have_decl_$ac_func=yes"
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 eval "gcc_cv_have_decl_$ac_func=no"
10609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10612 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10613 echo "$as_me:$LINENO: result: yes" >&5
10614 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10615 #define $ac_tr_decl 1
10619 echo "$as_me:$LINENO: result: no" >&5
10620 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10621 #define $ac_tr_decl 0
10632 for ac_func in getrlimit setrlimit getrusage
10634 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10635 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10636 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10637 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10647 #define $ac_tr_decl 1
10649 #include "ansidecl.h"
10650 #include "system.h"
10651 #ifdef HAVE_SYS_RESOURCE_H
10652 #include <sys/resource.h>
10660 char *(*pfn) = (char *(*)) $ac_func ;
10666 rm -f conftest.$ac_objext
10667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10668 (eval $ac_compile) 2>conftest.er1
10670 grep -v '^ *+' conftest.er1 >conftest.err
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } &&
10675 { ac_try='test -z "$ac_c_werror_flag"
10676 || test ! -s conftest.err'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; } &&
10682 { ac_try='test -s conftest.$ac_objext'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
10688 eval "gcc_cv_have_decl_$ac_func=yes"
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 eval "gcc_cv_have_decl_$ac_func=no"
10695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10698 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10699 echo "$as_me:$LINENO: result: yes" >&5
10700 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10701 #define $ac_tr_decl 1
10705 echo "$as_me:$LINENO: result: no" >&5
10706 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10707 #define $ac_tr_decl 0
10715 cat >conftest.$ac_ext <<_ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10722 #include "ansidecl.h"
10723 #include "system.h"
10724 #ifdef HAVE_SYS_RESOURCE_H
10725 #include <sys/resource.h>
10736 rm -f conftest.$ac_objext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738 (eval $ac_compile) 2>conftest.er1
10740 grep -v '^ *+' conftest.er1 >conftest.err
10742 cat conftest.err >&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } &&
10745 { ac_try='test -z "$ac_c_werror_flag"
10746 || test ! -s conftest.err'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; } &&
10752 { ac_try='test -s conftest.$ac_objext'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10760 echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10764 cat >>confdefs.h <<\_ACEOF
10765 #define rlim_t long
10769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10772 for ac_func in ldgetname
10774 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10775 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10776 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10777 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 cat >conftest.$ac_ext <<_ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10787 #define $ac_tr_decl 1
10789 #include "ansidecl.h"
10790 #include "system.h"
10791 #ifdef HAVE_LDFCN_H
10800 char *(*pfn) = (char *(*)) $ac_func ;
10806 rm -f conftest.$ac_objext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808 (eval $ac_compile) 2>conftest.er1
10810 grep -v '^ *+' conftest.er1 >conftest.err
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -z "$ac_c_werror_flag"
10816 || test ! -s conftest.err'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; } &&
10822 { ac_try='test -s conftest.$ac_objext'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 eval "gcc_cv_have_decl_$ac_func=yes"
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10833 eval "gcc_cv_have_decl_$ac_func=no"
10835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10838 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10839 echo "$as_me:$LINENO: result: yes" >&5
10840 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10841 #define $ac_tr_decl 1
10845 echo "$as_me:$LINENO: result: no" >&5
10846 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10847 #define $ac_tr_decl 0
10856 for ac_func in times
10858 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10859 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
10860 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
10861 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10871 #define $ac_tr_decl 1
10873 #include "ansidecl.h"
10874 #include "system.h"
10875 #ifdef HAVE_SYS_TIMES_H
10876 #include <sys/times.h>
10884 char *(*pfn) = (char *(*)) $ac_func ;
10890 rm -f conftest.$ac_objext
10891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10892 (eval $ac_compile) 2>conftest.er1
10894 grep -v '^ *+' conftest.er1 >conftest.err
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -z "$ac_c_werror_flag"
10900 || test ! -s conftest.err'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; } &&
10906 { ac_try='test -s conftest.$ac_objext'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 eval "gcc_cv_have_decl_$ac_func=yes"
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10917 eval "gcc_cv_have_decl_$ac_func=no"
10919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10922 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10923 echo "$as_me:$LINENO: result: yes" >&5
10924 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
10925 #define $ac_tr_decl 1
10929 echo "$as_me:$LINENO: result: no" >&5
10930 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
10931 #define $ac_tr_decl 0
10939 # More time-related stuff.
10940 echo "$as_me:$LINENO: checking for struct tms" >&5
10941 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
10942 if test "${ac_cv_struct_tms+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 cat >conftest.$ac_ext <<_ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10953 #include "ansidecl.h"
10954 #include "system.h"
10955 #ifdef HAVE_SYS_TIMES_H
10956 #include <sys/times.h>
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969 (eval $ac_compile) 2>conftest.er1
10971 grep -v '^ *+' conftest.er1 >conftest.err
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag"
10977 || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest.$ac_objext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 ac_cv_struct_tms=yes
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_cv_struct_tms=no
10996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10998 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
10999 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11000 if test $ac_cv_struct_tms = yes; then
11002 cat >>confdefs.h <<\_ACEOF
11003 #define HAVE_STRUCT_TMS 1
11008 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11009 # revisit after autoconf 2.50.
11010 echo "$as_me:$LINENO: checking for clock_t" >&5
11011 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11012 if test "${gcc_cv_type_clock_t+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 cat >conftest.$ac_ext <<_ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11023 #include "ansidecl.h"
11024 #include "system.h"
11034 rm -f conftest.$ac_objext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036 (eval $ac_compile) 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_c_werror_flag"
11044 || test ! -s conftest.err'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; } &&
11050 { ac_try='test -s conftest.$ac_objext'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; }; then
11056 gcc_cv_type_clock_t=yes
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11061 gcc_cv_type_clock_t=no
11063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11065 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11066 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11067 if test $gcc_cv_type_clock_t = yes; then
11069 cat >>confdefs.h <<\_ACEOF
11070 #define HAVE_CLOCK_T 1
11075 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11076 CFLAGS="$saved_CFLAGS"
11078 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11079 if test "${enable_initfini_array+set}" = set; then
11080 enableval="$enable_initfini_array"
11084 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11085 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11086 if test "${gcc_cv_initfini_array+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 if test "$cross_compiling" = yes; then
11090 gcc_cv_initfini_array=no
11092 cat >conftest.$ac_ext <<_ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11100 int main (void) { return x; }
11101 int foo (void) { x = 0; }
11102 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11104 rm -f conftest$ac_exeext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106 (eval $ac_link) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 gcc_cv_initfini_array=yes
11117 echo "$as_me: program exited with status $ac_status" >&5
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ( exit $ac_status )
11122 gcc_cv_initfini_array=no
11124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11127 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11128 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11129 enable_initfini_array=$gcc_cv_initfini_array
11132 if test $enable_initfini_array = yes; then
11134 cat >>confdefs.h <<\_ACEOF
11135 #define HAVE_INITFINI_ARRAY 1
11140 # mkdir takes a single argument on some systems.
11141 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11142 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11143 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 cat >conftest.$ac_ext <<_ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11153 #include <sys/types.h>
11154 #ifdef HAVE_SYS_STAT_H
11155 # include <sys/stat.h>
11157 #ifdef HAVE_UNISTD_H
11158 # include <unistd.h>
11160 #ifdef HAVE_DIRECT_H
11161 # include <direct.h>
11171 rm -f conftest.$ac_objext
11172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11173 (eval $ac_compile) 2>conftest.er1
11175 grep -v '^ *+' conftest.er1 >conftest.err
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -z "$ac_c_werror_flag"
11181 || test ! -s conftest.err'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 gcc_cv_mkdir_takes_one_arg=no
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 gcc_cv_mkdir_takes_one_arg=yes
11200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11203 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11204 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11206 cat >>confdefs.h <<\_ACEOF
11207 #define MKDIR_TAKES_ONE_ARG 1
11219 # With Setjmp/Longjmp based exception handling.
11220 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11221 if test "${enable_sjlj_exceptions+set}" = set; then
11222 enableval="$enable_sjlj_exceptions"
11223 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11225 cat >>confdefs.h <<_ACEOF
11226 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11231 # For platforms with the unwind ABI which includes an unwind library,
11232 # libunwind, we can choose to use the system libunwind.
11234 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11235 if test "${with_system_libunwind+set}" = set; then
11236 withval="$with_system_libunwind"
11240 # --------------------------------------------------------
11241 # Build, host, and target specific configuration fragments
11242 # --------------------------------------------------------
11244 # Collect build-machine-specific information.
11245 . ${srcdir}/config.build
11247 # Collect host-machine-specific information.
11248 . ${srcdir}/config.host
11252 # Collect target-machine-specific information.
11253 . ${srcdir}/config.gcc
11255 extra_objs="${host_extra_objs} ${extra_objs}"
11256 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11258 # Default the target-machine variables that were not explicitly set.
11259 if test x"$tm_file" = x
11260 then tm_file=$cpu_type/$cpu_type.h; fi
11262 if test x"$extra_headers" = x
11263 then extra_headers=; fi
11265 if test x$md_file = x
11266 then md_file=$cpu_type/$cpu_type.md; fi
11268 if test x$out_file = x
11269 then out_file=$cpu_type/$cpu_type.c; fi
11271 if test x"$tmake_file" = x
11272 then tmake_file=$cpu_type/t-$cpu_type
11275 if test x"$dwarf2" = xyes
11276 then tm_file="$tm_file tm-dwarf2.h"
11279 # Say what files are being used for the output code and MD file.
11280 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11281 echo "Using \`$srcdir/config/$md_file' as machine description file."
11283 # If any of the xm_file variables contain nonexistent files, warn
11284 # about them and drop them.
11287 for x in $build_xm_file; do
11288 if test -f $srcdir/config/$x
11290 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11291 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11294 build_xm_file="$bx"
11297 for x in $host_xm_file; do
11298 if test -f $srcdir/config/$x
11300 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11301 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11307 for x in $xm_file; do
11308 if test -f $srcdir/config/$x
11310 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11311 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11317 for f in $tm_file; do
11320 if test $count = ax; then
11321 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11323 echo "Using the following target machine macro files:"
11324 for f in $tm_file; do
11325 echo " $srcdir/config/$f"
11329 if test x$need_64bit_hwint = xyes; then
11331 cat >>confdefs.h <<\_ACEOF
11332 #define NEED_64BIT_HOST_WIDE_INT 1
11337 if test x$use_long_long_for_widest_fast_int = xyes; then
11339 cat >>confdefs.h <<\_ACEOF
11340 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11346 for f in $host_xm_file; do
11349 if test $count = a; then
11351 elif test $count = ax; then
11352 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11354 echo "Using the following host machine macro files:"
11355 for f in $host_xm_file; do
11356 echo " $srcdir/config/$f"
11359 echo "Using ${out_host_hook_obj} for host machine hooks."
11361 if test "$host_xm_file" != "$build_xm_file"; then
11363 for f in $build_xm_file; do
11366 if test $count = a; then
11368 elif test $count = ax; then
11369 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11371 echo "Using the following build machine macro files:"
11372 for f in $build_xm_file; do
11373 echo " $srcdir/config/$f"
11382 # Check if a valid thread package
11383 case ${enable_threads} in
11386 target_thread_file='single'
11390 target_thread_file='single'
11392 aix | dce | gnat | irix | posix | rtems | \
11393 single | solaris | vxworks | win32 )
11394 target_thread_file=${enable_threads}
11397 echo "${enable_threads} is an unknown thread package" 1>&2
11402 if test x${thread_file} = x; then
11403 # No thread file set by target-specific clauses in config.gcc,
11404 # so use file chosen by default logic above
11405 thread_file=${target_thread_file}
11408 # Make gthr-default.h if we have a thread file.
11410 if test $thread_file != single; then
11411 rm -f gthr-default.h
11412 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11413 gthread_flags=-DHAVE_GTHR_DEFAULT
11421 if test x$enable___cxa_atexit = xyes || \
11422 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11423 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
11424 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
11425 if test "${ac_cv_func___cxa_atexit+set}" = set; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 cat >conftest.$ac_ext <<_ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
11435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11436 #define __cxa_atexit innocuous___cxa_atexit
11438 /* System header to define __stub macros and hopefully few prototypes,
11439 which can conflict with char __cxa_atexit (); below.
11440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11441 <limits.h> exists even on freestanding compilers. */
11444 # include <limits.h>
11446 # include <assert.h>
11449 #undef __cxa_atexit
11451 /* Override any gcc2 internal prototype to avoid an error. */
11456 /* We use char because int might match the return type of a gcc2
11457 builtin and then its argument prototype would still apply. */
11458 char __cxa_atexit ();
11459 /* The GNU C library defines this for functions which it implements
11460 to always fail with ENOSYS. Some functions are actually named
11461 something starting with __ and the normal name is an alias. */
11462 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
11465 char (*f) () = __cxa_atexit;
11474 return f != __cxa_atexit;
11479 rm -f conftest.$ac_objext conftest$ac_exeext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11481 (eval $ac_link) 2>conftest.er1
11483 grep -v '^ *+' conftest.er1 >conftest.err
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } &&
11488 { ac_try='test -z "$ac_c_werror_flag"
11489 || test ! -s conftest.err'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; } &&
11495 { ac_try='test -s conftest$ac_exeext'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_cv_func___cxa_atexit=yes
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 ac_cv_func___cxa_atexit=no
11508 rm -f conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11511 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
11512 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
11513 if test $ac_cv_func___cxa_atexit = yes; then
11515 cat >>confdefs.h <<\_ACEOF
11516 #define DEFAULT_USE_CXA_ATEXIT 1
11520 echo "__cxa_atexit can't be enabled on this target"
11525 # Look for a file containing extra machine modes.
11526 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11527 extra_modes_file='$(srcdir)'/config/${extra_modes}
11530 cat >>confdefs.h <<_ACEOF
11531 #define EXTRA_MODES_FILE "config/$extra_modes"
11536 # auto-host.h is the file containing items generated by autoconf and is
11537 # the first file included by config.h.
11538 # If host=build, it is correct to have bconfig include auto-host.h
11539 # as well. If host!=build, we are in error and need to do more
11540 # work to find out the build config parameters.
11541 if test x$host = x$build
11543 build_auto=auto-host.h
11545 # We create a subdir, then run autoconf in the subdir.
11546 # To prevent recursion we set host and build for the new
11547 # invocation of configure to the build for this invocation
11554 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11555 *) realsrcdir=../${srcdir};;
11557 saved_CFLAGS="${CFLAGS}"
11558 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11559 ${realsrcdir}/configure \
11560 --enable-languages=${enable_languages-all} \
11561 --target=$target_alias --host=$build_alias --build=$build_alias
11562 CFLAGS="${saved_CFLAGS}"
11564 # We just finished tests for the build machine, so rename
11565 # the file auto-build.h in the gcc directory.
11566 mv auto-host.h ../auto-build.h
11569 build_auto=auto-build.h
11573 tm_file="${tm_file} defaults.h"
11574 tm_p_file="${tm_p_file} tm-preds.h"
11575 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11576 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11577 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11578 # put this back in temporarily.
11579 xm_file="ansidecl.h ${xm_file}"
11585 # Get the version trigger filename from the toplevel
11586 if test "${with_gcc_version_trigger+set}" = set; then
11587 gcc_version_trigger=$with_gcc_version_trigger
11589 gcc_version_trigger=${srcdir}/version.c
11591 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
11592 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
11594 # Compile in configure arguments.
11595 if test -f configargs.h ; then
11596 # Being re-configured.
11597 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11598 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11600 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11603 # Double all backslashes and backslash all quotes to turn
11604 # gcc_config_arguments into a C string.
11605 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11606 $gcc_config_arguments
11608 gcc_config_arguments_str=`cat conftest.out`
11611 cat > configargs.h <<EOF
11612 /* Generated automatically. */
11613 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11614 static const char thread_model[] = "$thread_file";
11616 static const struct {
11617 const char *name, *value;
11618 } configure_default_options[] = $configure_default_options;
11621 # Internationalization
11623 VERSION="$gcc_version"
11625 cat >>confdefs.h <<_ACEOF
11626 #define PACKAGE "$PACKAGE"
11632 # If we haven't got the data from the intl directory,
11633 # assume NLS is disabled.
11641 if test -f ../intl/config.intl; then
11642 . ../intl/config.intl
11644 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11645 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11646 if test x"$USE_NLS" != xyes; then
11647 echo "$as_me:$LINENO: result: no" >&5
11648 echo "${ECHO_T}no" >&6
11650 echo "$as_me:$LINENO: result: yes" >&5
11651 echo "${ECHO_T}yes" >&6
11653 cat >>confdefs.h <<\_ACEOF
11654 #define ENABLE_NLS 1
11658 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11659 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11660 # Look for .po and .gmo files in the source directory.
11663 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11664 # If there aren't any .gmo files the shell will give us the
11665 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11667 case "$cat" in *\**)
11670 # The quadruple backslash is collapsed to a double backslash
11671 # by the backticks, then collapsed again by the double quotes,
11672 # leaving us with one backslash in the sed expression (right
11673 # before the dot that mustn't act as a wildcard).
11674 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
11675 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
11676 # The user is allowed to set LINGUAS to a list of languages to
11677 # install catalogs for. If it's empty that means "all of them."
11678 if test "x$LINGUAS" = x; then
11679 CATALOGS="$CATALOGS $cat"
11680 XLINGUAS="$XLINGUAS $lang"
11682 case "$LINGUAS" in *$lang*)
11683 CATALOGS="$CATALOGS $cat"
11684 XLINGUAS="$XLINGUAS $lang"
11689 LINGUAS="$XLINGUAS"
11690 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11691 echo "${ECHO_T}$LINGUAS" >&6
11694 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11695 # -liconv on the link line twice.
11696 case "$LIBINTL" in *$LIBICONV*)
11700 # Windows32 Registry support for specifying GCC installation paths.
11701 # Check whether --enable-win32-registry or --disable-win32-registry was given.
11702 if test "${enable_win32_registry+set}" = set; then
11703 enableval="$enable_win32_registry"
11707 win32 | pe | cygwin* | mingw32* | uwin*)
11708 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
11709 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
11710 if test "x$enable_win32_registry" != xno; then
11712 cat >>confdefs.h <<\_ACEOF
11713 #define ENABLE_WIN32_REGISTRY 1
11716 echo "$as_me:$LINENO: result: yes" >&5
11717 echo "${ECHO_T}yes" >&6
11718 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
11719 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
11720 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 ac_func_search_save_LIBS=$LIBS
11724 ac_cv_search_RegOpenKeyExA=no
11725 cat >conftest.$ac_ext <<_ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11732 /* Override any gcc2 internal prototype to avoid an error. */
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11738 char RegOpenKeyExA ();
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749 (eval $ac_link) 2>conftest.er1
11751 grep -v '^ *+' conftest.er1 >conftest.err
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -z "$ac_c_werror_flag"
11757 || test ! -s conftest.err'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest$ac_exeext'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_cv_search_RegOpenKeyExA="none required"
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11775 rm -f conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 if test "$ac_cv_search_RegOpenKeyExA" = no; then
11778 for ac_lib in advapi32; do
11779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11780 cat >conftest.$ac_ext <<_ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h. */
11787 /* Override any gcc2 internal prototype to avoid an error. */
11791 /* We use char because int might match the return type of a gcc2
11792 builtin and then its argument prototype would still apply. */
11793 char RegOpenKeyExA ();
11802 rm -f conftest.$ac_objext conftest$ac_exeext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804 (eval $ac_link) 2>conftest.er1
11806 grep -v '^ *+' conftest.er1 >conftest.err
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag"
11812 || test ! -s conftest.err'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; } &&
11818 { ac_try='test -s conftest$ac_exeext'
11819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11831 rm -f conftest.err conftest.$ac_objext \
11832 conftest$ac_exeext conftest.$ac_ext
11835 LIBS=$ac_func_search_save_LIBS
11837 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
11838 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
11839 if test "$ac_cv_search_RegOpenKeyExA" != no; then
11840 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
11845 echo "$as_me:$LINENO: result: no" >&5
11846 echo "${ECHO_T}no" >&6
11849 # Check if user specified a different registry key.
11850 case "x${enable_win32_registry}" in
11853 gcc_cv_win32_registry_key="$VERSION"
11856 # no registry lookup.
11857 gcc_cv_win32_registry_key=''
11860 # user-specified key.
11861 gcc_cv_win32_registry_key="$enable_win32_registry"
11865 if test "x$enable_win32_registry" != xno; then
11866 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
11867 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
11869 cat >>confdefs.h <<_ACEOF
11870 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
11873 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
11874 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
11879 # Get an absolute path to the GCC top-level source directory
11880 holddir=`${PWDCMD-pwd}`
11882 topdir=`${PWDCMD-pwd}`
11885 # Conditionalize the makefile for this host machine.
11887 for f in ${host_xmake_file}
11889 if test -f ${srcdir}/config/$f
11891 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11895 # Conditionalize the makefile for this target machine.
11897 for f in ${tmake_file}
11899 if test -f ${srcdir}/config/$f
11901 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11904 tmake_file="${tmake_file_}"
11906 symbolic_link='ln -s'
11908 # If the host doesn't support symlinks, modify CC in
11909 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
11910 # Otherwise, we can use "CC=$(CC)".
11912 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
11914 cc_set_by_configure="\$(CC)"
11915 quoted_cc_set_by_configure="\$(CC)"
11916 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
11917 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
11920 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
11922 symbolic_link="cp -p"
11926 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
11927 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
11928 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
11929 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
11933 out_object_file=`basename $out_file .c`.o
11937 for f in $tm_file; do
11940 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11941 tm_include_list="${tm_include_list} $f"
11944 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11945 tm_include_list="${tm_include_list} config/$f"
11952 for f in $tm_p_file; do
11955 tm_p_file_list="${tm_p_file_list} $f"
11956 tm_p_include_list="${tm_p_include_list} $f"
11959 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11960 tm_p_include_list="${tm_p_include_list} config/$f"
11966 for f in $xm_file; do
11969 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11970 xm_include_list="${xm_include_list} $f"
11973 xm_file_list="${xm_file_list} $f"
11974 xm_include_list="${xm_include_list} $f"
11977 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11978 xm_include_list="${xm_include_list} config/$f"
11984 host_xm_include_list=
11985 for f in $host_xm_file; do
11988 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11989 host_xm_include_list="${host_xm_include_list} $f"
11992 host_xm_file_list="${host_xm_file_list} $f"
11993 host_xm_include_list="${host_xm_include_list} $f"
11996 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11997 host_xm_include_list="${host_xm_include_list} config/$f"
12002 build_xm_file_list=
12003 for f in $build_xm_file; do
12006 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12007 build_xm_include_list="${build_xm_include_list} $f"
12009 auto-build.h | auto-host.h )
12010 build_xm_file_list="${build_xm_file_list} $f"
12011 build_xm_include_list="${build_xm_include_list} $f"
12014 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12015 build_xm_include_list="${build_xm_include_list} config/$f"
12020 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12021 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12024 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12025 if test x$host != x$target
12027 CROSS="-DCROSS_COMPILE"
12029 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12030 case "$host","$target" in
12031 # Darwin crosses can use the host system's libraries and headers,
12032 # because of the fat library support. Of course, it must be the
12033 # same version of Darwin on both sides. Allow the user to
12034 # just say --target=foo-darwin without a version number to mean
12035 # "the version on this system".
12036 *-*-darwin*,*-*-darwin*)
12037 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12038 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12039 if test $hostos = $targetos -o $targetos = darwin ; then
12041 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12046 i?86-*-*,x86_64-*-* \
12047 | powerpc*-*-*,powerpc64*-*-*)
12048 CROSS="$CROSS -DNATIVE_CROSS" ;;
12050 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12051 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12052 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12055 # If this is a cross-compiler that does not
12056 # have its own set of headers then define
12059 # If this is using newlib, without having the headers available now,
12060 # then define inhibit_libc in LIBGCC2_CFLAGS.
12061 # This prevents libgcc2 from containing any code which requires libc
12064 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12065 test x$with_newlib = xyes ; } &&
12066 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12067 inhibit_libc=-Dinhibit_libc
12071 # When building gcc with a cross-compiler, we need to adjust things so
12072 # that the generator programs are still built with the native compiler.
12073 # Also, we cannot run fixincludes or fix-header.
12075 # These are the normal (build=host) settings:
12076 CC_FOR_BUILD='$(CC)'
12077 BUILD_CFLAGS='$(ALL_CFLAGS)'
12078 STMP_FIXINC=stmp-fixinc
12080 # Possibly disable fixproto, on a per-target basis.
12081 case ${use_fixproto} in
12086 STMP_FIXPROTO=stmp-fixproto
12091 # And these apply if build != host, or we are generating coverage data
12092 if test x$build != x$host || test "x$coverage_flags" != x
12094 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12096 if test "x$TARGET_SYSTEM_ROOT" = x; then
12102 # When bootstrapping from the toplevel, only run fixincludes during stage1
12103 if test -d ../prev-gcc
12106 cp -R ../prev-gcc/include include
12109 # Expand extra_headers to include complete path.
12110 # This substitutes for lots of t-* files.
12111 extra_headers_list=
12112 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12113 for file in ${extra_headers} ; do
12114 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12117 # Define collect2 in Makefile.
12118 case $host_can_use_collect2 in
12120 *) collect2='collect2$(exeext)' ;;
12124 # Add a definition of USE_COLLECT2 if system wants one.
12125 case $use_collect2 in
12126 no) use_collect2= ;;
12129 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12130 xm_defines="${xm_defines} USE_COLLECT2"
12131 case $host_can_use_collect2 in
12133 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12134 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12135 { (exit 1); exit 1; }; }
12141 # ---------------------------
12142 # Assembler & linker features
12143 # ---------------------------
12145 # Identify the assembler which will work hand-in-glove with the newly
12146 # built GCC, so that we can examine its features. This is the assembler
12147 # which will be driven by the driver program.
12149 # If build != host, and we aren't building gas in-tree, we identify a
12150 # build->target assembler and hope that it will have the same features
12151 # as the host->target assembler we'll be using.
12152 echo "$as_me:$LINENO: checking what assembler to use" >&5
12153 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12156 gcc_cv_gas_major_version=
12157 gcc_cv_gas_minor_version=
12158 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12159 if test -x "$DEFAULT_ASSEMBLER"; then
12160 gcc_cv_as="$DEFAULT_ASSEMBLER"
12161 elif test -x as$host_exeext; then
12162 # Build using assembler in the current directory.
12163 gcc_cv_as=./as$host_exeext
12164 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12165 && test -f ../gas/Makefile \
12166 && test x$build = x$host; then
12167 # Single tree build which includes gas. We want to prefer it
12168 # over whatever linker top-level may have detected, since
12169 # we'll use what we're building after installation anyway.
12171 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12172 for f in $gcc_cv_as_bfd_srcdir/configure \
12173 $gcc_cv_as_gas_srcdir/configure \
12174 $gcc_cv_as_gas_srcdir/configure.in \
12175 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12176 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12177 if test x$gcc_cv_gas_version != x; then
12181 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12182 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12183 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12184 case $gcc_cv_gas_patch_version in
12185 "") gcc_cv_gas_patch_version="0" ;;
12187 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12188 + $gcc_cv_gas_minor_version \) \* 1000 \
12189 + $gcc_cv_gas_patch_version`
12191 rm -f as$host_exeext
12192 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
12193 in_tree_gas_is_elf=no
12194 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12195 || (grep 'obj_format = multi' ../gas/Makefile \
12196 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12198 in_tree_gas_is_elf=yes
12200 elif test -x "$AS_FOR_TARGET"; then
12201 gcc_cv_as="$AS_FOR_TARGET"
12202 elif test -x "$AS" && test x$host = x$target; then
12206 if test "x$gcc_cv_as" = x; then
12207 # Search the same directories that the installed compiler will
12208 # search. Else we may find the wrong assembler and lose. If we
12209 # do not find a suitable assembler binary, then try the user's
12212 # Also note we have to check MD_EXEC_PREFIX before checking the
12213 # user's path. Unfortunately, there is no good way to get at the
12214 # value of MD_EXEC_PREFIX here. So we do a brute force search
12215 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12216 # to be fixed as part of the make/configure rewrite too.
12218 if test "x$exec_prefix" = xNONE; then
12219 if test "x$prefix" = xNONE; then
12220 test_prefix=/usr/local
12222 test_prefix=$prefix
12225 test_prefix=$exec_prefix
12228 # If the loop below does not find an assembler, then use whatever
12229 # one we can find in the users's path.
12231 if test "x$program_prefix" != xNONE; then
12232 gcc_cv_as=${program_prefix}as$host_exeext
12234 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
12237 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12238 $test_prefix/libexec/gcc/$target_noncanonical \
12239 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12240 /usr/lib/gcc/$target_noncanonical \
12241 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12242 $test_prefix/$target_noncanonical/bin"
12244 if test x$host = x$target; then
12245 test_dirs="$test_dirs \
12250 /bsd43/usr/lib/cmplrs/cc \
12251 /usr/cross64/usr/bin \
12252 /usr/lib/cmplrs/cc \
12253 /sysv/usr/lib/cmplrs/cc \
12254 /svr4/usr/lib/cmplrs/cc \
12258 for dir in $test_dirs; do
12259 if test -x $dir/as$host_exeext; then
12260 gcc_cv_as=$dir/as$host_exeext
12265 case $in_tree_gas in
12267 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12268 echo "${ECHO_T}\"newly built gas\"" >&6
12271 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12272 echo "${ECHO_T}$gcc_cv_as" >&6
12276 # Identify the linker which will work hand-in-glove with the newly
12277 # built GCC, so that we can examine its features. This is the linker
12278 # which will be driven by the driver program.
12280 # If build != host, and we aren't building gas in-tree, we identify a
12281 # build->target linker and hope that it will have the same features
12282 # as the host->target linker we'll be using.
12283 echo "$as_me:$LINENO: checking what linker to use" >&5
12284 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12287 gcc_cv_gld_major_version=
12288 gcc_cv_gld_minor_version=
12289 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12290 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12291 if test -x "$DEFAULT_LINKER"; then
12292 gcc_cv_ld="$DEFAULT_LINKER"
12293 elif test -x collect-ld$host_exeext; then
12294 # Build using linker in the current directory.
12295 gcc_cv_ld=./collect-ld$host_exeext
12296 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12297 && test -f ../ld/Makefile \
12298 && test x$build = x$host; then
12299 # Single tree build which includes ld. We want to prefer it
12300 # over whatever linker top-level may have detected, since
12301 # we'll use what we're building after installation anyway.
12303 in_tree_ld_is_elf=no
12304 if (grep 'EMUL = .*elf' ../ld/Makefile \
12305 || grep 'EMUL = .*linux' ../ld/Makefile \
12306 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12307 in_tree_ld_is_elf=yes
12309 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
12311 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12312 if test x$gcc_cv_gld_version != x; then
12316 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12317 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12318 rm -f collect-ld$host_exeext
12319 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
12321 elif test -x "$LD_FOR_TARGET"; then
12322 gcc_cv_ld="$LD_FOR_TARGET"
12323 elif test -x "$LD" && test x$host = x$target; then
12327 if test "x$gcc_cv_ld" = x; then
12328 # Search the same directories that the installed compiler will
12329 # search. Else we may find the wrong linker and lose. If we
12330 # do not find a suitable linker binary, then try the user's
12333 # Also note we have to check MD_EXEC_PREFIX before checking the
12334 # user's path. Unfortunately, there is no good way to get at the
12335 # value of MD_EXEC_PREFIX here. So we do a brute force search
12336 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12337 # to be fixed as part of the make/configure rewrite too.
12339 if test "x$exec_prefix" = xNONE; then
12340 if test "x$prefix" = xNONE; then
12341 test_prefix=/usr/local
12343 test_prefix=$prefix
12346 test_prefix=$exec_prefix
12349 # If the loop below does not find an linker, then use whatever
12350 # one we can find in the users's path.
12352 if test "x$program_prefix" != xNONE; then
12353 gcc_cv_ld=${program_prefix}ld$host_exeext
12355 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
12358 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12359 $test_prefix/libexec/gcc/$target_noncanonical \
12360 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12361 /usr/lib/gcc/$target_noncanonical \
12362 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12363 $test_prefix/$target_noncanonical/bin"
12365 if test x$host = x$target; then
12366 test_dirs="$test_dirs \
12371 /bsd43/usr/lib/cmplrs/cc \
12372 /usr/cross64/usr/bin \
12373 /usr/lib/cmplrs/cc \
12374 /sysv/usr/lib/cmplrs/cc \
12375 /svr4/usr/lib/cmplrs/cc \
12379 for dir in $test_dirs; do
12380 if test -x $dir/ld$host_exeext; then
12381 gcc_cv_ld=$dir/ld$host_exeext
12386 case $in_tree_ld in
12388 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12389 echo "${ECHO_T}\"newly built ld\"" >&6
12392 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12393 echo "${ECHO_T}$gcc_cv_ld" >&6
12397 # Figure out what nm we will be using.
12398 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12399 echo "$as_me:$LINENO: checking what nm to use" >&5
12400 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12402 if test -x nm$host_exeext; then
12403 gcc_cv_nm=./nm$host_exeext
12404 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12405 && test -f ../binutils/Makefile; then
12406 # Single tree build which includes binutils.
12408 gcc_cv_nm=./nm$host_exeext
12409 rm -f nm$host_exeext
12410 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
12411 elif test "x$program_prefix" != xNONE; then
12412 gcc_cv_nm=${program_prefix}nm$host_exeext
12414 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
12416 case $in_tree_nm in
12417 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12418 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12419 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12420 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12423 # Figure out what objdump we will be using.
12424 echo "$as_me:$LINENO: checking what objdump to use" >&5
12425 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12427 if test -x objdump$host_exeext; then
12428 gcc_cv_objdump=./objdump$host_exeext
12429 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12430 && test -f ../binutils/Makefile; then
12431 # Single tree build which includes binutils.
12432 in_tree_objdump=yes
12433 gcc_cv_objdump=./objdump$host_exeext
12434 rm -f objdump$host_exeext
12435 $symbolic_link ../binutils/objdump$host_exeext \
12436 objdump$host_exeext 2>/dev/null
12437 elif test "x$program_prefix" != xNONE; then
12438 gcc_cv_objdump=${program_prefix}objdump$host_exeext
12440 gcc_cv_objdump=`echo objdump | \
12441 sed "${program_transform_name}"`$host_exeext
12443 case $in_tree_objdump in
12444 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12445 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12446 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12447 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12450 # Figure out what assembler alignment features are present.
12451 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
12452 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
12453 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 gcc_cv_as_balign_and_p2align=no
12457 if test $in_tree_gas = yes; then
12458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
12459 then gcc_cv_as_balign_and_p2align=yes
12461 elif test x$gcc_cv_as != x; then
12463 .p2align 2' > conftest.s
12464 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }
12471 gcc_cv_as_balign_and_p2align=yes
12473 echo "configure: failed program was" >&5
12476 rm -f conftest.o conftest.s
12479 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
12480 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
12481 if test $gcc_cv_as_balign_and_p2align = yes; then
12483 cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
12489 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
12490 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
12491 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 gcc_cv_as_max_skip_p2align=no
12495 if test $in_tree_gas = yes; then
12496 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
12497 then gcc_cv_as_max_skip_p2align=yes
12499 elif test x$gcc_cv_as != x; then
12500 echo '.p2align 4,,7' > conftest.s
12501 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }
12508 gcc_cv_as_max_skip_p2align=yes
12510 echo "configure: failed program was" >&5
12513 rm -f conftest.o conftest.s
12516 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
12517 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
12518 if test $gcc_cv_as_max_skip_p2align = yes; then
12520 cat >>confdefs.h <<\_ACEOF
12521 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
12526 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
12527 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
12528 if test "${gcc_cv_as_subsection_m1+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 gcc_cv_as_subsection_m1=no
12532 if test $in_tree_gas = yes; then
12533 if test $in_tree_gas_is_elf = yes \
12534 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
12535 then gcc_cv_as_subsection_m1=yes
12537 elif test x$gcc_cv_as != x; then
12538 echo 'conftest_label1: .word 0
12540 conftest_label2: .word 0
12541 .previous' > conftest.s
12542 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }
12549 if test x$gcc_cv_nm != x; then
12550 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
12551 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
12552 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
12554 else gcc_cv_as_subsection_m1=yes
12556 rm -f conftest.nm1 conftest.nm2
12559 echo "configure: failed program was" >&5
12562 rm -f conftest.o conftest.s
12565 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
12566 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
12567 if test $gcc_cv_as_subsection_m1 = yes; then
12569 cat >>confdefs.h <<\_ACEOF
12570 #define HAVE_GAS_SUBSECTION_ORDERING 1
12575 echo "$as_me:$LINENO: checking assembler for .weak" >&5
12576 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
12577 if test "${gcc_cv_as_weak+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 if test $in_tree_gas = yes; then
12582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
12583 then gcc_cv_as_weak=yes
12585 elif test x$gcc_cv_as != x; then
12586 echo ' .weak foobar' > conftest.s
12587 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }
12596 echo "configure: failed program was" >&5
12599 rm -f conftest.o conftest.s
12602 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
12603 echo "${ECHO_T}$gcc_cv_as_weak" >&6
12604 if test $gcc_cv_as_weak = yes; then
12606 cat >>confdefs.h <<\_ACEOF
12607 #define HAVE_GAS_WEAK 1
12612 # .hidden needs to be supported in both the assembler and the linker,
12613 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
12614 # This is irritatingly difficult to feature test for; we have to check the
12615 # date string after the version number. If we've got an in-tree
12616 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
12618 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
12619 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
12620 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
12621 if test "${gcc_cv_as_hidden+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 gcc_cv_as_hidden=no
12625 if test $in_tree_gas = yes; then
12626 if test $in_tree_gas_is_elf = yes \
12627 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
12628 then gcc_cv_as_hidden=yes
12630 elif test x$gcc_cv_as != x; then
12631 echo ' .hidden foobar
12632 foobar:' > conftest.s
12633 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }
12640 gcc_cv_as_hidden=yes
12642 echo "configure: failed program was" >&5
12645 rm -f conftest.o conftest.s
12648 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
12649 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
12652 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
12653 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
12654 if test "${gcc_cv_ld_hidden+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 if test $in_tree_ld = yes ; then
12658 gcc_cv_ld_hidden=no
12659 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 \
12660 && test $in_tree_ld_is_elf = yes; then
12661 gcc_cv_ld_hidden=yes
12664 gcc_cv_ld_hidden=yes
12665 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
12666 if echo "$ld_ver" | grep GNU > /dev/null; then
12667 ld_vers=`echo $ld_ver | sed -n \
12668 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
12669 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
12670 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
12671 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
12672 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
12673 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
12674 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'`
12675 if test 0"$ld_date" -lt 20020404; then
12676 if test -n "$ld_date"; then
12677 # If there was date string, but was earlier than 2002-04-04, fail
12678 gcc_cv_ld_hidden=no
12679 elif test -z "$ld_vers"; then
12680 # If there was no date string nor ld version number, something is wrong
12681 gcc_cv_ld_hidden=no
12683 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
12684 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
12685 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
12686 test -z "$ld_vers_patch" && ld_vers_patch=0
12687 if test "$ld_vers_major" -lt 2; then
12688 gcc_cv_ld_hidden=no
12689 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
12690 gcc_cv_ld_hidden="no"
12691 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
12692 gcc_cv_ld_hidden=no
12697 case "${target}" in
12698 hppa64*-*-hpux* | ia64*-*-hpux*)
12699 gcc_cv_ld_hidden=yes
12702 gcc_cv_ld_hidden=no
12708 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
12709 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
12710 libgcc_visibility=no
12712 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
12713 libgcc_visibility=yes
12715 cat >>confdefs.h <<\_ACEOF
12716 #define HAVE_GAS_HIDDEN 1
12721 # Check if we have .[us]leb128, and support symbol arithmetic with it.
12722 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
12723 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
12724 if test "${gcc_cv_as_leb128+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 gcc_cv_as_leb128=no
12728 if test $in_tree_gas = yes; then
12729 if test $in_tree_gas_is_elf = yes \
12730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
12731 then gcc_cv_as_leb128=yes
12733 elif test x$gcc_cv_as != x; then
12740 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }
12747 # GAS versions before 2.11 do not support uleb128,
12748 # despite appearing to.
12749 # ??? There exists an elf-specific test that will crash
12750 # the assembler. Perhaps it's better to figure out whether
12751 # arbitrary sections are supported and try the test.
12752 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
12753 if echo "$as_ver" | grep GNU > /dev/null; then
12754 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
12755 as_major=`echo $as_ver | sed 's/\..*//'`
12756 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
12757 if test $as_major -eq 2 && test $as_minor -lt 11
12759 else gcc_cv_as_leb128=yes
12763 echo "configure: failed program was" >&5
12766 rm -f conftest.o conftest.s
12769 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
12770 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
12771 if test $gcc_cv_as_leb128 = yes; then
12773 cat >>confdefs.h <<\_ACEOF
12774 #define HAVE_AS_LEB128 1
12779 # GAS versions up to and including 2.11.0 may mis-optimize
12781 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
12782 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
12783 if test "${gcc_cv_as_eh_frame+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 gcc_cv_as_eh_frame=no
12787 if test $in_tree_gas = yes; then
12788 if test $in_tree_gas_is_elf = yes \
12789 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
12790 then gcc_cv_as_eh_frame=yes
12792 elif test x$gcc_cv_as != x; then
12799 .section .eh_frame,"aw",@progbits
12801 .4byte .LECIE1-.LSCIE1
12815 .4byte .LEFDE1-.LASFDE1
12817 .4byte .LASFDE1-__FRAME_BEGIN__
12824 .LEFDE1:' > conftest.s
12825 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }
12832 cat > conftest.lit <<EOF
12833 0000 10000000 00000000 017a0001 781a0004 .........z..x...
12834 0010 01000000 12000000 18000000 00000000 ................
12835 0020 08000000 04080000 0044 .........D
12837 cat > conftest.big <<EOF
12838 0000 00000010 00000000 017a0001 781a0004 .........z..x...
12839 0010 00000001 00000012 00000018 00000000 ................
12840 0020 00000008 04000000 0844 .........D
12842 # If the assembler didn't choke, and we can objdump,
12843 # and we got the correct data, then succeed.
12844 if test x$gcc_cv_objdump != x \
12845 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
12846 | tail -3 > conftest.got \
12847 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
12848 || cmp conftest.big conftest.got > /dev/null 2>&1; }
12850 gcc_cv_as_eh_frame=yes
12851 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 gcc_cv_as_eh_frame=buggy
12859 # Uh oh, what do we do now?
12860 gcc_cv_as_eh_frame=no
12863 echo "configure: failed program was" >&5
12866 rm -f conftest.o conftest.s
12869 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
12870 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
12873 if test $gcc_cv_as_eh_frame = buggy; then
12875 cat >>confdefs.h <<\_ACEOF
12876 #define USE_AS_TRADITIONAL_FORMAT 1
12881 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
12882 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
12883 if test "${gcc_cv_as_shf_merge+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 gcc_cv_as_shf_merge=no
12887 if test $in_tree_gas = yes; then
12888 if test $in_tree_gas_is_elf = yes \
12889 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
12890 then gcc_cv_as_shf_merge=yes
12892 elif test x$gcc_cv_as != x; then
12893 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
12894 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }
12901 gcc_cv_as_shf_merge=yes
12903 echo "configure: failed program was" >&5
12906 rm -f conftest.o conftest.s
12909 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
12910 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
12912 if test $gcc_cv_as_shf_merge = no; then
12913 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
12914 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
12915 if test "${gcc_cv_as_shf_merge+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 gcc_cv_as_shf_merge=no
12919 if test $in_tree_gas = yes; then
12920 if test $in_tree_gas_is_elf = yes \
12921 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
12922 then gcc_cv_as_shf_merge=yes
12924 elif test x$gcc_cv_as != x; then
12925 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
12926 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }
12933 gcc_cv_as_shf_merge=yes
12935 echo "configure: failed program was" >&5
12938 rm -f conftest.o conftest.s
12941 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
12942 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
12946 cat >>confdefs.h <<_ACEOF
12947 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
12951 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
12952 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
12953 if test "${gcc_cv_as_comdat_group+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 gcc_cv_as_comdat_group=no
12957 if test $in_tree_gas = yes; then
12958 if test $in_tree_gas_is_elf = yes \
12959 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
12960 then gcc_cv_as_comdat_group=yes
12962 elif test x$gcc_cv_as != x; then
12963 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
12964 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; }
12971 gcc_cv_as_comdat_group=yes
12973 echo "configure: failed program was" >&5
12976 rm -f conftest.o conftest.s
12979 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
12980 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
12982 if test $gcc_cv_as_comdat_group = yes; then
12983 gcc_cv_as_comdat_group_percent=no
12985 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
12986 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
12987 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 gcc_cv_as_comdat_group_percent=no
12991 if test $in_tree_gas = yes; then
12992 if test $in_tree_gas_is_elf = yes \
12993 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
12994 then gcc_cv_as_comdat_group_percent=yes
12996 elif test x$gcc_cv_as != x; then
12997 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
12998 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }
13005 gcc_cv_as_comdat_group_percent=yes
13007 echo "configure: failed program was" >&5
13010 rm -f conftest.o conftest.s
13013 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13014 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13018 cat >>confdefs.h <<_ACEOF
13019 #define HAVE_GAS_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
13023 # Thread-local storage - the check is heavily parametrized.
13031 .section ".tdata","awT",@progbits
13034 ldq $27,__tls_get_addr($29) !literal!1
13035 lda $16,foo($29) !tlsgd!1
13036 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13037 ldq $27,__tls_get_addr($29) !literal!2
13038 lda $16,foo($29) !tlsldm!2
13039 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13040 ldq $1,foo($29) !gotdtprel
13041 ldah $2,foo($29) !dtprelhi
13042 lda $3,foo($2) !dtprello
13043 lda $4,foo($29) !dtprel
13044 ldq $1,foo($29) !gottprel
13045 ldah $2,foo($29) !tprelhi
13046 lda $3,foo($2) !tprello
13047 lda $4,foo($29) !tprel'
13050 tls_as_opt=--fatal-warnings
13054 .section ".tdata","awT",@progbits
13058 leal foo@TLSGD(,%ebx,1), %eax
13059 leal foo@TLSLDM(%ebx), %eax
13060 leal foo@DTPOFF(%eax), %edx
13061 movl foo@GOTTPOFF(%ebx), %eax
13062 subl foo@GOTTPOFF(%ebx), %eax
13063 addl foo@GOTNTPOFF(%ebx), %eax
13064 movl foo@INDNTPOFF, %eax
13065 movl $foo@TPOFF, %eax
13066 subl $foo@TPOFF, %eax
13067 leal foo@NTPOFF(%ecx), %eax'
13070 tls_as_opt=--fatal-warnings
13074 .section ".tdata","awT",@progbits
13078 leaq foo@TLSGD(%rip), %rdi
13079 leaq foo@TLSLD(%rip), %rdi
13080 leaq foo@DTPOFF(%rax), %rdx
13081 movq foo@GOTTPOFF(%rip), %rax
13082 movq $foo@TPOFF, %rax'
13085 tls_as_opt=--fatal-warnings
13089 .section ".tdata","awT",@progbits
13092 addl r16 = @ltoff(@dtpmod(foo#)), gp
13093 addl r17 = @ltoff(@dtprel(foo#)), gp
13094 addl r18 = @ltoff(@tprel(foo#)), gp
13095 addl r19 = @dtprel(foo#), gp
13096 adds r21 = @dtprel(foo#), r13
13097 movl r23 = @dtprel(foo#)
13098 addl r20 = @tprel(foo#), gp
13099 adds r22 = @tprel(foo#), r13
13100 movl r24 = @tprel(foo#)'
13103 tls_as_opt=--fatal-warnings
13107 .section ".tdata","awT",@progbits
13115 addi 3,31,ld0@got@tlsgd
13117 addi 3,31,x1@got@tlsld
13120 addis 9,3,x2@dtprel@ha
13121 addi 9,9,x2@dtprel@l
13122 lwz 9,x3@got@tprel(31)
13125 addis 9,2,x2@tprel@ha
13126 addi 9,9,x2@tprel@l'
13129 tls_as_opt="-a32 --fatal-warnings"
13133 .section ".tdata","awT",@progbits
13141 addi 3,2,ld0@got@tlsgd
13147 addi 3,2,x1@got@tlsld
13153 addis 9,3,x2@dtprel@ha
13154 addi 9,9,x2@dtprel@l
13157 ld 9,x3@got@dtprel(2)
13163 tls_as_opt="-a64 --fatal-warnings"
13167 .section ".tdata","awT",@progbits
13174 .long foo@GOTNTPOFF
13175 .long foo@INDNTPOFF
13176 l %r1,foo@GOTNTPOFF(%r12)
13177 l %r1,0(%r1):tls_load:foo
13178 bas %r14,0(%r1,%r13):tls_gdcall:foo
13179 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13182 tls_as_opt="-m31 --fatal-warnings"
13186 .section ".tdata","awT",@progbits
13193 .quad foo@GOTNTPOFF
13194 lg %r1,foo@GOTNTPOFF(%r12)
13195 larl %r1,foo@INDNTPOFF
13196 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13197 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13200 tls_as_opt="-m64 -Aesame --fatal-warnings"
13202 sh-*-* | sh[34]-*-*)
13204 .section ".tdata","awT",@progbits
13214 tls_as_opt=--fatal-warnings
13218 sparc*-sun-solaris2.*)
13225 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13227 .section ".tdata",#alloc,#write,#tls
13230 sethi %tgd_hi22(foo), %o0
13231 add %o0, %tgd_lo10(foo), %o1
13232 add %l7, %o1, %o0, %tgd_add(foo)
13233 call __tls_get_addr, %tgd_call(foo)
13234 sethi %tldm_hi22(foo), %l1
13235 add %l1, %tldm_lo10(foo), %l2
13236 add %l7, %l2, %o0, %tldm_add(foo)
13237 call __tls_get_addr, %tldm_call(foo)
13238 sethi %tldo_hix22(foo), %l3
13239 xor %l3, %tldo_lox10(foo), %l4
13240 add %o0, %l4, %l5, %tldo_add(foo)
13241 sethi %tie_hi22(foo), %o3
13242 add %o3, %tie_lo10(foo), %o3
13243 ld [%l7 + %o3], %o2, %tie_ld(foo)
13244 add %g7, %o2, %o4, %tie_add(foo)
13245 sethi %tle_hix22(foo), %l1
13246 xor %l1, %tle_lox10(foo), %o5
13247 ld [%g7 + %o5], %o1'
13252 .section ".tdata","awT",@progbits
13255 sethi %tgd_hi22(foo), %o0
13256 add %o0, %tgd_lo10(foo), %o1
13257 add %l7, %o1, %o0, %tgd_add(foo)
13258 call __tls_get_addr, %tgd_call(foo)
13259 sethi %tldm_hi22(foo), %l1
13260 add %l1, %tldm_lo10(foo), %l2
13261 add %l7, %l2, %o0, %tldm_add(foo)
13262 call __tls_get_addr, %tldm_call(foo)
13263 sethi %tldo_hix22(foo), %l3
13264 xor %l3, %tldo_lox10(foo), %l4
13265 add %o0, %l4, %l5, %tldo_add(foo)
13266 sethi %tie_hi22(foo), %o3
13267 add %o3, %tie_lo10(foo), %o3
13268 ld [%l7 + %o3], %o2, %tie_ld(foo)
13269 add %g7, %o2, %o4, %tie_add(foo)
13270 sethi %tle_hix22(foo), %l1
13271 xor %l1, %tle_lox10(foo), %o5
13272 ld [%g7 + %o5], %o1'
13275 tls_as_opt="-32 --fatal-warnings"
13279 if test -z "$tls_first_major"; then
13280 : # If we don't have a check, assume no support.
13282 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13283 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13284 if test "${gcc_cv_as_tls+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 if test $in_tree_gas = yes; then
13289 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13290 then gcc_cv_as_tls=yes
13292 elif test x$gcc_cv_as != x; then
13293 echo "$conftest_s" > conftest.s
13294 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }
13303 echo "configure: failed program was" >&5
13306 rm -f conftest.o conftest.s
13309 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13310 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13311 if test $gcc_cv_as_tls = yes; then
13313 cat >>confdefs.h <<\_ACEOF
13314 #define HAVE_AS_TLS 1
13320 # Target-specific assembler checks.
13322 if test x"$demangler_in_ld" = xyes; then
13323 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13324 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13325 gcc_cv_ld_demangle=no
13326 if test $in_tree_ld = yes; then
13327 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
13328 gcc_cv_ld_demangle=yes
13330 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
13331 # Check if the GNU linker supports --demangle option
13332 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
13333 gcc_cv_ld_demangle=yes
13336 if test x"$gcc_cv_ld_demangle" = xyes; then
13338 cat >>confdefs.h <<\_ACEOF
13339 #define HAVE_LD_DEMANGLE 1
13343 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
13344 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
13348 # All TARGET_ABI_OSF targets.
13349 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
13350 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13351 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13352 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 gcc_cv_as_alpha_explicit_relocs=no
13356 if test $in_tree_gas = yes; then
13357 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13358 then gcc_cv_as_alpha_explicit_relocs=yes
13360 elif test x$gcc_cv_as != x; then
13361 echo ' .set nomacro
13363 extbl $3, $2, $3 !lituse_bytoff!1
13364 ldq $2, a($29) !literal!1
13365 ldq $4, b($29) !literal!2
13366 ldq_u $3, 0($2) !lituse_base!1
13367 ldq $27, f($29) !literal!5
13368 jsr $26, ($27), f !lituse_jsr!5
13369 ldah $29, 0($26) !gpdisp!3
13370 lda $0, c($29) !gprel
13371 ldah $1, d($29) !gprelhigh
13372 lda $1, d($1) !gprellow
13373 lda $29, 0($29) !gpdisp!3' > conftest.s
13374 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }
13381 gcc_cv_as_alpha_explicit_relocs=yes
13383 echo "configure: failed program was" >&5
13386 rm -f conftest.o conftest.s
13389 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
13390 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
13391 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
13393 cat >>confdefs.h <<\_ACEOF
13394 #define HAVE_AS_EXPLICIT_RELOCS 1
13401 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
13402 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
13403 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 gcc_cv_as_cris_no_mul_bug=no
13407 if test $in_tree_gas = yes; then
13408 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13409 then gcc_cv_as_cris_no_mul_bug=yes
13411 elif test x$gcc_cv_as != x; then
13412 echo '.text' > conftest.s
13413 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }
13420 gcc_cv_as_cris_no_mul_bug=yes
13422 echo "configure: failed program was" >&5
13425 rm -f conftest.o conftest.s
13428 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
13429 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
13430 if test $gcc_cv_as_cris_no_mul_bug = yes; then
13432 cat >>confdefs.h <<\_ACEOF
13433 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
13440 echo "$as_me:$LINENO: checking assembler for .register" >&5
13441 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
13442 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 gcc_cv_as_sparc_register_op=no
13446 if test x$gcc_cv_as != x; then
13447 echo '.register %g2, #scratch' > conftest.s
13448 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }
13455 gcc_cv_as_sparc_register_op=yes
13457 echo "configure: failed program was" >&5
13460 rm -f conftest.o conftest.s
13463 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
13464 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
13465 if test $gcc_cv_as_sparc_register_op = yes; then
13467 cat >>confdefs.h <<\_ACEOF
13468 #define HAVE_AS_REGISTER_PSEUDO_OP 1
13473 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
13474 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
13475 if test "${gcc_cv_as_sparc_relax+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 gcc_cv_as_sparc_relax=no
13479 if test x$gcc_cv_as != x; then
13480 echo '.text' > conftest.s
13481 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; }
13488 gcc_cv_as_sparc_relax=yes
13490 echo "configure: failed program was" >&5
13493 rm -f conftest.o conftest.s
13496 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
13497 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
13498 if test $gcc_cv_as_sparc_relax = yes; then
13500 cat >>confdefs.h <<\_ACEOF
13501 #define HAVE_AS_RELAX_OPTION 1
13506 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
13507 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
13508 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 gcc_cv_as_sparc_ua_pcrel=no
13512 if test x$gcc_cv_as != x; then
13519 .uaword %r_disp32(foo)' > conftest.s
13520 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }
13527 if test x$gcc_cv_ld != x \
13528 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
13529 gcc_cv_as_sparc_ua_pcrel=yes
13533 echo "configure: failed program was" >&5
13536 rm -f conftest.o conftest.s
13539 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
13540 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
13541 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
13543 cat >>confdefs.h <<\_ACEOF
13544 #define HAVE_AS_SPARC_UA_PCREL 1
13548 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
13549 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
13550 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 gcc_cv_as_sparc_ua_pcrel_hidden=no
13554 if test x$gcc_cv_as != x; then
13558 .uaword %r_disp32(foo)
13559 .byte 0x32, 0x33, 0x34
13563 .skip 4' > conftest.s
13564 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }
13571 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
13572 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
13573 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
13574 | grep ' 31000000 07323334' > /dev/null 2>&1; then
13575 if $gcc_cv_objdump -R conftest 2> /dev/null \
13576 | grep 'DISP32' > /dev/null 2>&1; then
13579 gcc_cv_as_sparc_ua_pcrel_hidden=yes
13584 echo "configure: failed program was" >&5
13587 rm -f conftest.o conftest.s
13590 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
13591 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
13592 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
13594 cat >>confdefs.h <<\_ACEOF
13595 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
13600 fi # unaligned pcrel relocs
13602 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
13603 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
13604 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13607 gcc_cv_as_sparc_offsetable_lo10=no
13608 if test x$gcc_cv_as != x; then
13610 or %g1, %lo(ab) + 12, %g1
13611 or %g1, %lo(ab + 12), %g1' > conftest.s
13612 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }
13619 if test x$gcc_cv_objdump != x \
13620 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
13621 | grep ' 82106000 82106000' > /dev/null 2>&1; then
13622 gcc_cv_as_offsetable_lo10=yes
13625 echo "configure: failed program was" >&5
13628 rm -f conftest.o conftest.s
13631 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
13632 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
13633 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
13635 cat >>confdefs.h <<\_ACEOF
13636 #define HAVE_AS_OFFSETABLE_LO10 1
13642 i[34567]86-*-* | x86_64-*-*)
13644 cygwin* | pe | mingw32*)
13645 # Used for DWARF 2 in PE
13646 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
13647 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
13648 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 gcc_cv_as_ix86_pe_secrel32=no
13652 if test $in_tree_gas = yes; then
13653 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13654 then gcc_cv_as_ix86_pe_secrel32=yes
13656 elif test x$gcc_cv_as != x; then
13660 .secrel32 foo' > conftest.s
13661 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }
13668 if test x$gcc_cv_ld != x \
13669 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
13670 gcc_cv_as_ix86_pe_secrel32=yes
13674 echo "configure: failed program was" >&5
13677 rm -f conftest.o conftest.s
13680 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
13681 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
13682 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
13684 cat >>confdefs.h <<\_ACEOF
13685 #define HAVE_GAS_PE_SECREL32_RELOC 1
13692 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
13693 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
13694 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 gcc_cv_as_ix86_filds_fists=no
13698 if test $in_tree_gas = yes; then
13699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13700 then gcc_cv_as_ix86_filds_fists=yes
13702 elif test x$gcc_cv_as != x; then
13703 echo 'filds mem; fists mem' > conftest.s
13704 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }
13711 gcc_cv_as_ix86_filds_fists=yes
13713 echo "configure: failed program was" >&5
13716 rm -f conftest.o conftest.s
13719 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
13720 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
13721 if test $gcc_cv_as_ix86_filds_fists = yes; then
13723 cat >>confdefs.h <<\_ACEOF
13724 #define HAVE_GAS_FILDS_FISTS 1
13729 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
13730 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
13731 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 gcc_cv_as_ix86_cmov_sun_syntax=no
13735 if test x$gcc_cv_as != x; then
13736 echo 'cmovl.l %edx, %eax' > conftest.s
13737 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }
13744 gcc_cv_as_ix86_cmov_sun_syntax=yes
13746 echo "configure: failed program was" >&5
13749 rm -f conftest.o conftest.s
13752 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
13753 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
13754 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
13756 cat >>confdefs.h <<\_ACEOF
13757 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
13762 # This one is used unconditionally by i386.[ch]; it is to be defined
13763 # to 1 if the feature is present, 0 otherwise.
13764 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
13765 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
13766 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 gcc_cv_as_ix86_gotoff_in_data=no
13770 if test $in_tree_gas = yes; then
13771 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13772 then gcc_cv_as_ix86_gotoff_in_data=yes
13774 elif test x$gcc_cv_as != x; then
13779 .long .L0@GOTOFF' > conftest.s
13780 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }
13787 gcc_cv_as_ix86_gotoff_in_data=yes
13789 echo "configure: failed program was" >&5
13792 rm -f conftest.o conftest.s
13795 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
13796 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
13799 cat >>confdefs.h <<_ACEOF
13800 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
13806 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
13807 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
13808 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
13812 if test $in_tree_gas = yes; then
13813 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
13814 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
13816 elif test x$gcc_cv_as != x; then
13818 addl r15 = @ltoffx(x#), gp
13820 ld8.mov r16 = [r15], x#' > conftest.s
13821 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }
13828 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
13830 echo "configure: failed program was" >&5
13833 rm -f conftest.o conftest.s
13836 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
13837 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
13838 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
13850 *-*-aix*) conftest_s=' .csect .text[PR]
13852 *-*-darwin*) conftest_s=' .text
13854 *) conftest_s=' .text
13858 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
13859 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
13860 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 gcc_cv_as_powerpc_mfcrf=no
13864 if test $in_tree_gas = yes; then
13865 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
13866 then gcc_cv_as_powerpc_mfcrf=yes
13868 elif test x$gcc_cv_as != x; then
13869 echo "$conftest_s" > conftest.s
13870 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }
13877 gcc_cv_as_powerpc_mfcrf=yes
13879 echo "configure: failed program was" >&5
13882 rm -f conftest.o conftest.s
13885 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
13886 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
13887 if test $gcc_cv_as_powerpc_mfcrf = yes; then
13889 cat >>confdefs.h <<\_ACEOF
13890 #define HAVE_AS_MFCRF 1
13897 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
13898 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
13899 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 gcc_cv_as_mips_explicit_relocs=no
13903 if test $in_tree_gas = yes; then
13904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
13905 then gcc_cv_as_mips_explicit_relocs=yes
13907 elif test x$gcc_cv_as != x; then
13908 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
13909 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }
13916 gcc_cv_as_mips_explicit_relocs=yes
13918 echo "configure: failed program was" >&5
13921 rm -f conftest.o conftest.s
13924 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
13925 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
13926 if test $gcc_cv_as_mips_explicit_relocs = yes; then
13927 if test x$target_cpu_default = x
13928 then target_cpu_default=MASK_EXPLICIT_RELOCS
13929 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
13933 if test x$gas_flag = xyes \
13934 || test x"$host" != x"$build" \
13935 || test ! -x "$gcc_cv_as" \
13936 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
13939 echo "*** This configuration requires the GNU assembler" >&2
13944 # ??? Not all targets support dwarf2 debug_line, even within a version
13945 # of gas. Moreover, we need to emit a valid instruction to trigger any
13946 # info to the output file. So, as supported targets are added to gas 2.11,
13947 # add some instruction here to (also) show we expect this might work.
13948 # ??? Once 2.11 is released, probably need to add first known working
13949 # version to the per-target configury.
13951 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
13952 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
13953 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
13956 ia64*-*-* | s390*-*-*)
13963 if test x"$insn" != x; then
13965 .file 1 \"conftest.s\"
13968 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
13969 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
13970 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 gcc_cv_as_dwarf2_debug_line=no
13974 if test $in_tree_gas = yes; then
13975 if test $in_tree_gas_is_elf = yes \
13976 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13977 then gcc_cv_as_dwarf2_debug_line=yes
13979 elif test x$gcc_cv_as != x; then
13980 echo "$conftest_s" > conftest.s
13981 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }
13988 # ??? This fails with non-gnu grep. Maybe use objdump?
13989 if grep debug_line conftest.o > /dev/null 2>&1; then
13990 gcc_cv_as_dwarf2_debug_line=yes
13993 echo "configure: failed program was" >&5
13996 rm -f conftest.o conftest.s
13999 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14000 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14003 # The .debug_line file table must be in the exact order that
14004 # we specified the files, since these indices are also used
14005 # by DW_AT_decl_file. Approximate this test by testing if
14006 # the assembler bitches if the same index is assigned twice.
14007 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14008 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14009 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 gcc_cv_as_dwarf2_file_buggy=no
14013 if test x$gcc_cv_as != x; then
14014 echo ' .file 1 "foo.s"
14015 .file 1 "bar.s"' > conftest.s
14016 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; }
14023 gcc_cv_as_dwarf2_file_buggy=yes
14025 echo "configure: failed program was" >&5
14028 rm -f conftest.o conftest.s
14031 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14032 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14035 if test $gcc_cv_as_dwarf2_debug_line = yes \
14036 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14038 cat >>confdefs.h <<\_ACEOF
14039 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14044 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14045 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14046 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 gcc_cv_as_gdwarf2_flag=no
14050 if test $in_tree_gas = yes; then
14051 if test $in_tree_gas_is_elf = yes \
14052 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14053 then gcc_cv_as_gdwarf2_flag=yes
14055 elif test x$gcc_cv_as != x; then
14056 echo "$insn" > conftest.s
14057 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }
14064 gcc_cv_as_gdwarf2_flag=yes
14066 echo "configure: failed program was" >&5
14069 rm -f conftest.o conftest.s
14072 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14073 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14074 if test $gcc_cv_as_gdwarf2_flag = yes; then
14076 cat >>confdefs.h <<\_ACEOF
14077 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14082 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14083 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14084 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 gcc_cv_as_gstabs_flag=no
14088 if test $in_tree_gas = yes; then
14089 if test $in_tree_gas_is_elf = yes \
14090 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14091 then gcc_cv_as_gstabs_flag=yes
14093 elif test x$gcc_cv_as != x; then
14094 echo "$insn" > conftest.s
14095 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097 (eval $ac_try) 2>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }
14102 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14103 # and warns about it, but still exits successfully. So check for
14105 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }
14112 else gcc_cv_as_gstabs_flag=yes
14115 echo "configure: failed program was" >&5
14118 rm -f conftest.o conftest.s
14121 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14122 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14123 if test $gcc_cv_as_gstabs_flag = yes; then
14125 cat >>confdefs.h <<\_ACEOF
14126 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14132 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14133 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14134 gcc_cv_ld_ro_rw_mix=unknown
14135 if test $in_tree_ld = yes ; then
14136 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 \
14137 && test $in_tree_ld_is_elf = yes; then
14138 gcc_cv_ld_ro_rw_mix=read-write
14140 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14141 echo '.section myfoosect, "a"' > conftest1.s
14142 echo '.section myfoosect, "aw"' > conftest2.s
14143 echo '.byte 1' >> conftest2.s
14144 echo '.section myfoosect, "a"' > conftest3.s
14145 echo '.byte 0' >> conftest3.s
14146 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14147 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14148 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14149 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14150 conftest2.o conftest3.o > /dev/null 2>&1; then
14151 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14152 | sed -e '/myfoosect/!d' -e N`
14153 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14154 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14155 gcc_cv_ld_ro_rw_mix=read-only
14157 gcc_cv_ld_ro_rw_mix=read-write
14161 rm -f conftest.* conftest[123].*
14163 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14170 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14171 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14173 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14174 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14175 gcc_cv_ld_eh_frame_hdr=no
14176 if test $in_tree_ld = yes ; then
14177 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 \
14178 && test $in_tree_ld_is_elf = yes; then
14179 gcc_cv_ld_eh_frame_hdr=yes
14181 elif test x$gcc_cv_ld != x; then
14182 # Check if linker supports --eh-frame-hdr option
14183 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14184 gcc_cv_ld_eh_frame_hdr=yes
14187 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14189 cat >>confdefs.h <<\_ACEOF
14190 #define HAVE_LD_EH_FRAME_HDR 1
14194 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14195 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14197 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14198 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14200 if test $in_tree_ld = yes ; then
14201 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 \
14202 && test $in_tree_ld_is_elf = yes; then
14205 elif test x$gcc_cv_ld != x; then
14206 # Check if linker supports -pie option
14207 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14211 if test x"$gcc_cv_ld_pie" = xyes; then
14213 cat >>confdefs.h <<\_ACEOF
14214 #define HAVE_LD_PIE 1
14218 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14219 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14225 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14226 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14227 if test "${gcc_cv_ld_as_needed+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 gcc_cv_ld_as_needed=no
14231 if test $in_tree_ld = yes ; then
14232 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
14233 && test $in_tree_ld_is_elf = yes; then
14234 gcc_cv_ld_as_needed=yes
14236 elif test x$gcc_cv_ld != x; then
14237 # Check if linker supports --as-needed and --no-as-needed options
14238 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14239 gcc_cv_ld_as_needed=yes
14244 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14245 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14246 if test x"$gcc_cv_ld_as_needed" = xyes; then
14248 cat >>confdefs.h <<\_ACEOF
14249 #define HAVE_LD_AS_NEEDED 1
14255 powerpc64*-*-linux*)
14256 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14257 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14258 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 gcc_cv_ld_no_dot_syms=no
14262 if test $in_tree_ld = yes ; then
14263 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
14264 gcc_cv_ld_no_dot_syms=yes
14266 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14267 cat > conftest1.s <<EOF
14271 cat > conftest2.s <<EOF
14272 .section ".opd","aw"
14275 .type foo,@function
14277 .quad .LEfoo,.TOC.@tocbase,0
14283 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
14284 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
14285 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
14286 gcc_cv_ld_no_dot_syms=yes
14288 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14292 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14293 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14294 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
14296 cat >>confdefs.h <<\_ACEOF
14297 #define HAVE_LD_NO_DOT_SYMS 1
14304 if test x$with_sysroot = x && test x$host = x$target \
14305 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
14307 cat >>confdefs.h <<_ACEOF
14308 #define PREFIX_INCLUDE_DIR "$prefix/include"
14313 # Find out what GC implementation we want, or may, use.
14315 # Check whether --with-gc or --without-gc was given.
14316 if test "${with_gc+set}" = set; then
14323 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
14324 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
14325 { (exit 1); exit 1; }; }
14332 echo "Using $GGC for garbage collection."
14334 # Use the system's zlib library.
14336 zlibinc="-I\$(srcdir)/../zlib"
14338 # Check whether --with-system-zlib or --without-system-zlib was given.
14339 if test "${with_system_zlib+set}" = set; then
14340 withval="$with_system_zlib"
14349 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14350 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14351 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14352 if test "${enable_maintainer_mode+set}" = set; then
14353 enableval="$enable_maintainer_mode"
14354 maintainer_mode=$enableval
14359 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
14360 echo "${ECHO_T}$maintainer_mode" >&6
14362 if test "$maintainer_mode" = "yes"; then
14372 # Make empty files to contain the specs and options for each language.
14373 # Then add #include lines to for a compiler that has specs and/or options.
14378 for subdir in . $subdirs
14380 if test -f $srcdir/$subdir/lang.opt; then
14381 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
14383 if test -f $srcdir/$subdir/lang-specs.h; then
14384 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
14386 if test -f $srcdir/$subdir/$subdir-tree.def; then
14387 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
14391 # These (without "all_") are set in each config-lang.in.
14392 # `language' must be a single word so is spelled singularly.
14394 all_boot_languages=
14397 all_outputs='Makefile gccbug mklibgcc mkheaders libada-mk'
14398 # List of language makefile fragments.
14399 all_lang_makefrags=
14400 # List of language subdirectory makefiles. Deprecated.
14401 all_lang_makefiles=
14402 # Files for gengtype
14403 all_gtfiles="$target_gtfiles"
14404 # Files for gengtype with language
14405 all_gtfiles_files_langs=
14406 all_gtfiles_files_files=
14408 # Add the language fragments.
14409 # Languages are added via two mechanisms. Some information must be
14410 # recorded in makefile variables, these are defined in config-lang.in.
14411 # We accumulate them and plug them into the main Makefile.
14412 # The other mechanism is a set of hooks for each of the main targets
14413 # like `clean', `install', etc.
14415 language_hooks="Make-hooks"
14425 . ${srcdir}/$s/config-lang.in
14426 if test "x$language" = x
14428 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
14431 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
14432 if test -f ${srcdir}/$s/Makefile.in
14433 then all_lang_makefiles="$s/Makefile"
14435 all_languages="$all_languages $language"
14436 if test "x$boot_language" = xyes
14438 all_boot_languages="$all_boot_languages $language"
14440 all_compilers="$all_compilers $compilers"
14441 all_stagestuff="$all_stagestuff $stagestuff"
14442 all_outputs="$all_outputs $outputs"
14443 all_gtfiles="$all_gtfiles $gtfiles"
14446 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14447 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14451 # Pick up gtfiles for c
14454 . ${srcdir}/c-config-lang.in
14455 all_gtfiles="$all_gtfiles $gtfiles"
14458 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
14459 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
14463 for language in $all_languages
14465 check_languages="$check_languages check-$language"
14468 # We link each language in with a set of hooks, reached indirectly via
14473 target_list="all.build all.cross start.encap rest.encap tags \
14474 install-normal install-common install-man \
14475 uninstall info man srcextra srcman srcinfo \
14476 mostlyclean clean distclean maintainer-clean \
14477 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
14478 for t in $target_list
14481 for lang in $all_languages
14485 echo "lang.$t: $x" >> Make-hooks
14494 echo "dir ." > .gdbinit
14495 echo "dir ${srcdir}" >> .gdbinit
14496 if test x$gdb_needs_out_file_path = xyes
14498 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
14500 if test "x$subdirs" != x; then
14503 echo "dir ${srcdir}/$s" >> .gdbinit
14506 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
14508 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
14509 # absolute path for gcc_tooldir based on inserting the number of up-directory
14510 # movements required to get from $(exec_prefix) to $(prefix) into the basic
14511 # $(libsubdir)/@(unlibsubdir) based path.
14512 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
14513 # make and thus we'd get different behavior depending on where we built the
14515 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
14516 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
14518 # An explanation of the sed strings:
14519 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
14520 # -e 's|/$||' match a trailing forward slash and eliminates it
14521 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
14522 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
14524 # (*) Note this pattern overwrites the first character of the string
14525 # with a forward slash if one is not already present. This is not a
14526 # problem because the exact names of the sub-directories concerned is
14527 # unimportant, just the number of them matters.
14529 # The practical upshot of these patterns is like this:
14531 # prefix exec_prefix result
14532 # ------ ----------- ------
14533 # /foo /foo/bar ../
14534 # /foo/ /foo/bar ../
14535 # /foo /foo/bar/ ../
14536 # /foo/ /foo/bar/ ../
14537 # /foo /foo/bar/ugg ../../
14540 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
14545 # Find a directory in which to install a shared libgcc.
14547 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
14548 if test "${enable_version_specific_runtime_libs+set}" = set; then
14549 enableval="$enable_version_specific_runtime_libs"
14554 # Check whether --with-slibdir or --without-slibdir was given.
14555 if test "${with_slibdir+set}" = set; then
14556 withval="$with_slibdir"
14557 slibdir="$with_slibdir"
14559 if test "${enable_version_specific_runtime_libs+set}" = set; then
14560 slibdir='$(libsubdir)'
14561 elif test "$host" != "$target"; then
14562 slibdir='$(build_tooldir)/lib'
14564 slibdir='$(libdir)'
14569 objdir=`${PWDCMD-pwd}`
14572 # Substitute configuration variables
14641 if test x${build} = x${host} ; then
14642 if test x${host} = x${target} ; then
14643 echo "Links are now set up to build a native compiler for ${target}." 1>&2
14645 echo "Links are now set up to build a cross-compiler" 1>&2
14646 echo " from ${host} to ${target}." 1>&2
14649 if test x${host} = x${target} ; then
14650 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
14651 echo " for ${target}." 1>&2
14653 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
14654 echo " from ${host} to ${target}." 1>&2
14661 # Configure the subdirectories
14662 # AC_CONFIG_SUBDIRS($subdirs)
14664 # Create the Makefile
14665 # and configure language subdirectories
14666 ac_config_files="$ac_config_files $all_outputs"
14669 ac_config_commands="$ac_config_commands default"
14671 cat >confcache <<\_ACEOF
14672 # This file is a shell script that caches the results of configure
14673 # tests run on this system so they can be shared between configure
14674 # scripts and configure runs, see configure's option --config-cache.
14675 # It is not useful on other systems. If it contains results you don't
14676 # want to keep, you may remove or edit it.
14678 # config.status only pays attention to the cache file if you give it
14679 # the --recheck option to rerun configure.
14681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14683 # following values.
14687 # The following way of writing the cache mishandles newlines in values,
14688 # but we know of no workaround that is simple, portable, and efficient.
14689 # So, don't put newlines in cache variables' values.
14690 # Ultrix sh set writes to stderr and can't be redirected directly,
14691 # and sets the high bit in the cache file unless we assign to the vars.
14694 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14696 # `set' does not quote correctly, so add quotes (double-quote
14697 # substitution turns \\\\ into \\, and sed turns \\ into \).
14700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14703 # `set' quotes correctly as required by POSIX, so do not add quotes.
14705 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14712 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14714 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14716 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14717 if test -w $cache_file; then
14718 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14719 cat confcache >$cache_file
14721 echo "not updating unwritable cache $cache_file"
14726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14727 # Let make expand exec_prefix.
14728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14730 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14731 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14732 # trailing colons and then remove the whole line if VPATH becomes empty
14733 # (actually we leave an empty line to preserve line numbers).
14734 if test "x$srcdir" = x.; then
14735 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14736 s/:*\$(srcdir):*/:/;
14737 s/:*\${srcdir}:*/:/;
14739 s/^\([^=]*=[ ]*\):*/\1/;
14745 DEFS=-DHAVE_CONFIG_H
14749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14750 # 1. Remove the extension, and $U if already installed.
14751 ac_i=`echo "$ac_i" |
14752 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14754 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14755 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14757 LIBOBJS=$ac_libobjs
14759 LTLIBOBJS=$ac_ltlibobjs
14763 : ${CONFIG_STATUS=./config.status}
14764 ac_clean_files_save=$ac_clean_files
14765 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14766 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14767 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14768 cat >$CONFIG_STATUS <<_ACEOF
14770 # Generated by $as_me.
14771 # Run this file to recreate the current configuration.
14772 # Compiler output produced by configure, useful for debugging
14773 # configure, is in config.log if it exists.
14776 ac_cs_recheck=false
14778 SHELL=\${CONFIG_SHELL-$SHELL}
14781 cat >>$CONFIG_STATUS <<\_ACEOF
14782 ## --------------------- ##
14783 ## M4sh Initialization. ##
14784 ## --------------------- ##
14786 # Be Bourne compatible
14787 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14790 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14791 # is contrary to our usage. Disable this feature.
14792 alias -g '${1+"$@"}'='"$@"'
14793 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14796 DUALCASE=1; export DUALCASE # for MKS sh
14798 # Support unset when possible.
14799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14806 # Work around bugs in pre-3.0 UWIN ksh.
14807 $as_unset ENV MAIL MAILPATH
14814 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14815 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14816 LC_TELEPHONE LC_TIME
14818 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14819 eval $as_var=C; export $as_var
14825 # Required to use basename.
14826 if expr a : '\(a\)' >/dev/null 2>&1; then
14832 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14833 as_basename=basename
14839 # Name of the executable.
14840 as_me=`$as_basename "$0" ||
14841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14842 X"$0" : 'X\(//\)$' \| \
14843 X"$0" : 'X\(/\)$' \| \
14844 . : '\(.\)' 2>/dev/null ||
14846 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14847 /^X\/\(\/\/\)$/{ s//\1/; q; }
14848 /^X\/\(\/\).*/{ s//\1/; q; }
14852 # PATH needs CR, and LINENO needs CR and PATH.
14853 # Avoid depending upon Character Ranges.
14854 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14855 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14856 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14857 as_cr_digits='0123456789'
14858 as_cr_alnum=$as_cr_Letters$as_cr_digits
14860 # The user is always right.
14861 if test "${PATH_SEPARATOR+set}" != set; then
14862 echo "#! /bin/sh" >conf$$.sh
14863 echo "exit 0" >>conf$$.sh
14865 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14874 as_lineno_1=$LINENO
14875 as_lineno_2=$LINENO
14876 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14877 test "x$as_lineno_1" != "x$as_lineno_2" &&
14878 test "x$as_lineno_3" = "x$as_lineno_2" || {
14879 # Find who we are. Look in the path if we contain no path at all
14882 *[\\/]* ) as_myself=$0 ;;
14883 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884 for as_dir in $PATH
14887 test -z "$as_dir" && as_dir=.
14888 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14893 # We did not find ourselves, most probably we were run as `sh COMMAND'
14894 # in which case we are not to be found in the path.
14895 if test "x$as_myself" = x; then
14898 if test ! -f "$as_myself"; then
14899 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14900 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14901 { (exit 1); exit 1; }; }
14903 case $CONFIG_SHELL in
14905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14909 test -z "$as_dir" && as_dir=.
14910 for as_base in sh bash ksh sh5; do
14913 if ("$as_dir/$as_base" -c '
14914 as_lineno_1=$LINENO
14915 as_lineno_2=$LINENO
14916 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14917 test "x$as_lineno_1" != "x$as_lineno_2" &&
14918 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14919 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14920 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14921 CONFIG_SHELL=$as_dir/$as_base
14922 export CONFIG_SHELL
14923 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14931 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14932 # uniformly replaced by the line number. The first 'sed' inserts a
14933 # line-number line before each line; the second 'sed' does the real
14934 # work. The second script uses 'N' to pair each line-number line
14935 # with the numbered line, and appends trailing '-' during
14936 # substitution so that $LINENO is not a special case at line end.
14937 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14938 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14939 sed '=' <$as_myself |
14944 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14947 s,^['$as_cr_digits']*\n,,
14948 ' >$as_me.lineno &&
14949 chmod +x $as_me.lineno ||
14950 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14951 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14952 { (exit 1); exit 1; }; }
14954 # Don't try to exec as it changes $[0], causing all sort of problems
14955 # (the dirname of $[0] is not the place where we might find the
14956 # original and so on. Autoconf is especially sensible to this).
14958 # Exit status is that of the last command.
14963 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14964 *c*,-n*) ECHO_N= ECHO_C='
14966 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14967 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14970 if expr a : '\(a\)' >/dev/null 2>&1; then
14976 rm -f conf$$ conf$$.exe conf$$.file
14978 if ln -s conf$$.file conf$$ 2>/dev/null; then
14979 # We could just check for DJGPP; but this test a) works b) is more generic
14980 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14981 if test -f conf$$.exe; then
14982 # Don't use ln at all; we don't have any links
14987 elif ln conf$$.file conf$$ 2>/dev/null; then
14992 rm -f conf$$ conf$$.exe conf$$.file
14994 if mkdir -p . 2>/dev/null; then
14997 test -d ./-p && rmdir ./-p
15001 as_executable_p="test -f"
15003 # Sed expression to map a string onto a valid CPP name.
15004 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15006 # Sed expression to map a string onto a valid variable name.
15007 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15011 # We need space, tab and new line, in precisely that order.
15021 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15022 # report actual input values of CONFIG_FILES etc. instead of their
15023 # values after options handling. Logging --version etc. is OK.
15027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15028 ## Running $as_me. ##
15033 This file was extended by $as_me, which was
15034 generated by GNU Autoconf 2.59. Invocation command line was
15036 CONFIG_FILES = $CONFIG_FILES
15037 CONFIG_HEADERS = $CONFIG_HEADERS
15038 CONFIG_LINKS = $CONFIG_LINKS
15039 CONFIG_COMMANDS = $CONFIG_COMMANDS
15043 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15047 # Files that config.status was made for.
15048 if test -n "$ac_config_files"; then
15049 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15052 if test -n "$ac_config_headers"; then
15053 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15056 if test -n "$ac_config_links"; then
15057 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15060 if test -n "$ac_config_commands"; then
15061 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15064 cat >>$CONFIG_STATUS <<\_ACEOF
15067 \`$as_me' instantiates files from templates according to the
15068 current configuration.
15070 Usage: $0 [OPTIONS] [FILE]...
15072 -h, --help print this help, then exit
15073 -V, --version print version number, then exit
15074 -q, --quiet do not print progress messages
15075 -d, --debug don't remove temporary files
15076 --recheck update $as_me by reconfiguring in the same conditions
15077 --file=FILE[:TEMPLATE]
15078 instantiate the configuration file FILE
15079 --header=FILE[:TEMPLATE]
15080 instantiate the configuration header FILE
15082 Configuration files:
15085 Configuration headers:
15088 Configuration commands:
15091 Report bugs to <bug-autoconf@gnu.org>."
15094 cat >>$CONFIG_STATUS <<_ACEOF
15097 configured by $0, generated by GNU Autoconf 2.59,
15098 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15100 Copyright (C) 2003 Free Software Foundation, Inc.
15101 This config.status script is free software; the Free Software Foundation
15102 gives unlimited permission to copy, distribute and modify it."
15106 cat >>$CONFIG_STATUS <<\_ACEOF
15107 # If no file are specified by the user, then we need to provide default
15108 # value. By we need to know if files were specified by the user.
15114 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15115 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15123 *) # This is not an option, so the user has probably given explicit
15126 ac_need_defaults=false;;
15130 # Handling of the options.
15132 cat >>$CONFIG_STATUS <<\_ACEOF
15133 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15135 --version | --vers* | -V )
15136 echo "$ac_cs_version"; exit 0 ;;
15138 # Conflict between --help and --header
15139 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15140 Try \`$0 --help' for more information." >&5
15141 echo "$as_me: error: ambiguous option: $1
15142 Try \`$0 --help' for more information." >&2;}
15143 { (exit 1); exit 1; }; };;
15144 --help | --hel | -h )
15145 echo "$ac_cs_usage"; exit 0 ;;
15146 --debug | --d* | -d )
15148 --file | --fil | --fi | --f )
15150 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15151 ac_need_defaults=false;;
15152 --header | --heade | --head | --hea )
15154 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15155 ac_need_defaults=false;;
15156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15160 # This is an error.
15161 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15162 Try \`$0 --help' for more information." >&5
15163 echo "$as_me: error: unrecognized option: $1
15164 Try \`$0 --help' for more information." >&2;}
15165 { (exit 1); exit 1; }; } ;;
15167 *) ac_config_targets="$ac_config_targets $1" ;;
15173 ac_configure_extra_args=
15175 if $ac_cs_silent; then
15177 ac_configure_extra_args="$ac_configure_extra_args --silent"
15181 cat >>$CONFIG_STATUS <<_ACEOF
15182 if \$ac_cs_recheck; then
15183 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15184 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15189 cat >>$CONFIG_STATUS <<_ACEOF
15191 # INIT-COMMANDS section.
15195 symbolic_link='$symbolic_link'
15202 cat >>$CONFIG_STATUS <<\_ACEOF
15203 for ac_config_target in $ac_config_targets
15205 case "$ac_config_target" in
15206 # Handling of arguments.
15207 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15208 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15209 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15210 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15211 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15212 { (exit 1); exit 1; }; };;
15216 # If the user did not use the arguments to specify the items to instantiate,
15217 # then the envvar interface is used. Set only those that are not.
15218 # We use the long form for the default assignment because of an extremely
15219 # bizarre bug on SunOS 4.1.3.
15220 if $ac_need_defaults; then
15221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15226 # Have a temporary directory for convenience. Make it in the build tree
15227 # simply because there is no reason to put it here, and in addition,
15228 # creating and moving files from /tmp can sometimes cause problems.
15229 # Create a temporary directory, and hook for its removal unless debugging.
15232 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15233 trap '{ (exit 1); exit 1; }' 1 2 13 15
15236 # Create a (secure) tmp directory for tmp files.
15239 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15240 test -n "$tmp" && test -d "$tmp"
15243 tmp=./confstat$$-$RANDOM
15244 (umask 077 && mkdir $tmp)
15247 echo "$me: cannot create a temporary directory in ." >&2
15248 { (exit 1); exit 1; }
15253 cat >>$CONFIG_STATUS <<_ACEOF
15256 # CONFIG_FILES section.
15259 # No need to generate the scripts if there are no CONFIG_FILES.
15260 # This happens for instance when ./config.status config.h
15261 if test -n "\$CONFIG_FILES"; then
15262 # Protect against being on the right side of a sed subst in config.status.
15263 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15264 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15265 s,@SHELL@,$SHELL,;t t
15266 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15267 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15268 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15269 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15270 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15271 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15272 s,@exec_prefix@,$exec_prefix,;t t
15273 s,@prefix@,$prefix,;t t
15274 s,@program_transform_name@,$program_transform_name,;t t
15275 s,@bindir@,$bindir,;t t
15276 s,@sbindir@,$sbindir,;t t
15277 s,@libexecdir@,$libexecdir,;t t
15278 s,@datadir@,$datadir,;t t
15279 s,@sysconfdir@,$sysconfdir,;t t
15280 s,@sharedstatedir@,$sharedstatedir,;t t
15281 s,@localstatedir@,$localstatedir,;t t
15282 s,@libdir@,$libdir,;t t
15283 s,@includedir@,$includedir,;t t
15284 s,@oldincludedir@,$oldincludedir,;t t
15285 s,@infodir@,$infodir,;t t
15286 s,@mandir@,$mandir,;t t
15287 s,@build_alias@,$build_alias,;t t
15288 s,@host_alias@,$host_alias,;t t
15289 s,@target_alias@,$target_alias,;t t
15290 s,@DEFS@,$DEFS,;t t
15291 s,@ECHO_C@,$ECHO_C,;t t
15292 s,@ECHO_N@,$ECHO_N,;t t
15293 s,@ECHO_T@,$ECHO_T,;t t
15294 s,@LIBS@,$LIBS,;t t
15295 s,@build@,$build,;t t
15296 s,@build_cpu@,$build_cpu,;t t
15297 s,@build_vendor@,$build_vendor,;t t
15298 s,@build_os@,$build_os,;t t
15299 s,@host@,$host,;t t
15300 s,@host_cpu@,$host_cpu,;t t
15301 s,@host_vendor@,$host_vendor,;t t
15302 s,@host_os@,$host_os,;t t
15303 s,@target@,$target,;t t
15304 s,@target_cpu@,$target_cpu,;t t
15305 s,@target_vendor@,$target_vendor,;t t
15306 s,@target_os@,$target_os,;t t
15307 s,@target_noncanonical@,$target_noncanonical,;t t
15308 s,@build_subdir@,$build_subdir,;t t
15309 s,@host_subdir@,$host_subdir,;t t
15310 s,@target_subdir@,$target_subdir,;t t
15311 s,@GENINSRC@,$GENINSRC,;t t
15313 s,@CFLAGS@,$CFLAGS,;t t
15314 s,@LDFLAGS@,$LDFLAGS,;t t
15315 s,@CPPFLAGS@,$CPPFLAGS,;t t
15316 s,@ac_ct_CC@,$ac_ct_CC,;t t
15317 s,@EXEEXT@,$EXEEXT,;t t
15318 s,@OBJEXT@,$OBJEXT,;t t
15319 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
15320 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
15322 s,@EGREP@,$EGREP,;t t
15323 s,@strict1_warn@,$strict1_warn,;t t
15324 s,@warn_cflags@,$warn_cflags,;t t
15325 s,@WERROR@,$WERROR,;t t
15326 s,@nocommon_flag@,$nocommon_flag,;t t
15327 s,@TREEBROWSER@,$TREEBROWSER,;t t
15328 s,@valgrind_path@,$valgrind_path,;t t
15329 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
15330 s,@valgrind_command@,$valgrind_command,;t t
15331 s,@coverage_flags@,$coverage_flags,;t t
15332 s,@enable_multilib@,$enable_multilib,;t t
15333 s,@enable_shared@,$enable_shared,;t t
15334 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15335 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15336 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
15337 s,@onestep@,$onestep,;t t
15338 s,@SET_MAKE@,$SET_MAKE,;t t
15340 s,@LN_S@,$LN_S,;t t
15342 s,@RANLIB@,$RANLIB,;t t
15343 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15344 s,@ranlib_flags@,$ranlib_flags,;t t
15345 s,@INSTALL@,$INSTALL,;t t
15346 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15347 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15348 s,@make_compare_target@,$make_compare_target,;t t
15349 s,@have_mktemp_command@,$have_mktemp_command,;t t
15350 s,@MAKEINFO@,$MAKEINFO,;t t
15351 s,@BUILD_INFO@,$BUILD_INFO,;t t
15352 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
15353 s,@FLEX@,$FLEX,;t t
15354 s,@BISON@,$BISON,;t t
15357 s,@stage1_cflags@,$stage1_cflags,;t t
15358 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
15359 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
15360 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
15361 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
15362 s,@LIBICONV@,$LIBICONV,;t t
15363 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
15364 s,@manext@,$manext,;t t
15365 s,@objext@,$objext,;t t
15366 s,@gthread_flags@,$gthread_flags,;t t
15367 s,@extra_modes_file@,$extra_modes_file,;t t
15368 s,@PACKAGE@,$PACKAGE,;t t
15369 s,@VERSION@,$VERSION,;t t
15370 s,@USE_NLS@,$USE_NLS,;t t
15371 s,@LIBINTL@,$LIBINTL,;t t
15372 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15373 s,@INCINTL@,$INCINTL,;t t
15374 s,@XGETTEXT@,$XGETTEXT,;t t
15375 s,@GMSGFMT@,$GMSGFMT,;t t
15376 s,@POSUB@,$POSUB,;t t
15377 s,@CATALOGS@,$CATALOGS,;t t
15378 s,@CROSS@,$CROSS,;t t
15380 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
15381 s,@inhibit_libc@,$inhibit_libc,;t t
15382 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15383 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15384 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
15385 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
15386 s,@collect2@,$collect2,;t t
15387 s,@libgcc_visibility@,$libgcc_visibility,;t t
15389 s,@zlibdir@,$zlibdir,;t t
15390 s,@zlibinc@,$zlibinc,;t t
15391 s,@MAINT@,$MAINT,;t t
15392 s,@gcc_tooldir@,$gcc_tooldir,;t t
15393 s,@dollar@,$dollar,;t t
15394 s,@slibdir@,$slibdir,;t t
15395 s,@objdir@,$objdir,;t t
15396 s,@subdirs@,$subdirs,;t t
15397 s,@srcdir@,$srcdir,;t t
15398 s,@all_boot_languages@,$all_boot_languages,;t t
15399 s,@all_compilers@,$all_compilers,;t t
15400 s,@all_gtfiles@,$all_gtfiles,;t t
15401 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
15402 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
15403 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
15404 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
15405 s,@all_languages@,$all_languages,;t t
15406 s,@all_stagestuff@,$all_stagestuff,;t t
15407 s,@build_exeext@,$build_exeext,;t t
15408 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
15409 s,@build_xm_file_list@,$build_xm_file_list,;t t
15410 s,@build_xm_include_list@,$build_xm_include_list,;t t
15411 s,@build_xm_defines@,$build_xm_defines,;t t
15412 s,@check_languages@,$check_languages,;t t
15413 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
15414 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
15415 s,@cpp_install_dir@,$cpp_install_dir,;t t
15416 s,@xmake_file@,$xmake_file,;t t
15417 s,@tmake_file@,$tmake_file,;t t
15418 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
15419 s,@extra_headers_list@,$extra_headers_list,;t t
15420 s,@extra_objs@,$extra_objs,;t t
15421 s,@extra_parts@,$extra_parts,;t t
15422 s,@extra_passes@,$extra_passes,;t t
15423 s,@extra_programs@,$extra_programs,;t t
15424 s,@float_h_file@,$float_h_file,;t t
15425 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
15426 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
15427 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
15428 s,@gcc_version@,$gcc_version,;t t
15429 s,@gcc_version_full@,$gcc_version_full,;t t
15430 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
15431 s,@host_exeext@,$host_exeext,;t t
15432 s,@host_xm_file_list@,$host_xm_file_list,;t t
15433 s,@host_xm_include_list@,$host_xm_include_list,;t t
15434 s,@host_xm_defines@,$host_xm_defines,;t t
15435 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
15436 s,@install@,$install,;t t
15437 s,@lang_opt_files@,$lang_opt_files,;t t
15438 s,@lang_specs_files@,$lang_specs_files,;t t
15439 s,@lang_tree_files@,$lang_tree_files,;t t
15440 s,@local_prefix@,$local_prefix,;t t
15441 s,@md_file@,$md_file,;t t
15442 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
15443 s,@out_file@,$out_file,;t t
15444 s,@out_object_file@,$out_object_file,;t t
15445 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
15446 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
15447 s,@symbolic_link@,$symbolic_link,;t t
15448 s,@thread_file@,$thread_file,;t t
15449 s,@tm_file_list@,$tm_file_list,;t t
15450 s,@tm_include_list@,$tm_include_list,;t t
15451 s,@tm_defines@,$tm_defines,;t t
15452 s,@tm_p_file_list@,$tm_p_file_list,;t t
15453 s,@tm_p_include_list@,$tm_p_include_list,;t t
15454 s,@xm_file_list@,$xm_file_list,;t t
15455 s,@xm_include_list@,$xm_include_list,;t t
15456 s,@xm_defines@,$xm_defines,;t t
15457 s,@c_target_objs@,$c_target_objs,;t t
15458 s,@cxx_target_objs@,$cxx_target_objs,;t t
15459 s,@target_cpu_default@,$target_cpu_default,;t t
15460 s,@GMPLIBS@,$GMPLIBS,;t t
15461 s,@GMPINC@,$GMPINC,;t t
15462 s,@LIBOBJS@,$LIBOBJS,;t t
15463 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15464 /@language_hooks@/r $language_hooks
15465 s,@language_hooks@,,;t t
15470 cat >>$CONFIG_STATUS <<\_ACEOF
15471 # Split the substitutions into bite-sized pieces for seds with
15472 # small command number limits, like on Digital OSF/1 and HP-UX.
15473 ac_max_sed_lines=48
15474 ac_sed_frag=1 # Number of current file.
15475 ac_beg=1 # First line for current file.
15476 ac_end=$ac_max_sed_lines # Line after last line for current file.
15479 while $ac_more_lines; do
15480 if test $ac_beg -gt 1; then
15481 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15483 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15485 if test ! -s $tmp/subs.frag; then
15486 ac_more_lines=false
15488 # The purpose of the label and of the branching condition is to
15489 # speed up the sed processing (if there are no `@' at all, there
15490 # is no need to browse any of the substitutions).
15491 # These are the two extra sed commands mentioned above.
15493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15494 if test -z "$ac_sed_cmds"; then
15495 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15497 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15499 ac_sed_frag=`expr $ac_sed_frag + 1`
15501 ac_end=`expr $ac_end + $ac_max_sed_lines`
15504 if test -z "$ac_sed_cmds"; then
15507 fi # test -n "$CONFIG_FILES"
15510 cat >>$CONFIG_STATUS <<\_ACEOF
15511 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15512 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15514 - | *:- | *:-:* ) # input from stdin
15516 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15518 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15519 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15520 * ) ac_file_in=$ac_file.in ;;
15523 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15524 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15526 X"$ac_file" : 'X\(//\)[^/]' \| \
15527 X"$ac_file" : 'X\(//\)$' \| \
15528 X"$ac_file" : 'X\(/\)' \| \
15529 . : '\(.\)' 2>/dev/null ||
15531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15533 /^X\(\/\/\)$/{ s//\1/; q; }
15534 /^X\(\/\).*/{ s//\1/; q; }
15536 { if $as_mkdir_p; then
15541 while test ! -d "$as_dir"; do
15542 as_dirs="$as_dir $as_dirs"
15543 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15545 X"$as_dir" : 'X\(//\)[^/]' \| \
15546 X"$as_dir" : 'X\(//\)$' \| \
15547 X"$as_dir" : 'X\(/\)' \| \
15548 . : '\(.\)' 2>/dev/null ||
15550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15552 /^X\(\/\/\)$/{ s//\1/; q; }
15553 /^X\(\/\).*/{ s//\1/; q; }
15556 test ! -n "$as_dirs" || mkdir $as_dirs
15557 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15558 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15559 { (exit 1); exit 1; }; }; }
15563 if test "$ac_dir" != .; then
15564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15565 # A "../" for each directory in $ac_dir_suffix.
15566 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15568 ac_dir_suffix= ac_top_builddir=
15572 .) # No --srcdir option. We are building in place.
15574 if test -z "$ac_top_builddir"; then
15577 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15579 [\\/]* | ?:[\\/]* ) # Absolute path.
15580 ac_srcdir=$srcdir$ac_dir_suffix;
15581 ac_top_srcdir=$srcdir ;;
15582 *) # Relative path.
15583 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15584 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15587 # Do not use `cd foo && pwd` to compute absolute paths, because
15588 # the directories may not exist.
15590 .) ac_abs_builddir="$ac_dir";;
15593 .) ac_abs_builddir=`pwd`;;
15594 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15595 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15598 case $ac_abs_builddir in
15599 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15601 case ${ac_top_builddir}. in
15602 .) ac_abs_top_builddir=$ac_abs_builddir;;
15603 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15604 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15607 case $ac_abs_builddir in
15608 .) ac_abs_srcdir=$ac_srcdir;;
15611 .) ac_abs_srcdir=$ac_abs_builddir;;
15612 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15613 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15616 case $ac_abs_builddir in
15617 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15619 case $ac_top_srcdir in
15620 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15621 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15622 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15628 if test x"$ac_file" != x-; then
15629 { echo "$as_me:$LINENO: creating $ac_file" >&5
15630 echo "$as_me: creating $ac_file" >&6;}
15633 # Let's still pretend it is `configure' which instantiates (i.e., don't
15634 # use $as_me), people would be surprised to read:
15635 # /* config.h. Generated by config.status. */
15636 if test x"$ac_file" = x-; then
15639 configure_input="$ac_file. "
15641 configure_input=$configure_input"Generated from `echo $ac_file_in |
15642 sed 's,.*/,,'` by configure."
15644 # First look for the input files in the build tree, otherwise in the
15646 ac_file_inputs=`IFS=:
15647 for f in $ac_file_in; do
15649 -) echo $tmp/stdin ;;
15651 # Absolute (can't be DOS-style, as IFS=:)
15652 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15653 echo "$as_me: error: cannot find input file: $f" >&2;}
15654 { (exit 1); exit 1; }; }
15657 if test -f "$f"; then
15660 elif test -f "$srcdir/$f"; then
15665 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15666 echo "$as_me: error: cannot find input file: $f" >&2;}
15667 { (exit 1); exit 1; }; }
15670 done` || { (exit 1); exit 1; }
15672 cat >>$CONFIG_STATUS <<_ACEOF
15676 cat >>$CONFIG_STATUS <<\_ACEOF
15678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15679 s,@configure_input@,$configure_input,;t t
15680 s,@srcdir@,$ac_srcdir,;t t
15681 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15682 s,@top_srcdir@,$ac_top_srcdir,;t t
15683 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15684 s,@builddir@,$ac_builddir,;t t
15685 s,@abs_builddir@,$ac_abs_builddir,;t t
15686 s,@top_builddir@,$ac_top_builddir,;t t
15687 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15688 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15690 if test x"$ac_file" != x-; then
15691 mv $tmp/out $ac_file
15699 cat >>$CONFIG_STATUS <<\_ACEOF
15702 # CONFIG_HEADER section.
15705 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15706 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15708 # ac_d sets the value in "#define NAME VALUE" lines.
15709 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15710 ac_dB='[ ].*$,\1#\2'
15713 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15714 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15715 ac_uB='$,\1#\2define\3'
15719 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15722 - | *:- | *:-:* ) # input from stdin
15724 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15726 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15727 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15728 * ) ac_file_in=$ac_file.in ;;
15731 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15732 echo "$as_me: creating $ac_file" >&6;}
15734 # First look for the input files in the build tree, otherwise in the
15736 ac_file_inputs=`IFS=:
15737 for f in $ac_file_in; do
15739 -) echo $tmp/stdin ;;
15741 # Absolute (can't be DOS-style, as IFS=:)
15742 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15743 echo "$as_me: error: cannot find input file: $f" >&2;}
15744 { (exit 1); exit 1; }; }
15745 # Do quote $f, to prevent DOS paths from being IFS'd.
15748 if test -f "$f"; then
15751 elif test -f "$srcdir/$f"; then
15756 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15757 echo "$as_me: error: cannot find input file: $f" >&2;}
15758 { (exit 1); exit 1; }; }
15761 done` || { (exit 1); exit 1; }
15762 # Remove the trailing spaces.
15763 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15767 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15768 # `conftest.undefs', that substitutes the proper values into
15769 # config.h.in to produce config.h. The first handles `#define'
15770 # templates, and the second `#undef' templates.
15771 # And first: Protect against being on the right side of a sed subst in
15772 # config.status. Protect against being in an unquoted here document
15773 # in config.status.
15774 rm -f conftest.defines conftest.undefs
15775 # Using a here document instead of a string reduces the quoting nightmare.
15776 # Putting comments in sed scripts is not portable.
15778 # `end' is used to avoid that the second main sed command (meant for
15779 # 0-ary CPP macros) applies to n-ary macro definitions.
15780 # See the Autoconf documentation for `clear'.
15781 cat >confdef2sed.sed <<\_ACEOF
15786 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15788 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15791 # If some macros were called several times there might be several times
15792 # the same #defines, which is useless. Nevertheless, we may not want to
15793 # sort them, since we want the *last* AC-DEFINE to be honored.
15794 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15795 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15796 rm -f confdef2sed.sed
15798 # This sed command replaces #undef with comments. This is necessary, for
15799 # example, in the case of _POSIX_SOURCE, which is predefined and required
15800 # on some systems where configure will not decide to define it.
15801 cat >>conftest.undefs <<\_ACEOF
15802 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15805 # Break up conftest.defines because some shells have a limit on the size
15806 # of here documents, and old seds have small limits too (100 cmds).
15807 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15808 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15809 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15810 echo ' :' >>$CONFIG_STATUS
15811 rm -f conftest.tail
15812 while grep . conftest.defines >/dev/null
15814 # Write a limited-size here document to $tmp/defines.sed.
15815 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15816 # Speed up: don't consider the non `#define' lines.
15817 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15818 # Work around the forget-to-reset-the-flag bug.
15819 echo 't clr' >>$CONFIG_STATUS
15820 echo ': clr' >>$CONFIG_STATUS
15821 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15823 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15825 mv $tmp/out $tmp/in
15827 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15828 rm -f conftest.defines
15829 mv conftest.tail conftest.defines
15831 rm -f conftest.defines
15832 echo ' fi # grep' >>$CONFIG_STATUS
15833 echo >>$CONFIG_STATUS
15835 # Break up conftest.undefs because some shells have a limit on the size
15836 # of here documents, and old seds have small limits too (100 cmds).
15837 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15838 rm -f conftest.tail
15839 while grep . conftest.undefs >/dev/null
15841 # Write a limited-size here document to $tmp/undefs.sed.
15842 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15843 # Speed up: don't consider the non `#undef'
15844 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15845 # Work around the forget-to-reset-the-flag bug.
15846 echo 't clr' >>$CONFIG_STATUS
15847 echo ': clr' >>$CONFIG_STATUS
15848 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15850 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15852 mv $tmp/out $tmp/in
15854 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15855 rm -f conftest.undefs
15856 mv conftest.tail conftest.undefs
15858 rm -f conftest.undefs
15860 cat >>$CONFIG_STATUS <<\_ACEOF
15861 # Let's still pretend it is `configure' which instantiates (i.e., don't
15862 # use $as_me), people would be surprised to read:
15863 # /* config.h. Generated by config.status. */
15864 if test x"$ac_file" = x-; then
15865 echo "/* Generated by configure. */" >$tmp/config.h
15867 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15869 cat $tmp/in >>$tmp/config.h
15871 if test x"$ac_file" != x-; then
15872 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15873 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15874 echo "$as_me: $ac_file is unchanged" >&6;}
15876 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15878 X"$ac_file" : 'X\(//\)[^/]' \| \
15879 X"$ac_file" : 'X\(//\)$' \| \
15880 X"$ac_file" : 'X\(/\)' \| \
15881 . : '\(.\)' 2>/dev/null ||
15883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15885 /^X\(\/\/\)$/{ s//\1/; q; }
15886 /^X\(\/\).*/{ s//\1/; q; }
15888 { if $as_mkdir_p; then
15893 while test ! -d "$as_dir"; do
15894 as_dirs="$as_dir $as_dirs"
15895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15897 X"$as_dir" : 'X\(//\)[^/]' \| \
15898 X"$as_dir" : 'X\(//\)$' \| \
15899 X"$as_dir" : 'X\(/\)' \| \
15900 . : '\(.\)' 2>/dev/null ||
15902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15904 /^X\(\/\/\)$/{ s//\1/; q; }
15905 /^X\(\/\).*/{ s//\1/; q; }
15908 test ! -n "$as_dirs" || mkdir $as_dirs
15909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15910 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15911 { (exit 1); exit 1; }; }; }
15914 mv $tmp/config.h $ac_file
15918 rm -f $tmp/config.h
15922 cat >>$CONFIG_STATUS <<\_ACEOF
15925 # CONFIG_COMMANDS section.
15927 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15928 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15929 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15930 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15931 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15932 X"$ac_dest" : 'X\(//\)[^/]' \| \
15933 X"$ac_dest" : 'X\(//\)$' \| \
15934 X"$ac_dest" : 'X\(/\)' \| \
15935 . : '\(.\)' 2>/dev/null ||
15937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15939 /^X\(\/\/\)$/{ s//\1/; q; }
15940 /^X\(\/\).*/{ s//\1/; q; }
15942 { if $as_mkdir_p; then
15947 while test ! -d "$as_dir"; do
15948 as_dirs="$as_dir $as_dirs"
15949 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15951 X"$as_dir" : 'X\(//\)[^/]' \| \
15952 X"$as_dir" : 'X\(//\)$' \| \
15953 X"$as_dir" : 'X\(/\)' \| \
15954 . : '\(.\)' 2>/dev/null ||
15956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15958 /^X\(\/\/\)$/{ s//\1/; q; }
15959 /^X\(\/\).*/{ s//\1/; q; }
15962 test ! -n "$as_dirs" || mkdir $as_dirs
15963 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15965 { (exit 1); exit 1; }; }; }
15969 if test "$ac_dir" != .; then
15970 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15971 # A "../" for each directory in $ac_dir_suffix.
15972 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15974 ac_dir_suffix= ac_top_builddir=
15978 .) # No --srcdir option. We are building in place.
15980 if test -z "$ac_top_builddir"; then
15983 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15985 [\\/]* | ?:[\\/]* ) # Absolute path.
15986 ac_srcdir=$srcdir$ac_dir_suffix;
15987 ac_top_srcdir=$srcdir ;;
15988 *) # Relative path.
15989 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15990 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15993 # Do not use `cd foo && pwd` to compute absolute paths, because
15994 # the directories may not exist.
15996 .) ac_abs_builddir="$ac_dir";;
15999 .) ac_abs_builddir=`pwd`;;
16000 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16001 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16004 case $ac_abs_builddir in
16005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16007 case ${ac_top_builddir}. in
16008 .) ac_abs_top_builddir=$ac_abs_builddir;;
16009 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16010 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16013 case $ac_abs_builddir in
16014 .) ac_abs_srcdir=$ac_srcdir;;
16017 .) ac_abs_srcdir=$ac_abs_builddir;;
16018 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16019 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16022 case $ac_abs_builddir in
16023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16025 case $ac_top_srcdir in
16026 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16027 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16028 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16033 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16034 echo "$as_me: executing $ac_dest commands" >&6;}
16037 case ${CONFIG_HEADERS} in
16038 *auto-host.h:config.in*)
16041 # Make sure all the subdirs exist.
16042 for d in $subdirs doc build
16044 test -d $d || mkdir $d
16046 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16047 # bootstrapping and the installation procedure can still use
16048 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16049 # FLAGS_TO_PASS has been modified to solve the problem there.
16050 # This is virtually a duplicate of what happens in configure.lang; we do
16051 # an extra check to make sure this only happens if ln -s can be used.
16052 if test "$symbolic_link" = "ln -s"; then
16053 for d in ${subdirs} ; do
16054 STARTDIR=`${PWDCMD-pwd}`
16056 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16059 $symbolic_link ../$t $t 2>/dev/null
16069 cat >>$CONFIG_STATUS <<\_ACEOF
16071 { (exit 0); exit 0; }
16073 chmod +x $CONFIG_STATUS
16074 ac_clean_files=$ac_clean_files_save
16077 # configure is writing to config.log, and then calls config.status.
16078 # config.status does its own redirection, appending to config.log.
16079 # Unfortunately, on DOS this fails, as config.log is still kept open
16080 # by configure, so config.status won't be able to write to it; its
16081 # output is simply discarded. So we exec the FD to /dev/null,
16082 # effectively closing config.log, so it can be properly (re)opened and
16083 # appended to by config.status. When coming back to configure, we
16084 # need to make the FD available again.
16085 if test "$no_create" != yes; then
16087 ac_config_status_args=
16088 test "$silent" = yes &&
16089 ac_config_status_args="$ac_config_status_args --quiet"
16091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16094 # would make configure fail if this is the last instruction.
16095 $ac_cs_success || { (exit 1); exit 1; }